/*
Theme Name: inizion.photo
Theme URI: https://inizion.photo
Author: Aaron Cediel
Author URI: https://aaroncediel.com
Description: inizion.photo
Version: 1.0.0
Text Domain: inizion.photo
*/

/* ==========================================================================
Base Styles & Overrides
========================================================================== */
body {
background-color: #262625;
color: #eeeeee;
overflow-x: hidden;
}

html {
scroll-behavior: smooth;
}

/* ==========================================================================
Visual Effects
========================================================================== /
/ Bokeh / Blur Effect */
.bokeh-overlay {
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
background-color: rgba(38, 38, 37, 0.85);
}

/* Hero Canvas - Positioned safely behind the text */
#hero-canvas {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 10;
pointer-events: auto;
}

/* ==========================================================================
Hero Handwriting Animation Logic
========================================================================== /
/ Container for the handwriting text to prevent global clipping */
.handwriting-text {
display: inline-block;
line-height: 1.15 !important;
padding: 0.5em 1em;
text-align: center;
}

.word-span {
display: inline-block;
white-space: pre;

/* Base transform state required for the dispersal animation to work */
transform: translate(0px, 0px) rotate(0deg) skewX(0deg) scale(1);

/* The wiping mask */
-webkit-mask-image: linear-gradient(110deg, rgba(0,0,0,1) 45%, rgba(0,0,0,0.4) 50%, transparent 55%);
-webkit-mask-size: 300% 100%;
-webkit-mask-position: 100% 0;
mask-image: linear-gradient(110deg, rgba(0,0,0,1) 45%, rgba(0,0,0,0.4) 50%, transparent 55%);
mask-size: 300% 100%;
mask-position: 100% 0;
opacity: 0;

/* Premium Gold Gradient on each word */
background: linear-gradient(to right, #fbbf52, #ffe7ba);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
color: transparent;

padding: 0.3em; 
margin: -0.3em;


}

.drawn .word-span {
opacity: 1;
-webkit-mask-position: 0% 0;
mask-position: 0% 0;
transform: translate(0px, 0px) rotate(0deg) skewX(0deg) scale(1);
transition: opacity 0.5s ease-in, -webkit-mask-position 1.6s cubic-bezier(0.25, 0.1, 0.25, 1), mask-position 1.6s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.5s ease;
}

.erasing .word-span {
opacity: 0;
filter: blur(12px);
transform: translate(0px, 0px) rotate(0deg) skewX(0deg) scale(1);
-webkit-mask-position: 0% 0;
mask-position: 0% 0;
transition: opacity 1.5s ease-in-out, filter 1.5s ease-in-out;
transition-delay: var(--erase-delay, 0s) !important;
}

/* ==========================================================================
Masonry Grid (Highlights)
========================================================================== */
.masonry {
column-count: 1;
column-gap: 1rem;
}
@media (min-width: 640px) { .masonry { column-count: 2; } }
@media (min-width: 1024px) { .masonry { column-count: 3; } }

.masonry-item {
break-inside: avoid;
margin-bottom: 1rem;
position: relative;
overflow: hidden;
border-radius: 4px;
}

.masonry-item img {
transition: transform 0.7s ease;
width: 100%;
display: block;
}

.masonry-item:hover img {
transform: scale(1.05);
}

/* ==========================================================================
Forms & Inputs
========================================================================== */
input, textarea, select {
background: transparent;
border: none;
border-bottom: 1px solid #c9c9c9;
color: #eeeeee;
font-family: "Afacad Flux", sans-serif;
}
input:focus, textarea:focus, select:focus {
outline: none;
border-bottom: 1px solid #fbbf52;
box-shadow: none;
}

/* ==========================================================================
UI Elements
========================================================================== /
/ Language switcher styling */
.lang-switch a {
transition: color 0.3s ease;
cursor: pointer;
}
.lang-switch a:hover, .lang-switch a.active {
color: #fbbf52;
}

/* Custom scrollbar hiding for elegant text cards */
.hide-scrollbar::-webkit-scrollbar {
display: none;
}
.hide-scrollbar {
-ms-overflow-style: none;
scrollbar-width: none;
}

/* ==========================================================================
Expanding Cards (Filosofía Section)
========================================================================== */
@media (max-width: 1023px) {
.expand-hover {
flex: none;
width: 100%;
height: 450px;
}
}

@media (min-width: 1024px) {
.expand-hover {
flex: 1 1 0%;
transition: flex 0.7s cubic-bezier(0.4, 0, 0.2, 1);
container-type: inline-size;
}
.expand-hover:hover {
flex: 2.5 1 0%;
}
}

/* Fixed inner text container to prevent reflow jitter */
.fixed-inner-content {
width: 100%;
}
@media (min-width: 1024px) {
.fixed-inner-content {
width: 520px;
}
}

/* Dynamic Title Sizing using Container Queries */
.accordion-title {
font-size: 2.25rem;
line-height: 2.5rem;
}
@media (min-width: 1024px) {
.accordion-title {
font-size: clamp(1rem, 7.5cqi, 2.5rem);
}
}

