/* ===== CSS Variables ===== */
:root {
    --primary-color: #60a5fa;
    --topbar-height: 90px;
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.7);
    --bg-black: #000000;
    --bg-overlay: rgba(0, 0, 0, 0.95);
    --bg-overlay-light: rgba(0, 0, 0, 0.75);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--topbar-height);
}

/* Prevent initial scroll jump on page load */
html.initial-load {
    scroll-behavior: auto;
    overflow-y: hidden;
}

html.initial-load body {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    overflow-y: scroll;
}

body {
    font-family: "Epunda Slab", serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    color: white;
    background: var(--bg-black);
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

h2, h3, .project-title {
    font-family: 'Epunda Slab', serif;
}

/* ===== Topbar Navigation ===== */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: background 0.3s ease;
}

.topbar.scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 2rem;
    height: var(--topbar-height);
}

.topbar-content img {
    height: 65px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    opacity: 0.7;
    transition: opacity 0.3s ease, color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    opacity: 1;
    color: var(--primary-color);
}

.nav-links a.active::after {
    width: 100%;
}

/* ===== Container & Sections ===== */
.container {
    padding-top: var(--topbar-height);
    width: 100%;
}

section {
    width: 100%;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Category Filter Bar ===== */
.filter-toggle-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    opacity: 0.7;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.filter-toggle-btn:hover {
    opacity: 1;
}

.filter-toggle-btn.active {
    opacity: 1;
    color: var(--primary-color);
}

.filter-bar {
    position: sticky;
    top: var(--topbar-height);
    z-index: 90;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 6px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    max-height: 120px;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.filter-bar--collapsed {
    max-height: 0;
    padding: 0;
}

.filter-btn {
    padding: 0.35rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
}

.gallery-item.filter-hidden {
    display: none;
}

/* ===== Projects Masonry Gallery ===== */
.projects-section {
    padding: 0 6px;
}

.masonry-gallery {
    columns: 4;
    column-gap: 6px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 6px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.video-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .video-badge {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Project Info Overlay */
.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
    transform: translateY(100%);
    transition: transform 0.5s var(--transition-smooth), opacity 0.5s var(--transition-smooth);
    opacity: 0;
}

.gallery-item:hover .project-info {
    transform: translateY(0);
    opacity: 1;
}

.project-category {
    display: block;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transform: translateY(12px);
    transition: transform 0.4s var(--transition-smooth) 0.05s;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    transform: translateY(12px);
    transition: transform 0.4s var(--transition-smooth) 0.1s;
}

.project-description {
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0.85;
    transform: translateY(12px);
    transition: transform 0.4s var(--transition-smooth) 0.15s;
}

.project-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    transform: translateY(12px);
    transition: transform 0.4s var(--transition-smooth) 0.2s;
}

.gallery-item:hover .project-title,
.gallery-item:hover .project-category,
.gallery-item:hover .project-description,
.gallery-item:hover .project-count {
    transform: translateY(0);
}

/* ===== Thumbnails Overlay ===== */
.thumbnails-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.thumbnails-overlay.active {
    opacity: 1;
    visibility: visible;
}

.thumbnails-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    transform: scale(0.95);
    transition: transform 0.4s ease;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.thumbnails-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.thumbnails-overlay.active .thumbnails-content {
    transform: scale(1);
}

.project-details {
    color: white;
}

.project-details h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: slideInDown 0.6s ease;
}

.project-details .category {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    animation: slideInDown 0.6s ease 0.1s backwards;
}

.project-details .description {
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    animation: slideInDown 0.6s ease 0.2s backwards;
}

.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 150px);
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.thumb {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.5s ease backwards;
}

.thumb:nth-child(1) { animation-delay: 0.1s; }
.thumb:nth-child(2) { animation-delay: 0.15s; }
.thumb:nth-child(3) { animation-delay: 0.2s; }
.thumb:nth-child(4) { animation-delay: 0.25s; }
.thumb:nth-child(5) { animation-delay: 0.3s; }
.thumb:nth-child(6) { animation-delay: 0.35s; }

.thumb:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(96, 165, 250, 0.3);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb .video-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 50%;
    font-size: 1.5rem;
    pointer-events: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.thumb:hover .video-badge {
    opacity: 1;
}

/* ===== Image Overlay (Full View) ===== */
.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    z-index: 1000;
    display: none;
}

.image-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-content {
    position: relative;
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-image {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-image img,
.overlay-image video {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s ease;
}

.overlay-image video {
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.overlay-image img.loaded,
.overlay-image video.loaded {
    opacity: 1;
    transform: scale(1);
}

.overlay-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 1rem 1.2rem;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 1001;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.overlay-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.overlay-nav.prev {
    left: 20px;
}

.overlay-nav.next {
    right: 20px;
}

.overlay-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.overlay-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) rotate(90deg);
}

/* ===== About Section ===== */
.about-section {
    min-height: 100vh;
    padding: 6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
}

.about-content {
    max-width: 900px;
    width: 100%;
}

.about-section h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-section.visible h2 {
    opacity: 1;
    transform: translateY(0);
}

.about-section h3 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    color: #ffffff;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.about-section.visible h3 {
    opacity: 1;
    transform: translateY(0);
}

/* Sequential h3 delays */
.about-section h3:nth-of-type(1) { transition-delay: 0.25s; }
.about-section h3:nth-of-type(2) { transition-delay: 0.7s; }
.about-section h3:nth-of-type(3) { transition-delay: 1.1s; }

.about-section p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.about-section.visible p {
    opacity: 1;
    transform: translateY(0);
}

/* First two intro paragraphs (direct children of about-content) */
.about-content > p:nth-of-type(1) { transition-delay: 0.1s; }
.about-content > p:nth-of-type(2) { transition-delay: 0.15s; }

/* Paragraphs within sections after h3 - handled by JavaScript for proper sequencing */

.about-section ul {
    list-style: none;
    padding-left: 0;
    margin: 2rem 0;
}

.about-section ul li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.about-section.visible ul li {
    opacity: 1;
    transform: translateX(0);
}

.about-section ul li:nth-child(1) { transition-delay: 0.35s; }
.about-section ul li:nth-child(2) { transition-delay: 0.4s; }
.about-section ul li:nth-child(3) { transition-delay: 0.45s; }
.about-section ul li:nth-child(4) { transition-delay: 0.5s; }
.about-section ul li:nth-child(5) { transition-delay: 0.55s; }

.about-section ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* ===== Contact Section ===== */
.contact-section {
    min-height: 100vh;
    padding: 6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #000000 100%);
}

.contact-content {
    max-width: 1000px;
    width: 100%;
}

.contact-section h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-section.visible h2 {
    opacity: 1;
    transform: translateY(0);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.5s ease 0.15s, transform 0.5s ease 0.15s;
}

.contact-section.visible .contact-info {
    opacity: 1;
    transform: translateX(0);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    opacity: 0;
    transform: translateX(-20px);
    transition: background 0.3s ease, transform 0.4s ease, opacity 0.4s ease;
}

.contact-section.visible .contact-item {
    opacity: 1;
    transform: translateX(0);
}

.contact-item:nth-child(1) { transition-delay: 0.25s; }
.contact-item:nth-child(2) { transition-delay: 0.35s; }
.contact-item:nth-child(3) { transition-delay: 0.45s; }

.contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(10px);
}

.contact-item i {
    font-size: 1.3rem;
    color: var(--primary-color);
    width: 25px;
    text-align: center;
    padding-top: 0.3rem;
}

.contact-item p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 0;
    flex: 1;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease 0.15s, transform 0.5s ease 0.15s;
}

.contact-section.visible .contact-form {
    opacity: 1;
    transform: translateX(0);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 1.1rem;
    font-family: "Epunda Slab", serif;
    opacity: 0;
    transform: translateY(15px);
    transition: border-color 0.3s ease, background 0.3s ease, opacity 0.4s ease, transform 0.4s ease;
}

.contact-section.visible .contact-form input,
.contact-section.visible .contact-form textarea {
    opacity: 1;
    transform: translateY(0);
}

.contact-form input:nth-of-type(1) { transition-delay: 0.25s; }
.contact-form input:nth-of-type(2) { transition-delay: 0.35s; }
.contact-form textarea { transition-delay: 0.45s; }

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: "Epunda Slab", serif;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(15px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease 0.55s;
}

.contact-section.visible .submit-btn {
    opacity: 1;
    transform: translateY(0);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(96, 165, 250, 0.4);
}

/* Form Messages */
.success-message,
.error-message {
    padding: 1.2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    animation: slideInDown 0.5s ease;
}

.success-message {
    background: rgba(40, 167, 69, 0.15);
    border: 2px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
}

.error-message {
    background: rgba(220, 53, 69, 0.15);
    border: 2px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(96, 165, 250, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(96, 165, 250, 0.7);
}

/* ===== Burger Button ===== */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.burger-btn span {
    display: block;
    height: 2px;
    width: 22px;
    background: white;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-btn.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== Mobile Menu Overlay ===== */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.65);
}

.mobile-menu.open {
    display: block;
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(85vw, 320px);
    background: rgba(8, 8, 8, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.25rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.animating .mobile-menu-panel,
.mobile-menu.visible .mobile-menu-panel {
    transform: translateX(0);
}

.mobile-menu-close {
    align-self: flex-end;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.6;
    line-height: 1;
    padding: 0;
    margin-bottom: 2rem;
    transition: opacity 0.2s;
}

.mobile-menu-close:hover {
    opacity: 1;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    margin-bottom: 2.5rem;
}

.mobile-nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 500;
    opacity: 0.75;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: opacity 0.2s, color 0.2s;
}

.mobile-nav-links a:last-child {
    border-bottom: none;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    opacity: 1;
    color: var(--primary-color);
}

.mobile-filters-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-filters-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}

.mobile-filter-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mobile-filter-list .filter-btn {
    text-align: left;
    border-radius: 6px;
    width: 100%;
    font-size: 0.9rem;
    padding: 0.55rem 0.9rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .masonry-gallery {
        columns: 3;
    }
}

@media (max-width: 768px) {
    :root {
        --topbar-height: 70px;
    }

    /* Switch to burger menu */
    .nav-links {
        display: none;
    }

    .burger-btn {
        display: flex;
    }

    /* Hide desktop filter bar entirely on mobile */
    .filter-bar {
        display: none !important;
    }

    .masonry-gallery {
        columns: 2;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .thumbnails-grid {
        grid-template-columns: repeat(auto-fill, 120px);
    }

    .thumb {
        width: 120px;
        height: 120px;
    }

    .about-section h2,
    .contact-section h2 {
        font-size: 2.5rem;
    }

    .about-section,
    .contact-section {
        padding: 4rem 1.5rem;
    }

    .topbar-content img {
        height: 55px;
    }
}

@media (max-width: 480px) {
    :root {
        --topbar-height: 60px;
    }

    .about-section h2,
    .contact-section h2 {
        font-size: 2rem;
    }

    .project-title {
        font-size: 0.95rem;
    }

    .topbar-content {
        padding: 0.85rem 1rem;
    }

    .topbar-content img {
        height: 44px;
    }

    .masonry-gallery {
        columns: 1;
    }
}
