#experience.page-section {
    padding-top: 1rem;
}
/* Global Styles */
:root {
    /* Dark theme (default) - deeper black */
    --primary-color: #0d0d0f;
    --secondary-color: #151517;
    --accent-color: #9B4DCA;  
    --accent-color-light: rgba(155, 77, 202, 0.2); 
    --text-color: #e6e6e6;
    --text-secondary: #a3a3a3;
    --background-color: #0b0b0c;
    --card-background: #141418;
}

[data-theme="light"] {
    --primary-color: #ffffff;
    --secondary-color: #f5f5f5;
    --accent-color: #9B4DCA;
    --accent-color-light: rgba(155, 77, 202, 0.2);
    --text-color: #2a2a2a;
    --text-secondary: #666666;
    --background-color: #ffffff;
    --card-background: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

/* navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0.85rem 2rem;
    background-color: rgba(5, 5, 7, 0.9);
    backdrop-filter: blur(8px);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
    position: fixed;
}

/* light mode navbar */
[data-theme="light"] .navbar {
    background-color: rgba(255, 255, 255, 0.95);
}

.logo {
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-img {
    height: 56px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.1);
}

/* nav links */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

/* light mode nav links */
[data-theme="light"] .nav-links a {
    color: #2a2a2a;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* right-side social icons */
.nav-social {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-self: end;
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
}

/* Hard-center nav links on desktop regardless of logo/social widths */
@media (min-width: 769px) {
    .navbar {
        position: fixed;
    }
    .nav-links {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        width: max-content;
    }
}

.nav-social a {
    color: #cfcfcf;
    font-size: 1.15rem;
    transition: color 0.25s ease, transform 0.25s ease;
}

.nav-social a:hover {
    color: var(--accent-color);
    transform: translateY(-1px);
}

/* page sections */
.page-section {
    min-height: 100vh;
    padding: 6rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Reduce forced viewport height and spacing for the hero section to avoid huge gaps */
#home.page-section {
    min-height: auto;
    padding: 7.5rem 2rem 0.5rem; /* tighter space below skills */
}

/* Trim top padding on About to bring it closer to the hero */
#about.page-section {
    padding-top: 1.25rem;
    padding-bottom: 1rem;
}


.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero-content > .skills-section {
    margin-top: 0.25rem;
}

.profile-container {
    margin-bottom: 2rem;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 20px var(--accent-color-light);
    border: 4px solid var(--accent-color);
    margin-left: auto;
    margin-right: auto;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.profile-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        var(--accent-color-light) 0%,
        transparent 70%
    );
    z-index: -1;
    animation: pulseAura 3s ease-in-out infinite;
}

@keyframes pulseAura {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 5px var(--accent-color-light));
    position: absolute;
    top: 0;
    left: 0;
    transform: none;
}

.profile-container:hover .profile-img {
    transform: scale(1.1);
}

.profile-container:hover::before {
    animation: pulseAura 1.5s ease-in-out infinite;
}

.profile-container:hover {
    box-shadow: 0 0 30px var(--accent-color-light);
    transform: rotateY(10deg);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.typewriter {
    min-height: 3rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.typewriter h2 {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    min-width: 300px;
}

/* removed unused .social-links block */

/* removed unused resume blocks */

/* about me section */
.about-content {
    max-width: 800px;
    text-align: center;
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.about-content:hover {
    transform: translateY(-5px);
}

/* skills section wrapper below about */
.skills-section {
    width: 100%;
    max-width: 1200px;
    margin: 0.15rem auto 0.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* icon-only variant: compact row of glowing icons without labels */
.skills-section.icon-only .skills-grid {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: clamp(0.75rem, 1.5vw, 1.75rem);
    flex-wrap: wrap;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.skills-section.icon-only .skill-card {
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}

.skills-section.icon-only .skill-card h3 { display: none; }

.skills-section.icon-only .skill-icon {
    width: 88px;
    height: 88px;
    border-radius: 12px;
    background: none !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.skills-section.icon-only .skill-icon i {
    font-size: 3.25rem;
    filter: drop-shadow(0 0 12px color-mix(in oklab, var(--skill-color), white 15%))
            drop-shadow(0 0 28px color-mix(in oklab, var(--skill-color), black 0%));
    text-shadow: none;
    display: block;
    line-height: 1;
}

.skills-section.icon-only .skill-icon::before { display: none; }
.skills-section.icon-only .shine { display: none; }

/* extra hard reset: ensure no stray panel background on skills */
.skills-section.icon-only .skill-card,
.skills-section.icon-only .skill-card::before,
.skills-section.icon-only .skill-card::after {
    background: transparent !important;
    box-shadow: none !important;
}

@media (min-width: 900px) {
    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 0.5rem 0;
        font-size: 1.2rem;
        color: var(--text-color);
    }

    .navbar {
        padding: 0.5rem 1rem;
        grid-template-columns: auto auto;
    }

    .nav-social { display: flex; }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .typewriter h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .profile-container {
        width: 200px;
        height: 200px;
    }

    .profile-img {
        transition: none;
        transform: none;
    }

    .profile-container:hover .profile-img {
        transform: none;
    }

    .profile-container:hover {
        transform: none;
    }

    .profile-container:hover::before {
        animation: none;
    }

    .page-section {
        padding: 5rem 1rem 2rem;
    }

    .about-content {
        padding: 1.5rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .experience-container {
        padding: 0;
    }

    .experience-group {
        padding: 1.5rem;
    }

    .experience-content {
        padding: 1.5rem;
    }

    .experience-content h3 {
        font-size: 1.5rem;
    }

    .experience-content h4 {
        font-size: 1.1rem;
    }

    .experience-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .eagle-scout-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-item .gallery-img {
        height: 250px;
    }

    .education-timeline {
        padding: 0;
    }

    .education-card {
        padding: 1.5rem;
    }

    .education-card h3 {
        font-size: 1.5rem;
    }

    .contact-container {
        padding: 0 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
    }

    .cta-button {
        width: 100%;
        padding: 0.8rem;
    }

    .theme-toggle {
        bottom: 1rem;
        left: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        z-index: 1001;
    }

    /* aura on mobile */
    .skill-card::before, .project-card::before, .experience-group::before, 
    .valet-card::before, .about-content::before, .contact-container::before,
    .eagle-scout-content::before, .education-card::before {
        top: -5px;
        left: -5px;
        right: -5px;
        bottom: -5px;
    }

    .project-header img,
    .project-video {
        height: 180px;
    }

    /* Mobile responsive adjustments for experience images */
    .experience-image,
    .experience-image.landscape {
        height: 250px;
    }
    
    .experience-gallery .gallery-img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .typewriter h2 {
        font-size: 1.2rem;
    }

    .profile-container {
        width: 150px;
        height: 150px;
    }

    .profile-img {
        transition: none;
        transform: none;
    }

    .profile-container:hover .profile-img {
        transform: none;
    }

    .profile-container:hover {
        transform: none;
    }

    .profile-container:hover::before {
        animation: none;
    }

    .section-title {
        font-size: 2rem;
    }

    /* removed unused social-links mobile styles */

    .project-header img,
    .project-video {
        height: 160px;
    }

    .experience-image,
    .experience-image.landscape {
        height: 200px;
    }
    
    .experience-gallery .gallery-img {
        height: 180px;
    }
}

/* removed unused thank-you page styles */

/* theme button */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1001;
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px var(--accent-color-light);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        var(--accent-color-light) 0%,
        transparent 70%
    );
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-toggle:hover::before {
    opacity: 0.8;
}

/* purple aura for all cards */
.skill-card, .project-card, .experience-group, .valet-card, .about-content, 
.contact-container, .eagle-scout-content, .education-card {
    position: relative;
    overflow: visible;
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin: 1rem 0;
}


.skill-card::before, .project-card::before, .experience-group::before, 
.valet-card::before, .about-content::before, .contact-container::before,
.eagle-scout-content::before, .education-card::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 15px;
    background: radial-gradient(circle at center, 
        transparent 0%,
        transparent 60%,
        var(--accent-color-light) 100%
    );
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.skill-card:hover::before, .project-card:hover::before, .experience-group:hover::before, 
.valet-card:hover::before, .about-content:hover::before, .contact-container:hover::before,
.eagle-scout-content:hover::before, .education-card:hover::before {
    opacity: 0.8;
}

/* form status styles */
.form-status {
    margin-bottom: 1rem;
    padding: 0.8rem;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    display: none;
}

.form-status.success {
    display: block;
    background-color: rgba(39, 174, 96, 0.1);
    color: rgb(39, 174, 96);
    border-left: 4px solid rgb(39, 174, 96);
}

.form-status.error {
    display: block;
    background-color: rgba(231, 76, 60, 0.1);
    color: rgb(231, 76, 60);
    border-left: 4px solid rgb(231, 76, 60);
}

/* spinning loading icon because it makes it look cooler */
.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.cta-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}skills-section.icon-only .skills-grid { flex-wrap: nowrap; }

@media (max-width: 900px) {
    .skills-section.icon-only .skills-grid { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 768px) {
    .skills-section.icon-only .skills-grid {
        gap: clamp(1rem, 3vw, 2rem);
        max-width: 100%;
        padding: 0 1rem;
    }
    .skills-section.icon-only .skill-icon { width: 70px; height: 70px; }
    .skills-section.icon-only .skill-icon i { font-size: 2.5rem; }
}

@media (max-width: 480px) {
    .skills-section.icon-only .skills-grid {
        gap: 1rem;
        justify-content: space-around;
    }
    .skills-section.icon-only .skill-icon { width: 60px; height: 60px; }
    .skills-section.icon-only .skill-icon i { font-size: 2rem; }
}

/* skills section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    width: 100%;
}

.skill-card {
    background-color: transparent;
    padding: 1.25rem 1rem 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, filter 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
    position: relative;
    box-shadow: none;
}

.skill-card:hover {
    transform: translateY(-6px);
}

/* Neon icon + aura */
.skill-icon {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: radial-gradient(120px 120px at 50% 50%, color-mix(in oklab, var(--skill-color), transparent 70%), transparent 72%);
    overflow: hidden;
}

.skill-icon i {
    font-size: 3rem;
    color: var(--skill-color, var(--accent-color));
    text-shadow:
        0 0 12px color-mix(in oklab, var(--skill-color), white 20%),
        0 0 28px color-mix(in oklab, var(--skill-color), black 0%),
        0 0 48px color-mix(in oklab, var(--skill-color), black 0%);
}

.skill-icon::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 22px;
    background: radial-gradient(120px 120px at 50% 50%, color-mix(in oklab, var(--skill-color), transparent 80%), transparent 82%);
    filter: blur(10px);
    opacity: 0.7;
    pointer-events: none;
}

/* animated shine sweep */
.skill-icon .shine {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.08) 35%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0.08) 65%, transparent 100%);
    transform: translateX(-120%);
}

.skill-card:hover .shine {
    animation: sweep 900ms ease forwards;
}

@keyframes sweep {
    to { transform: translateX(120%); }
}

.skill-card h3 {
    margin-top: 0.5rem;
}

/* disable global aura effect on skill cards */
.skill-card::before { display: none !important; }

/* Hover enlarge for skills */
.skill-card:hover .skill-icon { transform: scale(1.08); transition: transform 0.2s ease; }
.skill-card:active .skill-icon { transform: scale(1.12); }

/* contact section */
.contact-container {
    max-width: 600px;
    width: 100%;
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--secondary-color);
    border: 1px solid var(--accent-color-light);
    border-radius: 5px;
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--accent-color-light);
}

/* footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--secondary-color);
    color: var(--text-secondary);
}

/* titles */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    text-align: center;
}

/* projects section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
    padding: 0 1rem;
}

.project-card {
    background-color: var(--card-background);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 5px 20px var(--accent-color-light);
}

.project-header {
    position: relative;
    width: 100%;
}

.project-header img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* removed unused project video */

.project-header h3 {
    padding: 1rem;
    color: var(--accent-color);
    margin: 0;
}

.project-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.project-links a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.project-links a:hover {
    color: var(--accent-color);
}

/* education section */
.education-timeline {
    max-width: 800px;
    width: 100%;
    padding: 0 1rem;
}

.education-card {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.education-card:hover {
    transform: translateY(-5px) rotateX(5deg);
    box-shadow: 0 5px 20px var(--accent-color-light);
}

.education-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.education-card .degree {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.education-card .year {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.education-card .description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.education-card ul {
    list-style: none;
    padding: 0;
}

.education-card ul li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.education-card ul li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

/* experience section */
.experience-container {
    max-width: 1200px;
    width: 100%;
    padding: 0 1rem;
    overflow: visible;
}

.experience-group {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    position: relative;
    overflow: visible;
}

.experience-group:hover {
    transform: translateY(-5px);
}

.experience-group .experience-card {
    background-color: transparent;
    box-shadow: none;
    margin-bottom: 0;
    border-radius: 10px;
    overflow: visible;
}

.experience-group .experience-card:hover {
    transform: none;
    box-shadow: none;
}

.experience-group .experience-gallery {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--accent-color-light);
    border-radius: 10px;
    overflow: visible;
}

.valet-card {
    background-color: var(--card-background);
    border-radius: 10px;
    overflow: visible;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* UPDATED EXPERIENCE IMAGE STYLES */
/* Base experience image container - standardized height */
.experience-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(80% 80% at 50% 50%, rgba(255,255,255,0.02), transparent 60%);
}

/* Landscape variant for wider images (like Invicti) */
.experience-image.landscape {
    height: 300px; /* Same height as regular images for consistency */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Standard experience images - cover mode for good framing */
.experience-image .internship-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

/* Landscape images - contain mode to show full image without cropping */
.experience-image.landscape .internship-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Show full image */
    object-position: center;
    transition: transform 0.3s ease;
}

/* Remove the fit-contain class as it's now handled by the landscape variant */
.experience-image.landscape .internship-img.fit-contain {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.experience-image img,
.project-header img,
.gallery-img {
    cursor: zoom-in;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 2000;
}

.lightbox.hidden { display: none; }

.lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}

.lightbox:after { cursor: zoom-out; }

.experience-content {
    padding: 2rem;
}

.experience-content h3 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.experience-content h4 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.experience-date {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-style: italic;
}

.experience-content ul {
    list-style: none;
    padding: 0;
}

.experience-content ul li {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.experience-content ul li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

.experience-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
    background-color: var(--card-background);
    border-radius: 10px;
}

/* Base gallery images */
.gallery-img {
    width: 100%;
    height: 180px;
    object-fit: cover; /* default fill */
    border-radius: 10px;
    transition: transform 0.3s ease;
}

/* Show full image without cropping when needed */
.gallery-img.fit-contain {
    object-fit: contain;
    background: radial-gradient(80% 80% at 50% 50%, rgba(255,255,255,0.02), transparent 60%);
}

/* Experience gallery - better framing with cover */
.experience-gallery .gallery-img {
    height: 220px;
    object-fit: cover; /* Changed from contain to cover for better framing */
    background: none; /* Remove the background for cover images */
}

/* If you want specific valet images to show full content, add this class to those images */
.experience-gallery .gallery-img.show-full {
    object-fit: contain;
    background: radial-gradient(80% 80% at 50% 50%, rgba(255,255,255,0.02), transparent 60%);
}

/* Force crop/fill when desired */
.gallery-img.fill {
    object-fit: cover;
    background: none;
}

.gallery-img:hover {
    transform: scale(1.05);
}

/* Hover effects */
.experience-image .internship-img:hover,
.experience-gallery .gallery-img:hover {
    transform: scale(1.05);
}

/* removed unused special-case nav link */

/* eagle scout serction */
.eagle-scout-container {
    max-width: 1200px;
    width: 100%;
    padding: 0 1rem;
    background: transparent;
    box-shadow: none;
}

.eagle-scout-content {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.eagle-scout-content:hover {
    transform: translateY(-5px);
}

.eagle-scout-content h3 {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.project-description {
    color: var(--text-secondary);
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.eagle-scout-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    text-align: center;
}

.gallery-item .gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item .gallery-img:hover {
    transform: scale(1.05) rotateX(5deg);
    box-shadow: 0 5px 20px var(--accent-color-light);
}

.gallery-caption {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* mobile nav */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #0b0b0c;
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

}
