/* ----------------------------------------------------
   HERDEIRO CREATIVE STUDIO - Core Stylesheet
   Luxury Editorial Minimalism / Reductive Brutalism
   ---------------------------------------------------- */

:root {
    /* Design System Colors */
    --surface: #141313;
    --surface-dim: #141313;
    --surface-bright: #3a3939;
    --surface-container-lowest: #0e0e0e;
    --surface-container-low: #1c1b1b;
    --surface-container: #201f1f;
    --surface-container-high: #2a2a2a;
    --surface-container-highest: #353434;
    --on-surface: #e5e2e1;
    --on-surface-variant: #c4c7c8;
    --inverse-surface: #e5e2e1;
    --inverse-on-surface: #313030;
    --outline: #8e9192;
    --outline-variant: #444748;
    --surface-tint: #c6c6c7;
    --primary: #ffffff;
    --on-primary: #2f3131;
    --primary-container: #e2e2e2;
    --on-primary-container: #636565;
    --inverse-primary: #5d5f5f;
    --secondary: #c7c6c6;
    --on-secondary: #2f3131;
    --secondary-container: #484949;
    --on-secondary-container: #b8b8b8;
    --tertiary: #ffffff;
    --on-tertiary: #2f3131;
    --tertiary-container: #e2e2e2;
    --on-tertiary-container: #636565;
    --error: #ffb4ab;
    --on-error: #690005;
    --error-container: #93000a;
    --on-error-container: #ffdad6;
    
    /* Spacing & Layout */
    --spacing-unit: 8px;
    --container-max: 1440px;
    --margin-desktop: 64px;
    --margin-mobile: 24px;
    --gutter: 32px;
}

/* ----------------------------------------------------
   Base Styling
   ---------------------------------------------------- */
body {
    background-color: var(--background, #141313);
    color: var(--on-background, #e5e2e1);
    font-family: 'Gelasio', serif;
}

/* ----------------------------------------------------
   Scroll Reveal Animations
   ---------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.0s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ----------------------------------------------------
   Custom Infinitely Scrolling Marquee
   ---------------------------------------------------- */
.marquee {
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 25s linear infinite;
}

@keyframes marquee {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* ----------------------------------------------------
   Media Hover Effects
   ---------------------------------------------------- */
.img-container {
    overflow: hidden;
}

.img-container img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-container:hover img {
    transform: scale(1.05);
}

/* ----------------------------------------------------
   Navigation Transition
   ---------------------------------------------------- */
#main-nav {
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#main-nav.visible {
    transform: translateY(0);
}

/* ----------------------------------------------------
   Typography & Interactive Elements
   ---------------------------------------------------- */
.thin-underline {
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    transition: padding-bottom 0.3s ease;
}

.thin-underline:hover {
    padding-bottom: 4px;
}

/* ----------------------------------------------------
   Forms & Inputs
   ---------------------------------------------------- */
.minimal-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--outline-variant, #444748);
    color: #ffffff;
    width: 100%;
    padding: 16px 0 !important;
    margin: 0;
    font-family: 'Gelasio', serif;
    font-size: 20px;
    border-radius: 0; /* Ensures sharp edges on iOS */
}

.minimal-input:focus {
    outline: none;
    border-bottom-color: #ffffff;
    box-shadow: none;
}

.minimal-input::placeholder {
    color: var(--on-tertiary-container, #636565);
}

/* Custom Autofill Styles to preserve Dark Theme */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--background, #141313) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}
