/* =============================================
   MAIN.CSS - Variables, Base Styles & Utilities
   ============================================= */

/* ===== CSS Variables ===== */
:root {
    /* Colors */
    --gold: #d4af37;
    --gold-light: #e8c55a;
    --gold-dark: #b8962e;
    --black: #0a0a0a;
    --black-light: #1a1a1a;
    --black-lighter: #2a2a2a;
    --white: #ffffff;
    --gray-100: #f8f8f8;
    --gray-200: #e8e8e8;
    --gray-300: #d0d0d0;
    --gray-600: #666666;
    
    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, sans-serif;
    
    /* Transitions */
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.loading {
    overflow: hidden;
}

/* ===== Typography ===== */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
}

/* ===== Utility Classes ===== */
.gold {
    color: var(--gold);
}

/* Gold Shimmer Animation */
.shimmer {
    position: relative;
    display: inline-block;
    color: var(--gold);
    animation: shimmerGlow 3s ease-in-out infinite;
}

@keyframes shimmerGlow {
    0%, 100% { 
        color: var(--gold);
        text-shadow: none;
    }
    50% { 
        color: var(--gold-light);
        text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
    }
}

/* Noise/Grain Overlay */
.noise-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* Text Reveal Animation */
.text-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for text-reveal elements */
.section-header .text-reveal:nth-child(1) { transition-delay: 0s; }
.section-header .text-reveal:nth-child(2) { transition-delay: 0.15s; }

.hero-content .text-reveal:nth-child(1) { transition-delay: 0.2s; }
.hero-content .text-reveal:nth-child(2) { transition-delay: 0.4s; }
.hero-content .text-reveal:nth-child(3) { transition-delay: 0.6s; }

/* ===== Custom Cursor ===== */
.custom-cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
    mix-blend-mode: difference;
}

.custom-cursor.hovering {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--gold);
    mix-blend-mode: normal;
}

.cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

.cursor-follower.hovering {
    width: 60px;
    height: 60px;
    opacity: 0.5;
}

/* Hide cursor on mobile/tablet */
@media (max-width: 1024px) {
    .custom-cursor,
    .cursor-follower {
        display: none !important;
    }
}

/* Hide default cursor on desktop */
@media (min-width: 1025px) {
    body:not(.loading) {
        cursor: none;
    }
    
    body:not(.loading) a,
    body:not(.loading) button,
    body:not(.loading) input,
    body:not(.loading) textarea {
        cursor: none;
    }
}

/* ===== Section Base Styles ===== */
section {
    padding: 8rem 5%;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--black);
    letter-spacing: -0.5px;
}

.section-title.light,
.section-header.light .section-title {
    color: var(--white);
}

/* ===== Animations ===== */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Base ===== */
@media (max-width: 768px) {
    section {
        padding: 5rem 5%;
    }
}
