/* CSS Variables */
:root {
    --color-bg-deep: #0a0a0f;
    --color-bg: #0d0d14;
    --color-bg-card: #12121a;
    --color-bg-hover: #1a1a25;
    --color-primary: #7c3aed;
    --color-primary-glow: rgba(124, 58, 237, 0.3);
    --color-accent: #06b6d4;
    --color-accent-warm: #f97316;
    --color-text: #e4e4e7;
    --color-text-muted: #a1a1aa;
    --color-text-subtle: #71717a;
    --color-border: rgba(255, 255, 255, 0.08);
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg-deep);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Loading Screen */
.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--color-bg-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

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

.loader-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.loader-orbit {
    position: relative;
    width: 120px;
    height: 120px;
    animation: loaderSpin 3s linear infinite;
}

.loader-planet {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    border-radius: 50%;
    box-shadow:
        0 0 20px var(--color-accent),
        0 0 40px rgba(6, 182, 212, 0.5);
}

.loader-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loader-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: loaderPulse 2s ease-in-out infinite;
}

.loader-ring:nth-child(1) {
    width: 60px;
    height: 60px;
    animation-delay: 0s;
}

.loader-ring:nth-child(2) {
    width: 90px;
    height: 90px;
    animation-delay: 0.3s;
}

.loader-ring:nth-child(3) {
    width: 120px;
    height: 120px;
    animation-delay: 0.6s;
}

.loader-text {
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.loader-text span {
    display: inline-block;
    animation: loaderWave 1.5s ease-in-out infinite;
}

.loader-text span:nth-child(1) { animation-delay: 0.0s; }
.loader-text span:nth-child(2) { animation-delay: 0.05s; }
.loader-text span:nth-child(3) { animation-delay: 0.1s; }
.loader-text span:nth-child(4) { animation-delay: 0.15s; }
.loader-text span:nth-child(5) { animation-delay: 0.2s; }
.loader-text span:nth-child(6) { animation-delay: 0.25s; }
.loader-text span:nth-child(7) { animation-delay: 0.3s; }
.loader-text span:nth-child(8) { animation-delay: 0.35s; }
.loader-text span:nth-child(9) { animation-delay: 0.4s; }
.loader-text span:nth-child(10) { animation-delay: 0.45s; }
.loader-text span:nth-child(11) { animation-delay: 0.5s; }
.loader-text span:nth-child(12) { animation-delay: 0.55s; }
.loader-text span:nth-child(13) { animation-delay: 0.6s; }
.loader-text span:nth-child(14) { animation-delay: 0.65s; }
.loader-text span:nth-child(15) { animation-delay: 0.7s; }
.loader-text span:nth-child(16) { animation-delay: 0.75s; }
.loader-text span:nth-child(17) { animation-delay: 0.8s; }
.loader-text span:nth-child(18) { animation-delay: 0.85s; }
.loader-text span:nth-child(19) { animation-delay: 0.9s; }
.loader-text span:nth-child(20) { animation-delay: 0.95s; }

.loader-stars {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

@keyframes loaderSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

@keyframes loaderWave {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* Stars Background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.stars-2 {
    opacity: 0.5;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--duration) ease-in-out infinite;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}

@keyframes twinkle {
    0%, 100% { opacity: var(--opacity); transform: scale(1); }
    50% { opacity: calc(var(--opacity) * 0.5); transform: scale(0.9); }
}

/* Shooting Stars */
.shooting-stars {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.shooting-star {
    position: absolute;
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, white);
    border-radius: 50%;
    animation: shoot linear forwards;
    opacity: 0;
    transform: rotate(125deg);
}

.shooting-star::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    top: -2px;
    right: 0;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.5);
}

@keyframes shoot {
    0% {
        transform: translateX(0) translateY(0) rotate(125deg);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translateX(-400px) translateY(300px) rotate(125deg);
        opacity: 0;
    }
}

/* Nebula Background Glow - Hero section only */
.nebula-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    height: 100vh;
}

.nebula-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: nebulaDrift 20s ease-in-out infinite;
}

.nebula-1 {
    width: 600px;
    height: 600px;
    background: var(--color-primary);
    top: -150px;
    right: -50px;
    animation-delay: 0s;
}

.nebula-2 {
    width: 500px;
    height: 500px;
    background: var(--color-accent);
    bottom: -100px;
    left: -100px;
    animation-delay: -7s;
    animation-duration: 25s;
}

.nebula-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
    animation-duration: 30s;
}

@keyframes nebulaDrift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -20px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 30px) scale(0.95);
    }
    75% {
        transform: translate(-30px, -10px) scale(1.02);
    }
}

/* Cursor Glow Effect - Only on hero section background */
.cursor-glow {
    position: fixed;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.cursor-glow.active {
    opacity: 1;
}

/* Floating Particles */
.particle {
    position: fixed;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    animation: floatUp linear forwards;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0);
    }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    background: linear-gradient(to bottom, rgba(10, 10, 15, 0.95), transparent);
    backdrop-filter: blur(10px);
    transition: var(--transition-medium);
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--color-text), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: var(--transition-fast);
}

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 4rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(ellipse at center,
        rgba(124, 58, 237, 0.08) 0%,
        rgba(6, 182, 212, 0.04) 30%,
        transparent 70%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
    background: linear-gradient(
        90deg,
        var(--color-primary),
        var(--color-accent),
        var(--color-primary),
        var(--color-accent)
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeUp 1s ease forwards, shimmer 8s ease-in-out infinite 1s;
}

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

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-byline {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 1s ease forwards;
    position: relative;
    display: inline-block;
}

.hero-byline::before,
.hero-byline::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent));
}

.hero-byline::before {
    right: calc(100% + 1rem);
    background: linear-gradient(90deg, transparent, var(--color-accent));
}

.hero-byline::after {
    left: calc(100% + 1rem);
    background: linear-gradient(90deg, var(--color-accent), transparent);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    opacity: 0;
    animation: fadeUp 1s ease 0.4s forwards;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 100px;
    transition: var(--transition-medium);
    opacity: 0;
    animation: fadeUp 1s ease 0.6s forwards;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 40px var(--color-primary-glow);
    transform: translateY(-2px);
}

.cta-button svg {
    transition: var(--transition-fast);
}

.cta-button:hover svg {
    transform: translate(4px, -4px);
}

/* Orbit Decoration */
.orbit {
    position: absolute;
    width: 600px;
    height: 600px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    animation: rotate 60s linear infinite;
    opacity: 0.3;
}

.orbit-2 {
    width: 800px;
    height: 800px;
    animation-duration: 90s;
    animation-direction: reverse;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Section Styles */
section {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    font-weight: 300;
}

/* Gallery Section */
.gallery {
    padding: 8rem 4rem;
    background: var(--color-bg-deep);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* Gallery Background Effects */
.gallery::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 30%, rgba(124, 58, 237, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 70%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 50%, rgba(124, 58, 237, 0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* Cosmic Dust Particles in Gallery */
.gallery::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 10%, rgba(255, 255, 255, 0.4) 50%, transparent 50%),
        radial-gradient(1px 1px at 20% 25%, rgba(255, 255, 255, 0.3) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 35% 15%, rgba(255, 255, 255, 0.5) 50%, transparent 50%),
        radial-gradient(1px 1px at 45% 40%, rgba(255, 255, 255, 0.25) 50%, transparent 50%),
        radial-gradient(1px 1px at 55% 8%, rgba(255, 255, 255, 0.35) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 65% 30%, rgba(255, 255, 255, 0.45) 50%, transparent 50%),
        radial-gradient(1px 1px at 75% 20%, rgba(255, 255, 255, 0.3) 50%, transparent 50%),
        radial-gradient(1px 1px at 85% 45%, rgba(255, 255, 255, 0.4) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 95% 12%, rgba(255, 255, 255, 0.35) 50%, transparent 50%),
        radial-gradient(1px 1px at 8% 55%, rgba(255, 255, 255, 0.3) 50%, transparent 50%),
        radial-gradient(1px 1px at 22% 70%, rgba(255, 255, 255, 0.4) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 38% 60%, rgba(255, 255, 255, 0.25) 50%, transparent 50%),
        radial-gradient(1px 1px at 52% 85%, rgba(255, 255, 255, 0.35) 50%, transparent 50%),
        radial-gradient(1px 1px at 68% 75%, rgba(255, 255, 255, 0.3) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 82% 65%, rgba(255, 255, 255, 0.45) 50%, transparent 50%),
        radial-gradient(1px 1px at 92% 80%, rgba(255, 255, 255, 0.35) 50%, transparent 50%),
        radial-gradient(1px 1px at 15% 92%, rgba(255, 255, 255, 0.3) 50%, transparent 50%),
        radial-gradient(1px 1px at 42% 95%, rgba(255, 255, 255, 0.4) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 78% 88%, rgba(255, 255, 255, 0.25) 50%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: dustFloat 60s linear infinite;
}

@keyframes dustFloat {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-30px);
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Capture Card */
.capture-card {
    background: var(--color-bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.capture-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-image-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.capture-card:hover .card-image {
    transform: scale(1.03);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        var(--color-bg-card) 0%,
        transparent 50%);
    pointer-events: none;
}

/* Featured Card (Orion) */
.capture-card.featured {
    grid-column: 1 / -1;
    max-width: 900px;
    margin: 0 auto 2rem;
}

.capture-card.featured .card-image-wrapper {
    aspect-ratio: 16/10;
}

.capture-card.featured .card-title {
    font-size: 2.25rem;
}

/* Card Badge */
.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(6, 182, 212, 0.6);
    }
}

.card-content {
    padding: 2rem;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.card-subtitle {
    display: block;
    font-size: 0.8rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.card-writing {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.card-fact {
    background: rgba(6, 182, 212, 0.08);
    border-left: 3px solid var(--color-accent);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.fact-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.fact-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.card-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 0.75rem;
    color: var(--color-text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding-left: 1rem;
}

.meta-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 50%;
}

/* About Section */
.about {
    padding: 8rem 4rem;
    background: var(--color-bg);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* About Background Effects */
.about::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 70% 40%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 30% 60%, rgba(124, 58, 237, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Cosmic Dust in About */
.about::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 5% 20%, rgba(255, 255, 255, 0.35) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 15% 45%, rgba(255, 255, 255, 0.4) 50%, transparent 50%),
        radial-gradient(1px 1px at 25% 70%, rgba(255, 255, 255, 0.3) 50%, transparent 50%),
        radial-gradient(1px 1px at 40% 15%, rgba(255, 255, 255, 0.35) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 55% 55%, rgba(255, 255, 255, 0.45) 50%, transparent 50%),
        radial-gradient(1px 1px at 70% 30%, rgba(255, 255, 255, 0.3) 50%, transparent 50%),
        radial-gradient(1px 1px at 85% 65%, rgba(255, 255, 255, 0.4) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 95% 40%, rgba(255, 255, 255, 0.35) 50%, transparent 50%),
        radial-gradient(1px 1px at 60% 80%, rgba(255, 255, 255, 0.3) 50%, transparent 50%),
        radial-gradient(1px 1px at 30% 90%, rgba(255, 255, 255, 0.35) 50%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: dustFloat 50s linear infinite reverse;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.about-text {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--color-bg-hover);
}

.modal-content {
    display: flex;
    gap: 3rem;
    max-width: 1200px;
    max-height: 90vh;
    transform: translateY(20px);
    transition: var(--transition-medium);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-image {
    max-width: 60%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
}

.modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.modal-writing {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.modal-fact {
    background: rgba(6, 182, 212, 0.08);
    border-left: 3px solid var(--color-accent);
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
}

.modal-fact .fact-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}

.modal-fact .fact-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Footer */
.footer {
    padding: 4rem 4rem 3rem;
    text-align: center;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
}

.footer-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 2rem;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--color-text-subtle);
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 1024px) {
    .modal-content {
        flex-direction: column;
        align-items: center;
    }

    .modal-image {
        max-width: 100%;
        max-height: 50vh;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .hero {
        padding: 4rem 1.5rem;
    }

    .gallery {
        padding: 4rem 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .about {
        padding: 4rem 1.5rem;
    }

    .cta-button {
        padding: 0.875rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-brand {
        font-size: 1.2rem;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--color-bg-hover);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-subtle);
}
