/* ==========================================================================
   1. VARIABLES & THEMES
   ========================================================================== */
:root {
    --bg-color: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #666666; 
    --nav-active: #000000;
    --border-color: #dddddd;
    --transition-speed: 0.3s;
}

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

/* ==========================================================================
   2. 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';
}

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

.nav-links a { 
    font-size: 0.9rem; 
    font-weight: 500; 
    text-transform: uppercase; 
    color: var(--text-muted); 
    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. HOME PAGE (Hero & Grid)
   ========================================================================== */
.hero { 
    padding: 100px 0; 
    max-width: 100%; 
}

.hero h1 { 
    font-size: 4rem; 
    margin-bottom: 20px; 
}

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

.portfolio-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
    padding-bottom: 100px;
}

/* Project Cards */
.project-card { 
    position: relative; 
    overflow: hidden; 
    aspect-ratio: 1 / 1; 
}

.project-card img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    border-radius: 15px;
}

.overlay {
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); 
    color: white;
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
    opacity: 0; 
    transition: var(--transition-speed) ease;
    padding: 20px; 
    text-align: center;
    border-radius: 15px;
}

.project-card:hover .overlay { 
    opacity: 1; 
}

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

/* ==========================================================================
   5. PROJECT DETAIL PAGES
   ========================================================================== */
.project-header { 
    padding: 60px 0; 
    border-bottom: 1px solid var(--border-color); 
    margin-bottom: 40px; 
}

.project-info { 
    display: flex; 
    gap: 40px; 
    margin-top: 20px; 
    flex-wrap: wrap; 
}

.content-row { 
    margin-bottom: 40px; 
    width: 100%; 
}

.content-row img { 
    width: 100%; 
    display: block; 
}

.content-row.split { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
    align-items: center; 
}

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

/* ==========================================================================
   6. RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */
@media (max-width: 768px) {
    body { 
        padding: 0 5%; 
    }
    
    .navbar { 
        flex-direction: column; 
        gap: 20px; 
    }

    .hero h1 { 
        font-size: 3rem; 
    }

    .portfolio-grid, 
    .about-grid, 
    .contact-content, 
    .content-row.split { 
        grid-template-columns: 1fr; 
    }
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}