/* =====================================================
   ULTIMATE LUXURY THEME - CHANEL/GUCCI/DIOR/HERMÈS STYLE
   Muhammad Junaid Portfolio - Premium Edition
   ===================================================== */

:root {
    /* ================================================
       PREMIUM WHITE THEME - ELITE COLOR PALETTE
       ================================================ */
    
    /* Background Layers - Soft Dark Theme (Easy on Eyes) */
    --background: #0f0f0f;
    --background-alt: #1a1a1a;
    --background-cream: #222222;
    --background-warm: #2a2a2a;
    --surface: #1e1e1e;
    --surface-elevated: #252525;
    --surface-luxury: #2d2d2d;
    
    /* ================================================
       GOLD ACCENT SYSTEM - ROSE GOLD TO PLATINUM
       ================================================ */
    
    /* Primary Gold - Rich & Royal */
    --gold-primary: #D4AF37;
    --gold-light: #E8D5A3;
    --gold-dark: #B8962E;
    --gold-rich: #C9A227;
    
    /* Rose Gold - Modern Luxury */
    --rose-gold: #B76E79;
    --rose-light: #E8C4C4;
    --rose-pink: #D4A5A5;
    
    /* Platinum & Silver */
    --platinum: #E5E4E2;
    --silver-muted: #C0C0C0;
    
    /* Accent Colors */
    --accent-champagne: #F7E7CE;
    --accent-ivory: #FFFFF0;
    
    /* ================================================
       TEXT SYSTEM - ELEGANT HIERARCHY
       ================================================ */
    
    /* Primary Text - Soft White (Easy to Read) */
    --text-primary: #e8e8e8;
    --text-dark: #d0d0d0;
    
    /* Secondary Text - Muted Gray */
    --text-secondary: #9a9a9a;
    --text-muted: #707070;
    --text-light: #555555;
    
    /* Accent Text - Gold Tinted */
    --text-gold: #B8962E;
    --text-champagne: #D4AF37;
    
    /* ================================================
       GRADIENT SYSTEM - LUXURY SHADES
       ================================================ */
    
    /* Gold Gradients - Softer Version */
    --gradient-gold: linear-gradient(135deg, #C9A227 0%, #D4AF37 50%, #B8962E 100%);
    --gradient-gold-subtle: linear-gradient(135deg, #B8962E 0%, #C9A227 50%, #A07D20 100%);
    --gradient-gold-shine: linear-gradient(135deg, #D4AF37 0%, #C9A227 50%, #B8962E 100%);
    
    /* Rose Gold Gradients */
    --gradient-rose: linear-gradient(135deg, #B76E79 0%, #E8C4C4 50%, #B76E79 100%);
    
    /* Elegant Dark Gradients */
    --gradient-elegant: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 50%, #1a1a1a 100%);
    --gradient-dark-luxury: linear-gradient(180deg, #0D0D0D 0%, #1A1A1A 100%);
    
    /* Premium Background Gradients */
    --gradient-cream: linear-gradient(180deg, #FAFAFA 0%, #F5F3F0 100%);
    --gradient-warm: linear-gradient(135deg, #F8F6F3 0%, #FDFCFB 100%);
    
    /* ================================================
       SHADOW SYSTEM - DEPTH & ELEVATION
       ================================================ */
    
    /* Soft Shadows - Dark Theme */
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-medium: 0 15px 50px rgba(0, 0, 0, 0.6);
    --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.7);
    --shadow-luxury: 0 25px 80px rgba(0, 0, 0, 0.8);
    
    /* Gold Accent Shadows */
    --shadow-gold-subtle: 0 10px 40px rgba(212, 175, 55, 0.1);
    --shadow-gold: 0 10px 40px rgba(212, 175, 55, 0.2);
    --shadow-gold-strong: 0 15px 50px rgba(212, 175, 55, 0.3);
    --shadow-gold-glow: 0 0 60px rgba(212, 175, 55, 0.15);
    
    /* Rose Gold Shadows */
    --shadow-rose: 0 10px 40px rgba(183, 110, 121, 0.12);
    
    /* Inner Shadows - Premium Feel */
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-inner-lg: inset 0 4px 8px rgba(0, 0, 0, 0.03);
    
    /* ================================================
       TRANSITION SYSTEM - SILK SMOOTH
       ================================================ */
    
    /* Base Transitions */
    --transition-fast: all 0.2s ease;
    --transition-smooth: all 0.3s ease;
    --transition-medium: all 0.5s ease;
    --transition-luxury: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-premium: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 1s ease;
    
    /* Specific Transitions */
    --transition-transform: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-opacity: opacity 0.5s ease;
    --transition-color: color 0.3s ease, background-color 0.3s ease;
    --transition-shadow: box-shadow 0.5s ease;
    
    /* Hover Effects Timing */
    --hover-fast: 0.2s ease;
    --hover-medium: 0.4s ease;
    --hover-slow: 0.6s ease;
    
    /* ================================================
       SPACING SYSTEM - GOLDEN RATIO
       ================================================ */
    
    --space-xxs: 0.25rem;   /* 4px */
    --space-xs: 0.5rem;     /* 8px */
    --space-sm: 1rem;       /* 16px */
    --space-md: 2rem;       /* 32px */
    --space-lg: 4rem;       /* 64px */
    --space-xl: 6rem;       /* 96px */
    --space-2xl: 8rem;      /* 128px */
    --space-3xl: 12rem;     /* 192px */
    
    /* ================================================
       BORDER RADIUS - SUBTLE ELEGANCE
       ================================================ */
    
    --radius-none: 0;
    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* ================================================
       Z-INDEX LAYERS
       ================================================ */
    
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-glow: -1;
}

/* =====================================================
   BASE STYLES - FOUNDATION
   ===================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--background);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* =====================================================
   TYPOGRAPHY - PLAYFAIR & CORMORANT MAJESTY
   ===================================================== */

/* Premium Display Typography */
h1, h2, h3, h4, h5, h6,
.logo, .section-title, .hero-title {
    font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Display Sizes - Fluid Typography */
h1 { font-size: clamp(2.5rem, 5vw + 1rem, 5rem); }
h2 { font-size: clamp(2rem, 4vw + 0.5rem, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h5 { font-size: clamp(1.1rem, 1.5vw, 1.25rem); }
h6 { font-size: 1rem; }

/* Body Text Typography */
p, li, span, label, input, textarea, button {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    line-height: 1.8;
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-color);
}

/* Lists */
ul, ol {
    list-style: none;
}

/* =====================================================
   CONTAINER SYSTEM - GOLDEN CONTAINER
   ===================================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 5rem);
}

.section {
    padding: var(--space-xl) 0;
    position: relative;
}

.text-center {
    text-align: center;
}

/* =====================================================
   LUXURY GLOW EFFECT - SUBTLE AURORA
   ===================================================== */

.luxury-glow {
    position: fixed;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(
        circle at center,
        rgba(212, 175, 55, 0.03) 0%,
        rgba(212, 175, 55, 0.01) 40%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
    z-index: var(--z-glow);
    transform: translate(-50%, -50%);
    transition: width 1s ease, height 1s ease;
    animation: glowPulse 8s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* =====================================================
   LOADING ANIMATION
   ===================================================== */

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 600;
    margin-bottom: 30px;
    animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-text {
    color: var(--text-primary);
}

.loader-dot {
    color: var(--gold-primary);
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
    border-radius: 3px;
    animation: loaderProgress 2s ease-out forwards;
}

@keyframes loaderProgress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* =====================================================
   SCROLL PROGRESS INDICATOR
   ===================================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 9999;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light), var(--gold-primary));
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    transition: width 0.1s ease;
}

/* =====================================================
   BACK TO TOP BUTTON
   ===================================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border: none;
    border-radius: 50%;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}
.bg-particle.p4 { left: 55%; animation-duration: 35s; animation-delay: 8s; }
.bg-particle.p5 { left: 70%; animation-duration: 32s; animation-delay: 3s; }
.bg-particle.p6 { left: 85%; animation-duration: 27s; animation-delay: 6s; }

@keyframes floatParticle {
    0% {
        transform: translateY(100vh);
        opacity: 0;
    }
    5% {
        opacity: 0.15;
    }
    95% {
        opacity: 0.15;
    }
    100% {
        transform: translateY(-100vh);
        opacity: 0;
    }
}

}

.navbar.scrolled {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 15px 0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =====================================================
   LOGO - ROYAL MONOGRAM
   ===================================================== */

.logo {
    font-size: 2.5rem;
    font-weight: 600;
    display: flex;
    align-items: baseline;
    gap: 3px;
    cursor: pointer;
    transition: var(--transition-transform);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    color: var(--text-primary);
    font-weight: 500;
}

.logo-accent {
    font-family: 'Cormorant Garamond', serif;
    color: var(--gold-primary);
    font-size: 3.5rem;
    line-height: 0.7;
    font-weight: 400;
    font-style: italic;
}

/* =====================================================
   NAVIGATION LINKS - ELEGANT WHISPER
   ===================================================== */

.nav-links {
    display: flex;
    gap: 55px;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
    transition: var(--transition-color);
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--gold-primary);
    transition: var(--transition-luxury);
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::before {
    width: 100%;
}

/* =====================================================
   MOBILE MENU TOGGLE - HAMBURGER DELUXE
   ===================================================== */

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 7px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: var(--z-modal);
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-smooth);
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* =====================================================
   BUTTONS - CHANEL BUTTON PERFECTION
   ===================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 18px 40px;
    border-radius: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: var(--transition-luxury);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

/* Primary Button - Gold Luxury */
.btn-primary {
    background: var(--gradient-gold);
    color: #FFFFFF;
    box-shadow: var(--shadow-gold);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold-strong);
    background: var(--gradient-gold-shine);
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:active {
    transform: translateY(-2px);
}

/* Secondary Button - Elegant Outline */
.btn-secondary {
    background: transparent;
    border: 1.5px solid var(--text-primary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: var(--background);
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

/* Tertiary Button - Subtle */
.btn-tertiary {
    background: transparent;
    border: 1px solid var(--platinum);
    color: var(--text-secondary);
}

.btn-tertiary:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

/* Large Button */
.btn-lg {
    padding: 22px 55px;
    font-size: 0.85rem;
}

/* Small Button */
.btn-sm {
    padding: 12px 24px;
    font-size: 0.75rem;
}

/* Icon */
.icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* =====================================================
   HERO SECTION - GRAND ENTRANCE
   ===================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 80px;
    background: linear-gradient(
        180deg,
        var(--background) 0%,
        var(--background-cream) 50%,
        var(--background) 100%
    );
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(
        ellipse at center,
        rgba(212, 175, 55, 0.03) 0%,
        transparent 60%
    );
    pointer-events: none;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.hero-content {
    max-width: 650px;
}

.welcome-text {
    display: flex;
    align-items: center;
    gap: 25px;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
}

.welcome-line {
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
}

.hero-title {
    font-size: clamp(2.8rem, 5vw + 1rem, 4.5rem);
    line-height: 1.1;
    margin-bottom: 30px;
    font-weight: 400;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light), var(--gold-primary));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* =====================================================
   LINK HOVER EFFECTS
   ===================================================== */

a {
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold-primary);
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-weight: 400;
    letter-spacing: 0.02em;
    font-style: italic;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 55px;
    font-weight: 300;
    line-height: 2;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 30px;
    align-items: center;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 650px;
    position: relative;
    perspective: 2000px;
}

.stage-3d {
    position: relative;
    width: 380px;
    height: 480px;
    transform-style: preserve-3d;
    perspective: 1200px;
}

/* =====================================================
   CARDS - PREMIUM LUXURY CARDS
   ===================================================== */

.card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition);
}

.card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: var(--shadow-gold);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-luxury);
}

.card:hover {
    box-shadow: var(--shadow-elevated);
    transform: translateY(-8px);
}

.card:hover::before {
    transform: scaleX(1);
}

/* =====================================================
   SECTION TITLES - ELEGANT TYPOGRAPHY
   ===================================================== */

.section-title {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    margin-bottom: 25px;
    text-align: center;
    font-weight: 400;
    position: relative;
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: var(--gradient-gold);
    margin: 35px auto 0;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 70px;
    font-weight: 300;
    font-size: 1.15rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.subsection-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin: 80px 0 40px;
    text-align: center;
    font-weight: 400;
    color: var(--text-primary);
}

.primary-text {
    color: var(--gold-primary);
    font-style: italic;
}

.secondary-text {
    color: var(--rose-gold);
    font-style: italic;
}

/* =====================================================
   ABOUT SECTION - PERSONAL ELEGANCE
   ===================================================== */

.about-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 60px;
    text-align: center;
    line-height: 2.2;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
    padding: 45px 25px;
    background: var(--background);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-sm);
    transition: var(--transition-luxury);
    position: relative;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-gold);
    transition: var(--transition-luxury);
}

.stat-item:hover {
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    transform: translateY(-5px);
}

.stat-item:hover::before {
    width: 60%;
}

.stat-value {
    display: block;
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--gold-primary);
    font-family: 'Playfair Display', serif;
    line-height: 1;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
}

/* =====================================================
   EDUCATION - SCHOLARLY ELEGANCE
   ===================================================== */

.education-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    justify-content: center;
}

.edu-card:last-child,
.edu-card:nth-last-child(2):first-child {
    grid-column: 2;
    justify-self: center;
    max-width: 400px;
    width: 100%;
}

.edu-card:last-child:nth-child(3n+2) {
    grid-column: 2;
}

.edu-card:last-child:nth-child(3n+1) {
    grid-column: 1;
}

.edu-card:last-child:nth-child(3n) {
    grid-column: 3;
}

@media (max-width: 1024px) {
    .education-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .edu-card:nth-child(3n+2) {
        grid-column: auto;
        justify-self: center;
    }
    .edu-card:last-child {
        grid-column: 1 / -1;
        max-width: 500px;
        justify-self: center;
    }
}

.edu-card {
    padding: 45px;
    text-align: center;
    background: var(--surface);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-sm);
    transition: var(--transition-luxury);
    position: relative;
    overflow: hidden;
}

.edu-card:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
}

.edu-card h4 {
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
}

.edu-card .school {
    color: var(--gold-primary);
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.edu-card .location {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.edu-card .year {
    color: var(--text-light);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
    margin-bottom: 15px;
}

.edu-card .edu-quote {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: italic;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 15px;
}

.edu-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #D4AF37, #B8962E);
    color: #0f0f0f;
}

.edu-badge.completed {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold-primary);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* =====================================================
   SKILLS - EXPERTISE SHOWCASE
   ===================================================== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--surface);
    padding: 35px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-sm);
    transition: var(--transition-luxury);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(212, 175, 55, 0.1);
}

.skill-info {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 25px;
}

.skill-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-cream);
    border-radius: var(--radius-sm);
}

.skill-name {
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.skill-bar-bg {
    width: 100%;
    height: 5px;
    background: var(--background-alt);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    width: 0;
    transition: width 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================================
   EXPERIENCE - TIMELINE OF EXCELLENCE
   ===================================================== */

.timeline {
    max-width: 950px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.exp-item {
    position: relative;
    padding: 40px 45px;
    background: var(--surface);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--gold-primary);
    transition: var(--transition-luxury);
}

.exp-item:hover {
    box-shadow: var(--shadow-medium);
    transform: translateX(12px);
    border-left-color: var(--gold-light);
}

.exp-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-primary);
}

.exp-comp {
    color: var(--gold-primary);
    font-weight: 500;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.exp-dur {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.exp-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.9;
}

/* =====================================================
   SERVICES - PREMIUM SERVICE CARDS
   ===================================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
    gap: 35px;
}

.service-card {
    position: relative;
    overflow: hidden;
    padding: 50px;
    background: var(--surface);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-sm);
    transition: var(--transition-luxury);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-luxury);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-8px);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 30px;
    display: block;
}

.service-name {
    font-size: 1.4rem;
    margin-bottom: 18px;
    font-weight: 500;
    color: var(--text-primary);
}

.service-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 30px;
    line-height: 1.9;
    min-height: 75px;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.service-price {
    color: var(--gold-primary);
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
}

.btn-order {
    padding: 12px 25px;
    font-size: 0.75rem;
}

/* =====================================================
   GALLERY - ELEGANT IMAGE SHOWCASE
   ===================================================== */

.images-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.img-item {
    width: calc(25% - 23px);
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    perspective: 1200px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.img-item:hover img {
    transform: scale(1.15);
}

.img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(13, 13, 13, 0.95) 0%,
        rgba(13, 13, 13, 0.4) 50%,
        transparent 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 35px;
    opacity: 0;
    transition: var(--transition-luxury);
}

.img-item:hover .img-overlay {
    opacity: 1;
}

.img-title {
    font-weight: 500;
    font-size: 1.05rem;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

/* =====================================================
   FLOATING CARD - 3D ELEGANCE
   ===================================================== */

.floating-card {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    background: var(--surface);
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 175, 55, 0.1);
    transform-style: preserve-3d;
}

.floating-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 17px;
}

#mainHeroCard {
    cursor: grab;
}

#mainHeroCard:active {
    cursor: grabbing;
}

/* Card Deal Animation */
.card-enter {
    animation: cardDealIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.card-exit {
    animation: cardDealOut 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes cardDealIn {
    0% {
        transform: translate3d(0, 0, -300px) scale(0.5) rotateX(15deg);
        opacity: 0;
    }
    100% {
        transform: translate3d(0, 0, 60px) scale(1) rotateX(0deg);
        opacity: 1;
    }
}

@keyframes cardDealOut {
    0% {
        transform: translate3d(0, 0, 60px) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate3d(0, 0, -300px) scale(0.5) rotateX(-15deg);
        opacity: 0;
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translate3d(0, 0, 60px) rotateX(0deg) rotateY(0deg); 
    }
    50% { 
        transform: translate3d(0, -15px, 60px) rotateX(2deg) rotateY(3deg); 
    }
}

/* =====================================================
   CONTACT - PREMIUM CALL TO ACTION
   ===================================================== */

.contact-text {
    color: var(--text-secondary);
    margin-bottom: 55px;
    font-size: 1.15rem;
}

.contact-btns {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 60px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 35px;
    background: var(--surface);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-luxury);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.social-link:hover {
    background: var(--text-primary);
    color: var(--background);
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
}

/* =====================================================
   FOOTER - ELEGANT CLOSURE
   ===================================================== */

.footer {
    padding: 100px 0 50px;
    background: var(--background-cream);
    text-align: center;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: var(--gradient-gold);
}

.footer-logo {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 4px;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.footer-tagline {
    color: var(--gold-primary);
    font-size: 0.9rem;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.1rem;
}

/* =====================================================
   RESPONSIVE - MOBILE LUXURY EXPERIENCE
   ===================================================== */

/* Large Desktop */
@media (max-width: 1400px) {
    .grid {
        gap: 80px;
    }
    .hero-visual {
        height: 580px;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .grid {
        gap: 60px;
    }
    .hero-visual {
        height: 520px;
    }
    .stage-3d {
        width: 340px;
        height: 440px;
    }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 70px;
    }
    
    .hero-visual {
        height: 450px;
        order: -1;
    }
    
    .stage-3d {
        width: 320px;
        height: 420px;
    }
    
    .img-item {
        width: calc(33.33% - 20px);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .welcome-text {
        justify-content: center;
    }
    
    .hero-tagline {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background);
        padding: 35px;
        flex-direction: column;
        align-items: center;
        gap: 28px;
        box-shadow: var(--shadow-medium);
        border-top: 1px solid rgba(0, 0, 0, 0.03);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .img-item {
        width: calc(50% - 15px);
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-value {
        font-size: 2.8rem;
    }
    
    .stat-item {
        padding: 30px 18px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 40px;
    }
    
    .section {
        padding: var(--space-lg) 0;
    }
    
    .welcome-text {
        font-size: 0.7rem;
    }
}

/* Mobile Large */
@media (max-width: 600px) {
    .hero {
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.9rem;
    }
    
    .btn-lg {
        padding: 18px 35px;
        font-size: 0.8rem;
    }
    
    .contact-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .img-item {
        width: 100%;
    }
    
    .btn-lg {
        padding: 16px 32px;
        font-size: 0.75rem;
    }
    
    .social-link {
        padding: 14px 24px;
        font-size: 0.85rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .stat-item {
        padding: 25px 15px;
    }
    
    .stat-value {
        font-size: 2.2rem;
    }
    
    .welcome-text {
        font-size: 0.65rem;
        letter-spacing: 0.15em;
    }
    
    .welcome-line {
        width: 35px;
    }
    
    .hero-visual {
        height: 380px;
    }
    
    .stage-3d {
        width: 280px;
        height: 380px;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 18px;
    }
    
    .container {
        padding: 0 clamp(1rem, 4vw, 2rem);
    }
    
    .footer {
        padding: 70px 0 40px;
    }
}

/* Mobile Small */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .logo-accent {
        font-size: 2.8rem;
    }
}

/* =====================================================
   ANIMATIONS - SILK & ELEGANCE
   ===================================================== */

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-12px) rotate(1deg);
    }
    75% {
        transform: translateY(-8px) rotate(-1deg);
    }
}

/* Pulse Glow */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
    }
    50% {
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.2);
    }
}

/* Scale In */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Utility Classes */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out;
}

/* Intersection Observer Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* =====================================================
   SCROLLBAR - PREMIUM CUSTOM
   ===================================================== */

::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold-primary), var(--gold-light));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--gold-dark), var(--gold-primary));
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--gold-primary) var(--background-alt);
}

/* =====================================================
   SELECTION - GOLDEN HIGHLIGHT
   ===================================================== */

::selection {
    background: var(--gold-primary);
    color: #fff;
}

::-moz-selection {
    background: var(--gold-primary);
    color: #fff;
}

/* =====================================================
   FOCUS STATES - ACCESSIBILITY
   ===================================================== */

:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 4px;
}

/* =====================================================
   REDUCED MOTION - ACCESSIBILITY
   ===================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
