@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;700&display=swap');

:root {
    --bg-main: #0a0a0a;
    --bg-secondary: #141414;
    --text-primary: #ededed;
    --text-muted: #888888;
    --accent: #d4af37;
    /* Architectural Gold */
    --accent-glow: rgba(212, 175, 55, 0.2);
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100px;
    /*padding: 0 2%;*/
    padding-top: 20px;
    padding-right: 5%;
    padding-bottom: 10px;
    padding-left: 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.9), transparent);
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-primary);
    text-decoration: none;
}

.logo span {
    color: var(--accent);
}

.main-logo {
    filter: invert(1) brightness(1.7);
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUp 1s ease 0.5s forwards;
}

.hero h1 {
    font-size: 5vw;
    font-weight: 200;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 1;
    animation: slowZoom 20s infinite alternate;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 2px;
    animation: fadeUp 1s ease 1.5s forwards, bounce 2s infinite 2.5s;
    opacity: 0;
}

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background: var(--text-muted);
    margin-top: 10px;
}

/* Projects Showcase */
.projects-section {
    padding: 10rem 5%;
    position: relative;
    min-height: 100vh;
}

.section-title {
    font-size: 3rem;
    font-weight: 200;
    margin-bottom: 5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-secondary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(50px);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.6s ease, opacity 0.6s ease;
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 40px var(--accent-glow);
}

.project-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.project-card:hover .project-info {
    transform: translateY(0);
}

.project-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.4s ease 0.1s;
}

.project-card:hover .project-desc {
    opacity: 1;
}

/* Project Click Animations */
.project-click-ripple {
    position: fixed;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    z-index: 1999;
    pointer-events: none;
    animation: rippleExpand 0.7s cubic-bezier(0.8, 0, 0.2, 1) forwards;
    opacity: 0.95;
    transition: opacity 0.5s ease;
}

@keyframes rippleExpand {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        transform: translate(-50%, -50%) scale(2500); 
    }
}

.project-card.card-clicked {
    animation: cardPulse 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes cardPulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.92); filter: brightness(1.5); }
    100% { transform: scale(1.1); opacity: 0; }
}

/* Animation: Morph */
.project-click-morph {
    position: fixed;
    border-radius: 50%;
    z-index: 1999;
    pointer-events: none;
    box-shadow: 0 0 100px var(--accent);
    animation: morphExpand 0.8s cubic-bezier(0.8, 0, 0.2, 1) forwards;
}
@keyframes morphExpand {
    0% { transform: translate(-50%, -50%) scale(1); filter: brightness(2) hue-rotate(90deg); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(100); opacity: 0; filter: brightness(1) hue-rotate(0deg); }
}
.project-card.card-morph {
    animation: cardMorphPop 0.4s forwards;
}
@keyframes cardMorphPop {
    0% { transform: scale(1); }
    100% { transform: scale(0); opacity: 0; }
}

/* Animation: Glitch */
.project-card.card-glitch {
    animation: glitchOut 0.6s steps(10) forwards;
}
@keyframes glitchOut {
    0% { transform: translate(0); filter: hue-rotate(0deg); opacity: 1; }
    20% { transform: translate(-20px, 10px) skewX(20deg); filter: hue-rotate(90deg); }
    40% { transform: translate(20px, -10px) skewX(-20deg); filter: hue-rotate(180deg); opacity: 0.8; }
    60% { transform: translate(-10px, 20px) skewX(10deg); filter: hue-rotate(270deg); }
    80% { transform: translate(10px, -20px) skewX(-10deg); filter: hue-rotate(360deg); }
    100% { transform: translate(0) scale(1.5); opacity: 0; filter: blur(5px); }
}
.glitch-flash {
    position: fixed;
    top:0; left:0; width:100%; height:100%;
    background: white;
    z-index: 1999;
    pointer-events: none;
    animation: whiteFlash 0.6s ease forwards;
}
@keyframes whiteFlash {
    0% { opacity: 0.8; mix-blend-mode: exclusion; }
    100% { opacity: 0; }
}

/* Animation: Fold */
.project-card.card-fold {
    transform-origin: center right;
    animation: cardFold 0.7s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}
@keyframes cardFold {
    0% { transform: perspective(1000px) rotateY(0deg) scale(1); opacity: 1; }
    100% { transform: perspective(1000px) rotateY(-90deg) scale(1.2); opacity: 0; }
}

/* Animation: Zoom */
.project-card.card-zoom {
    animation: extremeZoom 0.8s cubic-bezier(0.8, 0, 0.2, 1) forwards;
    transform-origin: center center;
    z-index: 1999 !important;
}
@keyframes extremeZoom {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(10); opacity: 0; filter: blur(20px); }
}

/* Admin Portal Styles */
.admin-container {
    padding: 10rem 5%;
    max-width: 800px;
    margin: 0 auto;
}

.admin-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.admin-title {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* File Upload Dropzone */
.file-dropzone {
    border: 2px dashed var(--glass-border);
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
}

.file-dropzone:hover,
.file-dropzone.dragover {
    border-color: var(--accent);
    background: rgba(212, 175, 55, 0.05);
}

.file-dropzone input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-dropzone p {
    color: var(--text-muted);
    margin-top: 1rem;
}

.file-preview {
    margin-top: 1rem;
    max-height: 200px;
    border-radius: 8px;
    display: none;
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 1.2rem;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #e6c863;
    box-shadow: 0 0 20px var(--accent-glow);
}

.msg {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.msg.success {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.msg.error {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes slowZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

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

/* Loader */
.loader {
    width: 48px;
    height: 48px;
    border: 3px solid var(--glass-border);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.loader::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-bottom-color: var(--accent);
}

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

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

.loader-container {
    text-align: center;
    padding: 3rem;
    width: 100%;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.4s ease;
    overflow-y: auto;
}

.modal.open {
    display: block;
    opacity: 1;
}

.modal-content {
    background-color: transparent;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    position: relative;
    animation: fadeUp 0.5s ease forwards;
}

.close-modal {
    color: var(--text-muted);
    float: right;
    font-size: 40px;
    font-weight: 200;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent);
    text-decoration: none;
}

.modal-body {
    clear: both;
    margin-top: 2rem;
}

.modal-info {
    text-align: center;
    margin-bottom: 3rem;
}

.modal-info h2 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.modal-info p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

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

@media (max-width: 768px) {
    .modal-gallery {
        grid-template-columns: 1fr;
    }
}

.gallery-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease;
}

.gallery-img:hover {
    transform: scale(1.02);
}

/* Manage Items */
.manage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    margin-bottom: 1rem;
    transition: background 0.3s ease;
}

.manage-item:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: var(--accent);
}

/* Hero Search & Projects Header */
.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.projects-header .section-title {
    margin-bottom: 0;
}

.search-container {
    flex: 1;
    max-width: 400px;
}

#project-search {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#project-search:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* Hero Advanced Typography */
.hero-text-back {
    font-size: 10vw;
    line-height: 0.8;
    margin: 0;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: none;
    z-index: 1;
    white-space: nowrap;
    user-select: none;
}

.hero-text-front {
    font-size: 10vw;
    line-height: 0.8;
    margin: 0;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
    mask-image: linear-gradient(to bottom, black 40%, transparent 80%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 80%);
}

.hero-content {
    position: relative;
}

/* Sidebar Dashboard UI */
.nav-tab {
    width: 100%;
    text-align: left;
    padding: 1rem 1.5rem;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

/* Custom Cursor Animation */
body,
a,
button,
input,
textarea,
label {
    cursor: none !important;
}

.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* --- 1. Architectural Ring Cursor (Classic) --- */
body.cursor-style-ring .cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}
body.cursor-style-ring .cursor-ring {
    width: 35px;
    height: 35px;
    border: 1px solid var(--accent);
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease, transform 0.1s linear;
}
body.cursor-style-ring .cursor-ring.hovering {
    width: 60px;
    height: 60px;
    background-color: rgba(212, 175, 55, 0.1);
    border-width: 2px;
}

/* --- 2. Glowing Orb Cursor --- */
body.cursor-style-orb .cursor-dot {
    display: none;
}
body.cursor-style-orb .cursor-ring {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 70%);
    border: none;
    filter: blur(4px);
    transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.4s ease, transform 0.15s linear;
    mix-blend-mode: screen;
}
body.cursor-style-orb .cursor-ring.hovering {
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.5) 0%, rgba(212, 175, 55, 0) 70%);
    filter: blur(8px);
}

/* --- 3. Geometric Crosshair Cursor --- */
body.cursor-style-crosshair .cursor-dot {
    width: 4px;
    height: 4px;
    background-color: #fff;
    border-radius: 0;
    mix-blend-mode: difference;
}
body.cursor-style-crosshair .cursor-ring {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
body.cursor-style-crosshair .cursor-ring::before,
body.cursor-style-crosshair .cursor-ring::after {
    content: '';
    position: absolute;
    background: #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: background 0.3s ease;
}
body.cursor-style-crosshair .cursor-ring::before {
    width: 100%;
    height: 1px;
}
body.cursor-style-crosshair .cursor-ring::after {
    width: 1px;
    height: 100%;
}
body.cursor-style-crosshair .cursor-ring.hovering {
    transform: translate(-50%, -50%) rotate(45deg) scale(1.3);
    background-color: transparent;
}
body.cursor-style-crosshair .cursor-ring.hovering::before,
body.cursor-style-crosshair .cursor-ring.hovering::after {
    background: var(--accent);
    mix-blend-mode: normal;
}

/* Modal Open Project Featured Image */
.modal-gallery .gallery-img:first-child {
    grid-column: 1 / -1;
    /* spans entire width of grid */
    width: 100%;
    height: auto;
    object-fit: contain;
    /* Prevents cropping */
    margin-bottom: 2rem;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.lightbox.open {
    display: block;
    opacity: 1;
}

.lightbox-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center center;
    cursor: grab;
}

#lightbox-img:active {
    cursor: grabbing;
}

#lightbox-img.animating {
    opacity: 0;
    transform: scale(0.95);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--text-muted);
    font-size: 40px;
    font-weight: 200;
    cursor: pointer;
    z-index: 3010;
    transition: color 0.3s ease;
}

.close-lightbox:hover {
    color: var(--accent);
}

.lightbox-controls {
    position: absolute;
    top: 30px;
    left: 40px;
    display: flex;
    gap: 15px;
    z-index: 3010;
}

.lightbox-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.lightbox-btn:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    transform: scale(1.1);
}

.nav-lightbox {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3010;
    transition: all 0.3s ease;
}

.nav-lightbox:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

.nav-lightbox.left {
    left: 40px;
}

.nav-lightbox.right {
    right: 40px;
}

/* Lightbox Mobile Adjustments */
@media (max-width: 768px) {
    .nav-lightbox {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .nav-lightbox.left {
        left: 10px;
    }

    .nav-lightbox.right {
        right: 10px;
    }

    .lightbox-controls {
        top: 20px;
        left: 20px;
        gap: 10px;
    }

    .lightbox-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .close-lightbox {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }

    #lightbox-img {
        max-width: 100%;
        max-height: 80vh;
    }
}

/* --- Mobile Speed & UI Optimizations --- */
@media (pointer: coarse) {
    body, a, button, input, textarea, label {
        cursor: auto !important;
    }
    .cursor-dot, .cursor-ring {
        display: none !important;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 5%;
        height: auto;
    }
    nav {
        margin-top: 10px;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }
    nav a {
        margin: 5px 10px;
        font-size: 0.8rem;
    }
    .logo {
        margin: 0 auto;
        display: block;
        text-align: center;
    }
    header {
        flex-direction: column;
    }
    .hero h1 {
        font-size: 18vw;
        line-height: 0.9;
    }
    .hero-text-back, .hero-text-front {
        font-size: 18vw;
    }
    .projects-section {
        padding: 6rem 5%;
    }
    .section-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }
    .project-image {
        height: 300px;
    }
    .modal-info h2 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }
}