* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --light-bg: #ffffff;
    --light-text: #555555;
    --light-title: #000000;
    --dark-bg: #1a1a1a;
    --dark-text: #cccccc;
    --dark-title: #ffffff;
    --nav-bg-light: rgba(255, 255, 255, 0.85);
    --nav-bg-dark: rgba(30, 30, 30, 0.9);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light-bg);
    color: var(--light-text);
    transition: background 0.3s, color 0.3s;
    overflow-x: hidden;
}

body.dark-theme {
    background: var(--dark-bg);
    color: var(--dark-text);
}

body.dark-theme .title {
    color: var(--dark-title);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

p {
    color: rgb(85, 85, 85);
}

body.dark-theme p {
    color: var(--dark-text);
}

a, .btn {
    transition: all 300ms ease;
}

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

body.dark-theme a {
    color: var(--dark-text);
}

a:hover {
    color: grey;
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: rgb(181, 181, 181);
}

/* NAVIGATION - Reused and adapted from index.css */
nav, .nav-links {
    display: flex;
}

nav {
    justify-content: space-around;
    align-items: center;
    height: 17vh;
}

.nav-links {
    gap: 2rem;
    list-style: none;
    font-size: 1.5rem;
    align-items: center;
}

.logo {
    height: 2rem;
    width: auto;
}

.logo:hover {
    cursor: pointer;
}

body.dark-theme .logo {
    filter: invert(1);
}

.theme-toggle {
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: black;
    padding: 0;
}

body.dark-theme .theme-toggle {
    color: white;
}

/* HAMBURGER MENU - Reused from index.css */
#hamburger-nav { display: none; }
.hamburger-menu { position: relative; display: inline-block; }
.hamburger-icon { display: flex; flex-direction: column; justify-content: space-between; height: 24px; width: 30px; cursor: pointer; }
.hamburger-icon span { width: 100%; height: 2px; background-color: black; transition: all 0.3s ease-in-out; } 
body.dark-theme .hamburger-icon span { background-color: white; }
.menu-links { position: absolute; top: 100%; right: 0; background-color: var(--nav-bg-light); backdrop-filter: blur(15px); width: fit-content; max-height: 0; overflow: hidden; transition: all 0.3s ease-in-out; border-radius: 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); z-index: 1000; /* Ensures menu is on top of all other content */ }
body.dark-theme .menu-links { background-color: var(--nav-bg-dark); } .menu-links a, .menu-links button { display: block; padding: 10px; text-align: center; font-size: 1.5rem; color: black; text-decoration: none; transition: all 0.3s ease-in-out; width: 100%; }
body.dark-theme .menu-links a, body.dark-theme .menu-links button { color: var(--dark-text); }
.menu-links li { list-style: none; }
.menu-links.open { max-height: 300px; }
.hamburger-icon.open span:first-child { transform: rotate(45deg) translate(10px, 5px); }
.hamburger-icon.open span:nth-child(2) { opacity: 0; }
.hamburger-icon.open span:last-child { transform: rotate(-45deg) translate(10px, -5px); }


/* SECTIONS & TITLES - Reused from index.css */
section {
    padding-top: 4vh;
    margin: 0 10rem;
    box-sizing: border-box;
    min-height: fit-content;
    position: relative;
}

.section__text__p1 {
    text-align: center;
    font-weight: 600;
}

.title {
    font-size: 3rem;
    text-align: center;
    color: var(--light-title);
}

/* PROJECT PAGE SPECIFIC STYLES */
#projects {
    padding-bottom: 4rem;
    position: relative; /* Allows absolute positioning of arrows */
}

.filter-container {
    text-align: center;
    margin: 1rem 0 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

#project-filter {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    border-radius: 8px;
    border: 1px solid rgb(163, 163, 163);
    background-color: var(--light-bg);
    color: var(--light-text);
    cursor: pointer;
}

body.dark-theme #project-filter {
    background-color: #3a3a3a;
    border-color: #666;
    color: var(--dark-text);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.project-count {
    font-size: 1.5rem;
    color: #888;
}

body.dark-theme .project-count {
    color: #aaa;
}

.project-details-container {
    max-width: 1200px;
    margin: 2rem auto 0 auto;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.details-container {
    padding: 1.5rem;
    background: white;
    border-radius: 2rem;
    border: 1px solid rgb(163, 163, 163);
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
    position: relative;
}

.details-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.details-container:has(.options-menu.open) {
    z-index: 20; /* Ensure the active card's menu appears above others */
}

body.dark-theme .details-container {
    background: #2d2d2d;
    border-color: #555;
}

body.dark-theme .details-container:hover {
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 1rem;
    display: block;
    transition: transform 0.3s ease;
}

.details-container figure {
    position: relative;
    margin: 0 0 1rem 0;
    border-radius: 1rem;
    overflow: hidden;
}

.details-container figure::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.details-container figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    z-index: 2;
    text-align: left;
}

.experience-sub-title.project-title {
    margin-bottom: 0;
    color: #ffffff !important;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

body.dark-theme .experience-sub-title.project-title {
    color: #ffffff !important;
}

.details-container p {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
    justify-content: center;
}

.post-content .tech-stack {
    justify-content: flex-start;
}

.tech-tag {
    background-color: #e0e0e0;
    color: #333;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

body.dark-theme .tech-tag {
    background-color: #3a3a3a;
    color: #ddd;
}

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

/* Project Card Footer */
.project-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    width: 100%;
}

.read-more-link {
    font-weight: 600;
}

.read-more-disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.read-more-disabled:hover {
    text-decoration: none;
    color: black;
}

body.dark-theme .read-more-disabled:hover {
    color: var(--dark-text);
}

/* Override .btn width for project cards */
.project-btn {
    width: auto;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

/* MENU STYLES */
.details-container {
    position: relative; /* Ensure absolute children are relative to this */
}

.menu-container {
    position: relative;
    display: inline-block;
}

.details-container .menu-container {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    transition: background-color 0.3s;
}

body.dark-theme .menu-btn {
    color: var(--dark-text);
}

.menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

body.dark-theme .menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.options-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--light-bg);
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    min-width: 140px;
    z-index: 100;
    overflow: hidden;
}

.options-menu.open {
    display: flex;
}

body.dark-theme .options-menu {
    background-color: #2d2d2d;
    border-color: #555;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.menu-option {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--light-text);
    width: 100%;
    transition: background-color 0.2s;
}

body.dark-theme .menu-option {
    color: var(--dark-text);
}

.menu-option:hover {
    background-color: #f0f0f0;
}

body.dark-theme .menu-option:hover {
    background-color: #3a3a3a;
}

.status-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-top-left-radius: 2rem;
    pointer-events: none;
    z-index: 10;
}

.status-tag {
    position: absolute;
    top: 1.5rem;
    left: -45px;
    transform: rotate(-45deg);
    padding: 0.2rem 3rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.status-completed { background-color: #28a745; }
.status-in-progress { background-color: #007bff; }
.status-planned { background-color: #6c757d; }
.status-collection { background-color: #6f42c1; }

#empty-state-message {
    display: none;
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
}
#empty-state-message .title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.back-btn-container {
    margin-top: 3rem;
}

/* BUTTONS, ICONS, CONTACT, FOOTER - Reused from index.css */
.btn-container { display: flex; justify-content: center; gap: 1rem; margin-top: auto; padding-top: 1rem; }
.btn { 
    font-weight: 600; 
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem; /* Reduced padding */
    border-radius: 2rem; 
    cursor: pointer; 
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.btn[disabled] { cursor: not-allowed; opacity: 0.6; }
.btn-color-1 { border: 1px solid rgb(53, 53, 53); background: rgb(53, 53, 53); color: white; }
.btn-color-1:hover:not([disabled]) { background: rgb(0, 0, 0); }
.btn-color-2 { border: 1px solid rgb(53, 53, 53); background: none; color: black; }
.btn-color-2:hover:not([disabled]) { background: rgb(53, 53, 53); color: white; }
body.dark-theme .btn-color-1 { border: 1px solid #ffffff; background: #333333; color: white; }
body.dark-theme .btn-color-1:hover:not([disabled]) { background: #ffffff; color: #000000; }
body.dark-theme .btn-color-2 { border: 1px solid #ffffff; background: none; color: white; }
body.dark-theme .btn-color-2:hover:not([disabled]) { background: #ffffff; color: #000000; }

.icon { cursor: pointer; height: 2rem; }

/* Dark theme support for icons */
body.dark-theme .arrow.scroll-down,
body.dark-theme .contact-icon,
body.dark-theme .arrow.scroll-up {
    filter: invert(1);
}
.scroll-down-link, .scroll-up-link {
    display: inline-block;
    position: absolute;
    bottom: 2.5rem;
    right: -5rem;
}

.scroll-down-link:hover .arrow, .scroll-up-link:hover .arrow {
    transform: scale(1.1) !important;
    transition: transform 0.2s ease-in-out;
}

.arrow {
    width: 30px;
    height: 30px;
}

#contact { display: flex; justify-content: center; flex-direction: column; padding-top: 7vh; min-height: 70vh; position: relative; /* Allows absolute positioning of arrows */ }
.contact-form-container { display: flex; justify-content: center; margin-bottom: 2rem; width: 100%; }
#contact-form { display: flex; flex-direction: column; gap: 1.5rem; width: 100%; max-width: 600px; background: rgb(250, 250, 250); border: 1px solid rgb(163, 163, 163); border-radius: 2rem; padding: 2rem; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
body.dark-theme #contact-form { background: #2d2d2d; border-color: #555; }
.form-group { display: flex; flex-direction: column; }
.form-group label { font-weight: 600; margin-bottom: 0.5rem; color: var(--light-title); }
body.dark-theme .form-group label { color: var(--dark-title); }
.form-group input, .form-group textarea { padding: 0.75rem; border: 1px solid rgb(163, 163, 163); border-radius: 0.5rem; font-family: inherit; font-size: 1rem; background: var(--light-bg); color: var(--light-text); }
body.dark-theme .form-group input, body.dark-theme .form-group textarea { background: #3a3a3a; border-color: #666; color: var(--dark-text); }
.form-group button { width: 100%; }

/* Form Status Message Styling */
#form-status {
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 500;
    display: none; /* Hidden by default */
    transition: all 0.3s ease;
}
#form-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}
#form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}
/* Dark Theme Adjustments */
body.dark-theme #form-status.success {
    background-color: #1a3a22;
    color: #a7d7b7;
    border-color: #2a5c3d;
}
body.dark-theme #form-status.error {
    background-color: #4d1f24;
    color: #f5c6cb;
    border-color: #843534;
}

.contact-info-upper-container { display: flex; justify-content: center; border-radius: 2rem; border: 1px solid rgb(163, 163, 163); background: rgb(250, 250, 250); margin: 2rem auto; padding: 0.5rem; }
body.dark-theme .contact-info-upper-container { background: #2d2d2d; border-color: #555; }
.contact-info-container { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin: 1rem; }
.contact-info-container p { font-size: larger; }
.contact-icon { cursor: default; }

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

footer { height: 26vh; margin: 0 1rem; }
footer p { text-align: center; }
.fade-in-section { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in-section.visible { opacity: 1; transform: translateY(0); }

.hidden {
    display: none;
}

/* TOAST NOTIFICATION */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: rgba(30, 30, 30, 0.95);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    pointer-events: none;
    text-align: center;
    max-width: 90vw;
}

.toast-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

body.dark-theme .toast-notification {
    background-color: rgba(240, 240, 240, 0.95);
    color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

/* ACCESSIBLE TOOLTIPS */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background-color: rgba(30, 30, 30, 0.9);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 0.4rem;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    margin-bottom: 5px;
}

[data-tooltip]:hover::before,
[data-tooltip]:focus-visible::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

body.dark-theme [data-tooltip]::before {
    background-color: rgba(220, 220, 220, 0.9);
    color: #000;
    box-shadow: 0 2px 5px rgba(255,255,255,0.1);
}

nav [data-tooltip]::before {
    bottom: auto;
    top: 100%;
    transform: translateX(-50%) translateY(5px);
    margin-bottom: 0;
    margin-top: 5px;
}

nav [data-tooltip]:hover::before,
nav [data-tooltip]:focus-visible::before {
    transform: translateX(-50%) translateY(10px);
}

.details-container [data-tooltip]::before {
    bottom: 100%;
    top: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(-5px);
    margin-bottom: 5px;
    margin-right: 0;
}

.details-container [data-tooltip]:hover::before,
.details-container [data-tooltip]:focus-visible::before {
    transform: translateX(-50%) translateY(-10px); /* Keep the upward motion */
}

@media (hover: none), screen and (max-width: 600px) {
    [data-tooltip]::before {
        display: none;
    }
}

/* INDIVIDUAL PROJECT PAGE STYLES (from blog.css) */
#blog-post {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 4rem 0;
}

.blog-banner {
    width: 100%;
    max-width: 800px;
    height: 350px;
    margin: 0 auto 2rem auto;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.blog-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 1;
}

.blog-banner .banner-title {
    position: relative;
    z-index: 2;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    margin: 0;
}

.post-metadata {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 2rem;
    text-align: center;
    align-items: center;
}
body.dark-theme .post-metadata {
    color: #aaa;
}
.post-author {
    color: #555;
}
body.dark-theme .post-author {
    color: #ccc;
}
.post-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    line-height: 1.8;
    font-size: 1.1rem;
}
.post-content h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem 0;
    color: var(--light-title);
}
body.dark-theme .post-content h2 {
    color: var(--dark-title);
}
.post-content h3 {
    font-size: 1.7rem;
    margin: 1.8rem 0 1rem 0;
    color: var(--light-title);
}
body.dark-theme .post-content h3 {
    color: var(--dark-title);
}
.post-content p {
    margin-bottom: 1.5rem;
}
.post-content ul {
    list-style-position: inside;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}
.post-content li {
    margin-bottom: 0.5rem;
}
.post-content .btn-container {
    margin-top: 2rem;
}
 
/* Style for single images with captions */
figure.project-image-container {
    margin: 1.5rem 0;
    width: 100%;
}

figure.project-image-container img {
    width: 100%;
    height: auto;
    border-radius: 12px; /* Matches your modern, rounded aesthetic */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Gentle shadow for depth */
}

figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.8rem;
    font-style: italic;
}

/* Style for the 2-image grid gallery */
.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns side-by-side */
    gap: 1rem;
    margin: 2rem 0;
}

.grid-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images fill their boxes neatly */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Helper classes for spacing */
.add-margin-top { margin-top: 2rem; }
.add-margin-bottom { margin-bottom: 2rem; }

/* Dark mode adjustments for captions */
body.dark-theme figcaption {
    color: #aaa;
}

/* Disclaimer Style */
.project-disclaimer {
    font-size: 0.9rem;
    color: #666;
    margin-top: 2rem;
    font-style: italic;
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
}

body.dark-theme .project-disclaimer {
    color: #aaa;
    border-color: #444;
}

/* Vaultary Report Styles & Themed Dropdowns */
.report-box {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-left: 4px solid #007bff;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    color: var(--light-text);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.report-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

body.dark-theme .report-box {
    background: #1a1a1a;
    border-color: #333;
    color: var(--dark-text);
}

body.dark-theme .report-box:hover {
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.05);
}

.report-box.bug { border-left-color: #dc3545; }
.report-box.success { border-left-color: #28a745; }

/* =========================================
   MENTOR / GUIDE CALLOUT BOX STYLES 
========================================= */
.report-box-flex {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.report-box-img, 
.instructor-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #007bff;
}

.report-box-title, 
.instructor-name {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.report-box-role, 
.report-box-institution, 
.instructor-text, 
.instructor-email {
    margin-bottom: 0.5rem;
}

.instructor-email a {
    color: #007bff;
    text-decoration: none;
}

.instructor-email a:hover {
    color: #0056b3;
    text-decoration: underline;
}

body.dark-theme .instructor-email a {
    color: #58a6ff;
}

body.dark-theme .instructor-email a:hover {
    color: #79b8ff;
}

.report-box-flex div p:last-child {
    margin-bottom: 0;
}

/* Certificate Box & Spacing Utilities */
.certificate-title { margin-top: 0; margin-bottom: 0.5rem; }
.certificate-list { margin-bottom: 0; padding-left: 1.2rem; }
.certificate-image { margin: 1.5rem 0 1rem 0; width: 100%; }
.certificate-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn-container-start { justify-content: flex-start; margin-top: 1rem; padding-top: 0; }
.tech-stack-no-margin { margin: 0 !important; }
.team-contributions-margin { margin-top: 0.5rem; }

code {
    background: #eee;
    padding: 2px 6px;
    border-radius: 4px;
    color: #333;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

body.dark-theme code {
    background: #2d2d2d;
    color: #e6e6e6;
}

.code-block {
    background: #1e1e1e;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid #ddd;
    color: #0f0;
}

body.dark-theme .code-block {
    background: #000;
    border-color: #333;
}

.code-block-container {
    position: relative;
}

.copy-code-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.3rem 0.8rem;
    background: #e0e0e0;
    border: 1px solid #ccc;
    border-radius: 0.3rem;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.copy-code-btn:hover { background: #d0d0d0; }
.copy-code-btn.copied { background-color: #28a745; color: white; border-color: #28a745; }

body.dark-theme .copy-code-btn { background: #444; border-color: #666; color: #eee; }
body.dark-theme .copy-code-btn:hover { background: #555; }
body.dark-theme .copy-code-btn.copied { background-color: #28a745; color: white; border-color: #28a745; }

details {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: background-color 0.3s, border-color 0.3s;
}

body.dark-theme details {
    background: #111;
    border-color: #333;
}

summary {
    font-weight: 600;
    color: var(--light-title);
    list-style: none;
}

body.dark-theme summary {
    color: var(--dark-title);
}

summary::-webkit-details-marker {
    display: none;
}

summary:after {
    content: "+"; 
    float: right; 
    font-weight: bold;
}

details[open] summary:after {
    content: "-";
}

.section-divider {
    border: 0;
    border-top: 1px solid #333;
    margin: 2rem 0;
}

body.dark-theme .section-divider {
    border-top-color: #555;
}

/* =========================================
   TEAM AND CONTRIBUTIONS GRID 
========================================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.team-card {
    background: var(--light-bg);
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

body.dark-theme .team-card {
    background: #2d2d2d;
    border-color: #444;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

body.dark-theme .team-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.team-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: center top;
    border-bottom: 1px solid #f0f0f0;
}

body.dark-theme .team-img {
    border-bottom-color: #444;
}

/* Video Wrapper Styles */
.video-wrapper {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.video-wrapper video {
    width: 100%;
    display: block;
}

.team-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.team-name {
    margin: 0 0 0.3rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--light-title);
}

.team-name span {
    font-size: 0.9rem;
    color: #888;
    font-weight: 400;
}

body.dark-theme .team-name { color: var(--dark-title); }
body.dark-theme .team-name span { color: #aaa; }

.team-role {
    font-size: 0.9rem;
    color: #007bff;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.dark-theme .team-role { color: #58a6ff; }

.team-contribution {
    font-size: 0.95rem;
    color: var(--light-text);
    margin: 0;
    line-height: 1.5;
}

body.dark-theme .team-contribution { color: var(--dark-text); }

.team-contributions-list {
    padding-left: 1.2rem;
    margin: 0;
    font-size: 0.95rem;
    color: var(--light-text);
}

body.dark-theme .team-contributions-list { color: var(--dark-text); }
.team-contributions-list li { margin-bottom: 0.4rem; }

/* Highlighted Card (First Card) */
.team-card.highlighted-card { border: 2px solid #007bff; box-shadow: 0 4px 20px rgba(0, 123, 255, 0.15); }
body.dark-theme .team-card.highlighted-card { border-color: #58a6ff; box-shadow: 0 4px 20px rgba(88, 166, 255, 0.15); }
.team-card.highlighted-card:hover { box-shadow: 0 8px 25px rgba(0, 123, 255, 0.25); }
body.dark-theme .team-card.highlighted-card:hover { box-shadow: 0 8px 25px rgba(88, 166, 255, 0.25); }

@media screen and (min-width: 768px) {
    .team-card.highlighted-card { grid-column: 1 / -1; flex-direction: row; }
    .highlighted-card .team-img { width: 300px; height: 100%; border-bottom: none; border-right: 1px solid #f0f0f0; }
    body.dark-theme .highlighted-card .team-img { border-right-color: #444; }
    .highlighted-card .team-info { justify-content: center; padding: 2rem; }
    .highlighted-card .team-name { font-size: 1.6rem; }
}

/* Utility classes to replace inline styles */
.banner-img-contain {
    object-fit: contain;
    background: white;
}

.banner-title-dark {
    color: black !important;
    text-shadow: none !important;
}

.project-image-container.no-margin {
    margin: 0;
}

/* Responsive Utility Classes for Layouts */
.video-portrait {
    max-width: 350px;
    margin: 2rem auto;
}
.video-rounded {
    border-radius: 12px;
    display: block;
}
.video-caption {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}
body.dark-theme .video-caption { color: #aaa; }

.tech-stack-start { justify-content: flex-start; margin-bottom: 1rem; }
.team-grid-compact { gap: 1.5rem; margin-top: 1rem; margin-bottom: 1.5rem; }
.image-grid-compact { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 2rem; }
figure.figure-constrained { margin: 1.5rem auto 2.5rem auto; max-width: 600px; }
figure.figure-portrait { margin: 1.5rem auto 2.5rem auto; max-width: 350px; }

.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 1rem !important; }
.mt-auto { margin-top: auto !important; }

/* Specific positioning for banner titles that need to be lower than center */
.blog-banner .banner-title.lower-banner-title {
    position: absolute !important; /* Override 'relative' from default .banner-title */
    bottom: 12% !important; /* Adjust this percentage to fine-tune vertical position */
    left: 50%;
    transform: translateX(-50%);
    margin: 0 !important; /* Ensure no conflicting margins push it around */
    text-align: center; /* Keep text centered within its absolute container */
    max-width: 90%; /* Prevent it from overflowing on very small screens */
}