/* =========================================================
   KeyLift — Beyaz & Turuncu Premium Tema
   index.php ve referanslar.php ortak kullanır
   ========================================================= */
:root {
    --orange: #ff6600;
    --orange-2: #ff8a3d;
    --orange-dark: #e05500;
    --orange-soft: #fff3ea;
    --ink: #161922;
    --ink-2: #2b303c;
    --muted: #5d6578;
    --line: #eee5dc;
    --bg: #ffffff;
    --bg-warm: #fcf8f4;
    --shadow-sm: 0 2px 10px rgba(22, 25, 34, 0.05);
    --shadow-md: 0 14px 40px rgba(22, 25, 34, 0.08);
    --shadow-or: 0 14px 40px rgba(255, 102, 0, 0.18);
    --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--ink);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }

/* ============ NAVBAR ============ */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 6%;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}
nav.scrolled {
    padding: 12px 6%;
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: var(--line);
    box-shadow: 0 8px 30px rgba(22, 25, 34, 0.06);
}
.logo img {
    height: 48px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}
.logo img:hover { transform: scale(1.04); }

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 6px;
}
.nav-links li a {
    color: var(--ink-2);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 10px 15px;
    border-radius: 10px;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.nav-links li a:not(.btn-orange):not(.btn-outline):hover,
.nav-links li a.active {
    color: var(--orange);
    background: var(--orange-soft);
}

.btn-orange {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-2) 100%);
    color: #fff !important;
    padding: 11px 22px !important;
    border-radius: 12px;
    font-weight: 600 !important;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.32);
    transition: all 0.3s ease !important;
}
.btn-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 102, 0, 0.45);
}
.btn-outline {
    border: 1.5px solid var(--line);
    color: var(--ink) !important;
    padding: 9px 20px !important;
    border-radius: 12px;
    font-weight: 600 !important;
    background: #fff;
    text-decoration: none;
    transition: all 0.3s ease !important;
}
.btn-outline:hover {
    border-color: var(--orange);
    color: var(--orange) !important;
    background: var(--orange-soft);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--ink);
    border-radius: 3px;
    transition: all 0.3s ease;
}
.hamburger.active span { background: var(--orange); }
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.user-greet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--orange-dark);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 14px;
    background: var(--orange-soft);
    border: 1px solid #ffdcc4;
    border-radius: 100px;
}

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 130px 6% 90px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 50% at 85% 10%, rgba(255, 102, 0, 0.12), transparent 70%),
        radial-gradient(ellipse 50% 45% at 10% 90%, rgba(255, 138, 61, 0.10), transparent 70%),
        linear-gradient(180deg, #ffffff 0%, var(--bg-warm) 100%);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(22, 25, 34, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 25, 34, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, #000 25%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 72%);
    animation: gridMove 22s linear infinite;
    pointer-events: none;
}
@keyframes gridMove { to { background-position: 64px 64px; } }

.hero::after {
    content: '';
    position: absolute;
    top: 14%; right: 8%;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(255, 102, 0, 0.22), transparent 70%);
    filter: blur(60px);
    animation: float 9s ease-in-out infinite;
    pointer-events: none;
}
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 24px); }
}

.hero > * { position: relative; z-index: 2; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    color: var(--ink-2);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 28px;
    animation: fadeInDown 0.8s ease;
}
.pulse-dot {
    width: 8px; height: 8px;
    background: #12c26b;
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(18, 194, 107, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(18, 194, 107, 0); }
    100% { box-shadow: 0 0 0 0 rgba(18, 194, 107, 0); }
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.3rem, 6vw, 4.9rem);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    color: var(--ink);
    animation: fadeInUp 0.8s ease 0.1s both;
}
.gradient-text {
    background: linear-gradient(135deg, var(--orange) 0%, #ffa45c 50%, var(--orange-dark) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.22rem);
    color: var(--muted);
    max-width: 680px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.2s both;
}
.hero .btn-orange {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    padding: 16px 36px !important;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(130px, 1fr));
    gap: 16px;
    margin-top: 64px;
    width: 100%;
    max-width: 860px;
    animation: fadeInUp 0.8s ease 0.4s both;
}
.hero-stat {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px 12px;
    box-shadow: var(--shadow-sm);
}
.hero-stat .num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--orange);
    line-height: 1;
}
.hero-stat .label {
    color: var(--muted);
    font-size: 14px;
    margin-top: 8px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.scroll-indicator {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: bounce 2s ease infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* Alt sayfa hero (referanslar.php) */
.page-hero {
    min-height: auto;
    padding: 160px 6% 80px;
}

/* ============ SECTIONS ============ */
.section { padding: 110px 6%; position: relative; }
.section-alt { background: var(--bg-warm); }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--orange);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.section-tag::before,
.section-tag::after {
    content: '';
    width: 22px;
    height: 2px;
    background: var(--orange);
    border-radius: 2px;
    opacity: 0.5;
}
.section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.section-subtitle {
    color: var(--muted);
    max-width: 620px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============ HİZMET KARTLARI ============ */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 38px 30px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--orange-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}
.card:hover {
    transform: translateY(-8px);
    border-color: #ffd2b3;
    box-shadow: var(--shadow-or);
}
.card:hover::before { transform: scaleX(1); }

.card-icon {
    width: 62px; height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--orange-soft);
    border-radius: 18px;
    margin-bottom: 24px;
    font-size: 26px;
    color: var(--orange);
    transition: all 0.4s ease;
}
.card:hover .card-icon {
    transform: rotate(-6deg) scale(1.08);
    background: linear-gradient(135deg, var(--orange), var(--orange-2));
    color: #fff;
    box-shadow: 0 10px 24px rgba(255, 102, 0, 0.35);
}
.card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--ink);
}
.card p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    color: var(--orange);
    font-weight: 600;
    font-size: 14px;
    transition: gap 0.3s ease;
}
.card:hover .card-link { gap: 11px; }

/* ============ FİLO ============ */
.filo-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 36px 26px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
}
.filo-card::after {
    content: '';
    position: absolute;
    left: 50%; top: 28px;
    width: 120px; height: 120px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255, 102, 0, 0.12), transparent 70%);
    pointer-events: none;
}
.truck-illust {
    font-size: 58px;
    background: linear-gradient(135deg, var(--orange), #ffa45c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    transition: transform 0.5s ease;
}
.filo-card:hover {
    transform: translateY(-6px);
    border-color: #ffd2b3;
    box-shadow: var(--shadow-md);
}
.filo-card:hover .truck-illust { transform: scale(1.12) translateY(-4px); }
.filo-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 6px;
    color: var(--ink);
}
.filo-card .desc { color: var(--muted); font-size: 14px; }
.specs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.specs span {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-2);
    background: var(--bg-warm);
    border: 1px solid var(--line);
    padding: 5px 11px;
    border-radius: 20px;
}
.specs i { color: var(--orange); margin-right: 3px; }
.badge-new {
    position: absolute;
    top: 16px; right: 16px;
    background: var(--ink);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 5px 9px;
    border-radius: 7px;
    letter-spacing: 0.8px;
    z-index: 2;
}

/* ============ REFERANS AKIŞI (MARQUEE) ============ */
.marquee {
    overflow: hidden;
    padding: 10px 0;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee + .marquee { margin-top: 14px; }
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee var(--speed, 40s) linear infinite;
}
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.logo-chip {
    flex: 0 0 auto;
    width: 190px;
    height: 96px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s ease;
}
.logo-chip img,
.ref-card .ref-logo img {
    max-width: 130px;
    max-height: 50px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.6;
    transition: all 0.35s ease;
}
.logo-chip:hover {
    border-color: #ffd2b3;
    box-shadow: var(--shadow-or);
    transform: translateY(-3px);
}
.logo-chip:hover img,
.ref-card:hover .ref-logo img {
    filter: grayscale(0);
    opacity: 1;
}
.logo-fallback {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: #9aa1b0;
    letter-spacing: -0.01em;
    text-align: center;
    padding: 0 12px;
}

.center-btn { text-align: center; margin-top: 46px; }
.center-btn .btn-outline,
.center-btn .btn-orange {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 28px !important;
}

/* ============ REFERANS SAYFASI GRID ============ */
.ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 22px;
    max-width: 1200px;
    margin: 0 auto;
}
.ref-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 22px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s ease;
}
.ref-card:hover {
    transform: translateY(-6px);
    border-color: #ffd2b3;
    box-shadow: var(--shadow-or);
}
.ref-logo {
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-warm);
    border-radius: 14px;
    margin-bottom: 18px;
}
.ref-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    color: var(--ink);
    margin-bottom: 4px;
}
.ref-card .ref-sector {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--orange-dark);
    background: var(--orange-soft);
    padding: 4px 11px;
    border-radius: 20px;
    margin-top: 6px;
}

.trust-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.trust-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.trust-item i {
    font-size: 22px;
    color: var(--orange);
    background: var(--orange-soft);
    width: 48px; height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}
.trust-item h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    margin-bottom: 4px;
}
.trust-item p { color: var(--muted); font-size: 14px; }

/* ============ CTA ============ */
.cta-strip {
    margin: 0 6%;
    padding: 52px 48px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    border-radius: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(255, 102, 0, 0.3);
}
.cta-strip::before {
    content: '';
    position: absolute;
    top: -60%; right: -8%;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 60%);
    border-radius: 50%;
}
.cta-strip h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: #fff;
    position: relative;
    z-index: 2;
}
.btn-white {
    background: #fff;
    color: var(--orange);
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}
.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.22);
}

/* ============ FOOTER ============ */
footer {
    background: var(--ink);
    color: #a3aabb;
    text-align: center;
    padding: 48px 6% 36px;
    margin-top: 100px;
}
.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.footer-logo span { color: var(--orange); }
.socials {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 22px 0;
}
.socials a {
    width: 42px; height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}
.socials a:hover {
    background: var(--orange);
    transform: translateY(-3px);
}

/* ============ SCROLL REVEAL ============ */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 968px) {
    .hamburger { display: flex; }
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 80%;
        max-width: 340px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 4px;
        padding: 100px 24px 24px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--line);
        box-shadow: -20px 0 60px rgba(22, 25, 34, 0.12);
    }
    .nav-links.active { right: 0; }
    .nav-links li { width: 100%; }
    .nav-links li a {
        display: flex;
        padding: 14px 16px !important;
        font-size: 16px;
        width: 100%;
    }
    .btn-orange, .btn-outline { justify-content: center; margin-top: 6px; }
    .user-greet { display: flex; justify-content: center; }

    .hero { padding-top: 110px; min-height: 95vh; }
    .page-hero { min-height: auto; padding: 140px 6% 60px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 44px; }
    .section { padding: 76px 6%; }
    .trust-row { grid-template-columns: 1fr; }
    .cta-strip { flex-direction: column; text-align: center; padding: 40px 24px; }
}

@media (max-width: 480px) {
    nav { padding: 14px 5%; }
    .logo img { height: 38px; }
    .hero { padding: 100px 5% 70px; }
    .hero-badge { font-size: 12px; padding: 6px 14px; }
    .hero-stats { gap: 12px; }
    .grid-container { gap: 16px; }
    .card { padding: 30px 22px; }
    .cta-strip { margin: 0 5%; }
    .logo-chip { width: 150px; height: 80px; margin-right: 14px; }
    .logo-chip img { max-width: 110px; max-height: 40px; }
    .scroll-indicator { display: none; }
}
