/* ============================================================
   EPİK YAZILIM - FRONTEND
   Bootstrap 5 + custom layer
   ============================================================ */

/* Tema değişkenleri */
:root {
    --brand:        #0066ff;
    --brand-dark:   #0052cc;
    --brand-light:  #3573ff;
    --brand-bg:     #eff5ff;
    --dark:         #0e1424;
    --gray-1:       #f8fafc;
    --gray-2:       #e2e8f0;
    --gray-3:       #94a3b8;
    --gray-4:       #475569;
    --shadow-sm:    0 2px 8px rgba(15,23,42,.06);
    --shadow-md:    0 8px 24px rgba(15,23,42,.08);
    --shadow-lg:    0 16px 48px rgba(15,23,42,.12);
    --radius:       14px;
    --radius-lg:    20px;
    --transition:   .3s cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark);
    background: #fff;
    line-height: 1.65;
    overflow-x: hidden;
}

a { text-decoration: none; transition: var(--transition); }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
    background: var(--dark);
    color: rgba(255,255,255,.8);
    font-size: .85rem;
    padding: .55rem 0;
}
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: #fff; }
.topbar .topbar-divider { width:1px; height:14px; background: rgba(255,255,255,.2); display:inline-block; margin:0 .65rem; vertical-align:middle; }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--gray-2);
    transition: var(--transition);
}
.main-header .navbar { padding: 1rem 0; }
.navbar-brand { font-weight: 800; font-size: 1.5rem; color: var(--dark) !important; }
.navbar-brand .brand-mark { color: var(--brand); }

.main-nav .nav-link {
    color: var(--dark) !important;
    font-weight: 500;
    padding: .5rem 1rem !important;
    border-radius: 8px;
    position: relative;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active { color: var(--brand) !important; }

/* Submenü dropdown */
.main-nav .dropdown-menu {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: .5rem;
    min-width: 240px;
    margin-top: .5rem;
}
.main-nav .dropdown-item {
    border-radius: 8px;
    padding: .6rem .8rem;
    font-weight: 500;
    color: var(--dark);
}
.main-nav .dropdown-item:hover {
    background: var(--brand-bg);
    color: var(--brand);
}
.main-nav .dropdown-item i { width:20px; color: var(--brand); }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-swiper { height: clamp(420px, 70vh, 680px); position: relative; }
.hero-swiper .swiper-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: center;
}
.hero-swiper .slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,15,40,.65) 0%, rgba(0,40,100,.4) 100%);
}
.hero-swiper .slide-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 2rem 0;
}
.hero-swiper .slide-subtitle {
    display: inline-block;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.2);
    padding: .4rem 1rem;
    border-radius: 100px;
    font-size: .85rem;
    margin-bottom: 1rem;
    font-weight: 500;
}
.hero-swiper .slide-title {
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    text-shadow: 0 2px 30px rgba(0,0,0,.3);
}
.hero-swiper .slide-desc {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    opacity: .92;
    margin-bottom: 2rem;
    max-width: 560px;
}
.hero-swiper .swiper-pagination-bullet {
    background: rgba(255,255,255,.5);
    width: 12px; height: 12px;
    transition: var(--transition);
}
.hero-swiper .swiper-pagination-bullet-active {
    background: #fff; width: 36px; border-radius: 8px;
}
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
    width: 52px; height: 52px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    color: #fff;
    transition: var(--transition);
}
.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover { background: rgba(255,255,255,.3); }
.hero-swiper .swiper-button-prev:after,
.hero-swiper .swiper-button-next:after { font-size: 18px; font-weight: 700; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { font-weight: 600; padding: .75rem 1.5rem; border-radius: 10px; transition: var(--transition); }
.btn-brand {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff; border: none;
    box-shadow: 0 6px 20px rgba(0,102,255,.3);
}
.btn-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,102,255,.45);
    color: #fff;
}
.btn-outline-light-glass {
    background: rgba(255,255,255,.1); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.3); color: #fff;
}
.btn-outline-light-glass:hover { background: #fff; color: var(--brand); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(3rem, 6vw, 6rem) 0; }
.section-light { background: var(--gray-1); }
.section-dark { background: var(--dark); color: #fff; }

.section-head {
    max-width: 760px;
    margin: 0 auto 3.5rem;
    text-align: center;
}
.section-head .eyebrow {
    display: inline-block;
    color: var(--brand);
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .8rem;
}
.section-head h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.section-head p { color: var(--gray-4); font-size: 1.08rem; }

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.service-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--gray-2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s ease;
}
.service-card:hover {
    border-color: transparent;
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card .icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand-bg), #fff);
    display: flex; align-items: center; justify-content: center;
    color: var(--brand);
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}
.service-card:hover .icon {
    background: var(--brand);
    color: #fff;
    transform: scale(1.1) rotate(-5deg);
}
.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .6rem; }
.service-card p { color: var(--gray-4); font-size: .95rem; margin-bottom: 1rem; }
.service-card .more { color: var(--brand); font-weight: 600; font-size: .9rem; }

/* ============================================================
   REFERENCE LOGOS
   ============================================================ */
.ref-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.25rem; }
.ref-card {
    aspect-ratio: 16/10;
    background: #fff;
    border: 1px solid var(--gray-2);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}
.ref-card img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) opacity(.6);
    transition: var(--transition);
}
.ref-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand);
    box-shadow: var(--shadow-md);
}
.ref-card:hover img {
    filter: grayscale(0) opacity(1);
    transform: scale(1.05);
}

/* ============================================================
   STATS / TRUST
   ============================================================ */
.stat-card {
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
}
.stat-card .stat-icon { font-size: 2.5rem; color: var(--brand-light); margin-bottom: 1rem; }
.stat-card .stat-value { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1; }
.stat-card .stat-label { color: rgba(255,255,255,.7); font-weight: 500; margin-top: .5rem; }

/* TESTIMONIAL CARDS */
.testimonial-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.testimonial-card .stars { color: #f59e0b; margin-bottom: 1rem; }
.testimonial-card .quote { color: var(--gray-4); font-size: 1rem; line-height: 1.7; margin-bottom: 1.5rem; }
.testimonial-card .author { display: flex; align-items: center; gap: .9rem; }
.testimonial-card .author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-card .author .name { font-weight: 700; }
.testimonial-card .author .role { font-size: .85rem; color: var(--gray-3); }

/* ============================================================
   PACKAGE CARDS
   ============================================================ */
.package-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    height: 100%;
    border: 2px solid var(--gray-2);
    transition: var(--transition);
    position: relative;
    display: flex; flex-direction: column;
}
.package-card.popular {
    border-color: var(--brand);
    box-shadow: 0 20px 60px rgba(0,102,255,.18);
    transform: scale(1.02);
}
.package-card .popular-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff; padding: .35rem 1.25rem; border-radius: 100px;
    font-weight: 600; font-size: .8rem; letter-spacing: .04em;
    box-shadow: 0 4px 12px rgba(0,102,255,.4);
}
.package-card .pkg-icon { font-size: 2.5rem; color: var(--brand); margin-bottom: 1rem; }
.package-card .pkg-name { font-size: 1.4rem; font-weight: 800; margin-bottom: .25rem; }
.package-card .pkg-subtitle { color: var(--gray-3); font-size: .9rem; margin-bottom: 1.5rem; }
.package-card .pkg-price {
    font-size: 2.5rem; font-weight: 800; line-height: 1;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: .25rem;
}
.package-card .pkg-period { color: var(--gray-3); font-size: .85rem; margin-bottom: 1.5rem; }
.package-card .pkg-features { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1; }
.package-card .pkg-features li { padding: .55rem 0; display: flex; align-items: flex-start; gap: .65rem; font-size: .95rem; }
.package-card .pkg-features li i { color: #10b981; font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.package-card .btn { width: 100%; }

/* ============================================================
   AI CHATBOT - Sağ alt sabit
   ============================================================ */
.ai-chat-launcher {
    position: fixed; bottom: 24px; right: 24px;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand) 0%, #6366f1 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.65rem;
    box-shadow: 0 10px 30px rgba(0,102,255,.4);
    z-index: 1040;
    transition: var(--transition);
    animation: ai-pulse 2.5s infinite;
}
.ai-chat-launcher:hover { transform: scale(1.08) rotate(-5deg); }
@keyframes ai-pulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(0,102,255,.4), 0 0 0 0 rgba(0,102,255,.5); }
    50%      { box-shadow: 0 10px 30px rgba(0,102,255,.4), 0 0 0 18px rgba(0,102,255,0); }
}
.ai-chat-window {
    position: fixed;
    bottom: 100px; right: 24px;
    width: 380px; max-width: calc(100vw - 32px);
    height: 560px; max-height: calc(100vh - 130px);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(0,0,0,.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1041;
}
.ai-chat-window.open { display: flex; animation: slideUp .3s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.ai-chat-header {
    background: linear-gradient(135deg, var(--brand) 0%, #6366f1 100%);
    color: #fff;
    padding: 1.1rem 1.25rem;
    display: flex; align-items: center; gap: .85rem;
}
.ai-chat-header .ai-avatar {
    width: 44px; height: 44px;
    background: rgba(255,255,255,.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    backdrop-filter: blur(10px);
}
.ai-chat-header .ai-info h6 { margin: 0; font-weight: 700; }
.ai-chat-header .ai-info small { opacity: .85; }
.ai-chat-header .ai-status::before {
    content: ''; display: inline-block; width: 8px; height: 8px;
    border-radius: 50%; background: #10ed72; margin-right: 6px;
    box-shadow: 0 0 0 0 rgba(16,237,114,.7);
    animation: ai-dot 1.5s infinite;
}
@keyframes ai-dot {
    0% { box-shadow: 0 0 0 0 rgba(16,237,114,.7); }
    70% { box-shadow: 0 0 0 8px rgba(16,237,114,0); }
    100% { box-shadow: 0 0 0 0 rgba(16,237,114,0); }
}
.ai-chat-close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: .8;
}
.ai-chat-close:hover { opacity: 1; }

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.1rem;
    background: var(--gray-1);
    display: flex; flex-direction: column; gap: .85rem;
}
.ai-chat-messages .msg {
    max-width: 80%;
    padding: .75rem 1rem;
    border-radius: 14px;
    font-size: .92rem;
    line-height: 1.5;
}
.ai-chat-messages .msg.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.ai-chat-messages .msg.bot {
    align-self: flex-start;
    background: #fff;
    border: 1px solid var(--gray-2);
    border-bottom-left-radius: 4px;
}
.ai-chat-messages .msg.bot strong { color: var(--brand); }
.ai-typing-dots { display: inline-flex; gap: 4px; padding: 4px; }
.ai-typing-dots span {
    width: 6px; height: 6px; border-radius: 50%; background: var(--gray-3);
    animation: ai-typing 1.2s infinite;
}
.ai-typing-dots span:nth-child(2) { animation-delay: .2s; }
.ai-typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes ai-typing { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

.ai-chat-suggestions {
    display: flex; flex-wrap: wrap; gap: .35rem;
    padding: .75rem 1rem 0;
    background: var(--gray-1);
}
.ai-chat-suggestions button {
    background: #fff;
    border: 1px solid var(--gray-2);
    border-radius: 100px;
    padding: .35rem .75rem;
    font-size: .8rem;
    cursor: pointer;
    transition: var(--transition);
}
.ai-chat-suggestions button:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.ai-chat-input {
    padding: .75rem 1rem 1rem;
    background: #fff;
    border-top: 1px solid var(--gray-2);
    display: flex; gap: .5rem;
}
.ai-chat-input input {
    flex: 1;
    border: 1px solid var(--gray-2);
    border-radius: 10px;
    padding: .65rem .9rem;
    font-size: .92rem;
    outline: none;
    transition: var(--transition);
}
.ai-chat-input input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,102,255,.1); }
.ai-chat-input button {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    border: none;
    width: 40px; height: 40px;
    border-radius: 10px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.ai-chat-input button:hover { transform: scale(1.05); }

/* ============================================================
   FOOTER
   ============================================================ */
.main-footer {
    background: var(--dark);
    color: rgba(255,255,255,.7);
    padding: 4rem 0 1.5rem;
}
.main-footer h6 { color: #fff; font-weight: 700; margin-bottom: 1.25rem; }
.main-footer a { color: rgba(255,255,255,.7); }
.main-footer a:hover { color: #fff; }
.main-footer .footer-links { list-style: none; padding: 0; }
.main-footer .footer-links li { padding: .35rem 0; }
.main-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 3rem; padding-top: 1.5rem;
    text-align: center; font-size: .9rem;
}
.main-footer .social-links a {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.05);
    border-radius: 10px;
    color: rgba(255,255,255,.7);
    margin-right: .5rem;
    transition: var(--transition);
}
.main-footer .social-links a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }

/* ============================================================
   QUOTE POPUP MODAL
   ============================================================ */
.modal-quote .modal-content {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.modal-quote .modal-header {
    background: linear-gradient(135deg, var(--brand) 0%, #6366f1 100%);
    color: #fff;
    border: none;
    padding: 1.5rem 2rem;
}
.modal-quote .modal-header .btn-close { filter: invert(1); }
.modal-quote .modal-body { padding: 2rem; }
.modal-quote .form-control,
.modal-quote .form-select {
    border: 1px solid var(--gray-2);
    border-radius: 10px;
    padding: .75rem 1rem;
    transition: var(--transition);
}
.modal-quote .form-control:focus,
.modal-quote .form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0,102,255,.1);
}
.modal-quote label { font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }

/* honeypot */
.hp-field { position: absolute !important; left: -10000px !important; }

/* ============================================================
   BLOG CARD
   ============================================================ */
.blog-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-2);
    transition: var(--transition);
    height: 100%;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card .blog-img { aspect-ratio: 16/9; overflow: hidden; }
.blog-card .blog-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.blog-card:hover .blog-img img { transform: scale(1.05); }
.blog-card .blog-body { padding: 1.5rem; }
.blog-card .blog-cat {
    display: inline-block;
    background: var(--brand-bg);
    color: var(--brand);
    padding: .25rem .65rem;
    border-radius: 100px;
    font-size: .75rem;
    font-weight: 600;
    margin-bottom: .65rem;
}
.blog-card h5 {
    font-weight: 700; line-height: 1.4; margin-bottom: .65rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card h5 a { color: var(--dark); }
.blog-card h5 a:hover { color: var(--brand); }
.blog-card .blog-meta { font-size: .85rem; color: var(--gray-3); }

/* ============================================================
   CITY LANDING PAGE
   ============================================================ */
.city-landing { padding: 3rem 0; }
.city-landing-content {
    background: #fff; border-radius: var(--radius);
    padding: 2rem; box-shadow: var(--shadow-sm);
}
.city-landing-sidebar {
    position: sticky; top: 90px;
    background: #fff; border-radius: var(--radius);
    padding: 1.75rem; box-shadow: var(--shadow-sm);
}
.city-landing-sidebar h5 { font-weight: 700; margin-bottom: 1.25rem; padding-bottom: .65rem; border-bottom: 2px solid var(--brand); }
.contact-item {
    display: flex; gap: .85rem; align-items: flex-start;
    padding: .85rem 0;
    border-bottom: 1px solid var(--gray-2);
}
.contact-item:last-child { border-bottom: none; }
.contact-item .contact-icon {
    width: 40px; height: 40px;
    background: var(--brand-bg); color: var(--brand);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.contact-item .contact-text { font-size: .9rem; }
.contact-item .contact-label { color: var(--gray-3); font-size: .8rem; display: block; }
.whatsapp-btn {
    display: flex; align-items: center; justify-content: center;
    gap: .65rem;
    width: 100%;
    background: #25d366; color: #fff;
    padding: .85rem;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 1rem;
    transition: var(--transition);
}
.whatsapp-btn:hover { background: #1ebe5d; color: #fff; transform: translateY(-2px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #fff;
        margin-top: .75rem;
        border-radius: var(--radius);
        padding: 1rem;
        box-shadow: var(--shadow-md);
    }
    .package-card.popular { transform: none; }
    .ai-chat-window { width: calc(100vw - 32px); right: 16px; bottom: 90px; }
    .ai-chat-launcher { bottom: 16px; right: 16px; width: 56px; height: 56px; }
}

@media (max-width: 575px) {
    .hero-swiper { height: 70vh; min-height: 500px; }
    .section { padding: 3rem 0; }
    .section-head { margin-bottom: 2.5rem; }
}

/* Print friendly */
@media print {
    .ai-chat-launcher, .ai-chat-window, .topbar, .modal-quote { display: none !important; }
}
