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

:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    --accent: #00c6ff;
    --border: #343434;
    --font-mono: 'Unbounded', sans-serif;
}

[data-theme="light"] {
    --bg-primary: #dddddd;
    --bg-secondary: #f1f1f1;
    --text-primary: #1a1a1a;
    --text-secondary: #333333;
    --text-muted: #666666;
    --accent: #ff4757;
    --border: #e0e0e0;
}

html {
    scroll-behavior: auto;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: var(--font-mono);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: transform 0.3s ease, background 0.3s ease;
}

[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.95);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 2rem;
    max-width: 100%;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-block;
    animation: gentle-pulse 3s ease-in-out infinite;
}

.logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    z-index: -1;
    opacity: 0;
}

.logo:hover {
    color: var(--accent);
    animation: intense-pulse-glow 1s ease-in-out infinite alternate;
}

.logo:hover::before {
    width: 60px;
    height: 60px;
    opacity: 0.3;
    animation: ripple 1.5s ease-out infinite;
}

@keyframes gentle-pulse {

    0%,
    100% {
        text-shadow:
            0 0 5px rgba(0, 198, 255, 0.3),
            0 0 10px rgba(0, 198, 255, 0.2),
            0 0 15px rgba(0, 198, 255, 0.1);
        transform: scale(1);
    }

    50% {
        text-shadow:
            0 0 8px rgba(0, 198, 255, 0.4),
            0 0 15px rgba(0, 198, 255, 0.3),
            0 0 20px rgba(0, 198, 255, 0.2);
        transform: scale(1.02);
    }
}

@keyframes intense-pulse-glow {
    0% {
        text-shadow:
            0 0 10px var(--accent),
            0 0 20px var(--accent),
            0 0 30px var(--accent),
            0 0 40px var(--accent);
        filter: brightness(1.2);
    }

    100% {
        text-shadow:
            0 0 15px var(--accent),
            0 0 25px var(--accent),
            0 0 35px var(--accent),
            0 0 50px var(--accent);
        filter: brightness(1.5);
    }
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

[data-theme="light"] .logo {
    animation: gentle-pulse-light 3s ease-in-out infinite;
}

@keyframes gentle-pulse-light {

    0%,
    100% {
        text-shadow:
            0 0 5px rgba(255, 71, 87, 0.3),
            0 0 10px rgba(255, 71, 87, 0.2),
            0 0 15px rgba(255, 71, 87, 0.1);
        transform: scale(1);
    }

    50% {
        text-shadow:
            0 0 8px rgba(255, 71, 87, 0.4),
            0 0 15px rgba(255, 71, 87, 0.3),
            0 0 20px rgba(255, 71, 87, 0.2);
        transform: scale(1.02);
    }
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    position: relative;
    cursor: default;
}

.hero-title .accent-letter {
    display: inline-block;
    color: var(--text-primary);
    animation: accent-float 4s ease-in-out infinite;
}

.hero-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: shimmer 6s ease-in-out infinite;
    pointer-events: none;
}

[data-theme="light"] .hero-title::before {
    background: linear-gradient(45deg, transparent 30%, rgba(0, 0, 0, 0.1) 50%, transparent 70%);
}

@keyframes accent-float {

    0%,
    100% {
        transform: translateY(0px);
    }

    25% {
        transform: translateY(-3px);
    }

    50% {
        transform: translateY(-5px);
    }

    75% {
        transform: translateY(-3px);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: subtitle-fade-in 1.5s ease-out 0.5s both;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    animation: subtitle-fade-in 1.5s ease-out 1s both;
}

@keyframes subtitle-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Social Icons */
.hero-social {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    animation: subtitle-fade-in 1.5s ease-out 1.5s both;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: scroll-indicator-fade-in 2s ease-out 2s both;
}

.scroll-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: lowercase;
    letter-spacing: 1px;
    animation: float-horizontal 8s ease-in-out infinite;
}

.scroll-symbol {
    color: var(--accent);
    font-size: 0.6rem;
    animation: symbol-pulse 2s ease-in-out infinite;
}

.scroll-word {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.scroll-icon {
    color: var(--text-muted);
    font-size: 1.2rem;
    animation: bounce-gentle 2s ease-in-out infinite;
}

.scroll-indicator:hover .scroll-word {
    opacity: 1;
    color: var(--text-secondary);
}

.scroll-indicator:hover .scroll-icon {
    color: var(--accent);
}

@keyframes scroll-indicator-fade-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes float-horizontal {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

@keyframes symbol-pulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes bounce-gentle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Full width for artworks section */
#artworks.section {
    max-width: 100%;
    padding: 5rem 0;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--accent);
}

/* ============================================================
   WORK GRID — PINTEREST / MASONRY LAYOUT
   ============================================================ */
.work-grid {
    columns: 2;
    column-gap: 3mm;
    margin-top: 3rem;
    width: 100%;
}

.work-item {
    position: relative;
    overflow: hidden;
    break-inside: avoid;
    margin-bottom: 3mm;
    cursor: pointer;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.work-item.reveal {
    opacity: 1;
}

.work-item:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.work-item img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(250, 244, 244, 0.288);
    backdrop-filter: blur(0.2px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0s ease;
    padding: 1rem;
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-title {
    color: #ffffff;
    font-size: 1rem;
    text-align: center;
    padding: 1rem;
    font-weight: 200;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
    text-transform: capitalize;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-item {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.service-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.service-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 1rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-form-container {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0, 198, 255, 0.1);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    pointer-events: none;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    padding: 0 0.5rem;
}

.form-group input:focus+label,
.form-group textarea:focus+label,
.form-group input:valid+label,
.form-group textarea:valid+label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.8rem;
    color: var(--accent);
}

.submit-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover {
    box-shadow: 0 5px 15px rgba(0, 198, 255, 0.3);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(0);
}

[data-theme="light"] .submit-btn:hover {
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
}

/* Contact Social */
.contact-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-social h3 {
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-social .social-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border);
    border-top: 2px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.x-icon {
    font-weight: bold;
    font-size: 1.2em;
    font-family: serif;
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.modal-image.slide-out-left {
    animation: slideOutLeft 0.25s ease-in-out;
}

.modal-image.slide-out-right {
    animation: slideOutRight 0.25s ease-in-out;
}

.modal-image.slide-in-left {
    animation: slideInLeft 0.25s ease-in-out;
}

.modal-image.slide-in-right {
    animation: slideInRight 0.25s ease-in-out;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: hidden;
    touch-action: none;
}

.modal.active {
    opacity: 1;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-controls-left {
    position: absolute;
    top: 30px;
    left: 30px;
    display: flex;
    gap: 20px;
    z-index: 2001;
}

.modal-controls-right {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 2001;
}

.modal-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    padding: 8px;
}

.modal-btn:hover {
    color: white;
    transform: scale(1.1);
}

.close-btn:hover {
    color: #ff4757;
}

.fullscreen-btn:hover {
    color: #00c6ff;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 2rem;
    z-index: 2001;
    padding: 20px;
}

.modal-nav:hover {
    color: white;
    transform: translateY(-50%) scale(1.2);
}

.modal-nav.prev {
    left: 20px;
}

.modal-nav.next {
    right: 20px;
}

.modal-title {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 400;
    text-align: center;
    font-family: var(--font-mono);
    white-space: nowrap;
}

/* Modal is always dark regardless of page theme */
[data-theme="light"] .modal-title {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .modal-btn {
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .modal-btn:hover {
    color: white;
}

[data-theme="light"] .modal-nav {
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .modal-nav:hover {
    color: white;
}

/* ============================================================
   RESPONSIVE — MASONRY COLUMN COUNTS
   ============================================================ */
@media (min-width: 768px) {
    .work-grid {
        columns: 2;
    }
}

@media (min-width: 1100px) {
    .work-grid {
        columns: 3;
    }
}

@media (min-width: 1500px) {
    .work-grid {
        columns: 4;
    }
}

/* ============================================================
   RESPONSIVE — TABLET (max 768px)
   ============================================================ */
@media (max-width: 768px) {
    .nav {
        padding: 0.2rem 1rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        transform: translateY(-100%);
        width: 100%;
        height: 100dvh;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 1001;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        will-change: transform;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1002;
        position: fixed;
        top: 0.6rem;
        right: 1rem;
    }

    .work-grid {
        column-gap: 2mm;
    }

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

    .logo {
        font-size: 1.6rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-social {
        gap: 1rem;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .contact-social .social-icon {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }

    .social-icons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .scroll-indicator {
        bottom: 2rem;
    }

    .scroll-text {
        font-size: 0.8rem;
        gap: 0.6rem;
    }

    /* Modal */
    .modal-controls-left {
        top: 20px;
        left: 20px;
        gap: 15px;
    }

    .modal-controls-right {
        top: 20px;
        right: 20px;
    }

    .modal-btn {
        font-size: 1.3rem;
        padding: 6px;
    }

    .modal-nav {
        font-size: 1.8rem;
        padding: 15px;
    }

    .modal-nav.prev {
        left: 15px;
    }

    .modal-nav.next {
        right: 15px;
    }

    .modal-title {
        bottom: 25px;
        font-size: 1rem;
        max-width: 90%;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 480px)
   ============================================================ */
@media (max-width: 480px) {
    .section {
        padding: 3rem 1rem;
    }

    .hero {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.6rem;
    }

    .hero-social {
        flex-wrap: wrap;
    }

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

    .scroll-indicator {
        bottom: 1.5rem;
    }

    .scroll-text {
        font-size: 0.75rem;
        gap: 0.5rem;
    }

    .scroll-icon {
        font-size: 1rem;
    }

    .modal-controls-left {
        top: 15px;
        left: 15px;
        gap: 12px;
    }

    .modal-controls-right {
        top: 15px;
        right: 15px;
    }

    .modal-btn {
        font-size: 1.2rem;
    }

    .modal-nav {
        font-size: 1.6rem;
        padding: 12px;
    }

    .modal-nav.prev {
        left: 10px;
    }

    .modal-nav.next {
        right: 10px;
    }

    .modal-title {
        bottom: 20px;
        font-size: 0.9rem;
    }
}

/* ============================================================
   CUSTOM SCROLLBAR
   ============================================================ */

/* Hide scrollbar on touch/mobile devices */
@media (hover: none) and (pointer: coarse) {
    html {
        scrollbar-width: none;
    }

    html::-webkit-scrollbar {
        display: none;
    }
}

/* Styled scrollbar for desktop/non-touch */
@media (hover: hover) and (pointer: fine) {
    html::-webkit-scrollbar {
        width: 6px;
    }

    /* Dark mode (default) */
    html::-webkit-scrollbar-track {
        background: #2a2a2a;
    }

    html::-webkit-scrollbar-thumb {
        background: #555555;
        border-radius: 0;
    }

    html::-webkit-scrollbar-thumb:hover {
        background: #00c6ff;
    }

    /* Light mode */
    html[data-theme="light"]::-webkit-scrollbar-track {
        background: #e0e0e0;
    }

    html[data-theme="light"]::-webkit-scrollbar-thumb {
        background: #bbbbbb;
        border-radius: 0;
    }

    html[data-theme="light"]::-webkit-scrollbar-thumb:hover {
        background: #ff4757;
    }
}

/* ============================================================
   Lenis Recommended CSS
   ============================================================ */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}