/* ==========================================================================
   1. VARIABLES & THEMES
   ========================================================================= */
:root {
    --bg-color: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #666666;    /* Nav links and headers */
    --text-content: #555555;  /* Project description text */
    --text-meta: #999999;     /* Small labels like "SCOPE" */
    --border-color: #eaeaea;
    --nav-active: #000000;    /* The active link color */
    --transition-speed: 0.3s;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --text-content: #cccccc;
    --text-meta: #777777;
    --border-color: #333333;
    --nav-active: #ffffff;
}

/* ==========================================================================
   2. GLOBAL RESET & BASE STYLES
   ========================================================================= */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Work Sans', -apple-system, sans-serif; 
}

body { 
    padding: 0 8%; 
    background: var(--bg-color); 
    color: var(--text-main); 
    line-height: 1.6; 
    transition: background var(--transition-speed), color var(--transition-speed); 
}

a { 
    text-decoration: none; 
    color: inherit; 
}

img { 
    max-width: 100%; 
    display: block; 
}

.festive-regular {
    font-family: "Festive", cursive;
    font-weight: 400;
    font-style: normal;
}

/* ==========================================================================
   3. NAVIGATION (Navbar)
   ========================================================================= */
.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 40px 0; 
}

.logo a { 
    font-size: 60px; 
    font-weight: 200; 
    letter-spacing: 0px; 
    font-family: 'Festive';
    color: var(--text-main);
}

.nav-links { 
    list-style: none; 
    display: flex; 
    gap: 35px; 
}

.nav-links a { 
    color: var(--text-muted); 
    font-size: 0.9rem; 
    font-weight: 500; 
    text-transform: uppercase; 
    transition: var(--transition-speed); 
}

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

.social-links { 
    display: flex; 
    gap: 20px; 
    font-size: 1.2rem; 
}

/* ==========================================================================
   4. PROJECT DETAIL PAGE LAYOUT
   ========================================================================= */
.project-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 100px;
}

.project-header {
    margin: 60px 0 80px 0;
}

.project-header h1 {
    font-size: clamp(1.75rem, 8vw, 3.5rem);
    font-weight: 700;
    margin-bottom: clamp(20px, 8vw, 40px);
    line-height: 1.1;
}

/* Project Meta Info (Scope, Tools, etc.) */
.project-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item strong {
    color: var(--text-meta);
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.info-item p {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-main);
}

/* ==========================================================================
   5. CONTENT BLOCKS
   ========================================================================= */
.project-content {
    display: flex;
    flex-direction: column;
    gap: clamp(15px, 5vw, 60px);
}

.container {
width: 100%;
height: 450px;
}

/* Similar to your .image class */
.video-styled {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes it fill the 450px height perfectly */
    border-radius: 10px;
    display: block;
    background-color: #000; /* Prevents white flashes while loading */
}

.image {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 10px;
}

.content-row.split img {
    display: grid;
    border-radius: 10px;
    width: 50%;
    gap: 60px;
    align-content: center;
}

.text-block-2 {
    display: grid;
}

.text-block h3 {
    font-size: 3rem;
    margin-bottom: -10px;
}

.text-block p {
    font-size: 1.1rem;
    color: var(--text-content);
    line-height: 1.7;
}

.split-container {
    display: flex;
    align-items:start; /* Vertically centers the text against the image */
    gap: 50px;
}

.split-image {
    flex: 1;           /* Takes up half the space */
}

.split-image img {
    border-radius: 10px;
}

.split-text {
    flex: 1;             /* Takes up the other half */
    display: flex;
    flex-direction: column;
    gap: 20px;           /* Spacing between h3 and p */
}

.split-text h3 {
    font-size: 2.5rem;
    color: var(--text-main);
}

.split-text p {
    font-size: 1.1rem;
    color: var(--text-content);
    line-height: 1.7;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .split-container {
        flex-direction: column; /* Stacks them vertically on phones */
        gap: 30px;
    }
}

/* ==========================================================================
   6. RESPONSIVE DESIGN (Media Queries)
   ========================================================================= */
@media (max-width: 1100px) {
    .navbar { 
        flex-direction: column; 
        gap: 20px; 
        text-align: center; 
    }
    
    .project-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .content-row.split { 
        grid-template-columns: 1fr; 
        gap: 30px; 
    }
    .project-pagination {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

.site-footer {
    margin-top: -50px;
    margin-bottom: 50px;
    text-align: center;
}

/* ==========================================================================
   7. PROJECT PAGINATION (Arrows)
   ========================================================================== */
.project-pagination {
    display: flex;
    align-items: center;
    padding: 30px 0 45px 0;
    width: 100%;
}

.pagination-link.next {
    margin-left: auto; 
    text-align: right;
}

.pagination-link.prev {
    margin-right: auto; 
    text-align: left;
}

.pagination-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition-speed);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.pagination-link i {
    font-size: 1.2rem;
}

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

/* Subtle animation: Move left on hover for "Prev" */
.pagination-link.prev:hover {
    transform: translateX(-5px);
}

/* Subtle animation: Move right on hover for "Next" */
.pagination-link.next:hover {
    transform: translateX(5px);
}

.project-like-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}