@keyframes floatInSpace {

    0%,
    to {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-20px)
    }
}

:root {
    --primary-color: #00f2fe;
    --secondary-color: #4facfe;
    --bg-dark: #030305;
    --text-light: #ffffff;
    --text-muted: #e0e0e0;
    --glass-bg: rgba(10, 15, 30, 0.7);
    --border-color: rgba(0, 242, 254, 0.2)
}

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

html {
    scroll-behavior: smooth
}

body {
    font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeSpeed
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

ul {
    list-style: none
}

a {
    text-decoration: none;
    color: inherit
}

.hero-3d model-viewer,
.navbar {
    width: 100%;
    will-change: transform
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(3, 3, 5, .85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    z-index: 9999;
    transition: background .3s ease, height .3s ease, box-shadow .3s ease;
    transform: translateZ(0)
}

.navbar.scrolled {
    height: 70px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
    background: rgba(3, 3, 5, .95)
}

.nav-brand img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, .4));
    transition: transform .3s ease
}

.nav-brand:hover img {
    transform: scale(1.05)
}

.nav-links {
    display: flex;
    gap: 40px
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1rem;
    transition: color .3s ease, text-shadow .3s ease;
    position: relative
}

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(0, 242, 254, .5)
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-color);
    transition: width .3s ease
}

.nav-links a:hover::after {
    width: 100%
}

.lang-toggle,
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px
}

.lang-toggle {
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(0, 242, 254, .08);
    border: 1px solid rgba(0, 242, 254, .2);
    color: var(--primary-color);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
    font-family: inherit
}

.lang-toggle:hover {
    background: rgba(0, 242, 254, .18);
    border-color: var(--primary-color);
    box-shadow: 0 0 12px rgba(0, 242, 254, .2)
}

.lang-flag {
    font-size: 1.1rem
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer
}

.mobile-menu-toggle span {
    width: 30px;
    height: 2px;
    background-color: var(--text-light);
    transition: .3s
}

.hero-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #000
}

#hero-canvas,
.hero-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%
}

#hero-canvas {
    object-fit: cover;
    z-index: 1;
    opacity: .5;
    filter: saturate(1.2);
    will-change: contents;
    transform: translateZ(0)
}

.hero-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 5%0 10%;
    z-index: 10
}

.hero-content {
    flex: 1;
    position: relative;
    height: 400px;
    max-width: 600px
}

.text-panel {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
    will-change: transform, opacity;
    transform: translateZ(0)
}

#panel-2,
#panel-3,
#panel-4 {
    opacity: 0
}

.text-panel h1,
.text-panel h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px
}

.text-gradient {
    background: linear-gradient(90deg, #00f2fe 0, #4facfe 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block
}

.text-panel p {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 35px;
    line-height: 1.7
}

.cta-btn {
    display: inline-block;
    background: rgba(0, 0, 0, .5);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all .3s ease;
    box-shadow: 0 0 15px rgba(0, 242, 254, .15);
    text-align: center
}

.cta-btn:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 25px rgba(0, 242, 254, .4);
    transform: translateY(-3px)
}

.hero-3d {
    flex: 1.2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 80vh
}

.hero-3d model-viewer {
    height: 100%;
    transform: translate3d(0, 0, 0);
    animation: floatInSpace 6s ease-in-out infinite
}

.section,
.services-section {
    position: relative;
    z-index: 20
}

.section {
    padding: 100px 5%;
    background: var(--bg-dark)
}

.services-section {
    padding: 120px 5%;
    overflow: hidden;
    background: url(../assets/images/services-bg.webp)no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    content-visibility: auto;
    contain-intrinsic-size: 0 800px
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(3, 3, 5, .95)0, rgba(3, 3, 5, .4) 50%, rgba(3, 3, 5, .95) 100%);
    pointer-events: none
}

.services-premium-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 10
}

.services-left {
    flex: 1;
    max-width: 480px
}

.services-text-panel {
    background: linear-gradient(135deg, rgba(8, 12, 25, .85)0, rgba(5, 8, 20, .5) 100%);
    padding: 50px 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .05);
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 25px 60px rgba(0, 0, 0, .6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px)
}

.services-text-panel .section-title {
    font-size: 3.5rem;
    line-height: 1.1;
    text-shadow: none
}

.services-text-panel .section-title::after {
    display: none
}

.services-desc {
    font-size: 1.25rem;
    color: #e2e8f0;
    line-height: 1.8;
    font-weight: 400
}

.services-right {
    flex: 1.4;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px
}

.services-right .premium-card:nth-child(3) {
    grid-column: 1/-1;
    margin: 0 auto;
    width: 60%
}

.premium-card {
    background: rgba(10, 15, 30, .45);
    border: 1px solid rgba(0, 242, 254, .15);
    padding: 40px 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform .4s ease, background .4s ease, border-color .4s ease, box-shadow .4s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
    will-change: transform;
    transform: translateZ(0)
}

.card-offset-1 {
    margin-top: 50px
}

.card-offset-2 {
    margin-top: -20px
}

.card-offset-3 {
    margin-top: 10px
}

.premium-card:hover {
    transform: translateY(-10px) !important;
    background: rgba(10, 15, 30, .85);
    border-color: var(--primary-color);
    box-shadow: 0 15px 50px rgba(0, 242, 254, .25)
}

.icon-glow {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
    padding: 16px;
    background: rgba(0, 242, 254, .05);
    border-radius: 14px;
    color: var(--primary-color);
    box-shadow: inset 0 0 20px rgba(0, 242, 254, .15)
}

.premium-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-light)
}

.premium-card p {
    color: var(--text-muted);
    line-height: 1.6
}

.projects-wrapper {
    position: relative;
    width: 100%
}

.projects-scroll {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 20px 10px 40px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 242, 254, .3) transparent
}

.projects-scroll::-webkit-scrollbar {
    height: 6px
}

.projects-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .03);
    border-radius: 10px
}

.projects-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px
}

.scroll-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(10, 15, 30, .8);
    border: 1px solid rgba(0, 242, 254, .25);
    color: var(--primary-color);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all .3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px)
}

.scroll-nav:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 25px rgba(0, 242, 254, .4)
}

.scroll-nav.left {
    left: -25px
}

.scroll-nav.right {
    right: -25px
}

.project-card {
    min-width: 420px;
    max-width: 420px;
    flex-shrink: 0;
    scroll-snap-align: start;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(10, 15, 30, .5);
    border: 1px solid rgba(255, 255, 255, .06);
    transition: transform .4s ease, border-color .4s ease, box-shadow .4s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .4);
    will-change: transform;
    transform: translateZ(0)
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 242, 254, .35);
    box-shadow: 0 20px 60px rgba(0, 242, 254, .12)
}

.preview-browser-bar,
.project-preview {
    border-bottom: 1px solid rgba(255, 255, 255, .05)
}

.project-preview {
    width: 100%;
    height: 260px;
    position: relative;
    overflow: hidden;
    background: #0a0a12
}

.project-preview.live-preview {
    height: 280px
}

/* Live Preview iframe */
.preview-iframe-wrapper {
    position: absolute;
    top: 32px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-x: hidden;
    overflow-y: auto; /* Aktif scrollbar yeri */
    z-index: 2;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(10, 10, 21, 0.8);
}

.preview-iframe-wrapper::-webkit-scrollbar {
    width: 6px;
}

.preview-iframe-wrapper::-webkit-scrollbar-track {
    background: rgba(10, 10, 21, 0.8);
}

.preview-iframe-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.preview-iframe-wrapper iframe {
    width: 400%;
    height: 4000px; /* Görsel alan yaratmak için devasa yükseklik */
    border: 0;
    transform: scale(0.25);
    transform-origin: top left;
    pointer-events: none; /* Mouse scroll wrapper'a gitsin */
    opacity: 0;
    transition: opacity .6s ease;
}

.preview-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a15 0%, #0d1020 50%, #0a0a15 100%);
    z-index: 3;
    pointer-events: none;
    transition: opacity .5s ease
}

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

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

@keyframes previewPulse {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(0, 242, 254, .3)
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 242, 254, .6)
    }
}

.preview-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 242, 254, .15);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: previewSpin .8s linear infinite, previewPulse 2s ease-in-out infinite
}

/* Browser Bar */
.preview-browser-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: linear-gradient(180deg, rgba(20, 24, 40, .98) 0%, rgba(15, 18, 30, .95) 100%);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
    z-index: 5;
    border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.preview-dots {
    display: flex;
    gap: 5px;
    flex-shrink: 0
}

.preview-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transition: transform .2s ease
}

.preview-dots span:nth-child(1) {
    background: #ef4444
}

.preview-dots span:nth-child(2) {
    background: #f59e0b
}

.preview-dots span:nth-child(3) {
    background: #10b981
}

.project-card:hover .preview-dots span {
    transform: scale(1.2)
}

.preview-url-bar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, .5);
    border-radius: 6px;
    padding: 3px 10px;
    border: 1px solid rgba(255, 255, 255, .05)
}

.preview-lock {
    font-size: .55rem;
    opacity: .7
}

.preview-url {
    font-size: .65rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: "SF Mono", "Courier New", monospace;
    opacity: .8
}

.preview-live-badge {
    flex-shrink: 0;
    font-size: .55rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, .12);
    border: 1px solid rgba(16, 185, 129, .25);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
    animation: livePulse 2s ease-in-out infinite
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .5
    }
}

/* Overlay */
.preview-overlay {
    position: absolute;
    top: 32px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 3, 5, .6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .35s ease;
    z-index: 4;
    pointer-events: none
}

.project-card:hover .preview-overlay {
    opacity: 1
}

.preview-overlay a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 12px;
    background: rgba(0, 242, 254, .12);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    font-size: .95rem;
    transition: all .3s ease;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 242, 254, .15)
}

.preview-overlay a:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 4px 30px rgba(0, 242, 254, .4);
    transform: scale(1.05)
}

.project-info {
    padding: 22px 25px
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 700
}

.project-info p {
    color: var(--text-muted);
    font-size: .95rem;
    line-height: 1.5
}

.projects-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
    width: 100%
}

.projects-empty i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: rgba(0, 242, 254, .2);
    display: block
}

.info-text h4,
.projects-empty p {
    font-size: 1.2rem
}

.contact-section {
    position: relative;
    overflow: hidden
}

.contact-giant-title,
.projects-giant-title {
    text-align: center;
    font-weight: 800;
    letter-spacing: -1px
}

.projects-giant-title {
    font-size: 5rem;
    margin-bottom: 80px;
    text-shadow: 0 10px 40px rgba(0, 0, 0, .8);
    position: relative;
    z-index: 10
}

.contact-giant-title {
    font-size: 3.5rem;
    margin-bottom: 20px
}

.contact-container {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10
}

.contact-box {
    background: rgba(10, 15, 30, .45);
    border: 1px solid rgba(0, 242, 254, .15);
    padding: 60px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    max-width: 1100px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, .6);
    content-visibility: auto;
    contain-intrinsic-size: 0 600px
}

.flex-split {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    text-align: left
}

.contact-left {
    flex: 1.1
}

.contact-right {
    flex: 1;
    border-left: 1px solid rgba(0, 242, 254, .1);
    padding-left: 60px
}

.contact-split-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: -1px
}

.contact-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    line-height: 1.6
}

.contact-desc.text-left {
    text-align: left;
    margin-bottom: 35px
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px
}

.info-icon {
    font-size: 1.8rem;
    background: rgba(0, 242, 254, .05);
    padding: 15px;
    border-radius: 14px;
    color: var(--primary-color);
    box-shadow: inset 0 0 20px rgba(0, 242, 254, .15);
    flex-shrink: 0
}

.info-text h4 {
    color: var(--text-light);
    margin-bottom: 5px
}

.info-text p {
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0
}

.premium-form .input-group {
    margin-bottom: 20px
}

.premium-form input,
.premium-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .1);
    padding: 15px 20px;
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
    outline: 0;
    transition: all .3s ease
}

.premium-form input:focus,
.premium-form textarea:focus {
    border-color: var(--primary-color);
    background: rgba(0, 242, 254, .05);
    box-shadow: 0 0 15px rgba(0, 242, 254, .1)
}

.submit-btn {
    width: 100%;
    margin-top: 10px
}

footer {
    background: #020203;
    padding: 30px 0;
    text-align: center;
    color: #666;
    border-top: 1px solid rgba(255, 255, 255, .05)
}

/* ==================== RESPONSIVE: TABLET (max-width: 992px) ==================== */
@media (max-width:992px) {

    /* --- Hero Section --- */
    .hero-content-wrapper {
        flex-direction: column;
        padding: 100px 5% 0;
        text-align: center;
        justify-content: flex-start;
    }

    .hero-content {
        max-width: 100%;
        width: 100%;
        height: 380px;
        order: 2;
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }

    .text-panel {
        padding: 30px 25px;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        background: rgba(10, 15, 30, 0.85);
        min-height: 220px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }

    .hero-3d {
        height: 30vh;
        width: 100%;
        justify-content: center;
        order: 1;
        margin-bottom: 0;
    }

    .hero-3d model-viewer {
        height: 280px;
        width: 280px;
    }

    .text-panel h1,
    .text-panel h2 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .text-panel p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    /* --- Services Section --- */
    .services-section {
        padding: 80px 5%;
        background-attachment: scroll;
    }

    .services-premium-layout {
        flex-direction: column;
        gap: 40px;
        align-items: stretch;
    }

    .services-left {
        max-width: 100%;
        width: 100%;
    }

    .services-text-panel {
        padding: 35px 30px;
        border-left: 4px solid var(--primary-color);
        text-align: center;
    }

    .services-text-panel .section-title {
        font-size: 2.8rem;
        text-align: center;
    }

    .services-desc {
        font-size: 1.1rem;
    }

    .services-right {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .services-right .premium-card:nth-child(3) {
        width: 80%;
    }

    .card-offset-1,
    .card-offset-2,
    .card-offset-3 {
        margin-top: 0;
    }

    .premium-card {
        padding: 30px 22px;
    }

    /* --- Projects Section --- */
    .projects-giant-title {
        font-size: 3.5rem;
        margin-bottom: 50px;
    }

    .project-card {
        min-width: 340px;
        max-width: 340px;
    }

    .project-preview {
        height: 220px;
    }

    .project-preview.live-preview {
        height: 240px;
    }

    /* --- Contact Section --- */
    .contact-box {
        padding: 40px 30px;
    }

    .flex-split {
        gap: 40px;
    }

    .contact-right {
        padding-left: 40px;
    }

    .contact-split-title {
        font-size: 2rem;
    }

    .contact-desc {
        font-size: 1.05rem;
        margin-bottom: 25px;
    }

    /* --- Integrated Bottom Sections --- */
    .integrated-bottom-sections {
        background-attachment: scroll !important;
    }
}

/* ==================== RESPONSIVE: MOBILE LARGE (max-width: 768px) ==================== */
@media (max-width:768px) {

    /* --- Navbar --- */
    .navbar {
        height: 70px;
        padding: 0 4%;
    }

    .nav-brand img {
        height: 34px;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(3, 3, 5, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 35px;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9998;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.3rem;
        font-weight: 600;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .lang-toggle {
        padding: 5px 10px;
        font-size: .8rem;
    }

    /* --- Hero Section --- */
    .hero-content-wrapper {
        padding: 80px 5% 0;
    }

    .hero-content {
        height: 340px;
    }

    .text-panel {
        padding: 25px 20px;
        max-width: 100%;
        border-radius: 16px;
    }

    .text-panel h1,
    .text-panel h2 {
        font-size: 1.9rem;
        margin-bottom: 14px;
    }

    .text-panel p {
        font-size: 0.95rem;
        margin-bottom: 18px;
        line-height: 1.6;
    }

    .cta-btn {
        padding: 12px 26px;
        font-size: 1rem;
    }

    .hero-3d {
        height: 28vh;
    }

    .hero-3d model-viewer {
        height: 240px;
        width: 240px;
    }

    /* --- Services Section --- */
    .services-section {
        padding: 70px 5%;
    }

    .services-premium-layout {
        gap: 30px;
    }

    .services-text-panel {
        padding: 30px 22px;
    }

    .services-text-panel .section-title {
        font-size: 2.2rem;
    }

    .services-desc {
        font-size: 1rem;
        line-height: 1.7;
    }

    .services-right {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .services-right .premium-card:nth-child(3) {
        grid-column: auto;
        width: 100%;
        margin: 0;
    }

    .premium-card {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .icon-glow {
        font-size: 2rem;
        padding: 12px;
    }

    .premium-card h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .premium-card p {
        font-size: 0.9rem;
    }

    /* --- Projects Section --- */
    #projects {
        padding: 80px 4% 40px 4% !important;
    }

    .projects-giant-title {
        font-size: 2.5rem;
        margin-bottom: 35px;
    }

    .projects-scroll {
        gap: 18px;
        padding: 15px 5px 30px;
    }

    .project-card {
        min-width: 290px;
        max-width: 290px;
    }

    .project-preview {
        height: 200px;
    }

    .project-preview.live-preview {
        height: 220px;
    }

    .project-info {
        padding: 18px 18px;
    }

    .project-info h3 {
        font-size: 1.15rem;
    }

    .project-info p {
        font-size: 0.88rem;
    }

    .scroll-nav {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

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

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

    /* --- Contact Section --- */
    #contact {
        padding: 40px 4% 80px 4% !important;
    }

    .contact-box {
        padding: 30px 22px;
        border-radius: 16px;
    }

    .flex-split {
        flex-direction: column;
        gap: 30px;
    }

    .contact-left {
        flex: unset;
        width: 100%;
    }

    .contact-right {
        flex: unset;
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(0, 242, 254, .1);
        padding-left: 0;
        padding-top: 30px;
    }

    .contact-split-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .contact-desc {
        font-size: 1rem;
        margin-bottom: 22px;
    }

    .premium-form input,
    .premium-form textarea {
        padding: 13px 16px;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    .premium-form .input-group {
        margin-bottom: 15px;
    }

    .info-item {
        gap: 14px;
        margin-bottom: 22px;
    }

    .info-icon {
        font-size: 1.5rem;
        padding: 12px;
    }

    .info-text h4 {
        font-size: 1.05rem;
    }

    .info-text p {
        font-size: 0.9rem;
    }

    /* --- Footer --- */
    footer {
        padding: 22px 15px;
        font-size: 0.85rem;
    }

    /* --- Background attachment fix for mobile devices --- */
    .services-section,
    .integrated-bottom-sections {
        background-attachment: scroll !important;
    }
}

/* ==================== RESPONSIVE: MOBILE SMALL (max-width: 480px) ==================== */
@media (max-width:480px) {

    /* --- Navbar --- */
    .navbar {
        height: 60px;
        padding: 0 4%;
    }

    .nav-brand img {
        height: 30px;
    }

    .nav-links {
        top: 60px;
        height: calc(100vh - 60px);
        gap: 28px;
    }

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

    .lang-toggle {
        padding: 4px 8px;
        font-size: .75rem;
    }

    .lang-flag {
        font-size: 0.9rem;
    }

    /* --- Hero Section --- */
    .hero-content-wrapper {
        padding: 70px 4% 0;
    }

    .hero-content {
        height: 300px;
        margin-top: 10px;
    }

    .text-panel {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .text-panel h1,
    .text-panel h2 {
        font-size: 1.5rem;
        margin-bottom: 12px;
        letter-spacing: -0.5px;
    }

    .text-panel p {
        font-size: 0.85rem;
        margin-bottom: 16px;
        line-height: 1.55;
    }

    .cta-btn {
        padding: 11px 22px;
        font-size: 0.9rem;
        border-radius: 6px;
    }

    .hero-3d {
        height: 22vh;
    }

    .hero-3d model-viewer {
        height: 180px;
        width: 180px;
    }

    /* --- Services Section --- */
    .services-section {
        padding: 50px 4%;
    }

    .services-premium-layout {
        gap: 20px;
    }

    .services-text-panel {
        padding: 22px 16px;
        border-radius: 14px;
    }

    .services-text-panel .section-title {
        font-size: 1.8rem;
    }

    .services-desc {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .services-right {
        gap: 14px;
    }

    .premium-card {
        padding: 22px 16px;
        border-radius: 14px;
    }

    .icon-glow {
        font-size: 1.8rem;
        padding: 10px;
        margin-bottom: 14px;
        border-radius: 10px;
    }

    .premium-card h3 {
        font-size: 1.15rem;
        margin-bottom: 8px;
    }

    .premium-card p {
        font-size: 0.85rem;
        line-height: 1.55;
    }

    /* --- Projects Section --- */
    #projects {
        padding: 60px 3% 30px 3% !important;
    }

    .projects-giant-title {
        font-size: 2rem;
        margin-bottom: 25px;
    }

    .projects-scroll {
        gap: 14px;
        padding: 10px 2px 25px;
    }

    .project-card {
        min-width: 260px;
        max-width: 260px;
    }

    .project-preview {
        height: 170px;
    }

    .project-preview.live-preview {
        height: 190px;
    }

    .project-info {
        padding: 14px 14px;
    }

    .project-info h3 {
        font-size: 1.05rem;
        margin-bottom: 5px;
    }

    .project-info p {
        font-size: 0.82rem;
    }

    .scroll-nav {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .scroll-nav.left {
        left: -5px;
    }

    .scroll-nav.right {
        right: -5px;
    }

    .preview-browser-bar {
        height: 26px;
        padding: 0 8px;
    }

    .preview-dots span {
        width: 6px;
        height: 6px;
    }

    .preview-url {
        font-size: .6rem;
        padding: 2px 6px;
    }

    /* --- Contact Section --- */
    #contact {
        padding: 30px 3% 60px 3% !important;
    }

    .contact-box {
        padding: 22px 16px;
        border-radius: 14px;
    }

    .flex-split {
        gap: 22px;
    }

    .contact-split-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .contact-desc {
        font-size: 0.9rem;
        margin-bottom: 18px;
    }

    .contact-right {
        padding-top: 22px;
    }

    .premium-form input,
    .premium-form textarea {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    .info-item {
        gap: 12px;
        margin-bottom: 18px;
    }

    .info-icon {
        font-size: 1.3rem;
        padding: 10px;
        border-radius: 10px;
    }

    .info-text h4 {
        font-size: 0.95rem;
    }

    .info-text p {
        font-size: 0.85rem;
    }

    /* --- Footer --- */
    footer {
        padding: 18px 10px;
        font-size: 0.8rem;
    }

    /* --- Projects Empty State --- */
    .projects-empty {
        padding: 50px 15px;
    }

    .projects-empty i {
        font-size: 2.2rem;
    }

    .projects-empty p {
        font-size: 1rem;
    }
}

/* ==================== RESPONSIVE: ULTRA-SMALL (max-width: 360px) ==================== */
@media (max-width:360px) {

    .text-panel h1,
    .text-panel h2 {
        font-size: 1.35rem;
    }

    .text-panel p {
        font-size: 0.8rem;
    }

    .hero-3d model-viewer {
        height: 150px;
        width: 150px;
    }

    .hero-3d {
        height: 18vh;
    }

    .hero-content {
        height: 280px;
    }

    .services-text-panel .section-title {
        font-size: 1.5rem;
    }

    .services-desc {
        font-size: 0.85rem;
    }

    .projects-giant-title {
        font-size: 1.7rem;
    }

    .project-card {
        min-width: 230px;
        max-width: 230px;
    }

    .project-preview {
        height: 150px;
    }

    .project-preview.live-preview {
        height: 165px;
    }

    .contact-split-title {
        font-size: 1.3rem;
    }

    .premium-card {
        padding: 18px 14px;
    }
}