/* ==========================================================================
   KARTALCILAR MAKİNA — ELİT KOYU TEMA
   Palazoğlu tasarım mimarisinden birebir uyarlanmış
   ========================================================================== */

/* ===== Design Tokens ===== */
:root {
    --color-text: #E8ECF4;
    --color-text-secondary: #B8C2E0;
    --color-text-muted: #8895B8;
    --color-accent: #6B7FE6;
    --color-accent-hover: #9BABFF;
    --color-accent-glow: rgba(91, 111, 214, 0.15);
    --color-bg: #080C1A;
    --color-surface: #141B3A;
    --color-surface-hover: #1A2348;
    --color-border: #2A3460;
    --color-border-hover: rgba(91, 111, 214, 0.3);
    --font-heading: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius-card: 16px;
    --transition-smooth: 500ms cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-glow: 0 0 40px rgba(91, 111, 214, 0.15);
    --shadow-glow-lg: 0 0 60px rgba(91, 111, 214, 0.12), 0 0 120px rgba(91, 111, 214, 0.06);
    --color-aurora-green: rgba(0, 255, 136, 0.6);
    --color-aurora-cyan: rgba(0, 206, 209, 0.5);
    --color-aurora-purple: rgba(123, 97, 255, 0.4);
}

/* ===== Global ===== */
html { scroll-behavior: smooth; }
::selection { background: var(--color-accent); color: var(--color-bg); }
body {
    overflow-x: hidden;
}

/* ===== Noise Overlay ===== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ===== Aurora Borealis (Northern Lights) ===== */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.12;
    will-change: background-position;
    background:
        radial-gradient(ellipse 80% 50% at 30% 20%, var(--color-aurora-green) 0%, transparent 60%),
        radial-gradient(ellipse 60% 60% at 70% 60%, var(--color-aurora-cyan) 0%, transparent 55%),
        radial-gradient(ellipse 70% 40% at 50% 80%, var(--color-aurora-purple) 0%, transparent 50%);
    background-size: 200% 200%, 200% 200%, 200% 200%;
    background-position: 30% 20%, 70% 60%, 50% 80%;
    filter: blur(80px);
    animation: aurora-drift 25s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
    0% {
        background-position: 30% 20%, 70% 60%, 50% 80%;
    }
    25% {
        background-position: 60% 30%, 40% 40%, 80% 50%;
    }
    50% {
        background-position: 20% 50%, 80% 20%, 30% 60%;
    }
    75% {
        background-position: 70% 15%, 25% 75%, 60% 35%;
    }
    100% {
        background-position: 45% 40%, 55% 50%, 40% 70%;
    }
}

/* ===== Dot Grid ===== */
.dot-grid {
    background-image: radial-gradient(circle at 1px 1px, rgba(30, 37, 64, 0.8) 1px, transparent 0);
    background-size: 32px 32px;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #3A50A8; }

/* ===== Nav Glass ===== */
.nav-glass {
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background: rgba(7, 11, 24, 0.88);
}

/* ===== Hero Slider ===== */
.hero-slide { transition: opacity 900ms ease-in-out !important; }

/* ===== Floating Geometric Shapes (CSS Animation) ===== */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}
@keyframes float-medium {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(15px) rotate(-3deg); }
}
@keyframes float-fast {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}
@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.floating-circle {
    position: absolute;
    border: 1px solid rgba(91, 111, 214, 0.1);
    border-radius: 9999px;
    pointer-events: none;
    animation: float-slow 8s ease-in-out infinite;
}
.floating-square {
    position: absolute;
    border: 1px solid rgba(91, 111, 214, 0.08);
    transform: rotate(45deg);
    pointer-events: none;
    animation: float-medium 10s ease-in-out infinite 1s;
}
.floating-rect {
    position: absolute;
    background: rgba(91, 111, 214, 0.03);
    border-radius: 8px;
    transform: rotate(12deg);
    pointer-events: none;
    animation: float-fast 6s ease-in-out infinite 2s;
}

/* Glow Orb — pulsing radial gradient */
.glow-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(27, 42, 107, 0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: pulse-glow 4s ease-in-out infinite;
}

/* ===== Brand Watermark — Diagonal Scroll Grid ===== */
.brand-watermark-grid {
    position: fixed;
    inset: -50% -50%;
    width: 200%;
    height: 200%;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    transform: rotate(-15deg);
    overflow: hidden;
}
.brand-watermark-grid .wm-row {
    display: flex;
    gap: 1.2rem;
    white-space: nowrap;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(27, 42, 107, 0.07);
    line-height: 1.4;
    will-change: transform;
}
.brand-watermark-grid .wm-row span {
    flex-shrink: 0;
}
.brand-watermark-grid .wm-row span.wm-breathe {
    animation: wm-breathe var(--wm-dur, 4s) ease-in-out infinite;
    animation-delay: var(--wm-delay, 0s);
}
@keyframes wm-breathe {
    0%, 100% { opacity: 1; }
    50% { opacity: 2.8; color: rgba(91, 111, 214, 0.12); }
}

/* Force all content ABOVE watermark */
header { z-index: 50 !important; } /* already sticky/relative */
main, footer { position: relative !important; z-index: 2 !important; }
.wa-float { z-index: 50 !important; }
#refModal, .lightbox-overlay { z-index: 100 !important; }
section { position: relative; z-index: 2; }

/* ===== Mesh Gradients ===== */
.mesh-gradient-hero {
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(27, 42, 107, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 60%, rgba(91, 111, 214, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 100% 100% at 50% 50%, rgba(17, 24, 52, 0.5) 0%, #080C1A 70%);
}

.mesh-gradient-cta {
    background:
        radial-gradient(ellipse 80% 60% at 30% 30%, rgba(27, 42, 107, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 60% 80% at 70% 70%, rgba(45, 63, 143, 0.2) 0%, transparent 55%),
        radial-gradient(ellipse 100% 100% at 50% 50%, rgba(91, 111, 214, 0.08) 0%, transparent 70%),
        #0E1530;
}

/* ===== Section Divider (full-width like Palazoğlu) ===== */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #2A3460 20%, #3A50A8 50%, #2A3460 80%, transparent 100%);
    opacity: 0.5;
}

/* Small accent divider */
.section-divider-sm {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #1F3078, #6B7FE6);
    border-radius: 2px;
}

.section-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, #2A3460 20%, #3A50A8 50%, #2A3460 80%, transparent);
    opacity: 0.5;
}

/* ===== Card System ===== */
.card-lift {
    position: relative;
    border-radius: var(--radius-card);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth) !important;
}
.card-lift:hover {
    transform: translateY(-6px);
    border-color: var(--color-border-hover) !important;
    box-shadow: var(--shadow-glow), 0 12px 40px -12px rgba(0, 0, 0, 0.4);
}

/* Corner accent dot on cards */
.card-lift .corner-dot {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: rgba(91, 111, 214, 0.3);
    transition: background 500ms ease;
}
.card-lift:hover .corner-dot { background: #6B7FE6; }

/* Card hover overlay for image cards */
.card-hover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 11, 24, 0.9) 0%, rgba(7, 11, 24, 0.3) 40%, transparent 100%);
    opacity: 0;
    transition: opacity 500ms ease;
}
.card-lift:hover .card-hover-overlay { opacity: 1; }

/* Navy glow effect on hover */
.card-lift:hover .navy-glow {
    box-shadow: 0 0 60px rgba(27, 42, 107, 0.12), 0 0 120px rgba(91, 111, 214, 0.06);
}

/* ===== Image Zoom ===== */
.img-zoom { overflow: hidden; border-radius: var(--radius-card); }
.img-zoom img { transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1) !important; }
.img-zoom:hover img, .group:hover .img-zoom img { transform: scale(1.1); }

/* ===== Grayscale Hover ===== */
.grayscale-hover { filter: grayscale(100%) brightness(0.7); transition: filter 500ms ease !important; }
.grayscale-hover:hover, .group:hover .grayscale-hover { filter: grayscale(0%) brightness(1); }

/* ===== Gradient Text ===== */
.text-gradient-navy {
    background: linear-gradient(135deg, #A4B0FF 0%, #9BABFF 30%, #6B7FE6 70%, #3A50A8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Glow Effects ===== */
.glow-navy { box-shadow: 0 0 60px rgba(27, 42, 107, 0.15), 0 0 120px rgba(91, 111, 214, 0.06); }

/* ===== Layered Shadows ===== */
.shadow-layered {
    box-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 6px 16px rgba(0,0,0,0.25);
}

/* ===== Button System — Rounded-full like Palazoğlu ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #080C1A;
    background: linear-gradient(135deg, #6B7FE6 0%, #9BABFF 100%);
    border-radius: 9999px;
    position: relative;
    overflow: hidden;
    transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(91, 111, 214, 0.4), 0 12px 32px -8px rgba(27, 42, 107, 0.5);
    filter: brightness(1.1);
}
.btn-primary svg { transition: transform 300ms ease; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    transition: all 300ms ease !important;
}
.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.btn-outline-navy {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #B8C2E0;
    border: 1.5px solid #2A3460;
    border-radius: 9999px;
    transition: all 300ms ease !important;
}
.btn-outline-navy:hover {
    border-color: rgba(91, 111, 214, 0.4);
    color: #6B7FE6;
}
.btn-outline-navy svg { transition: transform 300ms ease; }
.btn-outline-navy:hover svg { transform: translateX(3px); }

/* ===== Footer ===== */
.footer-gradient {
    background: linear-gradient(180deg, #141B3A 0%, #080C1A 100%);
}

/* ===== Scroll Animations ===== */
.fade-up, .fade-left, .scale-in {
    opacity: 1 !important;
    transform: none !important;
}

/* stagger-children disabled for production stability */

/* ===== WhatsApp Pulse ===== */
@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
}
.wa-float { animation: wa-pulse 2.5s infinite; }

/* ===== Lightbox ===== */
.lightbox-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(4, 7, 20, 0.92); backdrop-filter: blur(8px); }
.lightbox-content { position: relative; z-index: 1; max-width: 90vw; max-height: 90vh; }
.lightbox-content img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: 8px; border: 1px solid #2A3460; }

/* ===== Mobile Menu ===== */
#mobileMenu { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 300ms ease, opacity 200ms ease !important; }
#mobileMenu.open { max-height: 500px; opacity: 1; }

/* ===== Prose Dark ===== */
.prose { font-size: 0.9375rem; line-height: 1.75; color: #B8C2E0; }
.prose h1 { font-family: 'Syne', sans-serif; font-size: 1.75rem; font-weight: 700; color: #E8ECF4; margin-top: 2em; margin-bottom: 0.5em; line-height: 1.2; letter-spacing: -0.02em; }
.prose h2 { font-family: 'Syne', sans-serif; font-size: 1.375rem; font-weight: 600; color: #E8ECF4; margin-top: 1.75em; margin-bottom: 0.5em; line-height: 1.25; }
.prose h3 { font-family: 'Syne', sans-serif; font-size: 1.125rem; font-weight: 600; color: #CCD4E8; margin-top: 1.5em; margin-bottom: 0.4em; }
.prose h4 { font-size: 1rem; font-weight: 600; color: #CCD4E8; margin-top: 1.25em; margin-bottom: 0.4em; }
.prose p { margin-bottom: 1em; }
.prose strong, .prose b { font-weight: 600; color: #CCD4E8; }
.prose a { color: #6B7FE6; text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: #9BABFF; }
.prose ul { list-style-type: disc; padding-left: 1.5em; margin-bottom: 1em; }
.prose ol { list-style-type: decimal; padding-left: 1.5em; margin-bottom: 1em; }
.prose li { margin-bottom: 0.35em; }
.prose blockquote { border-left: 3px solid #3A50A8; padding: 0.75em 1em; margin: 1.25em 0; background: rgba(17, 24, 52, 0.6); color: #CCD4E8; font-style: italic; border-radius: 0 4px 4px 0; }
.prose pre { background: #050814; color: #CCD4E8; padding: 1em; border-radius: 6px; overflow-x: auto; margin: 1.25em 0; font-size: 0.875rem; border: 1px solid #2A3460; }
.prose code { font-family: 'JetBrains Mono', monospace; font-size: 0.875em; background: rgba(17, 24, 52, 0.8); padding: 0.15em 0.4em; border-radius: 3px; color: #9BABFF; }
.prose pre code { background: transparent; padding: 0; color: inherit; }
.prose img { max-width: 100%; height: auto; border-radius: 6px; margin: 1.25em 0; border: 1px solid #2A3460; }
.prose hr { border: none; border-top: 1px solid #2A3460; margin: 2em 0; }
.prose > :first-child { margin-top: 0; }

/* ===== Typography ===== */
.label-caps {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.heading-display {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #E8ECF4;
}

.heading-section {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #E8ECF4;
}

/* ===== Page Banner ===== */
.page-banner {
    position: relative;
    padding: 3rem 0;
    overflow: hidden;
}
.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(27, 42, 107, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(45, 63, 143, 0.15) 0%, transparent 50%);
    pointer-events: none;
}
.page-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(30, 37, 64, 0.6) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
    opacity: 0.4;
}

/* ===== Form Inputs ===== */
.input-dark {
    background: #141B3A;
    border: 1px solid #2A3460;
    border-radius: 12px;
    color: #E8ECF4;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    transition: border-color 300ms ease, box-shadow 300ms ease;
}
.input-dark::placeholder { color: #8895B8; }
.input-dark:focus {
    outline: none;
    border-color: #6B7FE6;
    box-shadow: 0 0 0 3px rgba(91, 111, 214, 0.15);
}

/* ===== Stat Counter ===== */
.counter-value {
    font-variant-numeric: tabular-nums;
    font-family: 'Syne', sans-serif;
}

/* ===== Scroll Indicator ===== */
@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}
.scroll-indicator-line {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, #6B7FE6, transparent);
    animation: scroll-bounce 1.5s ease-in-out infinite;
}

/* ===== Breadcrumb ===== */
.breadcrumb-sep { color: rgba(107, 122, 161, 0.3); }

/* ===== Diagonal Lines (for hero) ===== */
.diagonal-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.03;
}

/* ===== Focus ===== */
:focus-visible {
    outline: 2px solid #6B7FE6;
    outline-offset: 2px;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    .fade-up, .fade-left, .scale-in { opacity: 1; transform: none; transition: none !important; }
    .card-lift:hover { transform: none; }
    .hero-slide { transition: none !important; }
    .wa-float { animation: none; }
    .img-zoom img { transition: none !important; }
    .floating-circle, .floating-square, .floating-rect { animation: none; }
    .glow-orb { animation: none; }
    .scroll-indicator-line { animation: none; }
    body::after { animation: none; opacity: 0.03; }
}


/* ═══ FADE-UP ANIMATION FIX ═══ */
/* Force all fade-up elements to be visible - IntersectionObserver fix */
.fade-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.6s ease, transform 0.6s ease !important;
}
/* ═══ / FADE-UP FIX ═══ */
