:root {
    --bg-color: #000000;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-red: #ff2a00;
    --accent-crimson: #990000;
    --accent-orange: #ff5e00;
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}


/* Hero Background Index */
.hero-index-bg {
    background-image: url('photo/index.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* Glass Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-brand {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a.nav-brand:hover {
    color: var(--accent-red);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    transition: color 0.3s;
}

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

.btn-primary {
    background: transparent;
    border: 1px solid var(--accent-red);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    color: var(--accent-red) !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover {
    background: var(--accent-red);
    color: #fff !important;
    box-shadow: 0 0 20px rgba(255, 42, 0, 0.4);
}

/* Main Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 1000px;
    position: relative;
    z-index: 5;
}

.eyebrow {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-red);
    margin-bottom: 1rem;
    display: inline-block;
    font-weight: 600;
}



/* Responsive */
@media (max-width: 900px) {
    .gaze-container {
        width: 100%;
    }
}

.main-title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 9vw, 6.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.gradient-text {
    color: #ffffff;
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 800px;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Call to action */
.cta-group {
    display: flex;
    gap: 1.5rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

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

.primary-cta:hover {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
}

.hero-content.center-bottom {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.large-cta {
    font-size: 1.2rem;
    padding: 1.2rem 3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    border: 2px solid var(--text-primary);
}

.large-cta:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}

/* Scroll Indicator */
.scroll-indicator {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 2rem;
    opacity: 0.7;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
    transform: none;
}

.scroll-indicator.center-bottom-scroll {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 1.5rem;
    align-items: center;
}

.scroll-indicator.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-primary);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { top: 6px; opacity: 1; }
    100% { top: 18px; opacity: 0; }
}

/* Animation Classes */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* Section Styles */
.page-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 10%;
    position: relative;
    z-index: 10;
}

.section-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 3rem;
    letter-spacing: -1px;
}

/* About Section: Intro Row (Text + Photo) */
.about-intro-row {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.about-intro-text {
    min-width: 0;
}

.about-photo-col {
    align-self: center;
}

.about-photo-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}


.about-photo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

/* About Section: Bottom 3-Column Grid */
.about-bottom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 4rem;
}

.about-bottom-col {
    min-width: 0;
}

/* Vertical skill list for narrower columns */
.skill-list-items-vertical {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.about-content {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 1100px;
    font-weight: 300;
}

/* Skills Section */
.skills-section {
    margin-top: 4rem;
}

.skills-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
}

.skill-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.skill-category {
    font-family: var(--font-heading);
    color: var(--accent-red);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.skill-list-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.4rem;
}

.skill-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-icon {
    width: 16px;
    text-align: center;
    color: var(--accent-red);
    font-size: 0.85rem;
    opacity: 0.8;
    flex-shrink: 0;
}

/* Resume Section */
.resume-section {
    margin-top: 6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.resume-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.resume-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-red);
}

.resume-item {
    margin-bottom: 2.5rem;
    position: relative;
}

.resume-item h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.resume-item h5 {
    font-size: 0.95rem;
    color: var(--accent-red);
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.resume-date {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    letter-spacing: 1.5px;
}

.resume-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.resume-gpa {
    font-weight: 600;
    color: var(--text-primary) !important;
}

/* Works Grid */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.work-card {
    background: #000;
    border-radius: 16px;
    padding: 2rem;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    border: none;
}

.work-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 42, 0, 0.1); /* Subtle solid overlay instead of gradient */
    opacity: 0;
    transition: opacity 0.4s ease;
}

.work-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 42, 0, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.work-info {
    position: relative;
    z-index: 2;
}

.work-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.work-info p {
    color: var(--accent-red);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Contact Info */
.contact-info p {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Project Detail Pages */
.project-page {
    padding-top: 100px;
}

.project-hero {
    min-height: 45vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10%;
}

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

.project-stages {
    padding: 2rem 10% 10rem;
}

.project-stage {
    margin-bottom: 8rem;
}

.stage-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stage-title span {
    font-size: 1.2rem;
    color: var(--accent-red);
    font-weight: 800;
}

.stage-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 800px;
    margin-bottom: 3rem;
}

/* Galleries and Image Placeholders */
.placeholder-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1500px;
    margin: 0 auto;
}

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

.placeholder-gallery.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.placeholder-img {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 42, 0, 0.3);
    border-radius: 12px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.placeholder-img.tall {
    height: 600px;
}

/* Real Image Galleries for Project Pages */
.project-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1500px;
    margin: 0 auto 2rem auto;
}

.project-gallery img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-gallery img:hover {
    transform: translateY(-5px);
}

/* Custom Animated Analytics Dashboard */
.analytics-dashboard {
    width: 100%;
    margin-top: 4rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.chart-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.chart-header {
    margin-bottom: 3rem;
    text-align: center;
}

.chart-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.chart-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.bar-graph-area {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 350px;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
    position: relative;
}

.bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 25%;
    height: 100%;
    justify-content: flex-end;
    position: relative;
}

.bar-fill {
    width: 100%;
    max-width: 80px;
    background: linear-gradient(to top, rgba(255, 42, 0, 0.8), rgba(255, 100, 50, 1));
    border-radius: 8px 8px 0 0;
    height: 0%;
    transition: height 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 0 20px rgba(255, 42, 0, 0.3);
    position: relative;
    display: flex;
    justify-content: center;
}

.bar-value {
    position: absolute;
    top: -35px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-primary);
    opacity: 0;
    transition: opacity 0.5s ease 1.5s;
}

.bar-fill.grown .bar-value {
    opacity: 1;
}

.bar-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

/* Supplemental Stats Area */
.supplemental-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 42, 0, 0.3);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent-red);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.stat-suffix {
    font-size: 1.5rem;
    margin-left: 2px;
}

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

.next-project {
    padding-bottom: 6rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Can add hamburger menu later */
    }
    .hero {
        padding: 0 5%;
    }
    .resume-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .placeholder-gallery, .placeholder-gallery.grid-3, .project-gallery {
        grid-template-columns: 1fr;
    }
    
    .stage-title {
        font-size: 2rem;
    }
    
    .supplemental-stats {
        grid-template-columns: 1fr;
    }
    
    .bar-graph-area {
        height: 250px;
    }
    
    .stat-number { 
        font-size: 2.5rem; 
    }

    .about-intro-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-photo-col {
        order: -1;
    }

    .about-bottom-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* -------------------------------------
 * Lightbox / Enlarge Media Functionality
 * ------------------------------------- */

.lightbox-enabled {
    cursor: zoom-in;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: zoom-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    /* allow pointer events to pass through background to overlay so user can click to close */
    pointer-events: none;
}

.lightbox-content img,
.lightbox-content video {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-overlay.active .lightbox-content img,
.lightbox-overlay.active .lightbox-content video {
    transform: scale(1);
    pointer-events: auto; /* enable interaction with the actual image/video (e.g. video controls) */
}

/* Lightbox Navigation Buttons */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10000;
    transition: background 0.3s ease, transform 0.2s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 42, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: transparent;
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease, transform 0.2s ease;
}

.lightbox-close:hover {
    color: var(--accent-red);
    transform: scale(1.2);
}
