/* ----------------------------------
   LIGHT THEME (DEFAULT)
----------------------------------- */
:root {
    --bg: #ffffff;
    --text: #222;
    --card: #f2f2f2;
    --accent: #4a73ff;
}

/* ----------------------------------
   DARK THEME
----------------------------------- */
.dark {
    --bg: #111;
    --text: #f2f2f2;
    --card: #1f1f1f;
    --accent: #6d8cff;
}

/* ----------------------------------
   BODY
----------------------------------- */
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, sans-serif;
    transition: 0.3s ease;
}

/* ----------------------------------
   NAVBAR
----------------------------------- */
.navbar {
    position: sticky;
    top: 0;
    background: var(--card);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.nav-logo {
    font-family: "Poppins", sans-serif;
    font-size: 22px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: bold;
}

.nav-links a:hover {
    color: var(--accent);
}

#theme-toggle {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text);
}

/* ----------------------------------
   GLOBAL SECTIONS
----------------------------------- */
section {
    max-width: 1000px;
    margin: auto;
    padding: 50px 20px;
}

.section-title {
    font-family: "Poppins", sans-serif;
    font-size: 30px;
    margin-bottom: 10px;
}

/* ----------------------------------
   ABOUT (PROFILE LAYOUT REMAINS SAME)
----------------------------------- */
.profile-layout {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.profile-photo-side {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    object-fit: cover;
}

.about-text-side {
    max-width: 650px;
}

.about-text-side p {
    text-align: justify;
    line-height: 1.6;
}
/* ----------------------------------
   PROJECT GRID (MAIN PAGE)
----------------------------------- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.project-card {
    background: var(--card);
    border-radius: 12px;
    padding: 18px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    transition: 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-img {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    object-fit: cover;
}

/* ----------------------------------
   PROJECT DETAIL PAGE BLOCK
----------------------------------- */
.project-description {
    background: var(--card);
    padding: 25px;
    border-radius: 12px;
    margin-top: 25px;
}

/* ----------------------------------
   PROJECT1 – Image Shoul Fit Block
----------------------------------- */
.project-description img {
    width: 100%;           /* Fill entire block width */
    max-width: 100%;       /* No restriction */
    height: auto;          /* Keep natural proportions */
    display: block;
    margin: 25px auto;
    
    background: var(--card);
    padding: 10px;
    border-radius: 12px;

    box-shadow: 0 0 12px rgba(0,0,0,0.18);
}

/* Make image slightly dimmer in dark mode */
.dark .project-description img {
    filter: brightness(0.95);
}
/* Keep image small on small screens */
@media (max-width: 600px) {
    .project-description img {
        max-width: 100%;
    }
}

/* ----------------------------------
   PROJECT2 – FOUR IMAGES ROW
----------------------------------- */
.image-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: nowrap;
    margin-bottom: 20px;
}

.image-row img {
    flex: 1 1 0;
    max-width: 24%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--card);
    padding: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

.image-row img:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .image-row {
        flex-wrap: wrap;
    }
    .image-row img {
        max-width: 48%;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .image-row img {
        max-width: 100%;
        height: 150px;
    }
}

/* ----------------------------------
   PROJECT2 – LIGHTBOX POPUP
----------------------------------- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 95%;
    max-height: 95%;
    border-radius: 12px;
    object-fit: contain;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.lightbox .prev,
.lightbox .next {
    position: absolute;
    top: 50%;
    font-size: 50px;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 8px;
}

.lightbox .prev {
    left: 20px;
}

.lightbox .next {
    right: 20px;
}

.lightbox .prev:hover,
.lightbox .next:hover {
    color: var(--accent);
}

/* ----------------------------------
   PUBLICATIONS
----------------------------------- */
.publications ul {
    list-style: none;
    padding: 0;
}
.publications li a {
    color: #87CEFA; /* Light Blue */
}

.publications li a:hover {
    color: #00BFFF; /* Slightly darker blue on hover */
}
.publications li {
    background: var(--card);
    padding: 15px;
    border-radius: 10px;
    margin: 10px 0;
    font-family: Agency FB;
    font-size: 20px;
}

/* ----------------------------------
   FOOTER
----------------------------------- */
footer {
    background: var(--card);
    text-align: center;
    padding: 25px;
    margin-top: 40px;
}

.footer-icon {
    font-size: 28px;
    margin: 0 15px;
    color: var(--text);
    text-decoration: none;
}

.footer-icon:hover {
    color: var(--accent);
}

/* ----------------------------------
   RESPONSIVE GLOBAL
----------------------------------- */
@media (max-width: 768px) {
    .profile-layout {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}



