/* =============================================
   Öryıl İnşaat — Global Site Styles
   Tailwind CDN ile birlikte çalışır.
   ============================================= */

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background-color: #f5f3ee;
    color: #111009;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, .font-display {
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: -0.01em;
    font-weight: 700;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0a0d14; }
::-webkit-scrollbar-thumb { background: #c4893a; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #e2a83a; }

/* ── Header states ── */
.header-transparent {
    background: transparent;
}
.header-solid {
    background: rgba(10,13,20,0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

/* ── Nav links ── */
.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .025em;
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    transition: color .2s, background .2s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-link-active { color: #e2a83a !important; }

/* ── Hero Slider ── */
.hero-slide {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.6s cubic-bezier(.4,0,.2,1), transform 10s ease;
    will-change: opacity, transform;
}

.slider-dot {
    width: 6px; height: 6px;
    border-radius: 9999px;
    background: rgba(255,255,255,0.3);
    border: none; cursor: pointer;
    transition: width .3s ease, background .3s ease;
    padding: 0;
}
.slider-dot.active-dot {
    width: 22px;
    background: #c4893a;
}

/* ── Gold decorative line ── */
.gold-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, #c4893a, transparent);
    flex: 1; max-width: 80px;
}

/* ── Section label (eyebrow) ── */
.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #a87030;
    margin-bottom: 14px;
}

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.in-view {
    animation: fadeUp .75s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ── Page hero (inner pages) ── */
.page-hero {
    background: linear-gradient(135deg, #0a0d14 0%, #1c1a16 50%, #111009 100%);
    position: relative; overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 60% at 60% 40%, rgba(196,137,58,0.10), transparent);
    pointer-events: none;
}

/* ── Project / Blog cards ── */
.project-card {
    position: relative; overflow: hidden;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(17,16,9,0.08);
    transition: box-shadow .3s ease, transform .3s ease;
    display: block; text-decoration: none;
}
.project-card:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,.10);
    transform: translateY(-4px);
}
.project-card .card-img {
    overflow: hidden;
}
.project-card .card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .7s cubic-bezier(.4,0,.2,1);
}
.project-card:hover .card-img img { transform: scale(1.07); }

/* ── Prose / rich text ── */
.rich-text { color: #4e4840; line-height: 1.85; font-size: 15px; }
.rich-text p { margin-bottom: 1.1em; }
.rich-text h2, .rich-text h3 { color: #111009; font-family: 'Playfair Display', Georgia, serif; margin-bottom: .5em; margin-top: 1.4em; font-weight: 700; }
.rich-text ul, .rich-text ol { padding-left: 1.5em; margin-bottom: 1em; }
.rich-text li { margin-bottom: .4em; }
.rich-text a { color: #a87030; text-decoration: underline; }
.rich-text strong { color: #302c27; font-weight: 600; }
.rich-text blockquote { border-left: 3px solid #c4893a; padding-left: 1.2em; color: #706758; font-style: italic; margin: 1.5em 0; }

/* ── Form inputs ── */
.field {
    width: 100%;
    padding: 13px 18px;
    background: #fff;
    border: 1.5px solid rgba(17,16,9,0.12);
    border-radius: 12px;
    font-size: 14px;
    color: #111009;
    font-family: 'Outfit', system-ui, sans-serif;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
.field:focus { border-color: #c4893a; box-shadow: 0 0 0 3.5px rgba(196,137,58,.12); }
.field::placeholder { color: #938876; }
textarea.field { resize: vertical; min-height: 120px; }

/* ── Buttons ── */
.btn-gold {
    display: inline-flex; align-items: center; gap: 8px;
    background: #c4893a; color: #fff;
    font-size: 14px; font-weight: 600;
    padding: 13px 28px; border-radius: 9999px;
    border: none; cursor: pointer;
    text-decoration: none;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 18px rgba(196,137,58,.28);
}
.btn-gold:hover { background: #e2a83a; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(196,137,58,.35); }

.btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: rgba(255,255,255,.8);
    font-size: 14px; font-weight: 500;
    padding: 12px 26px; border-radius: 9999px;
    border: 1.5px solid rgba(255,255,255,.2);
    cursor: pointer; text-decoration: none;
    transition: background .2s, border-color .2s, color .2s;
}
.btn-outline:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); color: #fff; }

/* ── Stat strip ── */
.stat-strip {
    background: #fff;
    box-shadow: 0 8px 40px rgba(0,0,0,.08);
}

/* ── Values card ── */
.value-card {
    padding: 28px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.03);
    transition: border-color .3s, background .3s;
}
.value-card:hover { border-color: rgba(196,137,58,.35); background: rgba(196,137,58,.04); }

/* ── Contact info icon ── */
.contact-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: rgba(196,137,58,.12);
    color: #c4893a;
    font-size: 15px;
}

/* ── Badge ── */
.badge-active {
    display: inline-flex; align-items: center;
    padding: 4px 10px; border-radius: 9999px;
    font-size: 11px; font-weight: 700; letter-spacing: .04em;
    background: rgba(34,197,94,.12); color: #4ade80;
}
.badge-done {
    display: inline-flex; align-items: center;
    padding: 4px 10px; border-radius: 9999px;
    font-size: 11px; font-weight: 700; letter-spacing: .04em;
    background: rgba(148,163,184,.12); color: #94a3b8;
}

/* ── Section divider ── */
.section-divider {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 32px;
}
.section-divider-line {
    flex: 1; height: 1px;
    background: linear-gradient(90deg, rgba(196,137,58,.4), transparent);
}

/* ── Backdrop overlay (hero) ── */
.hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(10,13,20,.60)  0%,
        rgba(10,13,20,.45) 40%,
        rgba(10,13,20,.78) 100%
    );
}

/* ── Lightbox helper ── */
.gallery-item { cursor: zoom-in; }

/* =============================================
   REVEAL ANİMASYONLARI — sade, performanslı
   ============================================= */
.reveal       { opacity: 0; transform: translateY(22px); }
.reveal-left  { opacity: 0; transform: translateX(-22px); }
.reveal-right { opacity: 0; transform: translateX( 22px); }
.reveal.in-view, .reveal-left.in-view, .reveal-right.in-view {
    animation: revealFade .75s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes revealFade {
    to { opacity: 1; transform: translate(0,0); }
}

/* stat sayaç renk vurgusu */
.stat-num { display: inline-block; transition: color .3s; }
.stat-num.counted { color: #c4893a; }

/* stat progress bar */
.stat-bar-wrap { height: 2px; background: rgba(196,137,58,.12); border-radius: 9999px; overflow: hidden; margin-top: 8px; }
.stat-bar-fill  { height: 100%; width: 0%; background: linear-gradient(90deg, #c4893a, #e2a83a); border-radius: 9999px; transition: width 1.4s cubic-bezier(.4,0,.2,1); }

/* marquee */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; will-change: transform; }
.marquee-track:hover { animation-play-state: paused; }

/* shimmer metin */
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
.text-shimmer {
    background: linear-gradient(90deg, #c4893a 0%, #e2a83a 30%, #f0d595 50%, #e2a83a 70%, #c4893a 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3.5s linear infinite;
}

/* ── project card corner accents ── */
.project-card .card-corner { position: absolute; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .3s, transform .3s; }
.project-card .card-corner-tl { top: -1px; left: -1px; border-top: 2px solid #c4893a; border-left: 2px solid #c4893a; width: 20px; height: 20px; border-radius: 18px 0 0 0; transform: translate(-4px,-4px); }
.project-card .card-corner-br { bottom: -1px; right: -1px; border-bottom: 2px solid #c4893a; border-right: 2px solid #c4893a; width: 20px; height: 20px; border-radius: 0 0 18px 0; transform: translate(4px,4px); }
.project-card:hover .card-corner { opacity: 1; transform: translate(0,0); }

/* value card icon wiggle */
.value-card:hover .value-icon { animation: wiggle .45s ease; }
@keyframes wiggle { 0%,100%{transform:rotate(0)} 30%{transform:rotate(-9deg)} 70%{transform:rotate(9deg)} }

/* =============================================
   VİNÇ SAHNESİ — CSS/SVG animasyonu
   Hero sağ tarafında, yarı saydam
   ============================================= */

/* Tüm sahne sarmalayıcı */
.crane-scene {
    position: absolute;
    right: 0; bottom: 0;
    width: 340px; height: 520px;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    animation: sceneReveal 1s ease 0.4s forwards;
}
@keyframes sceneReveal {
    to { opacity: 1; }
}

/* Vinç gövdesi — hafif ileri-geri sallanma */
.crane-body {
    transform-origin: 50% 100%;
    animation: craneSway 6s ease-in-out infinite;
}
@keyframes craneSway {
    0%,100% { transform: rotate(0deg); }
    30%     { transform: rotate(.6deg); }
    70%     { transform: rotate(-.5deg); }
}

/* Vinç kolu — hafif aşağı-yukarı */
.crane-boom {
    transform-origin: 28% 42%;
    animation: boomBob 8s ease-in-out infinite;
}
@keyframes boomBob {
    0%,100% { transform: rotate(0deg); }
    50%     { transform: rotate(.8deg); }
}

/* Asılı yük — sallanma */
.crane-load {
    transform-origin: 50% 0%;
    animation: loadSwing 4s ease-in-out infinite;
}
@keyframes loadSwing {
    0%,100% { transform: rotate(-3deg) translateX(0); }
    25%     { transform: rotate(3deg)  translateX(4px); }
    75%     { transform: rotate(-2deg) translateX(-3px); }
}

/* Halat uzama-kısalma — ince piston efekti */
.crane-rope {
    transform-origin: 50% 0%;
    animation: ropeStretch 4s ease-in-out infinite;
}
@keyframes ropeStretch {
    0%,100% { transform: scaleY(1); }
    50%     { transform: scaleY(1.04); }
}

/* Bina katları — sırayla yukarı inşa */
.floor-1 { opacity: 0; animation: buildFloor .6s ease  0.8s forwards; }
.floor-2 { opacity: 0; animation: buildFloor .6s ease  1.4s forwards; }
.floor-3 { opacity: 0; animation: buildFloor .6s ease  2.0s forwards; }
.floor-4 { opacity: 0; animation: buildFloor .6s ease  2.6s forwards; }
.floor-5 { opacity: 0; animation: buildFloor .6s ease  3.2s forwards; }
@keyframes buildFloor {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* İşçi — yürüme animasyonu */
.worker {
    animation: workerWalk 3s ease-in-out 3.8s infinite alternate;
}
@keyframes workerWalk {
    from { transform: translateX(0); }
    to   { transform: translateX(18px); }
}

/* Toz / kum parçacıkları (en altta) */
.dust-1 { animation: dustPuff 3s ease-out 3.0s infinite; }
.dust-2 { animation: dustPuff 3s ease-out 3.6s infinite; }
.dust-3 { animation: dustPuff 3s ease-out 4.2s infinite; }
@keyframes dustPuff {
    0%   { opacity: 0;   transform: translate(0,0) scale(.5); }
    30%  { opacity: .35; transform: translate(-8px,-12px) scale(1); }
    100% { opacity: 0;   transform: translate(-18px,-28px) scale(1.6); }
}

/* Güneş ışınları */
.sun-rays {
    transform-origin: 50% 50%;
    animation: sunSpin 20s linear infinite;
}
@keyframes sunSpin {
    to { transform: rotate(360deg); }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .crane-body, .crane-boom, .crane-load, .crane-rope,
    .worker, .dust-1, .dust-2, .dust-3, .sun-rays,
    .text-shimmer, .marquee-track { animation: none !important; }
    .floor-1,.floor-2,.floor-3,.floor-4,.floor-5 { opacity: 1 !important; }
    .crane-scene { opacity: 1 !important; animation: none !important; }
    .reveal, .reveal-left, .reveal-right { opacity: 1 !important; transform: none !important; animation: none !important; }
}
