/* ============================================================
   Dijital Merkezim — Modern Frontend Design System
   ============================================================ */

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent: #06b6d4;
    --accent-2: #8b5cf6;
    --success: #10b981;
    --dark: #0f172a;
    --dark-soft: #1e293b;
    --gray-700: #334155;
    --gray-500: #64748b;
    --gray-300: #cbd5e1;
    --gray-100: #f1f5f9;
    --white: #ffffff;
    --gradient-main: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    --gradient-card: linear-gradient(145deg, rgba(99,102,241,.08) 0%, rgba(6,182,212,.05) 100%);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, .06);
    --shadow-md: 0 8px 30px rgba(15, 23, 42, .1);
    --shadow-lg: 0 20px 60px rgba(99, 102, 241, .15);
    --radius: 16px;
    --radius-lg: 24px;
    --nav-height: 64px;
    --nav-offset: 20px;
    --nav-top: 0;
    --nav-total: calc(var(--nav-height) + 16px);
    --transition: .3s cubic-bezier(.4, 0, .2, 1);
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--dark-soft);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection { background: rgba(99, 102, 241, .2); color: var(--dark); }

img { max-width: 100%; height: auto; }

a { transition: color var(--transition), opacity var(--transition); }

/* ---- Typography ---- */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: .75rem;
}
.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--gradient-main);
    border-radius: 2px;
}
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -.02em;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.section-desc {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}
.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Buttons ---- */
.btn-primary {
    background: var(--gradient-main);
    border: none;
    font-weight: 600;
    padding: .65rem 1.5rem;
    border-radius: 12px;
    transition: transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-main);
    filter: brightness(1.05);
}
.btn-outline-light {
    border: 2px solid rgba(255,255,255,.35);
    border-radius: 12px;
    font-weight: 600;
    padding: .65rem 1.5rem;
}
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.btn-glow {
    position: relative;
    overflow: hidden;
}
.btn-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
    transform: translateX(-100%);
    transition: transform .6s;
}
.btn-glow:hover::after { transform: translateX(100%); }

/* ---- Navbar ---- */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    padding: 8px var(--nav-offset) 0;
    pointer-events: none;
}
.nav-bar-inner {
    pointer-events: auto;
    max-width: 1320px;
    margin: 0 auto;
    height: var(--nav-height);
    padding: 0 1.25rem;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.site-nav.scrolled .nav-bar-inner {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.1);
    border-color: rgba(15, 23, 42, 0.08);
}
/* Hero üzerindeyken koyu cam menü — arkada beyaz alan görünmesin */
.site-nav:not(.scrolled) .nav-bar-inner {
    background: rgba(15, 23, 42, 0.42);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}
.site-nav:not(.scrolled) .navbar-brand {
    color: #fff !important;
}
.site-nav:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.88) !important;
}
.site-nav:not(.scrolled) .nav-link:hover,
.site-nav:not(.scrolled) .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
}
.site-nav:not(.scrolled) .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.25);
    filter: invert(1);
}
.site-nav:not(.scrolled) .dropdown-menu {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}
.site-nav:not(.scrolled) .dropdown-item {
    color: rgba(255, 255, 255, 0.88);
}
.site-nav:not(.scrolled) .dropdown-item:hover,
.site-nav:not(.scrolled) .dropdown-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.site-nav .navbar {
    height: var(--nav-height);
    padding: 0;
}
.site-nav .navbar-brand {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--dark) !important;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 0;
}
.site-logo {
    height: 42px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}
.brand-name {
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.2;
    white-space: nowrap;
}
.site-nav:not(.scrolled) .brand-name {
    color: #fff;
}
.site-nav.scrolled .brand-name {
    color: var(--dark);
}
.brand-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-main);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}
.site-nav .nav-link {
    color: var(--gray-700) !important;
    font-weight: 500;
    font-size: .9rem;
    padding: .45rem .75rem !important;
    border-radius: 8px;
    transition: color var(--transition), background var(--transition);
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active {
    color: var(--primary-dark) !important;
    background: rgba(99, 102, 241, 0.08);
}
.site-nav .nav-cta {
    background: var(--gradient-main) !important;
    color: #fff !important;
    padding: .4rem 1.1rem !important;
    border-radius: 10px !important;
    margin-left: .35rem;
}
.site-nav .nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-main) !important;
    color: #fff !important;
}
.site-nav .navbar-toggler {
    border-color: rgba(15, 23, 42, 0.12);
    padding: .35rem .55rem;
}
.site-nav .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); }
@media (max-width: 991px) {
    .site-nav { padding: 0 12px; }
    .nav-bar-inner {
        height: auto;
        min-height: var(--nav-height);
        padding: .65rem 1rem;
        border-radius: 16px;
    }
    .site-nav .navbar { height: auto; flex-wrap: wrap; }
    .site-nav .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        padding: .75rem 0 0;
        margin-top: .75rem;
        border-top: 1px solid rgba(15, 23, 42, 0.06);
    }
    .site-nav:not(.scrolled) .navbar-collapse {
        background: transparent;
        border-top-color: rgba(255, 255, 255, 0.12);
    }
    .site-nav .nav-cta { margin: .5rem 0 0 !important; display: inline-block; }
    .site-nav .dropdown-menu { border: none; box-shadow: none; padding-left: 1rem; }
    .dropdown-submenu > .dropdown-menu { margin-left: 0; }
}

/* ---- Nav dropdown / submenu ---- */
.site-nav .dropdown-menu {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: .5rem;
    min-width: 200px;
}
.site-nav .dropdown-item {
    border-radius: 8px;
    padding: .5rem .85rem;
    font-size: .9rem;
    font-weight: 500;
}
.site-nav .dropdown-item:hover,
.site-nav .dropdown-item.active {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary-dark);
}
.dropdown-all-wrap {
    margin-top: .35rem;
    padding-top: .35rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.dropdown-item-all {
    font-weight: 700;
    color: var(--primary-dark) !important;
}
.service-card-media-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
@media (min-width: 992px) {
    .site-nav .dropdown-hover:hover > .dropdown-menu,
    .site-nav .dropdown-hover.show > .dropdown-menu {
        display: block;
    }
    .site-nav .dropdown-hover > .dropdown-menu {
        margin-top: 0;
    }
    .dropdown-submenu { position: relative; }
    .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -.5rem;
        margin-left: .15rem;
    }
    .dropdown-submenu:hover > .dropdown-menu { display: block; }
}
@media (max-width: 991px) {
    .dropdown-submenu > .dropdown-toggle::after {
        transform: rotate(90deg);
        margin-left: auto;
    }
    .dropdown-submenu > .dropdown-menu {
        position: static;
        display: none;
        padding-left: .75rem;
        border: none;
        box-shadow: none;
    }
    .dropdown-submenu.open > .dropdown-menu { display: block; }
}

main { padding-top: 0; }

/* İlk bölüm menü altına taşmasın diye (hero dışı sayfalar) */
main > section:first-child:not(.hero-modern):not(.hero-section):not(.page-hero) {
    padding-top: var(--nav-total);
}

/* ---- Hero ---- */
.hero-modern {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    margin-top: 0;
    padding-top: var(--nav-total);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--gradient-dark);
}
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .45;
    animation: float 8s ease-in-out infinite;
}
.hero-orb-1 { width: 500px; height: 500px; background: #6366f1; top: -10%; right: -5%; animation-delay: 0s; }
.hero-orb-2 { width: 400px; height: 400px; background: #06b6d4; bottom: -10%; left: -5%; animation-delay: -3s; }
.hero-orb-3 { width: 300px; height: 300px; background: #8b5cf6; top: 40%; left: 40%; animation-delay: -5s; opacity: .25; }
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.05); }
}
.hero-content-wrap { position: relative; z-index: 2; padding: 4rem 0; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    padding: .4rem 1rem;
    border-radius: 50px;
    font-size: .85rem;
    color: rgba(255,255,255,.9);
    margin-bottom: 1.5rem;
}
.hero-badge .pulse {
    width: 8px; height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(1.3); }
}
.hero-title {
    font-size: clamp(2.2rem, 6vw, 3.75rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -.03em;
    margin-bottom: 1.25rem;
}
.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255,255,255,.7);
    max-width: 540px;
    margin-bottom: 2rem;
    line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stat strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.hero-stat span { font-size: .85rem; color: rgba(255,255,255,.55); }
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-card-stack {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1;
}
.hero-float-card {
    position: absolute;
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius);
    padding: 1.25rem;
    color: #fff;
    animation: floatCard 6s ease-in-out infinite;
}
.hero-float-card i { font-size: 1.5rem; margin-bottom: .5rem; display: block; }
.hero-float-card strong { display: block; font-size: .9rem; }
.hero-float-card small { color: rgba(255,255,255,.6); font-size: .75rem; }
.hero-float-card:nth-child(1) { top: 5%; left: 0; animation-delay: 0s; }
.hero-float-card:nth-child(2) { top: 35%; right: 0; animation-delay: -2s; }
.hero-float-card:nth-child(3) { bottom: 10%; left: 10%; animation-delay: -4s; }
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.hero-main-visual {
    width: 280px;
    height: 280px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 0 80px rgba(99,102,241,.4);
    position: relative;
    z-index: 1;
}
.hero-main-visual i { font-size: 5rem; color: #fff; }

.hero-image-stack {
    position: relative;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}
.hero-main-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.hero-thumb {
    position: absolute;
    width: 92px;
    height: 92px;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,.9);
    box-shadow: var(--shadow-md);
    animation: floatCard 6s ease-in-out infinite;
}
.hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-thumb-1 { top: 8%; left: -6%; animation-delay: 0s; }
.hero-thumb-2 { top: 42%; right: -8%; animation-delay: -2s; }
.hero-thumb-3 { bottom: 6%; left: 8%; animation-delay: -4s; }

/* Carousel hero */
.hero-section { margin-top: 0; padding-top: 0; }
.hero-slide {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: var(--nav-total);
    background: var(--gradient-dark);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,.85) 0%, rgba(99,102,241,.4) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 720px; padding: 6rem 0 4rem; }
.hero-content h1 { font-weight: 800; letter-spacing: -.02em; }
.carousel-control-prev, .carousel-control-next { width: 8%; opacity: .7; }
.carousel-control-prev:hover, .carousel-control-next:hover { opacity: 1; }

/* ---- Trust bar ---- */
.trust-bar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    padding: 1.25rem 0;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    justify-content: center;
    text-align: left;
}
.trust-item i {
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}
.trust-item strong { display: block; font-size: .95rem; color: var(--dark); }
.trust-item span { font-size: .8rem; color: var(--gray-500); }

/* ---- Sections ---- */
.section { padding: 5rem 0; }
.section-alt { background: var(--gray-100); }
.section-dark {
    background: var(--gradient-dark);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.section-dark .section-title { color: #fff; }
.section-dark .section-desc { color: rgba(255,255,255,.65); }

/* ---- Service cards ---- */
.service-card-v2 {
    background: var(--white);
    border: 1px solid rgba(15,23,42,.06);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    height: 100%;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card-v2.has-image {
    padding: 0;
    display: flex;
    flex-direction: column;
}
.service-card-media {
    position: relative;
    overflow: hidden;
}
.service-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.service-card-v2:hover .service-card-img {
    transform: scale(1.05);
}
.service-icon-badge {
    position: absolute;
    left: 1rem;
    bottom: -28px;
    margin-bottom: 0;
    box-shadow: var(--shadow-md);
    z-index: 2;
}
.service-card-body {
    padding: 2.25rem 1.75rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.service-card-body p { flex: 1; }
.service-detail-img {
    max-height: 420px;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}
.service-card-v2::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
.service-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99,102,241,.15);
}
.service-card-v2:hover::before { transform: scaleX(1); }
.service-icon-v2 {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 1.25rem;
}
.service-icon-v2.web { background: linear-gradient(135deg, #6366f1, #818cf8); }
.service-icon-v2.mobile { background: linear-gradient(135deg, #06b6d4, #22d3ee); }
.service-icon-v2.software { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.service-icon-v2.code { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.service-icon-v2.social { background: linear-gradient(135deg, #ec4899, #f472b6); }
.service-icon-v2.ads-social { background: linear-gradient(135deg, #ef4444, #f87171); }
.service-icon-v2.google { background: linear-gradient(135deg, #4285f4, #34a853); }
.service-icon-v2.seo { background: linear-gradient(135deg, #10b981, #34d399); }
.service-card-v2 h5 {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: .75rem;
}
.service-card-v2 p { font-size: .9rem; color: var(--gray-500); margin-bottom: 1.25rem; line-height: 1.6; }
.service-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}
.service-link:hover { color: var(--primary-dark); gap: .55rem; }

/* Legacy service cards */
.service-card, .project-card, .blog-card, .testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover, .project-card:hover, .blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.service-icon {
    width: 56px; height: 56px;
    background: var(--gradient-main);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.4rem; margin-bottom: 1rem;
}

/* ---- Process ---- */
.process-step {
    text-align: center;
    position: relative;
    padding: 0 1rem;
}
.process-num {
    width: 56px;
    height: 56px;
    background: var(--gradient-main);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    margin: 0 auto 1.25rem;
    position: relative;
    z-index: 1;
}
.process-step h5 { font-weight: 700; margin-bottom: .5rem; color: var(--dark); }
.process-step p { font-size: .9rem; color: var(--gray-500); margin: 0; }
@media (min-width: 768px) {
    .process-line::before {
        content: '';
        position: absolute;
        top: 28px;
        left: 15%;
        right: 15%;
        height: 2px;
        background: linear-gradient(90deg, var(--primary), var(--accent));
        opacity: .2;
    }
    .process-line { position: relative; }
}

/* ---- Marketing banner ---- */
.marketing-banner {
    background: var(--gradient-main);
    border-radius: var(--radius-lg);
    padding: 3rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.marketing-banner::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 400px; height: 400px;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
}
.marketing-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,255,255,.15);
    padding: .5rem 1rem;
    border-radius: 50px;
    font-size: .85rem;
    margin: .25rem;
}
.marketing-banner-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 3px solid rgba(255,255,255,.25);
    box-shadow: 0 16px 40px rgba(0,0,0,.2);
}

.why-us-image-wrap {
    margin-bottom: 1.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
}
.why-us-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* ---- Project cards ---- */
.project-card { padding: 0; overflow: hidden; }
.project-img, .blog-img { width: 100%; height: 200px; object-fit: cover; }
.project-img-placeholder {
    height: 200px;
    background: var(--gradient-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

/* ---- Demo cards ---- */
.demo-card-v2 {
    background: var(--white);
    border: 1px solid rgba(15,23,42,.08);
    border-radius: var(--radius);
    padding: 1.5rem;
    height: 100%;
    transition: var(--transition);
}
.demo-card-v2:hover { border-color: var(--primary-light); box-shadow: var(--shadow-md); }
.demo-card-v2 h6 { font-weight: 700; margin-bottom: .75rem; }
.demo-credentials {
    background: var(--gray-100);
    border-radius: 8px;
    padding: .75rem;
    font-size: .8rem;
    margin-top: .75rem;
}

/* ---- Stats / Why us ---- */
.stat-box-v2 {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 1.75rem 1rem;
    text-align: center;
    transition: var(--transition);
}
.stat-box-v2:hover { background: rgba(255,255,255,.12); transform: translateY(-4px); }
.stat-box-v2 i { font-size: 1.75rem; color: var(--accent); margin-bottom: .75rem; display: block; }
.stat-box-v2 .counter { font-size: 2rem; font-weight: 800; color: #fff; }
.stat-box-v2 p { font-size: .85rem; color: rgba(255,255,255,.65); margin: 0; }
.why-list li { padding: .6rem 0; font-size: 1rem; display: flex; align-items: flex-start; gap: .75rem; }
.why-list li i { color: var(--accent); flex-shrink: 0; margin-top: .15rem; }

/* ---- References ---- */
.ref-card {
    background: var(--white);
    border: 1px solid rgba(15,23,42,.06);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ref-card:hover { box-shadow: var(--shadow-md); border-color: rgba(99,102,241,.2); }
.ref-logo { max-height: 50px; max-width: 100%; filter: grayscale(100%); opacity: .65; transition: var(--transition); }
.ref-card:hover .ref-logo { filter: none; opacity: 1; }

/* ---- Testimonials ---- */
.testimonial-card {
    position: relative;
    padding-top: 2.5rem !important;
}
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: .5rem;
    left: 1.25rem;
    font-size: 4rem;
    line-height: 1;
    color: var(--primary);
    opacity: .15;
    font-family: Georgia, serif;
}
.testimonial-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ---- Blog ---- */
.blog-card { padding: 0; overflow: hidden; }
.blog-card .p-3, .blog-card .card-body { padding: 1.25rem !important; }
.blog-card h5 a { font-weight: 700; transition: color var(--transition); }
.blog-card h5 a:hover { color: var(--primary) !important; }

/* ---- CTA / Quote ---- */
.cta-section {
    background: var(--dark);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(99,102,241,.25) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(6,182,212,.15) 0%, transparent 50%);
}
.cta-form-wrap {
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}
.cta-section .form-control,
.cta-section .form-select {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    border-radius: 10px;
    padding: .75rem 1rem;
}
.cta-section .form-control::placeholder { color: rgba(255,255,255,.4); }
.cta-section .form-control:focus {
    background: rgba(255,255,255,.1);
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(99,102,241,.2);
    color: #fff;
}

/* ---- Page hero (inner pages) ---- */
.page-hero {
    position: relative;
    padding: 4rem 0 3rem;
    margin-top: 0;
    padding-top: calc(4rem + var(--nav-total));
    background: var(--gradient-dark);
    overflow: hidden;
}
.page-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(99,102,241,.3) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(6,182,212,.2) 0%, transparent 40%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
    margin: 0;
}
.page-hero p { color: rgba(255,255,255,.65); margin: .75rem 0 0; font-size: 1.05rem; }
.page-hero .breadcrumb { margin-bottom: .5rem; }
.page-hero .breadcrumb-item a { color: rgba(255,255,255,.5); text-decoration: none; }
.page-hero .breadcrumb-item a:hover { color: #fff; }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,.85); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.3); }

.sticky-below-nav { top: calc(var(--nav-total) + 1rem) !important; }

/* ---- Inner page forms ---- */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
.form-card {
    background: var(--white);
    border: 1px solid rgba(15,23,42,.08);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}
.form-card .form-control,
.form-card .form-select {
    border-radius: 10px;
    border-color: var(--gray-300);
    padding: .75rem 1rem;
}
.form-card .form-control:focus,
.form-card .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
.contact-info-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--gray-100);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    transition: var(--transition);
}
.contact-info-item:hover { background: var(--gradient-card); }
.contact-info-item i {
    width: 48px;
    height: 48px;
    background: var(--gradient-main);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,.75);
    padding-top: 4rem;
}
.site-footer h5, .site-footer h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.25rem;
}
.site-footer a {
    color: rgba(255,255,255,.55);
    text-decoration: none;
    transition: color var(--transition);
    font-size: .925rem;
}
.site-footer a:hover { color: var(--primary-light); }
.site-footer .footer-brand p { color: rgba(255,255,255,.5); font-size: .925rem; line-height: 1.7; }
.footer-links li { margin-bottom: .6rem; }
.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,.08);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: .5rem;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff !important; transform: translateY(-3px); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1.5rem 0;
    margin-top: 3rem;
    font-size: .875rem;
    color: rgba(255,255,255,.4);
}
.footer-cta-box {
    background: var(--gradient-main);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}
.footer-cta-box p { color: rgba(255,255,255,.85); margin-bottom: 1rem; font-size: .925rem; }

/* ---- WhatsApp ---- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    z-index: 999;
    box-shadow: 0 6px 20px rgba(37,211,102,.45);
    transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; box-shadow: 0 8px 30px rgba(37,211,102,.55); }

/* ---- Animations ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ---- Content pages ---- */
.content { line-height: 1.8; color: var(--gray-700); }
.content h2, .content h3 { color: var(--dark); font-weight: 700; margin-top: 1.5rem; }
.content-page {
    background: var(--white);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 2.75rem);
    box-shadow: var(--shadow-sm);
}
.content-page .content h2 { font-size: 1.35rem; margin-top: 2rem; padding-bottom: .5rem; border-bottom: 2px solid var(--gray-100); }
.content-page .content h2:first-child { margin-top: 0; }
.content-page .content h3 { font-size: 1.1rem; margin-top: 1.25rem; color: var(--gray-700); }
.content-page .content ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.content-page .content li { margin-bottom: .4rem; }
.content-page .content a { color: var(--primary); font-weight: 500; }
.sidebar-card {
    background: var(--white);
    border: 1px solid rgba(15,23,42,.08);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.service-content h2 { font-size: 1.5rem; font-weight: 800; margin: 2rem 0 1rem; color: var(--dark); }
.service-content h3 { font-size: 1.15rem; font-weight: 700; margin: 1.5rem 0 .75rem; color: var(--gray-700); }
.service-content p { margin-bottom: 1rem; line-height: 1.75; color: var(--gray-700); }
.service-sidebar .sidebar-card + .sidebar-card { margin-top: 1rem; }
.service-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.service-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    padding: .45rem 0;
    font-size: .9rem;
    color: var(--gray-700);
    border-bottom: 1px solid rgba(15,23,42,.06);
}
.service-feature-list li:last-child { border-bottom: none; }
.service-feature-list li i { color: var(--primary); flex-shrink: 0; margin-top: .15rem; }
.sidebar-link-list,
.sidebar-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-link-list li + li,
.sidebar-contact-list li + li { margin-top: .35rem; }
.sidebar-link-list a,
.sidebar-contact-list a {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem .65rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--gray-700);
    font-size: .9rem;
    transition: background var(--transition), color var(--transition);
}
.sidebar-link-list a:hover,
.sidebar-contact-list a:hover {
    background: rgba(99,102,241,.08);
    color: var(--primary-dark);
}
.sidebar-contact-list span {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-size: .9rem;
    color: var(--gray-700);
}
.sidebar-whatsapp { border: 1px solid rgba(37,211,102,.25); background: rgba(37,211,102,.04); }


/* ---- Error pages ---- */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-total) + 3rem) 0 3rem;
}
.error-code {
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .section { padding: 3.5rem 0; }
    .hero-visual { display: none; }
    .hero-stats { gap: 1.25rem; }
    .hero-stat strong { font-size: 1.4rem; }
    .marketing-banner { padding: 2rem 1.5rem; }
    .cta-form-wrap { padding: 1.5rem; }
}
@media (max-width: 767px) {
    .hero-content { padding: 4rem 0 3rem; }
    .hero-slide { min-height: 85vh; }
    .trust-item { justify-content: flex-start; margin-bottom: .5rem; }
    .process-step { margin-bottom: 2rem; }
    .footer-cta-box { margin-top: 2rem; }
}
