:root {
    /* Old Money Color Palette */
    --deep-navy: #020817;
    --navy-medium: #0f172a;
    --navy-light: #1e293b;
    --warm-ivory: #fdfbf7;
    --antique-gold: #b8860b;
    --gold-bright: #daa520;
    --gold-soft: #f4e4bc;
    --burgundy: #4a0e0e;
    --charcoal: #2a2a2a;
    --silver: #8b8b8b;
    --paper: #f8f6f0;

    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Typography Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--deep-navy);
    color: var(--warm-ivory);
    line-height: 1.7;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

/* Premium Typography */
.serif {
    font-family: 'Playfair Display', serif;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: var(--text-6xl);
    font-weight: 800;
}

h2 {
    font-size: var(--text-5xl);
    font-weight: 700;
}

h3 {
    font-size: var(--text-3xl);
    font-weight: 600;
}

/* Layout Structure */
.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Left Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    background: linear-gradient(180deg, var(--navy-medium) 0%, var(--deep-navy) 100%);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(184, 134, 11, 0.1);
    z-index: 1000;
    transform: translateX(-240px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-toggle {
    position: fixed;
    left: 20px;
    top: 20px;
    z-index: 1001;
    background: var(--antique-gold);
    color: var(--deep-navy);
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(184, 134, 11, 0.3);
}

.sidebar-toggle:hover {
    background: var(--gold-bright);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(184, 134, 11, 0.4);
}

.sidebar-close {
    position: absolute;
    right: 20px;
    top: 20px;
    background: transparent;
    border: 1px solid rgba(184, 134, 11, 0.3);
    color: var(--antique-gold);
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.sidebar.open .sidebar-close {
    opacity: 1;
    visibility: visible;
}

.sidebar-close:hover {
    background: rgba(184, 134, 11, 0.1);
    border-color: var(--antique-gold);
}

.sidebar-header {
    padding: var(--space-lg) var(--space-lg) var(--space-md) var(--space-lg);
    border-bottom: 1px solid rgba(184, 134, 11, 0.1);
    margin-top: 60px; /* Space for close button */
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--antique-gold);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.tagline {
    font-size: var(--text-sm);
    color: var(--silver);
    font-weight: 300;
    letter-spacing: 0.02em;
}

.nav-menu {
    padding: var(--space-lg);
}

.nav-item {
    display: block;
    padding: var(--space-md) var(--space-lg);
    color: var(--warm-ivory);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: var(--space-sm);
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--antique-gold), var(--gold-bright));
    transition: width 0.3s ease;
    z-index: -1;
}

.nav-item:hover,
.nav-item.active {
    color: var(--deep-navy);
    transform: translateX(8px);
}

.nav-item:hover::before,
.nav-item.active::before {
    width: 100%;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 40px;
    transition: margin-left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.main-content.sidebar-open {
    margin-left: 280px;
}

/* Right Phase Panel */
.phase-panel {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.phase-panel.visible {
    opacity: 1;
    visibility: visible;
}

.phase-indicator {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(184, 134, 11, 0.2);
    border-radius: 12px;
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.phase-indicator:hover,
.phase-indicator.active {
    background: rgba(184, 134, 11, 0.1);
    border-color: var(--antique-gold);
    transform: translateX(-8px);
}

.phase-number {
    font-family: 'Playfair Display', serif;
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--antique-gold);
    margin-bottom: var(--space-xs);
}

.phase-title {
    font-size: var(--text-sm);
    color: var(--warm-ivory);
    font-weight: 500;
}

/* Page System */
.page {
    display: none;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.page.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

/* Section Styling */
.section {
    min-height: 100vh;
    padding: var(--space-2xl) var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.section-content {
    max-width: 1200px;
    width: 100%;
    z-index: 10;
    position: relative;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--navy-medium) 50%, var(--deep-navy) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23b8860b" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-title {
    margin-bottom: var(--space-lg);
    position: relative;
}

.gold-text {
    color: var(--antique-gold);
    position: relative;
}

.gold-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--antique-gold), transparent);
    opacity: 0.5;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--silver);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Premium Buttons */
.btn {
    display: inline-block;
    padding: var(--space-md) var(--space-xl);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-lg);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    margin: var(--space-sm);
    letter-spacing: 0.02em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--antique-gold), var(--gold-bright));
    color: var(--deep-navy);
    box-shadow: 0 8px 25px rgba(184, 134, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(184, 134, 11, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--warm-ivory);
    border: 2px solid rgba(253, 251, 247, 0.2);
}

.btn-secondary:hover {
    background: rgba(253, 251, 247, 0.05);
    border-color: var(--warm-ivory);
    transform: translateY(-2px);
}

/* Premium Cards */
.card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.4));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(184, 134, 11, 0.1);
    border-radius: 16px;
    padding: var(--space-xl);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--antique-gold), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--antique-gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card:hover::before {
    opacity: 1;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Charlotte Journey Animation Container */
.journey-container {
    position: relative;
    height: 70vh;
    background: var(--navy-medium);
    border-radius: 20px;
    overflow: hidden;
    margin: var(--space-xl) 0;
}

.journey-map {
    position: absolute;
    width: 300%;
    height: 300%;
    background: linear-gradient(45deg, var(--navy-light), var(--navy-medium));
    transition: transform 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.location-marker {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--antique-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--deep-navy);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(184, 134, 11, 0.4);
}

.location-marker:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 30px rgba(184, 134, 11, 0.6);
}

/* Phase buttons - hide on desktop */
.phase-buttons-mobile {
    display: none !important;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Show phase buttons on mobile */
    .phase-buttons-mobile {
        display: block !important;
    }

    /* Hide phase panel on mobile */
    .phase-panel {
        display: none !important;
    }
    .sidebar {
        width: 100%;
        transform: translateX(-100%);
    }

    .main-content {
        margin-left: 0;
    }

    .main-content.sidebar-open {
        margin-left: 0;
    }

    .phase-panel {
        bottom: 20px;
        top: auto;
        right: 20px;
        transform: none;
        width: auto;
    }

    .section {
        padding: var(--space-xl) var(--space-md);
    }

    h1 {
        font-size: var(--text-4xl);
    }

    h2 {
        font-size: var(--text-3xl);
    }
}

/* Premium Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes goldShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes pulseGold {
    0%, 100% { box-shadow: 0 0 20px rgba(184, 134, 11, 0.3); }
    50% { box-shadow: 0 0 40px rgba(184, 134, 11, 0.6); }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.shimmer-effect {
    position: relative;
    overflow: hidden;
}

.shimmer-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(184, 134, 11, 0.1), transparent);
    transform: translateX(-100%);
    animation: goldShimmer 3s infinite;
}

.pulse-gold {
    animation: pulseGold 2s infinite;
}

/* Advanced scroll-triggered animations */
.parallax-text {
    transform: translateY(var(--scroll-y));
}

/* Loading state */
.loading {
    opacity: 0;
}

.loaded {
    opacity: 1;
    transition: opacity 1.5s ease;
}

/* Cursor effects for premium feel */
.btn, .nav-item, .location-marker, .phase-indicator {
    cursor: pointer;
}

/* Custom selection colors */
::selection {
    background: var(--antique-gold);
    color: var(--deep-navy);
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--deep-navy);
}

::-webkit-scrollbar-thumb {
    background: var(--antique-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-bright);
}