/* ─── Base ────────────────────────────────────────────── */
:root {
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --cyan-400: #22d3ee;
    --cyan-500: #06b6d4;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --dark-3: #334155;
    --muted: #94a3b8;
}

* { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    background: #fff;
    margin: 0;
}

/* ─── Gradient utilities ─────────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-gradient {
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: opacity .2s, transform .2s;
}
.btn-gradient:hover { color:#fff; opacity: .9; transform: translateY(-1px); }

.btn-outline-gradient {
    background: transparent;
    color: var(--blue-600);
    border: 2px solid var(--blue-500);
    border-radius: 8px;
    font-weight: 600;
    transition: all .2s;
}
.btn-outline-gradient:hover {
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
    color: #fff;
    border-color: transparent;
}

.text-cyan { color: var(--cyan-500) !important; }
.bg-gradient-brand { background: linear-gradient(135deg, var(--blue-600), var(--cyan-500)); }

/* ─── Navbar ─────────────────────────────────────────── */
#mainNav {
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,.07);
    padding: 12px 0;
    z-index: 1000;
}

#mainNav .navbar-brand { font-size: 1.3rem; }
.brand-mrg { color: var(--blue-600); }
.brand-dan { color: var(--dark-2); }

#mainNav .nav-link {
    color: var(--dark-3);
    font-weight: 500;
    font-size: .92rem;
    padding: 6px 12px;
    border-radius: 6px;
    transition: color .2s, background .2s;
}
#mainNav .nav-link:hover { color: var(--blue-600); background: #eff6ff; }

/* Language toggle */
.lang-toggle { display: flex; gap: 2px; background: #f1f5f9; border-radius: 6px; padding: 2px; }
.lang-btn {
    font-size: .78rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    padding: 3px 10px;
    border-radius: 5px;
    transition: all .2s;
}
.lang-btn.active { background: #fff; color: var(--blue-600); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.lang-btn:hover:not(.active) { color: var(--dark-3); }

/* ─── Hero ───────────────────────────────────────────── */
@keyframes heroBgShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes orb1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: .15; }
    33%       { transform: translate(40px, -30px) scale(1.15); opacity: .22; }
    66%       { transform: translate(-20px, 20px) scale(.9); opacity: .1; }
}
@keyframes orb2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: .1; }
    40%       { transform: translate(-50px, 30px) scale(1.2); opacity: .18; }
    70%       { transform: translate(30px, -20px) scale(.85); opacity: .08; }
}
@keyframes particles {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-120px) translateX(20px); opacity: 0; }
}

.hero-section {
    background: linear-gradient(135deg, #0a0f1e 0%, #0f172a 25%, #1e3a5f 55%, #0e4a6e 80%, #0a2540 100%);
    background-size: 300% 300%;
    animation: heroBgShift 12s ease infinite;
    color: #fff;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

/* büyük parlayan orb – sağ üst */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(6,182,212,.22) 0%, rgba(59,130,246,.08) 50%, transparent 70%);
    border-radius: 50%;
    animation: orb1 9s ease-in-out infinite;
}

/* küçük orb – sol alt */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59,130,246,.15) 0%, rgba(6,182,212,.06) 50%, transparent 70%);
    border-radius: 50%;
    animation: orb2 11s ease-in-out infinite;
}

/* grid overlay */
.hero-section .hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* yüzen parçacıklar */
.hero-section .hero-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--cyan-400);
    opacity: 0;
    animation: particles linear infinite;
    pointer-events: none;
}
.hero-section .hero-particles span:nth-child(1)  { left:10%; bottom:20%; animation-duration:6s; animation-delay:0s;   width:3px; height:3px; }
.hero-section .hero-particles span:nth-child(2)  { left:25%; bottom:10%; animation-duration:8s; animation-delay:1s;   background:var(--blue-500); }
.hero-section .hero-particles span:nth-child(3)  { left:50%; bottom:30%; animation-duration:7s; animation-delay:2s;   width:2px; height:2px; }
.hero-section .hero-particles span:nth-child(4)  { left:70%; bottom:15%; animation-duration:9s; animation-delay:.5s;  background:var(--blue-500); width:3px; height:3px; }
.hero-section .hero-particles span:nth-child(5)  { left:85%; bottom:25%; animation-duration:5s; animation-delay:3s; }
.hero-section .hero-particles span:nth-child(6)  { left:40%; bottom:5%;  animation-duration:10s; animation-delay:1.5s; background:var(--blue-500); width:2px; height:2px; }

.hero-badge {
    display: inline-block;
    background: rgba(6,182,212,.15);
    color: var(--cyan-400);
    border: 1px solid rgba(6,182,212,.3);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .05em;
    margin-bottom: 20px;
}

.hero-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; }
.hero-subtitle { font-size: 1.1rem; color: #94a3b8; line-height: 1.7; }

.hero-stat { text-align: center; }
.hero-stat .stat-num { font-size: 2rem; font-weight: 800; line-height: 1; }
.hero-stat .stat-label { font-size: .8rem; color: #94a3b8; margin-top: 4px; }

/* ─── Section titles ─────────────────────────────────── */
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--dark); }
.section-subtitle { color: var(--muted); font-size: 1rem; }

/* ─── Renkli üst border helper'ları ─────────────────── */
.card-top-blue   { border-top: 3px solid #3b82f6 !important; }
.card-top-cyan   { border-top: 3px solid #06b6d4 !important; }
.card-top-violet { border-top: 3px solid #8b5cf6 !important; }
.card-top-emerald{ border-top: 3px solid #10b981 !important; }
.card-top-amber  { border-top: 3px solid #f59e0b !important; }
.card-top-rose   { border-top: 3px solid #f43f5e !important; }

/* ─── Feature cards ──────────────────────────────────── */
.feature-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    height: 100%;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(59,130,246,.1);
}

.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.icon-box-sm {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 1.1rem;
}

/* ─── Service cards ──────────────────────────────────── */
.service-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    height: 100%;
    transition: all .25s;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(59,130,246,.1);
    border-left-color: var(--blue-500);
    border-right-color: var(--blue-500);
    border-bottom-color: var(--blue-500);
}
.service-card .service-link {
    color: var(--blue-600);
    font-weight: 600;
    text-decoration: none;
    font-size: .9rem;
    margin-top: auto;
}
.service-card .service-link:hover { text-decoration: underline; }

/* ─── CTA section ────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
    border-radius: 20px;
    padding: 60px 40px;
    color: #fff;
}

/* ─── Blog cards ─────────────────────────────────────── */
.blog-card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    transition: all .25s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,.08); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 24px; }

/* ─── Page hero ──────────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    color: #fff;
    padding: 70px 0 50px;
}

/* ─── Form ───────────────────────────────────────────── */
.form-control, .form-select {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: .95rem;
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.form-label { font-weight: 500; color: var(--dark-2); font-size: .92rem; }

/* ─── Contact info card ──────────────────────────────── */
.contact-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-top: 3px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    height: 100%;
    transition: all .25s;
}
.contact-card:hover { border-color: var(--blue-500); background: #fff; }

/* ─── FAQ accordion ──────────────────────────────────── */
.accordion-button:not(.collapsed) {
    color: var(--blue-600);
    background: #eff6ff;
}
.accordion-button:focus { box-shadow: 0 0 0 3px rgba(59,130,246,.15); }

/* ─── Admin ──────────────────────────────────────────── */
.admin-sidebar {
    background: var(--dark);
    min-height: 100vh;
    padding: 24px 16px;
    width: 240px;
}
.admin-nav-link {
    color: var(--muted);
    text-decoration: none;
    display: block;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: .92rem;
    transition: all .2s;
}
.admin-nav-link:hover, .admin-nav-link.active { background: rgba(255,255,255,.07); color: #fff; }

/* ─── Footer ─────────────────────────────────────────── */
.footer-section {
    background: var(--dark);
    color: var(--muted);
}
.footer-links { margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: .9rem;
    transition: color .2s;
}
.footer-links a:hover { color: var(--cyan-400); }

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: rgba(255,255,255,.08);
    border-radius: 8px;
    color: var(--muted);
    text-decoration: none;
    font-size: 1rem;
    transition: all .2s;
}
.social-icon:hover { background: rgba(6,182,212,.2); color: var(--cyan-400); }

/* ─── Utility ────────────────────────────────────────── */
.rounded-xl { border-radius: 16px !important; }
.shadow-blue { box-shadow: 0 20px 40px rgba(59,130,246,.15) !important; }

.badge-new {
    background: #dcfce7;
    color: #166534;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 600;
}
.badge-read {
    background: #f1f5f9;
    color: #64748b;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 600;
}

/* ─── Navbar scrolled ────────────────────────────────── */
#mainNav.scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

/* ─── Scroll-reveal base ─────────────────────────────── */
[data-animate] {
    opacity: 0;
    transition: opacity .65s ease, transform .65s ease;
    will-change: opacity, transform;
}
[data-animate="fade-up"]    { transform: translateY(40px); }
[data-animate="fade-down"]  { transform: translateY(-30px); }
[data-animate="fade-left"]  { transform: translateX(-40px); }
[data-animate="fade-right"] { transform: translateX(40px); }
[data-animate="scale"]      { transform: scale(.88); }
[data-animate="fade"]       { transform: none; }

[data-animate].animated {
    opacity: 1;
    transform: none;
}

/* ─── Hero inline fadeUp (keeps working without observer) */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s ease both; }
.fade-up-1 { animation-delay: .1s; }
.fade-up-2 { animation-delay: .2s; }
.fade-up-3 { animation-delay: .3s; }
.fade-up-4 { animation-delay: .4s; }

/* ─── Counter number style ───────────────────────────── */
[data-count] { display: inline-block; }
