* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

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

/* Scroll sorununu çözen kilit nokta: overflow-x sadece body'de, html'de değil */
html { 
    background-color: #020617; 
    color: #f8fafc; 
    -webkit-font-smoothing: antialiased; 
}

body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Lenis CSS Sınıfları (Mobil Scroll Bug'ını Önler) */
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;
}

.noise-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9997;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Sadece fare destekleyen cihazlarda (Masaüstü) imleçleri göster */
.custom-cursor, .custom-cursor-follower {
    display: none;
}

@media (pointer: fine) {
    * { cursor: none !important; }
    
    .custom-cursor {
        display: block;
        position: fixed;
        top: 0; left: 0;
        width: 8px; height: 8px;
        background: #60a5fa;
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        transition: width 0.3s, height 0.3s, background 0.3s;
        mix-blend-mode: difference;
    }

    .custom-cursor-follower {
        display: block;
        position: fixed;
        top: 0; left: 0;
        width: 40px; height: 40px;
        border: 1px solid rgba(96, 165, 250, 0.4);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9998;
        transform: translate(-50%, -50%);
        transition: transform 0.1s linear, width 0.3s, height 0.3s, border-color 0.3s;
    }

    .hover-active .custom-cursor {
        width: 60px; height: 60px;
        background: rgba(255, 255, 255, 1);
    }

    .hover-active .custom-cursor-follower {
        width: 80px; height: 80px;
        border-color: transparent;
    }
}

/* Dokunmatik cihazlarda (Mobil/Tablet) normal imleci zorla */
@media (pointer: coarse) {
    * { cursor: auto !important; }
    .custom-cursor, .custom-cursor-follower { display: none !important; }
}

/* Daha yavaş ve smooth neon blob'lar */
.blob { 
    position: absolute; 
    filter: blur(150px); 
    z-index: -1; 
    opacity: 0.4; 
    will-change: transform;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .blob { filter: blur(100px); opacity: 0.3; }
}

@keyframes orbit1 {
    0% { transform: rotate(0deg) translateX(10vw) rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) translateX(10vw) rotate(-180deg) scale(1.2); }
    100% { transform: rotate(360deg) translateX(10vw) rotate(-360deg) scale(1); }
}
@keyframes orbit2 {
    0% { transform: rotate(0deg) translateX(-15vw) rotate(0deg) scale(1); }
    50% { transform: rotate(-180deg) translateX(-15vw) rotate(180deg) scale(1.1); }
    100% { transform: rotate(-360deg) translateX(-15vw) rotate(360deg) scale(1); }
}
@keyframes orbit3 {
    0% { transform: rotate(0deg) translateY(10vw) rotate(0deg); }
    100% { transform: rotate(360deg) translateY(10vw) rotate(-360deg); }
}

.blob-1 { animation: orbit1 80s linear infinite; }
.blob-2 { animation: orbit2 100s linear infinite; }
.blob-3 { animation: orbit3 120s linear infinite; }

.text-outline {
    -webkit-text-stroke: 1px rgba(255,255,255,0.15);
    color: transparent;
}

.glass-panel {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card {
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(59, 130, 246, 0.08), transparent 40%);
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.1), transparent 40%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.service-card:hover::before { opacity: 1; }

.portfolio-item img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.portfolio-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 2rem;
}
.marquee-content {
    display: flex;
    flex-shrink: 0;
    justify-content: space-around;
    min-width: 100%;
    gap: 2rem;
    animation: scroll 25s linear infinite;
}
@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% - 2rem)); }
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 768px) {
    .filter-btn {
        padding: 0.75rem 2rem;
        font-size: 11px;
    }
}
.filter-btn.active, .filter-btn:hover {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

@keyframes radar { 
    0% { transform: scale(1); opacity: 1; } 
    100% { transform: scale(4); opacity: 0; } 
}

.custom-scrollbar::-webkit-scrollbar { display: block; width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #3b82f6; border-radius: 4px; }

.magnetic-wrap { display: inline-block; }

select option {
    background-color: #020617;
    color: #f8fafc;
}

/* Harita için z-index izolasyonu */
.leaflet-container {
    z-index: 1 !important;
}