/* 1. Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #000000;
    line-height: 1.6;
    scroll-behavior: smooth;
    
    /* Reset body flex rules */
    display: block; 
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

/* --- STICKY FOOTER WRAPPER --- */
#page-wrapper {
    /* The core sticky footer logic */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Header Styling --- */
header {
    background: #ffffff;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #000000;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

/* Mobile Menu Icon (Hamburger) */
.menu-icon {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #000000;
}

/* Desktop Navigation */
nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.2s;
}

nav a:hover, nav a.active-link {
    color: #5B21B6;
}

nav a.active-link {
    border-bottom: 2px solid #5B21B6;
}

/* --- Mobile Navigation Drawer (Dropdown) --- */
.mobile-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    background: #f7f7f7;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: all 0.3s ease-in-out; 
}

.mobile-nav a {
    padding: 12px 20px;
    text-align: left;
    color: #000000;
    border-bottom: 1px solid #e0e0e0;
}

/* --- Main Content Layout --- */
.main-content {
    /* This makes the main content expand and push the footer down */
    flex-grow: 1; 
    padding: 80px 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
    padding-bottom: 80px; /* Space above footer */
}

/* Hero Section */
.hero-content {
    display: flex; 
    flex-direction: row; 
    align-items: center; 
    justify-content: space-between; 
    text-align: left;
    gap: 80px;
}

.hero-image-col {
    flex: 0 0 40%;
    text-align: center;
}

.hero-text-col {
    flex: 0 0 60%;
    padding-right: 50px;
}

.hero-text h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.1;
}

.hero-text span {
    color: #5B21B6;
}

.hero-text p {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 40px;
    color: #333333;
}

/* Primary Button */
.btn-primary {
    background: #5B21B6;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.2s, box-shadow 0.2s;
    display: inline-block;
}

.btn-primary:hover {
    background: #6D28D9;
    box-shadow: 0 4px 15px rgba(91, 33, 182, 0.4);
}

/* About Page Specific Styles */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skills-section {
    width: 100%;
}

.skill-tag {
    display: inline-block;
    background: #eee;
    color: #5B21B6;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    transition: background 0.2s;
}

.skill-tag:hover {
    background: #ddd;
}

/* --- Profile Image Specific Styles --- */
.profile-img-container {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #5B21B6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 0 0 8px rgba(91, 33, 182, 0.2);
    transition: transform 0.3s;
    overflow: hidden; 
}

.profile-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 50%; 
    display: block;
}

/* --- Work Page Grid Styles --- */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.work-card {
    background: #f7f7f7;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(91, 33, 182, 0.2);
}

.work-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.work-details {
    padding: 15px;
}

.work-details h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #5B21B6;
    margin-bottom: 5px;
}

.work-details p {
    font-size: 1rem;
    color: #333;
}

/* --- Lightbox Modal Styles --- */
.lightbox-modal {
    display: none; /* Hidden by default */
    position: fixed; 
    z-index: 2000; /* Ensure it's above all other content */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); /* Dark overlay */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    /* CSS transition for smooth fade-in/out */
    transition: opacity 0.3s ease; 
}

/* State change triggered by JS */
.lightbox-modal.is-visible {
    opacity: 1;
}

.lightbox-image {
    max-width: 90%;
    max-height: 80vh; /* Use viewport height for responsiveness */
    display: block;
    border-radius: 8px;
    object-fit: contain; /* Ensures the whole image is visible */
}

.lightbox-caption {
    margin-top: 15px;
    text-align: center;
    color: #ccc;
    font-size: 1.2rem;
    font-weight: 500;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
}

/* 10. Footer */
footer {
    background: #333; /* Dark footer background */
    color: #ccc;
    padding: 20px 40px; /* Added more padding for spacing */
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    border-top: 1px solid #444;

    /* Ensure text doesn't wrap on small screens, keeping content on one line */
    white-space: nowrap; 
}

.footer-admin a {
    /* KEY CHANGE: Making the link light gray for contrast */
    color: #ccc; 
    text-decoration: none; /* Remove underline */
    font-weight: 600;
    transition: color 0.3s;
    
    /* Optional: Add a subtle text shadow for a cleaner look */
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.05); 
}

.footer-admin a:hover {
    color: #fff; /* White on hover for clear feedback */
}


/* --- ANIMATIONS --- */
@keyframes fadeInSlideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-entrance {
    animation: fadeInSlideUp 0.6s ease-out forwards;
    opacity: 0;
}

/* --- Responsive Overrides --- */
@media (min-width: 769px) {
     .mobile-nav {
        display: none !important;
     }
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .menu-icon {
        display: block;
    }
    header nav {
        display: none;
    }
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .hero-text p {
        font-size: 1rem;
        padding: 0 10px;
    }
    .profile-img-container {
        width: 200px;
        height: 200px;
    }
    .hero-text-col {
        padding-right: 0;
    }
}