/* ═══════════════════════════════════════════════════
   Uzman Servis Merkezi — Custom Styles
   Tailwind CDN extend + override'lar + design polish
   ═══════════════════════════════════════════════════ */

/* ── Base ─────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1A1A2E;
    background-color: #F5F7FA;
    overflow-x: hidden;
}

/* ── Navigation ───────────────────────────────────── */
.nav-shadow {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* ── Hero ─────────────────────────────────────────── */
.hero-gradient {
    background: linear-gradient(-45deg, #e8f4fd, #f0f4ff, #e1ecf7, #dbeafe);
    background-size: 400% 400%;
    animation: heroGradient 15s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes heroGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero floating shapes */
.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--color-primary);
    top: -100px;
    right: -100px;
    animation: floatShape 20s ease-in-out infinite;
}

.shape-2 {
    width: 350px;
    height: 350px;
    background: var(--color-accent);
    bottom: -50px;
    left: -80px;
    animation: floatShape 25s ease-in-out infinite reverse;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--color-accent-light);
    top: 40%;
    left: 50%;
    animation: floatShape 18s ease-in-out infinite 3s;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 15px) scale(0.95); }
    75% { transform: translate(15px, 25px) scale(1.02); }
}

/* Hero content z-index */
.hero-content {
    position: relative;
    z-index: 1;
}

/* Hero image decorative frame */
.hero-image-wrapper {
    position: relative;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border: 3px solid var(--color-primary);
    border-radius: 1rem;
    opacity: 0.2;
    z-index: -1;
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: -15px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 1rem;
    opacity: 0.15;
    z-index: -1;
}

/* ── Service Cards ────────────────────────────────── */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 2px;
}

.service-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 8px 30px rgba(21, 101, 192, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    transform: translateY(-6px);
}

.service-card:hover::before {
    opacity: 1;
}

/* Service icon wrapper — gradient bg */
.service-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: var(--color-primary);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-wrapper {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
}

/* ── Shadow System ────────────────────────────────── */
.shadow-card {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03), 0 8px 24px rgba(0, 0, 0, 0.02);
}

/* ── Buttons ──────────────────────────────────────── */
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: #fff;
    border-radius: 0.75rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    animation: btnShimmer 3s infinite;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    box-shadow: 0 8px 24px rgba(21, 101, 192, 0.3);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #20c05c 100%);
    color: #fff;
    border-radius: 0.75rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-whatsapp::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    animation: btnShimmer 3s infinite;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #1db954 0%, #25D366 100%);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 8px 24px rgba(21, 101, 192, 0.2);
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: #fff;
    color: var(--color-primary);
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-white:hover {
    background: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ── Brand Pills ──────────────────────────────────── */
.brand-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    color: #475569;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Brand logo card — logo varsa gösterilir */
.brand-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 4px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    background: #fff;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-logo-card img {
    max-height: 42px;
    max-width: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.brand-logo-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.brand-pill:hover {
    border-color: var(--color-primary);
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.25);
    transform: translateY(-2px);
}

/* ── Section Headings ─────────────────────────────── */
.section-heading {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 800;
    color: #1A1A2E;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 2px;
}

@media (min-width: 768px) {
    .section-heading {
        font-size: 1.875rem;
    }
}

.section-subtext {
    text-align: center;
    color: #6b7280;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

/* ── Gradient Text ────────────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent), var(--color-accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Feature / Step Elements ──────────────────────── */
.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.25);
    position: relative;
}

.step-item:not(:last-child) .step-number::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 2rem;
    background: linear-gradient(to bottom, var(--color-primary), transparent);
}

/* ── District Link ────────────────────────────────── */
.district-link {
    color: var(--color-primary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.district-link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* ── Section Wave Dividers ────────────────────────── */
.wave-white-top {
    position: relative;
}

.wave-white-top::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23ffffff' d='M0,0 C480,60 960,60 1440,0 L1440,0 L0,0 Z'/%3E%3C/svg%3E") no-repeat center;
    background-size: cover;
    z-index: 1;
    pointer-events: none;
}

.wave-surface-top {
    position: relative;
}

.wave-surface-top::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23F0F4F8' d='M0,0 C480,60 960,60 1440,0 L1440,0 L0,0 Z'/%3E%3C/svg%3E") no-repeat center;
    background-size: cover;
    z-index: 1;
    pointer-events: none;
}

.wave-hero-top {
    position: relative;
}

.wave-hero-top::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23e8f0fe' d='M0,0 C360,50 720,60 1080,40 C1260,30 1380,15 1440,0 L1440,0 L0,0 Z'/%3E%3C/svg%3E") no-repeat center;
    background-size: cover;
    z-index: 1;
    pointer-events: none;
}

/* ── Mobile Bottom Bar — Glassmorphism ────────────── */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.mobile-bottom-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem;
    border-radius: 0.875rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.25s ease;
}

.mobile-bottom-bar a:active {
    transform: scale(0.96);
}

.mobile-bottom-bar .bar-phone {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

.mobile-bottom-bar .bar-whatsapp {
    background: linear-gradient(135deg, #25D366, #20c05c);
}

@media (min-width: 768px) {
    .mobile-bottom-bar {
        display: none !important;
    }
}

@media (max-width: 767px) {
    body {
        padding-bottom: 76px;
    }
}

/* ── Footer ───────────────────────────────────────── */
.footer-link {
    color: #cbd5e1;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #fff;
}

/* ── Desktop Floating FABs ────────────────────────── */
.desktop-fab-container {
    position: fixed;
    bottom: 2rem;
    left: 1.5rem;
    z-index: 45;
    flex-direction: column-reverse;
    gap: 0.75rem;
    display: none;
}

@media (min-width: 768px) {
    .desktop-fab-container {
        display: flex;
    }
}

.fab {
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.fab-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    animation: fabFloat 3s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

.fab-whatsapp:hover {
    animation: none;
    transform: scale(1.1);
}

.fab-phone {
    background: var(--color-primary);
}

.fab-tooltip {
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: #1e293b;
    color: #fff;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.fab-tooltip::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: #1e293b;
}

.fab:hover .fab-tooltip {
    opacity: 1;
}

/* ── Mobile Menu ──────────────────────────────────── */
#mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 50;
    transition: visibility 0s linear 0.3s;
    visibility: hidden;
}

#mobile-menu.open {
    visibility: visible;
    transition-delay: 0s;
}

#mobile-menu .menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#mobile-menu.open .menu-backdrop {
    opacity: 1;
}

#mobile-menu .menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 18rem;
    height: 100%;
    background: #fff;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

#mobile-menu.open .menu-panel {
    transform: translateX(0);
}

/* ── Badge — Glassmorphism ────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1.125rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1A1A2E;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* ── CTA Section ──────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary), var(--color-accent));
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    pointer-events: none;
}

.cta-section > * {
    position: relative;
    z-index: 1;
}

/* ── Statistics ───────────────────────────────────── */
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #bfdbfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 3rem;
    }
}

/* ── Scroll Reveal ────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.revealed,
.reveal-left.revealed,
.reveal-right.revealed,
.reveal-scale.revealed {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ── Animations ───────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes btnShimmer {
    0% { left: -75%; }
    100% { left: 125%; }
}

@keyframes fabFloat {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
    }
    50% {
        transform: translateY(-6px);
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
    }
}

@keyframes iconBounce {
    0% { transform: scale(1); }
    40% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ── Reduced Motion ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-gradient { animation: none; }
    .hero-shape { animation: none; }
    .fab-whatsapp { animation: none; }
    .btn-primary::after, .btn-whatsapp::after { animation: none; }
    .animate-fade-in-up { animation: none; opacity: 1; }
}
