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

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--bg-primary);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 500;
    z-index: 9999;
    border-radius: 0 0 4px 4px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

/* Screen Reader Only Content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0a0;
    --accent: #c47c5a;
    --accent-hover: #d89070;
    --border-color: #333;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    gap: 4rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #0a0a0a 50%, #1a0f0a 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    padding: 2rem;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 200;
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.cta-button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* Projects Section */
.projects {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.projects h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 200;
    letter-spacing: 0.2em;
    margin-bottom: 4rem;
    text-transform: uppercase;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.project-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Video Section */
.video-section {
    margin-top: 4rem;
    text-align: center;
}

.video-section h3 {
    font-size: 1.5rem;
    font-weight: 200;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.video-section video {
    max-width: 100%;
    width: 800px;
    border: 1px solid var(--border-color);
}

/* About Section */
.about {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 200;
    letter-spacing: 0.2em;
    margin-bottom: 3rem;
    text-transform: uppercase;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-image {
    max-width: 100%;
    width: 500px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 200;
    color: var(--accent);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Contact Section */
.contact {
    padding: 6rem 2rem;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 200;
    letter-spacing: 0.2em;
    margin-bottom: 3rem;
    text-transform: uppercase;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.contact-form button {
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.contact-form button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

footer p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--accent);
}

/* Active nav link */
.nav-link.active {
    color: var(--accent);
}

/* ==================== */
/* Projects Gallery Page */
/* ==================== */
.projects-page {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
}

.projects-page h1 {
    text-align: center;
    font-size: 3rem;
    font-weight: 200;
    letter-spacing: 0.3em;
    margin-bottom: 4rem;
    text-transform: uppercase;
}

.projects-gallery {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.project-tile {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.project-tile:hover {
    border-color: var(--accent);
    transform: scale(1.02);
}

.project-tile:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.project-tile-image {
    position: absolute;
    inset: 0;
}

.project-tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.project-tile:hover .project-tile-image img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

.project-tile-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.project-tile:hover .project-tile-info {
    transform: translateY(0);
    opacity: 1;
}

.project-tile-info h2 {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.project-tile-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-tile-cta {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
}

/* ==================== */
/* Kuiper Immersive Page */
/* ==================== */
.kuiper-page {
    overflow-x: hidden;
}

.kuiper-page .navbar-transparent {
    background: transparent;
    border-bottom: none;
}

.kuiper-page .navbar-transparent.scrolled {
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--border-color);
}

/* Slides Container */
.slides-container {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
    scroll-behavior: smooth;
}

.slide {
    scroll-snap-align: start;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Title Slide */
.slide-title {
    flex-direction: column;
    text-align: center;
}

.slide-title h1 {
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 100;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.slide-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 0.2em;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.slide-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.scroll-hint span {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 1px solid var(--text-secondary);
    border-bottom: 1px solid var(--text-secondary);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
    40% { transform: rotate(45deg) translateY(10px); }
    60% { transform: rotate(45deg) translateY(5px); }
}

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

/* Content Slides */
.slide-content {
    max-width: 500px;
    padding: 2rem;
    z-index: 2;
}

.slide-content-left {
    margin-right: auto;
    margin-left: 8%;
}

.slide-content-right {
    margin-left: auto;
    margin-right: 8%;
    text-align: right;
}

.slide-number {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.slide-content h2 {
    font-size: 2.5rem;
    font-weight: 200;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.slide-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

/* Slide Image */
.slide-image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content-left ~ .slide-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.7) 40%, transparent 70%);
    z-index: 1;
}

.slide-content-right ~ .slide-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(-90deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.7) 40%, transparent 70%);
    z-index: 1;
}

/* Progress Bar */
.slide-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border-color);
    z-index: 1001;
}

.progress-bar {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.1s ease;
}

/* Slide Indicators */
.slide-indicators {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1001;
}

.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid var(--text-secondary);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slide-dot:hover {
    border-color: var(--text-primary);
}

.slide-dot.active {
    background: var(--accent);
    border-color: var(--accent);
}

.slide-dot:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 4px;
}

/* Back Link */
.back-link {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    z-index: 1001;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--text-primary);
}

.back-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.back-arrow {
    margin-right: 0.5rem;
}

/* Video Slide */
.slide-video {
    background: linear-gradient(135deg, #1a1a2e 0%, #0a0a0a 50%, #1a0f0a 100%);
}

.slide-video .slide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    height: 100%;
    padding: 4rem 2rem 2rem;
    box-sizing: border-box;
    margin: 0;
    position: absolute;
    inset: 0;
}

.slide-video h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    letter-spacing: 0.15em;
    margin-bottom: 0.25rem;
    text-align: center;
}

.slide-video .slide-subtitle {
    margin-bottom: 1rem;
    font-size: 1rem;
    text-align: center;
}

.video-embed {
    width: 100%;
    max-width: min(90vw, 1400px);
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    animation: fadeInUp 1s ease 0.3s backwards;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-embed iframe {
    width: 100%;
    height: 100%;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.slide-video .scroll-hint {
    position: relative;
    bottom: auto;
    margin-top: 1rem;
}

.slide-video .scroll-hint span {
    text-transform: none;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

/* Description Slide */
.slide-description {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
}

.slide-content-center {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
}

.slide-label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: var(--accent);
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.description-text {
    font-size: 1.15rem;
    line-height: 2;
    color: var(--text-primary);
}

.slide-description .slide-image {
    opacity: 0.15;
}

.slide-description .slide-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(10,10,10,0.9) 70%);
    z-index: 1;
}

/* Kuiper Footer */
.kuiper-footer {
    display: none;
}

/* Footer Styles */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.footer-link {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Desktop Optimizations - Slideshow Format */
@media (min-width: 1024px) {
    .slide-content {
        max-width: 450px;
    }

    .slide-content-left {
        margin-left: 10%;
    }

    .slide-content-right {
        margin-right: 10%;
    }

    .slide-content h2 {
        font-size: 2.8rem;
    }

    .slide-content p {
        font-size: 1.05rem;
    }

    .video-embed {
        width: 85vw;
        max-width: 1200px;
    }

    .slide-content-center {
        max-width: 800px;
    }

    .description-text {
        font-size: 1.25rem;
    }
}

@media (min-width: 1400px) {
    .slide-content {
        max-width: 500px;
    }

    .slide-content-left {
        margin-left: 12%;
    }

    .slide-content-right {
        margin-right: 12%;
    }

    .video-embed {
        width: 80vw;
        max-width: 1400px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        gap: 2rem;
    }

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

    .stats {
        gap: 2rem;
    }

    .hero h1 {
        letter-spacing: 0.15em;
    }

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

    .slide-content {
        max-width: 100%;
        padding: 1.5rem;
        background: rgba(10, 10, 10, 0.85);
    }

    .slide-content-left,
    .slide-content-right {
        margin: 0;
        text-align: center;
    }

    .slide-content h2 {
        font-size: 1.8rem;
    }

    .slide-indicators {
        right: 1rem;
    }

    .slide-dot {
        width: 10px;
        height: 10px;
    }

    /* Video slide mobile */
    .slide-video .slide-content {
        padding: 4rem 1rem 1rem;
        justify-content: center;
    }

    .slide-video h1 {
        font-size: 1.4rem;
        letter-spacing: 0.1em;
    }

    .slide-video .slide-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .video-embed {
        width: 100%;
        max-width: 95vw;
    }

    .slide-video .scroll-hint span {
        font-size: 0.7rem;
    }

    /* Description slide mobile */
    .slide-content-center {
        padding: 1rem;
        background: rgba(10, 10, 10, 0.9);
    }

    .description-text {
        font-size: 1rem;
        line-height: 1.8;
    }

    .slide-description .slide-image {
        opacity: 0.1;
    }

    /* Back link mobile */
    .back-link {
        bottom: 1rem;
        left: 1rem;
        font-size: 0.75rem;
    }
}

/* 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;
        scroll-behavior: auto !important;
    }

    html {
        scroll-behavior: auto;
    }

    .slides-container {
        scroll-behavior: auto;
    }

    .scroll-arrow {
        animation: none;
    }

    .slide-title h1,
    .slide-subtitle,
    .scroll-hint,
    .video-embed {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .project-card:hover,
    .project-tile:hover {
        transform: none;
    }

    .project-card:hover img,
    .project-tile:hover .project-tile-image img {
        transform: none;
    }
}
