/* ==========================================================
   VeaXpert — 3D & animasyon katmanı (ana sayfa)
   style.css'in üzerine eklenir; fx3d.js ile birlikte çalışır.
   ========================================================== */

/* --- Kaydırma ilerleme çubuğu --- */
.fx-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1001;
    background: linear-gradient(90deg, #a88920, #f0d878, #D4AF37);
    transform-origin: 0 50%;
    transform: scaleX(var(--sp, 0));
    box-shadow: 0 0 12px var(--gold-glow);
    pointer-events: none;
}

/* --- İmleç: tıklanabilir öğe üzerinde büyüsün --- */
@media (min-width: 769px) {
    .cursor-outline.is-hover {
        width: 64px;
        height: 64px;
        background-color: rgba(212, 175, 55, 0.12);
    }
}

/* --- Açılış ekranı: logo 3D dönerek gelsin --- */
#preloader {
    perspective: 900px;
}

.loader-logo img {
    animation: fxLogoFlip 1.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    backface-visibility: hidden;
}

@keyframes fxLogoFlip {
    from {
        opacity: 0;
        transform: rotateY(-110deg) translateZ(-120px);
    }

    to {
        opacity: 1;
        transform: rotateY(0) translateZ(0);
    }
}

/* --- Üst menü: aşağı inince küçülsün --- */
header {
    transition: padding 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

header .logo img {
    transition: height 0.4s ease;
}

header.scrolled {
    padding-top: 8px;
    padding-bottom: 8px;
    background: rgba(8, 8, 8, 0.78);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

header.scrolled .logo img {
    height: 52px;
}

.header-btn {
    position: relative;
    overflow: hidden;
}

/* ==========================================================
   HERO — 3D sahne
   ========================================================== */
.hero {
    --mx: 0;
    --my: 0;
    --hs: 0;
    perspective: 1100px;
}

/* Fotoğraflar fareyle ters yöne kayar: derinlik hissi */
.hero-slider {
    inset: -3%;
    width: 106%;
    height: 106%;
    top: -3%;
    left: -3%;
    transform: translate3d(calc(var(--mx) * -16px), calc(var(--my) * -10px + var(--hs) * 12%), 0);
    will-change: transform;
}

/* WebGL tuvali: baklava desenli 3D zemin + altın tozu */
.hero-3d {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.6s ease 0.3s;
}

.fx-loaded .hero-3d {
    opacity: 1;
}

/* Hero'nun altı bir sonraki bölüme erisin */
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 22%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85) 96%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    transform-style: preserve-3d;
    transform:
        translate3d(0, calc(var(--hs) * -90px), 0) rotateX(calc(var(--my) * -5deg)) rotateY(calc(var(--mx) * 7deg));
    opacity: calc(1 - var(--hs) * 1.25);
    will-change: transform, opacity;
}

.hero-gap {
    height: clamp(120px, 30vh, 260px);
}

.hero-content h1 {
    transform: translateZ(60px);
    transform-style: preserve-3d;
}

/* Başlık kelimeleri tek tek 3D katlanarak açılır */
.hero-content h1 .fx-w {
    display: inline-block;
    font-weight: inherit;
    perspective: 600px;
    vertical-align: top;
}

.hero-content h1 .fx-w i {
    display: inline-block;
    font-style: normal;
    transform-origin: 50% 100%;
}

.fx-ready .hero-content h1 .fx-w i {
    opacity: 0;
    transform: rotateX(-95deg) translateY(30px);
}

.fx-ready .hero-content h1 > span {
    opacity: 0;
    letter-spacing: 14px;
}

.fx-loaded .hero-content h1 .fx-w i {
    animation: fxWordIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: calc(0.25s + var(--i) * 0.09s);
}

.fx-loaded .hero-content h1 > span {
    animation: fxKickerIn 1.1s ease 0.1s both;
}

@keyframes fxWordIn {
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fxKickerIn {
    to {
        opacity: 1;
        letter-spacing: 5px;
    }
}

/* Sipariş düğmesi: 3D yükselme + ışık süpürmesi */
.hero-content .submit-btn {
    position: relative;
    overflow: hidden;
    transform: translateZ(90px);
    /* Altındaki 3D blok ve parıltı site sahibinin isteğiyle kaldırıldı: düz, yumuşak gölge */
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fx-ready .hero-content .submit-btn {
    opacity: 0;
}

.fx-loaded .hero-content .submit-btn {
    animation: fxBtnIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 1s both;
}

@keyframes fxBtnIn {
    from {
        opacity: 0;
        transform: translateZ(90px) translateY(40px) scale(0.85);
    }

    to {
        opacity: 1;
        transform: translateZ(90px);
    }
}

.hero-content .submit-btn:hover {
    transform: translateZ(90px) translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
}

.hero-content .submit-btn:active {
    transform: translateZ(90px) translateY(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hero-content .submit-btn::after,
.header-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    animation: fxShine 4.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes fxShine {

    0%,
    60% {
        left: -80%;
    }

    100% {
        left: 140%;
    }
}

/* Aşağı kaydır işareti */
.fx-scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 3;
    width: 24px;
    height: 40px;
    margin-left: -12px;
    border: 1px solid rgba(212, 175, 55, 0.7);
    border-radius: 14px;
    opacity: calc(0.9 - var(--hs) * 4);
    pointer-events: none;
}

.fx-scroll-hint::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 7px;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--gold);
    animation: fxWheel 1.8s ease-in-out infinite;
}

@keyframes fxWheel {
    0% {
        opacity: 0;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(16px);
    }
}

/* ==========================================================
   Kaydırınca 3D açılma (reveal)
   ========================================================== */
.features-strip,
#vx-gallery-grid,
.contact-wrapper,
.section-title,
.process-section {
    perspective: 1300px;
}

.fx-ready [data-reveal] {
    opacity: 0;
}

.fx-ready [data-reveal].in {
    animation: fxReveal 1s cubic-bezier(0.2, 0.75, 0.2, 1) var(--d, 0s) both;
}

.fx-ready [data-reveal="left"].in {
    animation-name: fxRevealLeft;
}

.fx-ready [data-reveal="right"].in {
    animation-name: fxRevealRight;
}

@keyframes fxReveal {
    from {
        opacity: 0;
        translate: 0 70px -120px;
        rotate: x 32deg;
        scale: 0.92;
    }

    to {
        opacity: 1;
        translate: none;
        rotate: none;
        scale: 1;
    }
}

@keyframes fxRevealLeft {
    from {
        opacity: 0;
        translate: -80px 0 -100px;
        rotate: y 28deg;
    }

    to {
        opacity: 1;
        translate: none;
        rotate: none;
    }
}

@keyframes fxRevealRight {
    from {
        opacity: 0;
        translate: 80px 0 -100px;
        rotate: y -28deg;
    }

    to {
        opacity: 1;
        translate: none;
        rotate: none;
    }
}

/* ==========================================================
   3D eğilme (tilt) — fare ile kart yüzeyi döner, parlama gezer
   ========================================================== */
.tilt,
.vx-card.tilt:hover,
.contact-card.tilt:hover {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(var(--tz, 0px));
}

.tilt {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s, box-shadow 0.4s;
    will-change: transform;
}

.tilt.tilting {
    --tz: 18px;
    transition: transform 0.1s linear, border-color 0.3s, box-shadow 0.4s;
}

.tilt::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 224, 140, 0.26), transparent 55%);
    opacity: 0;
    transition: opacity 0.35s;
    pointer-events: none;
    z-index: 5;
}

.tilt.tilting::after {
    opacity: 1;
}

/* ==========================================================
   Özellik şeridi — 3D karolar
   ========================================================== */
.features-strip {
    position: relative;
    z-index: 2;
    padding: 50px 5%;
    gap: 22px;
}

.feature-box {
    padding: 28px 12px 24px;
    border: 1px solid #242424;
    border-radius: 10px;
    background: linear-gradient(160deg, #1b1b1b, #0d0d0d);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.feature-box.tilting {
    border-color: rgba(212, 175, 55, 0.7);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.15);
}

.feature-box i {
    display: inline-block;
    filter: drop-shadow(0 10px 12px rgba(212, 175, 55, 0.35));
    animation: fxFloat 4s ease-in-out infinite;
}

.feature-box:nth-child(2) i {
    animation-delay: -1s;
}

.feature-box:nth-child(3) i {
    animation-delay: -2s;
}

.feature-box:nth-child(4) i {
    animation-delay: -3s;
}

.feature-box h4 {
    transform: translateZ(28px);
    letter-spacing: 1px;
}

.feature-box p {
    transform: translateZ(16px);
    color: #8a8a8a;
}

@keyframes fxFloat {

    0%,
    100% {
        transform: translateZ(46px) translateY(0) rotateY(0deg);
    }

    50% {
        transform: translateZ(46px) translateY(-8px) rotateY(18deg);
    }
}

/* ==========================================================
   Ürün bölümleri — kaydırdıkça 3D dönen görseller
   ========================================================== */
.process-section {
    gap: 60px;
    margin-bottom: 90px;
}

.process-img {
    --p: 1;
    --dir: 1;
    position: relative;
    border-color: rgba(212, 175, 55, 0.35);
    border-radius: 10px;
    transform: rotateY(calc((1 - var(--p)) * 30deg * var(--dir))) translateZ(calc((1 - var(--p)) * -140px));
    box-shadow:
        calc(var(--dir) * -26px) 30px 60px rgba(0, 0, 0, 0.7),
        0 0 calc(var(--p) * 50px) rgba(212, 175, 55, 0.14);
    will-change: transform;
}

.process-section.reverse .process-img {
    --dir: -1;
}

.process-img img {
    transform: scale(1.16) translateY(calc((var(--p) - 0.5) * -34px));
    will-change: transform;
}

/* Görselin üzerinden geçen ışık bandı */
.process-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 230, 160, 0.22) 50%, transparent 65%);
    transform: translateX(calc((var(--p) * 2 - 1) * 110%));
    pointer-events: none;
}

.process-text h3 {
    font-size: 2.1rem;
}

.process-text h3::after,
.section-title h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    margin-top: 14px;
    background: linear-gradient(90deg, var(--gold), transparent);
    transform-origin: 0 50%;
}

.section-title h2::after {
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform-origin: 50% 50%;
    width: 140px;
}

.fx-ready [data-reveal] h3::after,
.fx-ready [data-reveal] h2::after {
    transform: scaleX(0);
    transition: transform 0.9s ease 0.5s;
}

.fx-ready [data-reveal].in h3::after,
.fx-ready [data-reveal].in h2::after {
    transform: scaleX(1);
}

/* ==========================================================
   Galeri ve iletişim kartları
   ========================================================== */
.vx-card.tilt:hover {
    --tz: 26px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 34px rgba(212, 175, 55, 0.18);
}

.contact-card {
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
}

.contact-card i {
    display: inline-block;
    transform: translateZ(40px);
}

.contact-card h5 {
    transform: translateZ(26px);
}

.contact-card p {
    transform: translateZ(14px);
}

.whatsapp-float-btn {
    animation: fxPulse 2.6s ease-out infinite;
}

@keyframes fxPulse {
    0% {
        box-shadow: 0 5px 15px rgba(37, 211, 102, 0.2), 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70%,
    100% {
        box-shadow: 0 5px 15px rgba(37, 211, 102, 0.2), 0 0 0 22px rgba(37, 211, 102, 0);
    }
}

/* ==========================================================
   Mobil ve hareket azaltma tercihleri
   ========================================================== */
@media (max-width: 768px) {
    .hero-content h1 {
        transform: none;
    }

    .hero-gap {
        height: clamp(90px, 22vh, 180px);
    }

    .process-section {
        gap: 0;
        margin-bottom: 60px;
    }

    .process-img {
        transform: rotateY(calc((1 - var(--p)) * 18deg * var(--dir))) translateZ(calc((1 - var(--p)) * -60px));
    }

    .fx-scroll-hint {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .fx-ready [data-reveal],
    .fx-ready .hero-content h1 .fx-w i,
    .fx-ready .hero-content h1 > span,
    .fx-ready .hero-content .submit-btn {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    .fx-ready .hero-content h1 > span {
        letter-spacing: 5px;
    }

    .feature-box i,
    .whatsapp-float-btn,
    .loader-logo img,
    .fx-scroll-hint::before,
    .hero-content .submit-btn::after,
    .header-btn::after {
        animation: none !important;
    }

    .process-img,
    .process-img img,
    .hero-content,
    .hero-slider {
        transform: none !important;
    }
}

/* ==========================================================
   Ek bölümler: menü, hero düğmeleri, marka şeridi, sayılar, alt bilgi
   ========================================================== */
#hikaye,
#urun3d,
#galeri,
#iletisim {
    scroll-margin-top: 70px;
}

/* --- Üst menü bağlantıları --- */
.main-nav {
    display: flex;
    gap: 34px;
}

.main-nav a {
    position: relative;
    padding: 6px 0;
    color: #cfcfcf;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.25s;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: 100% 50%;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.main-nav a:hover {
    color: var(--gold);
}

.main-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: 0 50%;
}

/* --- Hero düğmeleri --- */
.hero-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    transform-style: preserve-3d;
}

.hero-cta .submit-btn {
    margin-top: 0;
}

.hero-ghost {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 26px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    text-decoration: none;
    transform: translateZ(70px);
    transition: border-color 0.25s, color 0.25s, background 0.25s, transform 0.25s;
}

.hero-ghost i {
    color: var(--gold);
    animation: fxSpinCube 6s linear infinite;
}

@keyframes fxSpinCube {
    to {
        transform: rotateY(360deg);
    }
}

.hero-ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
    transform: translateZ(70px) translateY(-4px);
}

.fx-ready .hero-ghost {
    opacity: 0;
}

.fx-loaded .hero-ghost {
    animation: fxGhostIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 1.15s both;
}

@keyframes fxGhostIn {
    from {
        opacity: 0;
        transform: translateZ(70px) translateY(40px) scale(0.85);
    }

    to {
        opacity: 1;
        transform: translateZ(70px);
    }
}

/* --- Kayan marka şeridi --- */
.vx-marquee {
    overflow: hidden;
    padding: 20px 0;
    background: #0c0c0c;
    border-bottom: 1px solid #1c1c1c;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.vx-marquee-track {
    display: flex;
    width: max-content;
    animation: fxMarquee 95s linear infinite;
}

.vx-marquee:hover .vx-marquee-track {
    animation-play-state: paused;
}

.vx-marquee span {
    display: inline-flex;
    align-items: center;
    padding: 0 26px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    white-space: nowrap;
    color: #8f8f8f;   /* koyu zeminde okunabilir kontrast */
    transition: color 0.3s;
}

.vx-marquee span::after {
    content: "◆";
    margin-left: 52px;
    font-size: 0.5rem;
    color: var(--gold);
}

.vx-marquee span:hover {
    color: var(--gold);
}

@keyframes fxMarquee {
    to {
        transform: translateX(-50%);
    }
}

/* --- Sayılar --- */
.vx-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin: 0 auto 10px;
    padding: 0 5%;
    perspective: 1200px;
}

.vx-stat {
    padding: 34px 10px;
    text-align: center;
    border-left: 1px solid #1f1f1f;
}

.vx-stat:first-child {
    border-left: 0;
}

.vx-stat b {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #f5dc82, #b8922a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.vx-stat span {
    display: block;
    margin-top: 10px;
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
}

/* --- Alt bilgi --- */
.vx-footer {
    background: #070707;
    border-top: 1px solid #1c1c1c;
    padding: 56px 5% 0;
    perspective: 1200px;
}

.vx-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.3fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.vx-footer-brand img {
    height: 60px;
    width: auto;
}

.vx-footer-brand p {
    margin-top: 14px;
    max-width: 320px;
    color: #777;
    font-size: 0.88rem;
    line-height: 1.7;
}

.vx-footer-col h6 {
    margin-bottom: 16px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2.5px;
    color: var(--gold);
}

.vx-footer-col a,
.vx-footer-col span {
    display: block;
    margin-bottom: 11px;
    color: #9a9a9a;
    font-size: 0.88rem;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}

.vx-footer-col a:hover {
    color: var(--gold);
    transform: translateX(4px);
}

.vx-footer-col i {
    width: 18px;
    margin-right: 6px;
    color: var(--gold);
}

.vx-footer-bottom {
    max-width: 1200px;
    margin: 44px auto 0;
    padding: 20px 0 90px;
    border-top: 1px solid #181818;
    color: #8f8f8f;   /* koyu zeminde okunabilir kontrast */
    font-size: 0.78rem;
    text-align: center;
}

@media (max-width: 900px) {
    .main-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-ghost {
        transform: none;
        font-size: 1rem;
    }

    .vx-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .vx-stat {
        padding: 24px 6px;
    }

    .vx-stat:nth-child(3) {
        border-left: 0;
    }

    .vx-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .vx-marquee-track,
    .hero-ghost i {
        animation: none;
    }

    .fx-ready .hero-ghost {
        opacity: 1 !important;
        animation: none !important;
    }
}

/* ==========================================================
   HERO — 3D paspas takımı sahnesi (urun3d.js > initHero)
   Yazı solda, takım sağda; fotoğraflar arkada loş bir fon olur.
   ========================================================== */
.hero-sub {
    display: none;
}

.hero-has3d {
    justify-content: flex-start;
    text-align: left;
}

.hero-has3d .hero-slider {
    filter: blur(2.5px) brightness(0.9) saturate(1);
}

.hero-has3d .hero-overlay {
    background:
        radial-gradient(ellipse at 70% 55%, rgba(212, 175, 55, 0.16), transparent 55%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.34) 50%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-has3d .hero-content {
    width: auto;
    max-width: min(600px, 46%);
    margin-left: 6%;
    padding: 0;
}

.hero-has3d .hero-content h1 {
    font-size: clamp(2.4rem, 4.4vw, 4.2rem);
}

.hero-has3d .hero-sub {
    display: block;
    max-width: 440px;
    margin-top: 6px;
    color: #c4c4c4;
    font-size: 1.05rem;
    line-height: 1.65;
    transform: translateZ(40px);
}

.fx-ready .hero-sub {
    opacity: 0;
}

.fx-loaded .hero-sub {
    animation: fxSubIn 0.9s ease 0.85s both;
}

@keyframes fxSubIn {
    from {
        opacity: 0;
        transform: translateZ(40px) translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateZ(40px);
    }
}

.hero-has3d .hero-gap {
    height: 30px;
}

.hero-has3d .hero-cta {
    justify-content: flex-start;
}

@media (max-width: 820px) {
    .hero-has3d {
        align-items: flex-end;
        justify-content: center;
        text-align: center;
        padding-top: 0;
        padding-bottom: 84px;
    }

    .hero-has3d .hero-content {
        max-width: none;
        margin: 0;
        padding: 0 20px;
    }

    .hero-has3d .hero-content h1 {
        font-size: 2.1rem;
    }

    .hero-has3d .hero-sub {
        margin: 6px auto 0;
        font-size: 0.92rem;
        transform: none;
    }

    .hero-has3d .hero-gap {
        height: 20px;
    }

    .hero-has3d .hero-cta {
        justify-content: center;
    }

    .hero-has3d .hero-overlay {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.22) 40%, rgba(0, 0, 0, 0.9) 80%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fx-ready .hero-sub {
        opacity: 1 !important;
        animation: none !important;
    }
}

/* --- Sayfalar arası geçiş perdesi --- */
.vx-curtain {
    position: fixed;
    inset: 0;
    z-index: 100001;
    background: #000 url("img/logoufak.png") center / 120px auto no-repeat;
    transform: translateY(100%);
    transition: transform 0.42s cubic-bezier(0.77, 0, 0.175, 1);
    pointer-events: none;
}

.vx-curtain.go {
    transform: none;
}

@media (max-width: 820px) {
    .hero-has3d {
        padding-bottom: 104px;
    }
}

/* --- Galeri penceresi: görsel büyüyerek açılır --- */
#image-modal {
    backdrop-filter: blur(8px);
    perspective: 1200px;
}

#image-modal img {
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 6px;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.8);
    animation: fxZoomIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes fxZoomIn {
    from {
        opacity: 0;
        transform: rotateX(-16deg) translateY(40px) scale(0.86);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

a.contact-card {
    display: block;
    text-decoration: none;
}

a.contact-card p {
    color: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
    #image-modal img {
        animation: none;
    }
}

/* --- Galeri: az sayıda kart olduğunda ortala --- */
#vx-gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
    justify-content: center; /* galeri */
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Açılış ekranı yazıları --- */
.loader-title {
    margin-top: 26px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 6px;
    color: var(--gold);
    opacity: 0;
    animation: fxLoaderIn 0.8s ease 0.5s forwards;
}

.loader-sub {
    margin-top: 10px;
    min-height: 1.4em;
    font-size: 0.8rem;
    color: #8a8a8a;
    opacity: 0;
    animation: fxLoaderIn 0.6s ease 0.9s forwards;
}

.loader-sub.in {
    animation: fxLoaderIn 0.45s ease forwards;
}

@keyframes fxLoaderIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Açılış ekranı kalkana kadar sohbet balonu görünmesin */
#vxw {
    transition: opacity 0.6s ease;
}

body:not(.fx-loaded) #vxw {
    opacity: 0;
    pointer-events: none;
}

/* --- Açılış ekranı: gerçek yükleme çubuğu ve yüzdesi --- */
#preloader .loader-line {
    position: relative;
    width: min(240px, 62vw);
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.12);
    animation: none;
    overflow: hidden;
}

#preloader .loader-line::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--p, 0%);
    background: linear-gradient(90deg, #a88920, #f0d878);
    transition: width 0.2s linear;
}

.loader-pct {
    margin-top: 14px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

#preloader .loader-title {
    margin-top: 14px;
}
