/* Base Styles using Variables */
@import 'reset.css';
@import 'variables.css';
@import 'animations.css';

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-gradient-soft);
    background-attachment: fixed;
    /* Ensure continuous gradient on scroll */
    color: var(--color-text-dark);
    font-family: var(--font-body);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text-dark);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.75rem;
}

.script-text {
    font-family: var(--font-script);
    color: var(--color-gold);
    font-size: 3rem;
}

.text-gold {
    background: var(--color-text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
    /* Adds subtle definition */
    padding-right: 0.15em;
    /* Prevents clipping of italic tails like 'd' */
    background-image: var(--color-text-gradient);
    /* Ensure it uses image property for clip */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* Container Utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Section Utility */
section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

/* Specific Section Spacing Overrides */
section.ai-teaser {
    padding-bottom: var(--spacing-lg);
    /* Reduced from xl (8rem) to lg (4rem) */
}

section.gallery-highlight {
    padding-top: var(--spacing-lg);
    /* Reduced from xl (8rem) to lg (4rem) */
}

/* Button Styles */
.btn {
    display: inline-block;
    white-space: nowrap;
    padding: 1rem 2.5rem;
    background: var(--color-royal-navy);
    /* Solid fallback */
    background: var(--color-royal-navy-gradient);
    /* Royal blue style */
    color: #fff;
    border: 1px solid var(--color-gold);
    font-family: var(--font-heading);
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    /* Pillow shape for softness */
    border-radius: 50px;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(46, 70, 0, 0.3);
    /* Soft colored shadow */
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 70, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-text-dark);
    /* Match primary button */
}

.btn-secondary:hover {
    background: var(--color-ivory);
}

/* Title Animation Styles */
#hero-title {
    font-family: var(--font-luxury-serif);
    font-weight: 300;
    /* Elegant, light */
    font-size: 2.5rem;
    /* Adjusted for calm strength */
    letter-spacing: 0.05em;
    /* Reduced from 0.15em for cleaner look */
    text-transform: uppercase;
    /* All caps */
    position: relative;
    z-index: 2;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.title-char {
    display: inline-block;
    will-change: transform, opacity;
}

.gold-dust {
    pointer-events: none;
    will-change: transform, opacity;
    filter: blur(0.5px);
    /* Soften edges */
}

.sparkle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: inherit;
    transform: translate(-50%, -50%) rotate(45deg);
    /* Optional star effect */
}

/* Ensure hero content allows absolute positioning of sparkles inside */
.hero-content {
    position: relative;
    z-index: 2;
    /* Ensure text is above background elements */
}

/* Mobile Responsiveness (Tablets & Mobile) */
@media (max-width: 900px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Mobile Responsiveness (Small Mobile) */
@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }

    /* Adjust buttons for smaller touch targets */
    .btn {
        padding: 0.875rem 2rem;
        /* Reverted to natural width to avoid looking too big */
        display: inline-block;
        width: auto;
        margin-bottom: 0.5rem;
    }

    .hero-actions {
        width: 100%;
        padding: 0;
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
        /* Center buttons since they are no longer full width */
    }

    #hero-title {
        font-size: 2rem;
        /* Reduced from 3rem */
        letter-spacing: 0.05em;
        /* Reduced from 0.15em to prevents overflow */
        line-height: 1.2;
        margin-bottom: 1.5rem;
        word-wrap: break-word;
        /* Ensure wrapping */
    }

    .script-text {
        font-size: 1.8rem !important;
        /* Reduced from 2rem */
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .ai-teaser p {
        padding: 0 1.5rem;
        /* Prevent overflow on small screens */
    }
}

/* Custom Request Blinking Effect */
@keyframes goldPulse {
    0% {
        box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.03);
        border-color: rgba(212, 175, 55, 0.2);
    }

    50% {
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
        border-color: rgba(212, 175, 55, 0.8);
    }

    100% {
        box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.03);
        border-color: rgba(212, 175, 55, 0.2);
    }
}

.custom-highlight-pulse {
    animation: goldPulse 3s infinite ease-in-out;
}

/* Global Flower Loader Styles */
@keyframes gentle-spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.image-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    animation: gentle-spin 3s linear infinite;
    z-index: 1;
    pointer-events: none;
    color: var(--color-gold);
    white-space: nowrap;
}

/* Main Content Loader (Left-Right Flower) */
.loading-container {
    text-align: center;
    width: 100%;
    padding: 4rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.flower-loader-main {
    font-size: 2.5rem;
    color: var(--color-gold);
    animation: moveflower 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes moveflower {
    0% {
        transform: translateX(-40px) rotate(0deg);
        opacity: 0.6;
    }

    50% {
        transform: translateX(40px) rotate(180deg);
        opacity: 1;
    }

    100% {
        transform: translateX(-40px) rotate(360deg);
        opacity: 0.6;
    }
}