:root {
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-color: #7B91D9;
    --background-dark: #151922;
    --background-light: #1E2532;
    --card-background: rgba(30, 37, 50, 0.7);
    --nav-height: 80px;
}

/* Import JetBrains Mono font */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

/* Import Fira Mono font */
@import url('https://fonts.googleapis.com/css2?family=Fira+Mono:wght@400;500;700&display=swap');

/* Import Space Mono font */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

/* Typing animation */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    50% { border-color: transparent }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-light) 100%);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* NAVBAR */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5vw;
    height: var(--nav-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(21, 25, 34, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

nav .left a {
    font-size: 1.5rem;
    font-weight: 600;
}

nav .right {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav .right a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

nav .right a:last-child {
    background: var(--accent-color);
}

/* Active nav link */
nav .right a.active {
    background: var(--accent-color);
}

/* HERO SECTION */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + 2rem) 5vw 2rem;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(123, 145, 217, 0.1), transparent 50%);
    z-index: -1;
}

.hero-section .text {
    flex: 1;
    max-width: 600px;
}

.hero-section .text h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

/* Add the coding style greeting */
.hero-section .text .greeting {
    font-family: 'Space Mono', monospace;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    border-right: 4px solid var(--accent-color);
    letter-spacing: -0.02em;
    animation: 
        typing 2s steps(20, end),
        blink .75s step-end infinite;
    width: fit-content;
}

.hero-section .text .greeting span {
    color: var(--accent-color);
    font-family: inherit;
}

.hero-section .text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-section .text .links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-section .text .links a {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero-section .text .links a:first-child {
    background: var(--accent-color);
}

.hero-section .text .links a:not(:first-child) {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-section .headshot {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-section .headshot img {
    width: min(400px, 90%);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

/* SKILLS SECTION */
.skills-section {
    padding: 5rem 5vw;
    position: relative;
}

.skills-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.skills-section .text {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.skills-section .cells {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skills-section .cells .cell {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.skills-section .cells .cell:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.skills-section .cells .cell img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.skills-section .cells .cell span {
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* TESTIMONY SECTION */
.testimony-section {
    padding: 5rem 5vw;
    background: var(--card-background);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.testimony-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.testimony-section .group {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimony-section .group .person-details {
    flex: 1;
    text-align: center;
}

.testimony-section .group .person-details img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 4px solid var(--accent-color);
}

.testimony-section .group .person-details p:first-of-type {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.testimony-section .group .person-details p:last-of-type {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 500;
}

/* Add bullet point styling */
.testimony-section .group .text ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.testimony-section .group .text ul li {
    margin-bottom: 0.5rem;
}

/* Style the bullet points */
.testimony-section .group .text {
    position: relative;
}

.testimony-section .group .text br + • {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

/* CONTACT SECTION */
.contact-section {
    padding: 5rem 5vw;
    position: relative;
}

.contact-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.contact-section .group {
    display: flex;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-section .group .text {
    flex: 1;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-section .group form {
    flex: 1.5;
    display: flex;
    flex-direction: column;
}

.contact-section .group form input,
.contact-section .group form textarea {
    background: var(--card-background);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-section .group form input:focus,
.contact-section .group form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.contact-section .group form button {
    background: var(--accent-color);
    color: var(--text-primary);
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-section .group form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.contact-section .group form button.success {
    background: #4CAF50;
}

.contact-section .group form button.error {
    background: #f44336;
}

.contact-section .group form button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(123, 145, 217, 0.3);
}

/* Projects Page Styles */
.projects-header {
    padding: calc(var(--nav-height) + 4rem) 5vw 2rem;
    text-align: center;
    background: var(--card-background);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.projects-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    font-family: 'Space Mono', monospace;
}

.projects-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.projects-section {
    padding: 5rem 5vw;
}

.projects-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    font-family: 'Space Mono', monospace;
}

.projects-section h2 span {
    color: var(--accent-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--card-background);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags span {
    background: rgba(123, 145, 217, 0.1);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.project-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-links a:first-child {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.project-links a:hover {
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 850px) {
    .hero-section {
        padding-top: calc(var(--nav-height) + 4rem);
    }
}

@media (max-width: 740px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-section .text .links {
        justify-content: center;
    }

    .testimony-section .group {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .contact-section .group {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    :root {
        --nav-height: 60px;
    }

    nav {
        padding: 0 1rem;
    }

    nav .right a span {
        display: none;
    }

    nav .right {
        gap: 1rem;
    }

    .hero-section,
    .skills-section,
    .testimony-section,
    .contact-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .projects-header {
        padding: calc(var(--nav-height) + 2rem) 1rem 2rem;
    }

    .projects-section {
        padding: 3rem 1rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-links {
        flex-direction: column;
    }

    .project-links a {
        width: 100%;
        justify-content: center;
    }
}

/* Footer Styles */
footer {
    background: var(--background-light);
    padding: 4rem 5vw 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-section a {
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .social-links {
        justify-content: center;
    }

    .footer-section a:hover {
        transform: translateX(0) translateY(-2px);
    }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    nav {
        padding: 0 1.5rem;
    }

    nav .right {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(30, 37, 50, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 1rem;
        gap: 0;
        justify-content: space-around;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
    }

    nav .right a {
        flex-direction: column;
        gap: 0.3rem;
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    nav .right a i {
        font-size: 1.2rem;
    }

    /* Adjust main content to account for bottom nav */
    main {
        padding-bottom: 80px;
    }
}

/* Mobile Hero Section */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column-reverse;
        padding: calc(var(--nav-height) + 2rem) 1.5rem 2rem;
        text-align: center;
        gap: 2rem;
    }

    .hero-section .text {
        max-width: 100%;
    }

    .hero-section .greeting {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        margin-bottom: 1rem;
    }

    .hero-section .text p {
        font-size: 1rem;
    }

    .hero-section .links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-section .headshot {
        width: 80%;
        margin: 0 auto;
    }

    .hero-section .headshot img {
        width: 200px;
        height: 200px;
        object-fit: cover;
    }
}

/* Mobile Skills Section */
@media (max-width: 768px) {
    .skills-section {
        padding: 3rem 1.5rem;
    }

    .skills-section h2 {
        font-size: 2rem;
    }

    .cells {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .cell {
        padding: 1.5rem;
    }
}

/* Mobile Testimony Section */
@media (max-width: 768px) {
    .testimony-section {
        padding: 3rem 1.5rem;
    }

    .testimony-section .group {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .testimony-section .person-details img {
        width: 150px;
        height: 150px;
    }
}

/* Mobile Contact Section */
@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 1.5rem;
    }

    .contact-section .group {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-section form {
        padding: 1.5rem;
    }

    .contact-section form input,
    .contact-section form textarea {
        font-size: 1rem;
        padding: 0.8rem;
    }
}

/* Mobile Projects Page */
@media (max-width: 768px) {
    .projects-header {
        padding: calc(var(--nav-height) + 2rem) 1.5rem 2rem;
    }

    .projects-header h1 {
        font-size: 2rem;
    }

    .projects-section {
        padding: 2rem 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-tags {
        justify-content: center;
    }

    .project-links {
        flex-direction: column;
        gap: 0.8rem;
    }

    .project-links a {
        width: 100%;
        justify-content: center;
    }
}

/* General Mobile Adjustments */
@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }

    h1, h2 {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }

    p {
        font-size: 0.95rem;
    }

    section {
        margin-bottom: 2rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 380px) {
    nav .right a span {
        font-size: 0.7rem;
    }

    nav .right a i {
        font-size: 1rem;
    }

    .hero-section .greeting {
        font-size: 1.5rem;
    }

    .cells {
        grid-template-columns: 1fr;
    }
}

/* Tablet Adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-section {
        padding: calc(var(--nav-height) + 2rem) 3rem;
    }

    .hero-section .headshot img {
        width: 300px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Landscape Mode */
@media (max-height: 500px) and (orientation: landscape) {
    nav .right {
        padding: 0.5rem;
    }

    nav .right a {
        padding: 0.3rem;
    }

    .hero-section {
        min-height: auto;
        padding: calc(var(--nav-height) + 1rem) 1.5rem;
    }
}

/* Design Gallery Styles */
.gallery-header {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 2rem;
}
.gallery-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.gallery-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.gallery-section {
    padding: 2rem 5vw 4rem;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.gallery-item {
    background: var(--card-background);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.gallery-item:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.gallery-video {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #222;
    border-radius: 0;
    pointer-events: none;
}

/* Play Button Overlay for Gallery Videos */
.gallery-item {
    position: relative;
}
.gallery-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 64px;
    height: 64px;
    background: rgba(30, 37, 50, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    transition: background 0.2s, transform 0.2s;
    pointer-events: none;
}
.gallery-item:hover .gallery-play-btn {
    background: var(--accent-color);
    transform: translate(-50%, -50%) scale(1.08);
}
.gallery-play-btn i {
    color: #fff;
    font-size: 2rem;
    pointer-events: none;
    position: relative;
    left: 0.12em;
}

/* Video Modal Styles */
#video-modal-container {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
}
#video-modal-container.active {
    display: flex;
}
.video-modal {
    background: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    position: relative;
    max-width: 800px;
    width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.video-modal video {
    width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    background: #111;
}
.video-modal .close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}
.video-modal .close-modal:hover {
    color: var(--accent-color);
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .gallery-video {
        height: 180px;
    }
    .video-modal {
        padding: 1rem 0.5rem 0.5rem 0.5rem;
    }
}

.gallery-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 0;
    display: block;
    background: #222;
}

.modal-iframe-wrapper {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}
#modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    background: #111;
}

@media (max-width: 600px) {
    .gallery-thumb {
        height: 180px;
    }
    .modal-iframe-wrapper {
        max-width: 100vw;
        aspect-ratio: 16/9;
    }
}

.gallery-slider-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--card-background);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    min-height: 260px;
    padding: 1.5rem 0.5rem 1rem 0.5rem;
}
.slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 350px;
    position: relative;
}
.slider-image {
    width: 100%;
    max-width: 320px;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    background: #222;
    transition: opacity 0.3s;
}
.slider-arrow {
    background: rgba(30, 37, 50, 0.7);
    border: none;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    margin: 0 0.5rem;
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
}
.slider-arrow:hover {
    background: var(--accent-color);
    transform: scale(1.08);
}
.slider-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}
.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #888;
    display: inline-block;
    transition: background 0.2s;
    cursor: pointer;
}
.slider-dot.active {
    background: var(--accent-color);
}
@media (max-width: 600px) {
    .gallery-slider-panel {
        min-height: 180px;
        padding: 1rem 0.2rem 0.5rem 0.2rem;
    }
    .slider-container {
        max-width: 95vw;
    }
    .slider-image {
        max-width: 95vw;
        height: 140px;
    }
}

.gallery-photo-multi {
    position: relative;
    cursor: pointer;
}
.gallery-multi-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: rgba(30, 37, 50, 0.7);
    border-radius: 6px;
    padding: 4px 7px 2px 7px;
    color: #fff;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}
.gallery-photo-multi:hover .gallery-multi-icon,
.gallery-photo-multi:focus .gallery-multi-icon {
    opacity: 1;
}

/* Single Photo Modal Styles */
.photo-modal-single {
    background: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    position: relative;
    max-width: 600px;
    width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.photo-modal-single .close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}
.photo-modal-single .close-modal:hover {
    color: var(--accent-color);
}
.photo-modal-single .modal-photo-image {
    width: 100%;
    max-width: 480px;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 12px;
    background: #111;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
@media (max-width: 600px) {
    .photo-modal-single {
        padding: 1rem 0.2rem 0.5rem 0.2rem;
        max-width: 98vw;
    }
    .photo-modal-single .modal-photo-image {
        max-width: 95vw;
        max-height: 40vh;
        margin: 0 auto;
    }
}

/* --- MODAL CONTAINER: ENSURE THIS IS LAST FOR OVERRIDE --- */
.modal-container {
    display: none;
    position: fixed;
    z-index: 2100;
    left: 0; top: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
}
.modal-container.active {
    display: flex;
}