/* ==========================================================================
   1. VARIABLES & THEMES
   ========================================================================== */
:root {
    --bg-main: #ffffff;
    --bg-alt: #f4f4f4;        /* For text-blocks and project-info boxes */
    --text-main: #1a1a1a;
    --text-muted: #666666;    /* Nav links and intro text */
    --text-meta: #888888;     /* For small labels and "Strong" tags */
    --nav-active: #000000;    /* The color of the current page link */
    --border-color: #dddddd;
    --button-bg: #000000;
    --button-text: #ffffff;
    --transition-speed: 0.3s;
}

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

/* ==========================================================================
   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-main); 
    color: var(--text-main); 
    line-height: 1.6; 
    transition: background var(--transition-speed) ease, color var(--transition-speed) ease; 
}

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 { 
    color: var(--text-main); 
    font-size: 60px; 
    font-weight: 200; 
    letter-spacing: 0px; 
    font-family: 'Festive';
}

.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. HOME PAGE (Hero & Grid)
   ========================================================================== */
.hero { 
    padding: 100px 0; 
    max-width: 800px; 
}

.hero h1 { 
    font-size: 4.5rem; 
    font-weight: 700; 
    margin-bottom: 25px; 
    line-height: 1.1; 
}

.intro-text { 
    font-size: 1.2rem; 
    color: var(--text-muted); 
    max-width: 700px; 
}

.portfolio-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 15px; 
    margin-bottom: 80px; 
}

/* Project Card & Hover Effects */
.project-card { 
    position: relative; 
    overflow: hidden; 
    background: #eee; 
}

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

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

.overlay { 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: rgba(0, 0, 0, 0.85); 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    opacity: 0; 
    transition: 0.4s ease; 
    padding: 20px; 
    text-align: center;
}

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

.overlay h3 { color: #fff; margin-bottom: 10px; font-size: 1.4rem; }
.overlay p { color: #ccc; font-size: 0.9rem; }

/* Container adjustment to center the button */
.under-construction-text {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the button horizontally */
    gap: 10px;
}

/* The Cute Button Style */
.back-home-btn {
    margin-top: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: var(--button-bg);
    color: var(--button-text);
    border-radius: 50px; /* Makes it "cute" and rounded */
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed) ease;
}

.back-home-btn:hover {
    transform: translateY(-3px); /* Subtle lift effect */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
}

/* Arrow animation on hover */
.back-home-btn i {
    transition: transform 0.3s ease;
}

.back-home-btn:hover i {
    transform: translateX(-5px); /* Arrow moves slightly left */
}

/* The Cute Button Style */
.go-home-btn {
    margin-top: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: var(--button-bg);
    color: var(--button-text);
    border-radius: 50px; /* Makes it "cute" and rounded */
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed) ease;
}

.go-home-btn:hover {
    transform: translateY(-3px); /* Subtle lift effect */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
}

/* Arrow animation on hover */
.go-home-btn i {
    transition: transform 0.3s ease;
}

.go-home-btn:hover i {
    transform: translateX(5px); /* Arrow moves slightly left */
}

.under-construction-text p {
    text-align: center;
    font-size: 1.5rem;
    font-weight: lighter;
}
.under-construction-logo {
    text-align: center;
    font-size: 5rem;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers horizontally */
    text-align: center;
}

.under-construction-logo .container {
    width: 100%;
    max-width: 1200px; /* Adjust based on your preferred width */
    overflow: hidden; /* Ensures the crop stays within bounds */
    margin-bottom: 20px; /* Space between image and 'Uh-oh!' */
    border-radius: 10px;
}

/* The cropping magic */
.under-construction-logo .image {
    width: 100%;
    height: 350px;    /* Force a specific height to trigger the crop */
    object-fit: cover; /* Crops top/bottom to fill the height without stretching */
    object-position: center 65%; /* Ensures the middle of the image stays visible */
    display: block;
}

/* ==========================================================================
   5. PROJECT DETAIL & LAYOUT BLOCKS
   ========================================================================== */
.project-detail { padding-top: 40px; }
.project-header { margin-bottom: 60px; }
.project-header h1 { font-size: 3rem; margin-bottom: 20px; }

.project-info { 
    background: var(--bg-alt); 
    color: var(--text-main); 
    padding: 30px; 
    border-radius: 8px; 
    display: flex; 
    gap: 50px; 
    flex-wrap: wrap; 
}

.info-item { display: flex; flex-direction: column; gap: 5px; }
.info-item strong { color: var(--text-meta); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px; }

.text-block { 
    background: var(--bg-alt); 
    color: var(--text-main); 
    padding: 40px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

.content-row { margin-bottom: 20px; }
.content-row.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ==========================================================================
   6. ABOUT & SKILLS
   ========================================================================== */
.about-container { padding: 60px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

.skills { margin-top: 30px; }
.skills ul { list-style: none; margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; }
.skills li { 
    background: var(--button-bg); 
    color: var(--button-text); 
    padding: 5px 15px; 
    font-size: 0.8rem; 
    border-radius: 20px; 
}

/* ==========================================================================
   7. CONTACT PAGE & FORMS
   ========================================================================== */
.contact-container { padding: 60px 0; max-width: 1000px; margin: auto;}
.contact-content { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; margin-top: 40px; }

.contact-form { display: flex; flex-direction: column; gap: 15px; max-width: 500px;}
.contact-form input, 
.contact-form textarea { 
    background: var(--bg-main);
    color: var(--text-main);
    padding: 15px; 
    border: 1px solid var(--border-color); 
    outline: none; 
    transition: var(--transition-speed); 
}

.contact-form input:focus, 
.contact-form textarea:focus { 
    border-color: var(--nav-active); 
}

.contact-form button { 
    padding: 15px; 
    background: var(--button-bg); 
    color: var(--button-text); 
    border: none; 
    cursor: pointer; 
    transition: var(--transition-speed); 
}

.contact-form button:hover { 
    opacity: 0.8; 
}

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

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