/* ============================================
   ELF Yazılım - Design System v2.1
   Kurumsal, sofistike & minimal
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --white: #FAFAFA;
    --light-blue: #e8f4fd;
    --primary: #0077C0;
    --primary-dark: #005a94;
    --primary-light: #0090eb;
    --primary-subtle: #f0f7ff;
    --dark: #1D242B;
    --dark-light: #2a3440;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --text: #1D242B;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --bg: #ffffff;
    --bg-alt: #f7f9fc;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);
    --radius-sm: 4px;
    --radius: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
    --header-height: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; color: var(--dark); }
h1 { font-size: clamp(1.75rem, 4vw, 3rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
p { color: var(--text-secondary); }
::selection { background: var(--primary); color: white; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===========================================
   SPLASH SCREEN - Orbiting Balls
   =========================================== */
#splash-screen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important; height: 100vh !important;
    z-index: 999999 !important;
    background: #000;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    transition: opacity 0.6s ease;
}
#splash-screen.hide { opacity: 0; pointer-events: none; }

/* Logo */
.splash-center {
    position: relative;
    width: 200px; height: 200px;
    display: flex; align-items: center; justify-content: center;
}
.splash-center .splash-logo {
    width: 72px; height: 72px; object-fit: contain;
    opacity: 0;
    animation: logoFadeIn 0.6s ease 0.2s forwards;
    position: relative; z-index: 2;
}

/* Orbit container */
.splash-orbit {
    position: absolute; inset: 0;
    animation: orbitSpin 3s linear infinite;
}
.splash-orbit-2 { animation: orbitSpin 4s linear infinite reverse; }
.splash-orbit-3 { animation: orbitSpin 2.5s linear infinite; }

/* Balls */
.splash-ball {
    position: absolute; border-radius: 50%;
}

/* Ball 1: primary blue outline */
.splash-ball-1 {
    width: 14px; height: 14px;
    border: 2px solid var(--primary);
    background: transparent;
    top: 4px; left: 50%; transform: translateX(-50%);
    box-shadow: 0 0 8px rgba(0,119,192,0.4);
}

/* Ball 2: light blue filled with glow */
.splash-ball-2 {
    width: 12px; height: 12px;
    background: #C7EEFF;
    bottom: 15px; right: 20px;
    box-shadow: 0 0 14px rgba(199,238,255,0.5), 0 0 28px rgba(199,238,255,0.2);
}

/* Ball 3: primary blue filled */
.splash-ball-3 {
    width: 12px; height: 12px;
    background: var(--primary);
    bottom: 20px; left: 18px;
    box-shadow: 0 0 12px rgba(0,119,192,0.6), 0 0 24px rgba(0,119,192,0.2);
}

@keyframes orbitSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes logoFadeIn { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }

/* ===========================================
   HEADER
   =========================================== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--header-height);
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); border-bottom-color: transparent; }
.header-inner {
    max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; height: 100%;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 32px; width: auto; }
.logo span { font-weight: 700; font-size: 1.1rem; color: var(--dark); }
.header-banner-logo { height: 36px; width: auto; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
    padding: 8px 16px; border-radius: var(--radius-sm);
    font-size: 0.875rem; font-weight: 500; color: var(--text-secondary);
    transition: var(--transition-fast);
}
.nav a:hover { color: var(--primary); background: var(--primary-subtle); }
.nav a.active { color: var(--primary); font-weight: 600; background: var(--primary-subtle); }
.nav-cta {
    background: var(--dark) !important; color: white !important;
    padding: 8px 20px !important; font-weight: 600 !important;
    border-radius: var(--radius-sm) !important; margin-left: 8px;
}
.nav-cta:hover { background: var(--primary) !important; }

/* Mobile */
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; width: 40px; height: 40px; position: relative; }
.mobile-toggle span { display: block; width: 20px; height: 2px; background: var(--dark); position: absolute; left: 10px; transition: var(--transition); }
.mobile-toggle span:nth-child(1) { top: 13px; }
.mobile-toggle span:nth-child(2) { top: 19px; }
.mobile-toggle span:nth-child(3) { top: 25px; }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg); top: 19px; }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg); top: 19px; }

.mobile-nav {
    display: none; position: fixed; top: var(--header-height); left: 0; right: 0;
    background: white; border-bottom: 1px solid var(--gray-200);
    padding: 12px 16px; box-shadow: var(--shadow-lg);
    flex-direction: column; gap: 2px; z-index: 999;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 500; color: var(--text); }
.mobile-nav a:hover { background: var(--primary-subtle); color: var(--primary); }

/* ===========================================
   HERO & CAROUSEL
   =========================================== */
.hero {
    margin-top: var(--header-height);
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, #1a2332 0%, #243447 50%, #1D242B 100%);
    height: calc(100vh - var(--header-height));
    max-height: 680px;
    min-height: 440px;
}
.hero::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(0,119,192,0.12) 0%, transparent 60%);
    pointer-events: none;
}

.carousel-wrapper { width: 100%; height: 100%; position: relative; z-index: 1; }
.carousel-track { display: flex; height: 100%; transition: transform 0.6s cubic-bezier(0.25,1,0.5,1); }
.carousel-slide { min-width: 100%; height: 100%; display: flex; }
.carousel-content {
    width: 100%; height: 100%; display: flex; align-items: stretch;
}
.carousel-text {
    flex: 1; color: white;
    display: flex; flex-direction: column; justify-content: center;
    align-items: flex-start;
    padding: 0 48px 0 0;
    padding-left: max(24px, calc((100vw - var(--max-width)) / 2 + 24px));
}
.carousel-text h1 { color: white; margin-bottom: 16px; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; line-height: 1.15; }
.carousel-text p { color: rgba(255,255,255,0.65); font-size: 1.05rem; margin-bottom: 28px; line-height: 1.7; max-width: 480px; }
.carousel-image {
    flex: 1; position: relative; overflow: hidden;
}
.carousel-image img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

.carousel-dots { display: flex; justify-content: center; gap: 8px; position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; }
.carousel-dot { width: 8px; height: 8px; border-radius: var(--radius-full); background: rgba(255,255,255,0.3); border: none; cursor: pointer; transition: var(--transition); }
.carousel-dot.active { background: white; width: 24px; }

.carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 0.9rem; transition: var(--transition); z-index: 10;
}
.carousel-arrow:hover { background: rgba(255,255,255,0.15); }
.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

/* ===========================================
   BUTTONS - Keskin köşeler
   =========================================== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 24px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.875rem; cursor: pointer;
    border: 1.5px solid transparent; transition: var(--transition);
    font-family: inherit; text-align: center; justify-content: center;
}
.btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,119,192,0.25); color: white; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; transform: translateY(-1px); }
.btn-white { background: white; color: var(--dark); border-color: white; font-weight: 600; }
.btn-white:hover { background: var(--light-blue); border-color: var(--light-blue); color: var(--primary-dark); transform: translateY(-1px); }
.btn-sm { padding: 7px 16px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: var(--radius-sm); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ===========================================
   SECTIONS
   =========================================== */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: white; }
.section-dark h2, .section-dark h3 { color: white; }
.section-dark p { color: rgba(255,255,255,0.6); }
.section-header { text-align: center; max-width: 560px; margin: 0 auto 48px; }
.section-header .badge {
    display: inline-block; padding: 4px 12px; border-radius: var(--radius-sm);
    background: var(--primary-subtle); color: var(--primary); font-weight: 600;
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em;
    margin-bottom: 12px; border: 1px solid rgba(0,119,192,0.1);
}
.section-header h2 { margin-bottom: 10px; }
.section-header p { font-size: 0.95rem; line-height: 1.7; }

/* ===========================================
   CARDS
   =========================================== */
.card {
    background: white; border-radius: var(--radius-lg); padding: 28px;
    box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
    transition: var(--transition); position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(0,119,192,0.12); }
.card-icon {
    width: 48px; height: 48px; border-radius: var(--radius);
    background: var(--primary-subtle); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; margin-bottom: 16px; border: 1px solid rgba(0,119,192,0.08);
}
.card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.card p { font-size: 0.875rem; line-height: 1.7; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; font-size: 0.825rem; color: var(--primary); }
.card-link:hover { gap: 10px; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.blog-card { padding: 0; }
.blog-card-image { height: 180px; overflow: hidden; background: var(--gray-100); }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.blog-card:hover .blog-card-image img { transform: scale(1.04); }
.blog-card-body { padding: 20px; }
.blog-card-meta { display: flex; align-items: center; gap: 10px; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 8px; }
.blog-card-meta .tag { background: var(--primary-subtle); color: var(--primary); padding: 2px 8px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.7rem; }
.blog-card h3 { font-size: 1rem; margin-bottom: 6px; }
.blog-card p { font-size: 0.85rem; }

/* ===========================================
   FORMS
   =========================================== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 4px; font-weight: 500; font-size: 0.85rem; color: var(--text); }
.form-control {
    width: 100%; padding: 10px 14px; border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm); font-size: 0.9rem;
    font-family: inherit; background: white; color: var(--text);
    transition: var(--transition-fast); outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,119,192,0.08); }
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ===========================================
   CTA
   =========================================== */
.cta-section { background: var(--dark); padding: 64px 0; text-align: center; position: relative; overflow: hidden; }
.cta-section::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 100%, rgba(0,119,192,0.12) 0%, transparent 60%); pointer-events: none; }
.cta-section h2 { color: white; margin-bottom: 12px; position: relative; z-index: 1; }
.cta-section p { color: rgba(255,255,255,0.6); font-size: 0.95rem; margin-bottom: 24px; position: relative; z-index: 1; }
.cta-section .btn { position: relative; z-index: 1; }

/* ===========================================
   STATS
   =========================================== */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 40px 0; }
.stat-item { text-align: center; padding: 20px 12px; }
.stat-number { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; color: var(--primary); line-height: 1; }
.section-dark .stat-number { color: white; }
.stat-label { font-size: 0.825rem; color: var(--text-secondary); margin-top: 6px; font-weight: 500; }
.section-dark .stat-label { color: rgba(255,255,255,0.45); }

/* ===========================================
   FOOTER
   =========================================== */
.footer { background: var(--dark); color: rgba(255,255,255,0.55); padding: 56px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-brand p { margin-top: 12px; font-size: 0.825rem; line-height: 1.7; }
.footer-brand .logo { margin-bottom: 8px; }
.footer-brand .logo img { height: 36px; }
.footer h4 { color: white; font-size: 0.75rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.footer ul { display: flex; flex-direction: column; gap: 8px; }
.footer ul li { font-size: 0.825rem; }
.footer ul a { color: rgba(255,255,255,0.45); font-size: 0.825rem; }
.footer ul a:hover { color: var(--light-blue); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 16px; display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; }
.footer-bottom a { color: rgba(255,255,255,0.35); }
.footer-bottom a:hover { color: var(--light-blue); }

/* ===========================================
   FIXED BUTTONS (Contact left, Scroll right)
   =========================================== */
.fixed-buttons-left { position: fixed; bottom: 24px; left: 24px; z-index: 900; display: flex; flex-direction: column; gap: 10px; }
.fixed-buttons-right { position: fixed; bottom: 24px; right: 24px; z-index: 900; display: flex; flex-direction: column; gap: 10px; }
.fixed-btn {
    width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; cursor: pointer; border: none; transition: all 0.3s ease; text-decoration: none;
    backdrop-filter: blur(8px);
}
/* Ghost style: dark neutral bg, visible on any background */
.fixed-btn-phone { background: rgba(30,41,59,0.75); color: rgba(255,255,255,0.9); box-shadow: 0 2px 12px rgba(0,0,0,0.2); }
.fixed-btn-phone:hover { background: var(--primary); color: white; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,119,192,0.4); }
.fixed-btn-whatsapp { background: rgba(30,41,59,0.75); color: rgba(255,255,255,0.9); box-shadow: 0 2px 12px rgba(0,0,0,0.2); }
.fixed-btn-whatsapp:hover { background: #25D366; color: white; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(37,211,102,0.4); }
.fixed-btn-linkedin { background: rgba(30,41,59,0.75); color: rgba(255,255,255,0.9); box-shadow: 0 2px 12px rgba(0,0,0,0.2); }
.fixed-btn-linkedin:hover { background: #0A66C2; color: white; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(10,102,194,0.4); }
.fixed-btn-instagram { background: rgba(30,41,59,0.75); color: rgba(255,255,255,0.9); box-shadow: 0 2px 12px rgba(0,0,0,0.2); }
.fixed-btn-instagram:hover { background: linear-gradient(135deg, #833AB4, #FD1D1D, #F77737); color: white; transform: translateY(-3px); }
.fixed-btn-sm { width: 40px; height: 40px; font-size: 1rem; }

/* Scroll buttons (right side) */
.scroll-nav-btn {
    width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; cursor: pointer; border: none;
    background: rgba(30,41,59,0.7); color: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px); transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.scroll-nav-btn:hover { background: var(--primary); color: white; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,119,192,0.3); }
#scroll-up-btn { opacity: 0; pointer-events: none; transition: opacity 0.3s; }
#scroll-up-btn.visible { opacity: 1; pointer-events: auto; }

/* Mobile CTA */
.mobile-services-cta { display: none !important; }
@media (max-width: 768px) {
    .mobile-services-cta { display: block !important; }
}

/* ===========================================
   ANIMATIONS
   =========================================== */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.stagger > * { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger.visible > * { opacity: 1; transform: translateY(0); }

/* ===========================================
   MISC
   =========================================== */
.page-loader { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: var(--primary); z-index: 9999; transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.page-loader.loading { transform: scaleX(0.7); }
.page-loader.done { transform: scaleX(1); transition: transform 0.1s; }

.toast { position: fixed; top: 80px; right: 24px; z-index: 10000; padding: 14px 20px; border-radius: var(--radius); background: white; box-shadow: var(--shadow-lg); font-weight: 500; font-size: 0.85rem; transform: translateX(120%); transition: var(--transition); max-width: 380px; border-left: 3px solid var(--primary); }
.toast.show { transform: translateX(0); }
.toast.success { border-left-color: #10b981; }
.toast.error { border-left-color: #ef4444; }
.toast.warning { border-left-color: #f59e0b; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 40px; }
.pagination a, .pagination span { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); font-weight: 500; font-size: 0.85rem; color: var(--text-secondary); border: 1px solid var(--gray-200); transition: var(--transition-fast); }
.pagination a:hover { background: var(--primary-subtle); color: var(--primary); border-color: var(--primary); }
.pagination .active { background: var(--primary); color: white; border-color: var(--primary); }

.breadcrumb { padding: 16px 0; font-size: 0.8rem; display: flex; align-items: center; gap: 8px; color: var(--text-muted); }
.breadcrumb a { color: var(--primary); }

.about-hero { margin-top: var(--header-height); padding: 64px 0; background: var(--bg-alt); }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info-card { display: flex; align-items: flex-start; gap: 14px; padding: 20px; border-radius: var(--radius); background: var(--bg-alt); margin-bottom: 12px; border: 1px solid var(--gray-200); }
.contact-info-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }

.legal-content { max-width: 800px; margin: 0 auto; padding: 40px 0; }
.legal-content h1 { margin-bottom: 24px; }
.legal-content p { margin-bottom: 16px; }

.scroll-top { position: fixed; bottom: 88px; right: 28px; width: 40px; height: 40px; border-radius: var(--radius); background: var(--dark); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); transition: var(--transition); z-index: 100; border: none; font-size: 0.9rem; }
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--primary); }

/* Announcement Ticker */
.announcement-ticker {
    background: linear-gradient(135deg, #0a1628 0%, #1a2d47 100%);
    display: flex; align-items: center; overflow: hidden;
    height: 36px; position: relative; z-index: 999;
    border-bottom: 1px solid rgba(0,119,192,0.15);
    margin-top: var(--header-height);
}
.announcement-ticker-icon {
    flex-shrink: 0; padding: 0 14px; color: var(--primary);
    font-size: 0.75rem; display: flex; align-items: center;
    border-right: 1px solid rgba(255,255,255,0.06);
    height: 100%; background: rgba(0,119,192,0.08);
}
.announcement-ticker-track {
    flex: 1; overflow: hidden; position: relative;
    mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
}
.announcement-ticker-content {
    display: flex; gap: 40px; white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
    padding-left: 10px;
}
.announcement-ticker:hover .announcement-ticker-content {
    animation-play-state: paused;
}
.announcement-ticker-item {
    display: inline-flex; align-items: center; gap: 8px;
    color: rgba(255,255,255,0.7); font-size: 0.78rem; font-weight: 500;
    text-decoration: none; padding: 0 6px; transition: color 0.2s;
    cursor: pointer;
}
.announcement-ticker-item:hover { color: #fff; }
.ticker-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--primary); flex-shrink: 0;
    box-shadow: 0 0 6px rgba(0,119,192,0.4);
}
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
/* ticker scrolls with page, header always at top */

/* Announcement Popup */
.announcement-popup-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    display: none; align-items: center; justify-content: center;
    z-index: 10001; backdrop-filter: blur(6px);
}
.announcement-popup-overlay.active { display: flex; }
.announcement-popup {
    background: white; border-radius: 12px; width: 90%; max-width: 520px;
    max-height: 80vh; overflow-y: auto; box-shadow: 0 24px 80px rgba(0,0,0,0.2);
    animation: ann-popup-in 0.25s ease;
}
@keyframes ann-popup-in {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.announcement-popup-header {
    padding: 20px 24px; border-bottom: 1px solid var(--gray-100);
    display: flex; justify-content: space-between; align-items: center;
}
.announcement-popup-header h3 { font-size: 1.05rem; margin: 0; color: var(--dark); }
.announcement-popup-close {
    background: none; border: none; font-size: 1.5rem; cursor: pointer;
    color: var(--gray-400); padding: 0; line-height: 1; transition: color 0.2s;
}
.announcement-popup-close:hover { color: var(--text); }
.announcement-popup-body {
    padding: 24px; font-size: 0.9rem; line-height: 1.7; color: var(--text-secondary);
}

#page-content { transition: opacity 0.3s ease; }
#page-content.loading { opacity: 0.5; }

.glass { background: rgba(255,255,255,0.7); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.3); }

/* ===========================================
   COOKIE CONSENT
   =========================================== */
.cookie-consent {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 10002;
    display: none; justify-content: center; padding: 16px;
    animation: cookieSlide 0.4s ease;
}
@keyframes cookieSlide { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookie-consent-inner {
    background: white; border-radius: 16px; padding: 20px 28px;
    box-shadow: 0 -4px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
    max-width: 700px; width: 100%;
}
.cookie-consent-text {
    display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px;
}
.cookie-consent-text strong { font-size: 0.95rem; color: var(--dark); display: block; margin-bottom: 4px; }
.cookie-consent-text p { font-size: 0.82rem; color: var(--text-secondary); margin: 0; line-height: 1.5; }
.cookie-consent-options {
    display: flex; gap: 20px; margin-bottom: 16px; padding: 12px 16px;
    background: var(--gray-50); border-radius: 10px;
}
.cookie-opt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.85rem; cursor: pointer; }
.cookie-opt span { font-weight: 600; color: var(--dark); }
.cookie-opt small { width: 100%; font-size: 0.72rem; color: var(--gray-400); margin-left: 22px; }
.cookie-opt input[type="checkbox"] { accent-color: var(--primary); }
.cookie-consent-actions { display: flex; gap: 10px; justify-content: flex-end; }
.cookie-btn {
    padding: 9px 20px; border-radius: 8px; font-size: 0.82rem; font-weight: 600;
    cursor: pointer; border: none; transition: all 0.2s;
}
.cookie-btn-outline { background: var(--gray-100); color: var(--text-secondary); }
.cookie-btn-outline:hover { background: var(--gray-200); }
.cookie-btn-primary { background: var(--primary); color: white; }
.cookie-btn-primary:hover { background: var(--primary-dark); }

/* ===========================================
   LANDING PAGE POPUP
   =========================================== */
.landing-popup-overlay {
    position: fixed; inset: 0; background: rgba(15,23,42,0.5);
    display: none; align-items: center; justify-content: center;
    z-index: 10003; backdrop-filter: blur(4px);
}
.landing-popup-overlay.active { display: flex; }
.landing-popup-card {
    background: white; border-radius: 16px; width: 92%; max-width: 560px;
    max-height: 85vh; overflow-y: auto; position: relative;
    box-shadow: 0 25px 80px rgba(0,0,0,0.2);
    animation: lpIn 0.3s ease;
}
@keyframes lpIn { from { opacity: 0; transform: scale(0.95) translateY(12px); } to { opacity: 1; transform: none; } }
.landing-popup-close {
    position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,0.06);
    border: none; width: 32px; height: 32px; border-radius: 50%;
    font-size: 1.2rem; cursor: pointer; display: flex; align-items: center;
    justify-content: center; color: var(--gray-500); transition: all 0.2s; z-index: 1;
}
.landing-popup-close:hover { background: rgba(0,0,0,0.1); color: var(--dark); }
.landing-popup-body { padding: 32px; font-size: 0.92rem; line-height: 1.7; color: var(--text-secondary); }
.landing-popup-body img { max-width: 100%; border-radius: 8px; }
.landing-popup-body h2, .landing-popup-body h3 { color: var(--dark); margin-bottom: 12px; }

/* reference-item as link */
a.reference-item { text-decoration: none; cursor: pointer; }

/* ===========================================
   REFERENCES / PARTNERS
   =========================================== */
.references-section {
    background: linear-gradient(160deg, #0a1e3d 0%, #0b2a54 50%, #0c3268 100%);
    padding: 80px 0 70px;
    overflow: hidden;
    position: relative;
}
.references-section::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(0,119,192,0.15) 0%, transparent 60%);
    pointer-events: none;
}
.references-section .section-header { margin-bottom: 50px; }
.references-section .section-header h2 { color: white; }
.references-section .section-header p { color: rgba(255,255,255,0.55); }
.references-section .badge {
    background: rgba(0,119,192,0.15); color: rgba(255,255,255,0.7);
    border-color: rgba(0,119,192,0.2);
}

.references-track-wrapper {
    overflow: hidden; position: relative;
    mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
    padding: 20px 0;
}
.references-track {
    display: flex; align-items: center; gap: 80px;
    animation: references-scroll 40s linear infinite;
    width: max-content;
}
.references-track:hover { animation-play-state: paused; }

@keyframes references-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.reference-item {
    flex-shrink: 0; display: flex; flex-direction: column;
    align-items: center; gap: 16px; position: relative;
    cursor: default; transition: transform 0.3s ease, background 0.3s ease;
    padding: 28px 36px;
    border-radius: 14px;
    min-height: 130px;
    justify-content: center;
}
.reference-item:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.06);
}

.reference-item img {
    width: auto; height: 80px; max-width: 220px;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(0.5);
    transition: filter 0.4s ease, opacity 0.4s ease, transform 0.3s ease;
}
.reference-item:hover img {
    filter: brightness(1) invert(0) opacity(1);
    transform: scale(1.08);
}

.reference-name {
    font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em;
    color: rgba(255,255,255,0);
    transition: color 0.3s ease, transform 0.3s ease;
    text-align: center; white-space: nowrap;
    transform: translateY(-6px);
}
.reference-item:hover .reference-name {
    color: rgba(255,255,255,0.8);
    transform: translateY(0);
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .carousel-content { flex-direction: column; }
    .carousel-text { text-align: center; padding: 40px 24px 24px; }
    .carousel-text p { margin-left: auto; margin-right: auto; }
    .carousel-image { flex: none; width: 100%; height: 280px; position: relative; }
    .carousel-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    .hero { min-height: auto; }
    .about-content { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --header-height: 56px; }
    html { font-size: 15px; }
    .nav { display: none; }
    .mobile-toggle { display: block; }
    .hero { min-height: auto; height: auto; padding: 40px 0 32px; }
    .hero h1 { font-size: 1.6rem !important; }
    .hero p { font-size: 0.9rem !important; }
    .section { padding: 40px 0; }
    .section-header { margin-bottom: 24px; }
    .section-header h2 { font-size: 1.3rem; }
    .services-grid, .blog-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .contact-grid, .form-row { grid-template-columns: 1fr; }
    .carousel-arrow { display: none; }
    .carousel-image { width: 100%; height: 200px; }
    .carousel-text h2 { font-size: 1.3rem !important; }
    .carousel-text p { font-size: 0.85rem !important; }
    .carousel-slide { min-height: auto; }
    .carousel-content { min-height: auto; }
    .card { padding: 16px; }

    /* Fixed buttons mobile */
    .fixed-btn { width: 40px; height: 40px; font-size: 0.95rem; }
    .fixed-btn-sm { width: 34px; height: 34px; font-size: 0.8rem; }
    .fixed-buttons-left { bottom: 12px; left: 12px; gap: 8px; }

    /* Modal mobile */
    .modal { width: 95%; max-height: 85vh; border-radius: 12px; }
    .modal-header { padding: 16px; }
    .modal-header h3 { font-size: 1rem; }
    .modal-body { padding: 16px; }
    .modal-footer { padding: 12px 16px; }

    /* Mobile nav improvements */
    .mobile-nav {
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        padding: 8px 12px 16px;
        animation: slideDown 0.2s ease;
    }
    @keyframes slideDown { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:none; } }
    .mobile-nav a { padding: 14px 16px; font-size: 0.95rem; border-bottom: 1px solid var(--gray-50); }

    /* About hero */
    .about-hero { padding: 28px 0; }
    .about-hero h1 { font-size: 1.5rem; }
    .about-hero p { font-size: 0.85rem; }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    .container { padding: 0 14px; }
    .btn { padding: 10px 18px; font-size: 0.85rem; }
    .btn-lg { padding: 12px 22px; font-size: 0.9rem; }
    .btn-sm { padding: 7px 14px; font-size: 0.78rem; }
    .hero h1 { font-size: 1.4rem !important; line-height: 1.3; }
    .hero p { font-size: 0.82rem !important; }
    .hero .btn { margin-top: 16px; }
    .section-header h2 { font-size: 1.15rem; }
    .carousel-image { height: 160px; }
    .carousel-text { padding: 24px 16px 16px; }
    .carousel-text h2 { font-size: 1.1rem !important; }
    .carousel-dots { margin-top: 12px; }
    .card { padding: 14px; border-radius: 10px; }
    .modal { width: 96%; margin: 8px; max-height: 90vh; }
    .modal-body { padding: 14px; }

    /* Status badges */
    .status-badge { font-size: 0.7rem; padding: 3px 8px; }

    /* Contact */
    .contact-info-card { padding: 14px; }
    .contact-grid { gap: 20px; }

    /* Stats */
    .stats-row { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 14px; }
    .stat-number { font-size: 1.5rem; }
}

