/**
 * Site geneli lüks / premium katman — cam, altın vurgu, reveal, tipografi
 */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&display=swap");

:root {
    --lux-gold: #c9a962;
    --lux-gold-soft: rgba(201, 169, 98, 0.35);
    --lux-gold-line: rgba(201, 169, 98, 0.22);
    --lux-teal: #01b1af;
    --lux-teal-glow: rgba(1, 177, 175, 0.35);
    --lux-void: #060a10;
    --lux-glass: rgba(10, 16, 26, 0.82);
    --lux-glass-border: rgba(255, 255, 255, 0.08);
    --lux-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --lux-reveal-y: 28px;
    --lux-reveal-dur: 0.75s;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ---- Seçim & kaydırma çubuğu ---- */
::selection {
    background: rgba(1, 177, 175, 0.28);
    color: #fff;
}

body.light-mode ::selection {
    background: rgba(1, 138, 136, 0.2);
    color: #0f172a;
}

body:not(.light-mode) {
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(1, 177, 175, 0.07), transparent 55%),
        radial-gradient(ellipse 80% 50% at 100% 50%, rgba(201, 169, 98, 0.04), transparent 50%),
        var(--lux-void);
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(1, 177, 175, 0.35) transparent;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: rgba(1, 177, 175, 0.28);
    border-radius: 100px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(1, 177, 175, 0.45);
    background-clip: padding-box;
}

/* ---- İnce film dokusu (performans: tek katman) ---- */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9998;
    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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

body.light-mode::after {
    opacity: 0.02;
    mix-blend-mode: multiply;
}

/* ---- Başlık tipografisi (yalnızca mobil / vitrin) ---- */
@media (max-width: 991px) {
    h1,
    h2,
    h3,
    .solutions-title,
    .mh-hero__title,
    .mh-section-head__title,
    .site-footer .footer-col h4,
    .editorial-page h1,
    .editorial-page h2 {
        font-family: "Cormorant Garamond", "Montserrat", Georgia, serif;
        font-weight: 600;
        letter-spacing: 0.02em;
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
    }
}

/* Masaüstü — orijinal Montserrat */
@media (min-width: 992px) {
    h1,
    h2,
    h3,
    .solutions-title,
    .hero-slider .text-box h1,
    .site-footer .footer-col h4,
    .editorial-page h1,
    .editorial-page h2 {
        font-family: "Montserrat", sans-serif;
        letter-spacing: normal;
    }

    .hero-slider .text-box h1 {
        font-weight: 700;
    }
}

/* ---- Masaüstü navbar — orijinal şeffaf görünüm (çerçevesiz) ---- */
@media (min-width: 992px) {
    .top-nav,
    .top-nav.scrolled,
    .top-nav.is-scrolled {
        background: transparent !important;
        border: none !important;
        border-bottom: none !important;
        box-shadow: none !important;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    .top-nav .nav-link::after,
    .top-nav .menu > li > a:not(.nav-menu-close)::after {
        display: none !important;
        content: none !important;
    }
}

@media (max-width: 991px) {
    .top-nav.scrolled,
    .top-nav.is-scrolled {
        background: rgba(6, 10, 16, 0.94) !important;
        backdrop-filter: blur(16px) saturate(1.2);
        -webkit-backdrop-filter: blur(16px) saturate(1.2);
        border-bottom: 1px solid rgba(201, 169, 98, 0.1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
    }

    body.light-mode .top-nav,
    body.light-mode .top-nav.scrolled,
    body.light-mode .top-nav.is-scrolled {
        background: transparent !important;
        border-bottom: none !important;
        box-shadow: none !important;
    }
}

.hero-slider__dot {
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition:
        transform 0.3s var(--lux-ease),
        box-shadow 0.3s var(--lux-ease),
        background 0.3s ease;
}

.hero-slider__dot.is-active {
    box-shadow:
        0 0 12px var(--lux-teal-glow),
        0 0 0 1px rgba(1, 177, 175, 0.4);
    transform: scale(1.15);
}

/* ---- Eyebrow parıltı ---- */
.solutions-eyebrow,
.mh-section-head__eyebrow,
.mh-hero__eyebrow,
.lux-eyebrow {
    position: relative;
    overflow: hidden;
}

.solutions-eyebrow::after,
.mh-section-head__eyebrow::after,
.mh-hero__eyebrow::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.12) 50%,
        transparent 60%
    );
    transform: translateX(-120%);
    animation: lux-shimmer 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes lux-shimmer {
    0%,
    72%,
    100% {
        transform: translateX(-120%);
    }
    82% {
        transform: translateX(120%);
    }
}

/* ---- Kartlar & CTA ---- */
.solution-card,
.service .cards.solutions-bento > .card.solution-card {
    transition:
        transform 0.45s var(--lux-ease),
        box-shadow 0.45s var(--lux-ease),
        border-color 0.35s ease !important;
}

@media (hover: hover) {
    .solution-card:hover {
        box-shadow:
            0 24px 48px rgba(0, 0, 0, 0.35),
            0 0 0 1px var(--lux-gold-line),
            0 0 40px rgba(1, 177, 175, 0.08) !important;
    }
}

.mh-btn--primary,
.solution-card__cta,
.quote-btn,
.cookie-consent__accept {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.mh-btn--primary::before,
.solution-card__cta::before,
.quote-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 55%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.22),
        transparent
    );
    transform: skewX(-18deg);
    transition: left 0.55s var(--lux-ease);
    pointer-events: none;
    z-index: 1;
}

@media (hover: hover) {
    .mh-btn--primary:hover::before,
    .solution-card__cta:hover::before,
    .quote-btn:hover::before {
        left: 130%;
    }
}

/* ---- Footer linkleri ---- */
.site-footer a:not(.btn):not([class*="social"]) {
    position: relative;
    transition: color 0.25s ease;
}

.site-footer a:not(.btn):not([class*="social"])::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--lux-teal), var(--lux-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--lux-ease);
}

@media (hover: hover) {
    .site-footer a:not(.btn):not([class*="social"]):hover::after {
        transform: scaleX(1);
    }
}

.site-footer::before {
    box-shadow: 0 0 24px rgba(1, 177, 175, 0.15);
}

/* ---- Görsel yükleme ---- */
.lux-img {
    opacity: 0;
    transition: opacity 0.6s var(--lux-ease);
}

.lux-img.is-loaded {
    opacity: 1;
}

/* ---- Scroll reveal (JS hazır olana kadar gizleme yok) ---- */
html:not(.lux-ready) .lux-reveal {
    opacity: 1;
    transform: none;
}

.lux-reveal {
    opacity: 0;
    transform: translateY(var(--lux-reveal-y));
    transition:
        opacity var(--lux-reveal-dur) var(--lux-ease),
        transform var(--lux-reveal-dur) var(--lux-ease);
    transition-delay: var(--lux-delay, 0ms);
    will-change: opacity, transform;
}

.lux-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.lux-reveal--fade {
    transform: none;
}

.lux-reveal--scale {
    transform: scale(0.96);
}

.lux-reveal--scale.is-visible {
    transform: scale(1);
}

/* ---- Mobil vitrin ek parıltı ---- */
@media (max-width: 767px) {
    .mh-bento-card,
    .mh-stat-card {
        transition:
            transform 0.4s var(--lux-ease),
            box-shadow 0.4s var(--lux-ease);
    }

    .mh-bento-card.is-near {
        opacity: 0.72;
        transform: scale(0.97);
    }

    .mh-app-card,
    .mh-app-card.is-near {
        opacity: 1 !important;
        transform: none !important;
    }

    .mh-stat-card:not(.is-near) {
        box-shadow:
            0 12px 32px rgba(0, 0, 0, 0.35),
            0 0 0 1px var(--lux-gold-line);
    }

    .mh-dock {
        box-shadow:
            0 -8px 32px rgba(0, 0, 0, 0.35),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }
}

/* ---- Ürün kartları ---- */
.products-page .service-wrapper3.products-grid .card,
.products-page .product-card {
    transition:
        transform 0.4s var(--lux-ease),
        box-shadow 0.4s var(--lux-ease);
}

@media (hover: hover) and (min-width: 992px) {
    .products-page .service-wrapper3.products-grid .card:hover {
        transform: translateY(-4px);
        box-shadow:
            0 20px 40px rgba(0, 0, 0, 0.25),
            0 0 0 1px var(--lux-gold-line);
    }
}

/* ---- Yan menü cam ---- */
.side-nav {
    backdrop-filter: blur(20px) saturate(1.15);
    -webkit-backdrop-filter: blur(20px) saturate(1.15);
}

/* Aydınlık mod zemin: theme-light-atmosphere.css */

body.light-mode .solutions-title,
body.light-mode .mh-hero__title {
    color: var(--lt-text, #0f172a) !important;
    text-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
    .lux-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .solutions-eyebrow::after,
    .mh-section-head__eyebrow::after,
    .mh-hero__eyebrow::after {
        animation: none;
    }

    .mh-btn--primary::before,
    .solution-card__cta::before,
    .quote-btn::before {
        display: none;
    }
}
