/* ===================================
   BASE STYLES & CSS VARIABLES
   =================================== */

:root {
    /* Primary Colors - Inspired by premium gold and grey palette */
    --primary-gold: #D9B45F;
    --primary-light-gold: #E7C97F;
    --primary-dark-gold: #BE9840;
    --primary-subtle-gold: #F4EBD3;
    
    --primary-dark-grey: #2A2A2A;
    --primary-light-grey: #F0F0F0;
    
    /* Text Colors */
    --text-dark: #333333;
    --text-medium: #555555;
    --text-light: #888888;
    --text-white: #ffffff;
    
    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #F9F9F9;
    --bg-dark: #2A2A2A;
    
    /* Gradients */
    --gold-gradient: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-light-gold) 100%);
    --gold-gradient-hover: linear-gradient(135deg, var(--primary-light-gold) 0%, var(--primary-gold) 100%);
    --subtle-gold-gradient: linear-gradient(135deg, var(--bg-white) 0%, var(--primary-subtle-gold) 100%);
    --dark-overlay: linear-gradient(135deg, rgba(42, 42, 42, 0.7) 0%, rgba(42, 42, 42, 0.5) 50%, rgba(217, 180, 95, 0.3) 100%);
    
    /* Shadows */
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-medium: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-hard: 0 15px 50px rgba(0, 0, 0, 0.2);
    --shadow-gold-glow: 0 5px 20px rgba(217, 180, 95, 0.3);
    --shadow-gold-strong: 0 10px 30px rgba(217, 180, 95, 0.4);
    
    /* Typography */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.7;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    --spacing-xxl: 100px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-smooth: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ===================================
   RESET & BASE ELEMENTS
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: var(--line-height-base);
    font-size: 1rem;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-medium);
}

a {
    text-decoration: none;
    color: var(--primary-gold);
    transition: color var(--transition-normal);
}

a:hover {
    color: var(--primary-dark-gold);
}

/* ===================================
   LAYOUT UTILITIES
   =================================== */

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    position: relative;
    overflow: hidden;
}

/* ===================================
   COMMON SECTION ELEMENTS
   =================================== */

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-gold);
    font-weight: 500;
    display: inline-block;
    margin-bottom: var(--spacing-xs);
    position: relative;
    padding-left: 15px;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 2px;
    background: var(--gold-gradient);
    transform: translateY(-50%);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.title-underline {
    width: 70px;
    height: 3px;
    background: var(--gold-gradient);
    margin: 0 auto var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.title-underline::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%
;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ===================================
   BUTTON STYLES
   =================================== */

.cta-button {
    display: inline-block;
    background: var(--gold-gradient);
    color: var(--text-white);
    padding: 16px 36px;
    border-radius: var(--radius-full);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all var(--transition-bounce);
    box-shadow: var(--shadow-gold-glow);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.cta-button:hover {
    background: var(--gold-gradient-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold-strong);
    border-color: rgba(255, 255, 255, 0.2);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button.primary {
    background: var(--gold-gradient);
    font-size: 1.1rem;
    padding: 18px 40px;
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* ===================================
   RESPONSIVE UTILITIES
   =================================== */

@media (max-width: 1024px) {
    .container {
        width: 92%;
    }
    
    :root {
        --spacing-xxl: 80px;
        --spacing-xl: 50px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 90%;
    }
    
    :root {
        --spacing-xxl: 60px;
        --spacing-xl: 40px;
        --spacing-lg: 30px;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-xxl: 50px;
        --spacing-xl: 30px;
        --spacing-lg: 24px;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

*:focus-visible {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

/* ===================================
   SCROLLBAR STYLING
   =================================== */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 6px;
    border: 3px solid var(--bg-light);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark-gold);
}

/* ===================================
   SELECTION STYLING
   =================================== */

::selection {
    background-color: var(--primary-gold);
    color: var(--text-white);
}

::-moz-selection {
    background-color: var(--primary-gold);
    color: var(--text-white);
}