/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

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

:root {
    --primary-color: #12101a;
    --secondary-color: #1B1B1B;
    --accent-color: #a78bfa;
    --accent-glow: #1B1B1B;
    --text-light: #ede9fe;
    --text-muted: #9e96c8;
    --text-dark: #1c1828;
    --bg-dark: #0c0a14;
    --bg-light: #f5f3ff;
    --bg-card: #1a1730;
    --gradient-1: linear-gradient(135deg, #1B1B1B 0%, #797676 100%);
    --gradient-2: linear-gradient(135deg, #1B1B1B 0%, #7e7d80 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
}

/* Header Styles */
.main-header {
    background: var(--bg-dark);
    box-shadow: 0 2px 20px rgba(124, 58, 237, 0.15);
    border-bottom: 1px solid rgba(167, 139, 250, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
}

.company-name {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.steam-link {
    display: flex;
    align-items: center;
    color: var(--text-light);
    transition: transform 0.3s ease, color 0.3s ease;
}

.steam-link:hover {
    transform: scale(1.1);
    color: var(--accent-color);
}

.steam-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.header-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-2);
    border-radius: 2px;
}

/* Footer Styles */
.main-footer {
    background: var(--bg-dark);
    color: var(--text-muted);
    border-top: 1px solid rgba(167, 139, 250, 0.1);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.copyright {
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: var(--text-light);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

.social-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

/* Index Page Styles */
.hero-section {
    position: relative;
    width: 100%;
    height: calc(100vh - 82px);
    overflow: hidden;
}

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

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 1;
}

.hero-title {
    font-family: 'Syne', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    color: rgba(237, 233, 254, 0.85);
    text-shadow: 0 1px 10px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease 0.3s both;
    letter-spacing: 0.03em;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.intro-section {
    text-align: center;
    margin-bottom: 4rem;
}

.intro-section h2 {
    font-family: 'Syne', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.intro-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.feature-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(167, 139, 250, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.15);
}

.feature-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.news-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.news-item {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.07);
    border: 1px solid rgba(167, 139, 250, 0.12);
}

.news-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.news-item h3 {
    margin: 0.5rem 0;
    color: var(--primary-color);
}

/* Game Page Styles */
.gallery-container {
    position: relative;
    max-width: 100%;
    height: 70vh;
    margin: 2rem auto;
    overflow: hidden;
}

.gallery-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide.active {
    display: block;
}

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

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: rgba(0,0,0,0.8);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active,
.dot:hover {
    background: var(--accent-color);
}

.game-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.game-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.game-title {
    font-family: 'Syne', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.game-tagline {
    font-size: 1.3rem;
    color: var(--secondary-color);
    font-style: italic;
}

.game-description {
    margin-bottom: 3rem;
}

.game-description h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.game-description p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.game-features h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

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

.feature {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.feature h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.game-specs {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.game-specs h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.specs-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.spec-column h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.spec-column ul {
    list-style: none;
}

.spec-column li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.release-info {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
    border-radius: 10px;
}

.release-date {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.steam-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    background: var(--gradient-2);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.steam-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,212,255,0.3);
}

/* Devlog Page Styles */
.devlog-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.devlog-title {
    text-align: center;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.devlog-subtitle {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 3rem;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-color), var(--secondary-color));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
}

.timeline-item.left {
    left: 0;
    padding-right: 3rem;
}

.timeline-item.right {
    left: 50%;
    padding-left: 3rem;
}

.timeline-bubble {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-bubble:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.timeline-bubble::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    top: 30px;
}

.timeline-item.left .timeline-bubble::before {
    right: -40px;
}

.timeline-item.right .timeline-bubble::before {
    left: -40px;
}

.timeline-date {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.timeline-bubble h3 {
    color: var(--primary-color);
    margin: 0.5rem 0 1rem;
}

.timeline-bubble p {
    line-height: 1.6;
    color: #666;
}

.timeline-image {
    width: 100%;
    margin-top: 1rem;
    border-radius: 8px;
}

/* Contact Page Styles */
.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.contact-container h1 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-intro {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-form-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.submit-button {
    background: var(--gradient-2);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,212,255,0.3);
}

.contact-info-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-method {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.contact-method h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.contact-method p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.discord-button {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #5865F2;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.discord-button:hover {
    background: #4752C4;
}

.social-links-contact {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-links-contact a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links-contact a:hover {
    color: var(--accent-color);
}

.faq-section {
    margin-top: 3rem;
}

.faq-section h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-item h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-center {
        position: static;
        transform: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 3rem !important;
        padding-right: 0 !important;
    }
    
    .timeline-line {
        left: 20px;
    }
    
    .timeline-item .timeline-bubble::before {
        left: -40px !important;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .specs-container {
        grid-template-columns: 1fr;
    }
}

/* Gallery Reference Page Styles */
.reference-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.gallery-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.gallery-subtitle {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background: #f0f0f0;
    aspect-ratio: 1 / 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 45px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
}

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

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #ccc;
    text-align: center;
    padding: 10px;
    font-size: 1rem;
}

/* Lightbox Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { 
        transform: scale(0.8);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Gallery Grid */
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .gallery-item:hover {
        transform: scale(1.03);
    }
}
/* =============================================
   UEFN Projects Page Styles
   ============================================= */

.uefn-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

.uefn-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.uefn-title {
    font-family: 'Syne', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.uefn-tagline {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-style: italic;
}

/* Two-column grid, extending downward as more projects are added */
.uefn-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

/* Individual project tile */
.uefn-tile {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Wraps the title + image so both are clickable */
.uefn-tile-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.uefn-tile-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    padding: 1rem 1.25rem 0.6rem;
    transition: color 0.25s ease;
}

.uefn-tile-link:hover .uefn-tile-title {
    color: var(--accent-color);
}

/* Image with subtle scale-up on hover */
.uefn-tile-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.uefn-tile-link:hover .uefn-tile-image {
    transform: scale(1.04);
}

/* Clip overflow so the image scale doesn't break the card */
.uefn-tile-link {
    overflow: hidden;
}

.uefn-tile-description {
    padding: 0.9rem 1.25rem 0.5rem;
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
    flex: 1;
}

.uefn-tile-url {
    display: inline-block;
    margin: 0 1.25rem 1.25rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s ease;
}

.uefn-tile-url:hover {
    opacity: 0.75;
    text-decoration: underline;
}

/* Responsive: single column on small screens */
@media (max-width: 680px) {
    .uefn-grid {
        grid-template-columns: 1fr;
    }

    .uefn-title {
        font-size: 2.5rem;
    }
}

/* =============================================
   UEFN Project Detail Page Styles
   ============================================= */

.project-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 5rem;
}

/* --- Hero --- */
.project-hero {
    padding: 4rem 0 3rem;
    border-bottom: 1px solid rgba(74, 95, 138, 0.25);
    margin-bottom: 3rem;
}

.project-breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.project-breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-breadcrumb a:hover {
    color: var(--accent-color);
}

.project-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.project-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-style: italic;
}

/* --- Section shared title --- */
.project-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

/* --- Video --- */
.project-video-section {
    margin-bottom: 3.5rem;
}

/* Centre the video and constrain it to ~70% of the page width */
.project-video-wrapper {
    display: flex;
    justify-content: center;
}

.project-video-frame {
    position: relative;
    width: 70%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 212, 255, 0.15);
}

.project-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Gallery (2×2) --- */
.project-gallery-section {
    margin-bottom: 3.5rem;
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.project-gallery-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16 / 10;
}

.project-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.project-gallery-item:hover img {
    transform: scale(1.04);
}

/* --- Gallery Image Captions --- */
/* Wrap each gallery <a> in a .project-gallery-item-wrap to allow a caption below */
.project-gallery-item-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.project-gallery-caption {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    font-style: italic;
    line-height: 1.4;
    padding: 0 0.25rem;
}

/* --- Description --- */
.project-description-section {
    margin-bottom: 3.5rem;
}

.project-description-body p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #444;
    margin-bottom: 1rem;
    max-width: 75ch;
}

/* --- Links --- */
.project-links-section {
    margin-bottom: 3.5rem;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-link-btn:hover {
    transform: translateY(-2px);
}

.project-link-primary {
    background: var(--gradient-2);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.25);
}

.project-link-primary:hover {
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.project-link-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.project-link-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.15);
}

/* --- Credits --- */
.project-credits-section {
    margin-bottom: 2rem;
}

.project-credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 1rem;
}

.project-credit-item {
    background: white;
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.credit-role {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-color);
}

.credit-name {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .project-video-frame {
        width: 100%;
    }

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

    .project-credits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .project-credits-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   Header Social Icons
   ============================================= */

/* Thin divider between nav links and social icons */
.header-social {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    margin-left: 1rem;
    padding-left: 1.25rem;
    border-left: 1px solid rgba(232, 234, 237, 0.2);
}

.header-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.header-social-link:hover {
    color: var(--accent-color);
    background: rgba(167, 139, 250, 0.12);
    transform: translateY(-2px);
}

/* Responsive: wrap social row below nav on small screens */
@media (max-width: 768px) {
    .header-social {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(232, 234, 237, 0.2);
        justify-content: center;
        width: 100%;
    }
}
