/*
 * PT Kabirland Teknologi Indonesia
 * One-Page Corporate Website — Global IT Theme v2
 * Dark Navy + Electric Blue + White Design System
 */

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    /* ── Backgrounds (light) ── */
    --bg-dark:      #FFFFFF;
    --bg-surface:   #F4F7FF;
    --bg-surface-2: #FFFFFF;
    --bg-surface-3: #EBF1FF;
    --bg-light:     #F0F5FF;

    /* ── Brand ── */
    --primary:       #0052CC;
    --primary-dark:  #003D99;
    --accent:        #0077A8;
    --accent-2:      #00856B;
    --electric:      #2563EB;

    /* ── Text (dark on light bg) ── */
    --text-primary:   #0F172A;
    --text-secondary: #374151;
    --text-muted:     #6B7280;
    --text-dark:      #1A2438;

    /* ── Borders (light) ── */
    --border:        rgba(0, 82, 204, 0.13);
    --border-subtle: rgba(0, 0, 0, 0.07);
    --border-strong: rgba(0, 82, 204, 0.26);

    /* ── Gradients ── */
    --gradient-primary:  linear-gradient(135deg, #0052CC 0%, #00B8DE 100%);
    --gradient-accent:   linear-gradient(135deg, #0077A8 0%, #00856B 100%);
    --gradient-dark:     linear-gradient(180deg, #050B1F 0%, #0C1730 100%);

    /* ── Shadows (light) ── */
    --shadow-glow:       0 0 40px rgba(0, 82, 204, 0.08);
    --shadow-card:       0 2px 16px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 10px 36px rgba(0, 82, 204, 0.13), 0 2px 8px rgba(0, 0, 0, 0.07);
    --shadow-btn:        0 4px 20px rgba(0, 82, 204, 0.32);

    --radius:    14px;
    --radius-sm:  9px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Dark-section variable overrides ───────────────────────── */
/* Hero, Stats-band and Footer restore dark palette so all      */
/* child elements automatically inherit the right colours.      */
#home,
.stats-band,
.site-footer {
    --bg-dark:       #050B1F;
    --bg-surface:    #080F24;
    --bg-surface-2:  #0C1730;
    --bg-surface-3:  #101F3A;

    --accent:        #00C8F0;
    --accent-2:      #00E5C0;

    --text-primary:   #EEF2FF;
    --text-secondary: #94A3B8;
    --text-muted:     #5A6A80;

    --border:        rgba(0, 200, 240, 0.14);
    --border-subtle: rgba(255, 255, 255, 0.055);
    --border-strong: rgba(0, 200, 240, 0.28);

    --gradient-primary:  linear-gradient(135deg, #0066CC 0%, #00C8F0 100%);
    --gradient-accent:   linear-gradient(135deg, #00C8F0 0%, #00E5C0 100%);

    --shadow-card:       0 4px 32px rgba(0, 0, 0, 0.45);
    --shadow-card-hover: 0 12px 48px rgba(0, 0, 0, 0.55);
    --shadow-btn:        0 4px 24px rgba(0, 200, 240, 0.35);
}

/* ============================================================
   BASE RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 74px;
}

body {
    font-family: 'Poppins', 'Inter', sans-serif;
    background: #FFFFFF;
    color: var(--text-primary);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0; padding: 0;
    font-family: 'Inter', 'Poppins', sans-serif;
}

p   { margin: 0; padding: 0; line-height: 1.8; }
a   { text-decoration: none; transition: var(--transition); }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

/* ============================================================
   NAVBAR
   ============================================================ */
.site-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(0, 82, 204, 0.09);
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.09);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.navbar-brand img { height: 40px; width: auto; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    padding-bottom: 2px;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    background: transparent !important;
    color: var(--primary) !important;
    border: 1.5px solid var(--primary) !important;
    padding: 7px 20px !important;
    border-radius: 8px;
    font-weight: 600 !important;
    font-size: 12.5px !important;
    letter-spacing: 0.4px;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 0 18px rgba(0, 82, 204, 0.3) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(0, 82, 204, 0.2);
    color: #374151;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: var(--transition);
}

.nav-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

@media (max-width: 991px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 74px; left: 0; right: 0;
        flex-direction: column;
        background: rgba(5, 11, 31, 0.98);
        backdrop-filter: blur(24px);
        padding: 0.5rem 2rem 1.5rem;
        gap: 0;
        border-bottom: 1px solid rgba(0, 200, 240, 0.14);
        z-index: 999;
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        color: #94A3B8;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 14px;
        display: block;
    }
    .nav-links a:hover,
    .nav-links a.active { color: #00C8F0; }
    .nav-links a:last-child { border-bottom: none; margin-top: 0.5rem; }
    .nav-cta {
        display: inline-block !important;
        width: fit-content;
        color: #00C8F0 !important;
        border-color: #00C8F0 !important;
    }
    .nav-cta:hover {
        background: #00C8F0 !important;
        color: #050B1F !important;
    }
    .nav-toggle { display: block; }
    .site-navbar { padding: 0 1.5rem; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 74px;
    background: var(--bg-dark);
}

/* Layered background */
.hero-bg-layer {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 70% at 55% -5%, rgba(0, 102, 204, 0.32) 0%, transparent 60%),
        radial-gradient(ellipse 50% 55% at 90% 75%, rgba(0, 229, 192, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 35% 45% at 5% 85%,  rgba(0, 200, 240, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* Grid pattern */
.hero-grid-layer {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 200, 240, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 200, 240, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 30%, transparent 100%);
}

/* Circuit lines decoration */
.hero-circuit {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.07;
}

.hero-circuit svg {
    position: absolute;
    bottom: 0; right: 0;
    width: 55%;
    height: auto;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}

.hero-orb-1 {
    width: 700px; height: 700px;
    top: -240px; right: -120px;
    background: rgba(0, 102, 204, 0.14);
    animation: orb-float 9s ease-in-out infinite;
}

.hero-orb-2 {
    width: 420px; height: 420px;
    bottom: -100px; left: -120px;
    background: rgba(0, 229, 192, 0.09);
    animation: orb-float 11s ease-in-out infinite reverse;
}

.hero-orb-3 {
    width: 260px; height: 260px;
    top: 40%; left: 48%;
    background: rgba(0, 200, 240, 0.06);
    animation: orb-float 7s ease-in-out infinite 2s;
}

.hero-content-wrap {
    position: relative;
    z-index: 2;
    padding: 3.5rem 0 4.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 200, 240, 0.07);
    border: 1px solid rgba(0, 200, 240, 0.24);
    color: var(--accent);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 7px 18px;
    border-radius: 50px;
    margin-bottom: 2rem;
}

.hero-badge .dot {
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: blink 1.6s ease infinite;
}

.hero-title {
    font-size: clamp(2.2rem, 4.8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.12;
    color: var(--text-primary);
    margin-bottom: 1.6rem;
    letter-spacing: -1px;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 530px;
    line-height: 1.9;
    margin-bottom: 2.8rem;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 3.5rem;
}

.btn-primary-hero {
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3px;
    padding: 15px 34px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-btn);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 200, 240, 0.5);
    color: #fff;
}

.btn-ghost-hero {
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    padding: 14px 30px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.16);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-ghost-hero:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 200, 240, 0.06);
}

.btn-outline-hero {
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    padding: 13px 30px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--primary);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-outline-hero:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn);
}

.hero-counters {
    display: flex;
    gap: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

.hero-counter h3 {
    font-size: 2.4rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 5px;
}

.hero-counter p {
    font-size: 10.5px;
    color: var(--text-muted);
    letter-spacing: 1.8px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Hero visual side */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual img {
    max-width: 90%;
    filter: drop-shadow(0 0 70px rgba(0, 200, 240, 0.26));
    animation: float 5.5s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.hero-glow-ring {
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0, 200, 240, 0.1) 0%, transparent 68%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border-radius: 50%;
}

/* Floating tech cards on hero visual */
.hero-float-card {
    position: absolute;
    background: rgba(12, 23, 48, 0.88);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    white-space: nowrap;
}

.hero-float-card .fc-icon {
    width: 32px; height: 32px;
    background: rgba(0, 200, 240, 0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 14px;
    flex-shrink: 0;
}

.hero-float-card .fc-text strong {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.hero-float-card .fc-text span {
    display: block;
    font-size: 10.5px;
    color: var(--text-muted);
}

.hero-float-card-1 {
    top: 18%;
    right: -2%;
    animation: float-card1 6s ease-in-out infinite;
}

.hero-float-card-2 {
    bottom: 22%;
    left: -4%;
    animation: float-card2 7s ease-in-out infinite 1s;
}

@keyframes float-card1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50%       { transform: translateY(-8px) rotate(1deg); }
}
@keyframes float-card2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50%       { transform: translateY(8px) rotate(-1deg); }
}

/* Scroll indicator */
.hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-scroll-hint .scroll-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scroll-pulse 2s ease infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50%       { opacity: 0.4; transform: scaleY(0.6); }
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section { padding: 100px 0; }

.section-dark    { background: var(--bg-dark); }
.section-surface { background: var(--bg-surface); }
.section-surface-2 { background: var(--bg-surface-2); }
.section-light   { background: var(--bg-light); color: var(--text-dark); }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.7rem;
}

.section-label::before {
    content: '';
    width: 20px; height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    flex-shrink: 0;
}

.section-title {
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.section-title.on-light { color: var(--text-dark); }

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 620px;
    line-height: 1.85;
    margin-top: 0.85rem;
}

.section-subtitle.on-light { color: #64748B; }

.section-head { margin-bottom: 4rem; }
.section-head.center { text-align: center; }
.section-head.center .section-label { justify-content: center; }
.section-head.center .section-subtitle { margin-left: auto; margin-right: auto; }
.section-head.center .section-label::before { display: none; }

.divider {
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin: 1.1rem 0 0.5rem;
}

.divider.center { margin: 1.1rem auto 0.5rem; }

.accent-text { color: var(--primary); }
.green-text  { color: var(--accent-2); }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.about-text p strong { color: var(--primary); font-weight: 600; }

.value-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    margin-top: 2.2rem;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 15px 17px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.value-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.04), rgba(0, 200, 240, 0.02));
    opacity: 0;
    transition: opacity 0.3s;
}

.value-item:hover {
    border-color: var(--border);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.value-item:hover::before { opacity: 1; }

.vi-icon {
    min-width: 38px; height: 38px;
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.1), rgba(0, 119, 168, 0.07));
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--primary);
    border: 1px solid rgba(0, 82, 204, 0.14);
    flex-shrink: 0;
}

.value-item h5 {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.value-item p {
    font-size: 11.5px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.about-image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-wrap img {
    max-width: 92%;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 12px 40px rgba(0,0,0,0.45));
    border-radius: 16px;
}

.about-image-bg {
    position: absolute;
    width: 75%; height: 75%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.14) 0%, transparent 70%);
}

/* Decorative frame */
.about-image-frame {
    position: absolute;
    top: -16px; right: -16px;
    width: 50%; height: 50%;
    border-top: 2px solid var(--border);
    border-right: 2px solid var(--border);
    border-radius: 0 16px 0 0;
    pointer-events: none;
}

.about-stats-row {
    display: flex;
    gap: 1.2rem;
    margin-top: 2.8rem;
    flex-wrap: wrap;
}

.about-stat {
    flex: 1;
    min-width: 80px;
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.about-stat:hover {
    border-color: var(--border);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.about-stat h3 {
    font-size: 1.9rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 5px;
}

.about-stat p {
    font-size: 10.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* ============================================================
   STATS BAND (numbers callout)
   ============================================================ */
.stats-band {
    background: linear-gradient(135deg, #061535 0%, #0a1e40 50%, #061535 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}

.stats-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 200, 240, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 200, 240, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
}

.stats-band-inner {
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 24px 20px;
    position: relative;
}

.stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0; top: 25%; bottom: 25%;
    width: 1px;
    background: rgba(255, 255, 255, 0.07);
}

.stat-item .stat-number {
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    font-weight: 900;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -2px;
}

.stat-item .stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 600;
}

.stat-item .stat-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.service-card {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 2.2rem 1.8rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-card);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 82, 204, 0.04) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after  { opacity: 1; }

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 82, 204, 0.18);
    box-shadow: var(--shadow-card-hover);
}

.service-icon-box {
    width: 74px; height: 74px;
    border-radius: 18px;
    margin-bottom: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.09), rgba(0, 119, 168, 0.06));
    border: 1px solid rgba(0, 82, 204, 0.12);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon-box {
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.15), rgba(0, 119, 168, 0.1));
    border-color: rgba(0, 82, 204, 0.24);
    box-shadow: 0 0 20px rgba(0, 82, 204, 0.12);
    transform: scale(1.06);
}

.service-icon-box img {
    width: 38px; height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 82, 204, 0.2));
}

.service-card h4 {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.7rem;
    position: relative;
    z-index: 1;
}

.service-card p {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.78;
    position: relative;
    z-index: 1;
}

/* ============================================================
   PRODUCTS SECTION
   ============================================================ */
#products .row {
    row-gap: 2rem;
}

.product-card {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 82, 204, 0.18);
    box-shadow: var(--shadow-card-hover);
}

.product-img-wrap {
    height: 155px;
    background: #F4F7FF;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.3rem;
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
    position: relative;
}

.product-img-wrap img {
    max-height: 105px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.product-card:hover .product-img-wrap img {
    filter: drop-shadow(0 6px 16px rgba(0, 82, 204, 0.18));
    transform: scale(1.05);
}

.product-body {
    padding: 1.3rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-body h5 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.45rem;
}

.product-body p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.68;
    flex: 1;
}

.product-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-2);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 0.9rem;
    opacity: 0.85;
}

/* ============================================================
   PORTFOLIO SECTION
   ============================================================ */
.portfolio-timeline {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    padding-left: 44px;
}

.portfolio-timeline::before {
    content: '';
    position: absolute;
    left: 12px; top: 8px; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #0052CC, #0077A8, transparent);
    border-radius: 2px;
}

.portfolio-item {
    position: relative;
    margin-bottom: 2.2rem;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 82, 204, 0.1), 0 0 10px rgba(0, 82, 204, 0.18);
}

.portfolio-card {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 1.5rem 1.7rem;
    transition: var(--transition);
    display: flex;
    gap: 1.3rem;
    align-items: flex-start;
    box-shadow: var(--shadow-card);
}

.portfolio-card:hover {
    border-color: var(--border);
    transform: translateX(5px);
    box-shadow: var(--shadow-card-hover);
}

.portfolio-thumb {
    flex-shrink: 0;
    width: 64px; height: 64px;
    border-radius: 12px;
    overflow: hidden;
    background: #F4F7FF;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-thumb img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 8px;
}

.portfolio-info { flex: 1; }

.portfolio-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.portfolio-info p {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 0.5rem;
}

.portfolio-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    color: var(--accent-2);
    font-weight: 600;
    letter-spacing: 0.5px;
    background: rgba(0, 133, 107, 0.07);
    border: 1px solid rgba(0, 133, 107, 0.18);
    padding: 3px 10px;
    border-radius: 20px;
}

.portfolio-date .fa { font-size: 10px; }

/* ============================================================
   CLIENTS SECTION
   ============================================================ */
.client-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.3rem;
}

.client-item {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 1.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    min-height: 96px;
    box-shadow: var(--shadow-card);
}

.client-item:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.client-item img {
    max-width: 126px;
    max-height: 100px; /* max-height: 58px;  */
    object-fit: contain;
    /* filter: grayscale(55%) brightness(0.92) opacity(0.65); */
    transition: var(--transition);
}

.client-item:hover img {
    filter: grayscale(0%) brightness(1) opacity(1);
}

/* ============================================================
   GALLERY SECTION
   ============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-card);
}

.gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.07);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 82, 204, 0.72);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay .fa {
    font-size: 1.6rem;
    color: #fff;
}

.gallery-overlay span {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.4;
}

/* ============================================================
   TEAM SECTION
   ============================================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.6rem;
}

.team-card {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.2rem 1.6rem 1.8rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.team-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.team-card:hover {
    border-color: var(--border);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.team-card:hover::after {
    transform: scaleX(1);
}

.team-avatar-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.3rem;
}

.team-avatar {
    width: 82px; height: 82px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--av-from, var(--primary)), var(--av-to, var(--accent)));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
    box-shadow: 0 6px 20px rgba(0, 82, 204, 0.22);
}

.team-avatar-ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px dashed rgba(0, 82, 204, 0.2);
    animation: spin-slow 18s linear infinite;
}

@keyframes spin-slow {
    to { transform: rotate(360deg); }
}

.team-card:hover .team-avatar-ring {
    border-color: rgba(0, 82, 204, 0.4);
    animation-duration: 6s;
}

.team-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.team-role {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.3px;
    margin-bottom: 0.9rem;
    background: rgba(0, 82, 204, 0.07);
    padding: 3px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0, 82, 204, 0.1);
}

.team-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1.3rem;
}

.team-socials {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.team-socials a {
    width: 34px; height: 34px;
    background: #F4F7FF;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
    text-decoration: none;
}

.team-socials a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.28);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-info-item {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.ci-icon {
    min-width: 48px; height: 48px;
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.09), rgba(0, 119, 168, 0.06));
    border: 1px solid rgba(0, 82, 204, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-info-item:hover .ci-icon {
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.15), rgba(0, 119, 168, 0.1));
    box-shadow: 0 0 16px rgba(0, 82, 204, 0.12);
}

.ci-text h5 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.ci-text p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.ci-text a { color: var(--primary); }
.ci-text a:hover { color: var(--accent); }

.contact-social-links {
    display: flex;
    gap: 10px;
    margin-top: 2.5rem;
}

.contact-social-links a {
    width: 42px; height: 42px;
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}

.contact-social-links a:hover {
    border-color: var(--border);
    color: var(--primary);
    background: rgba(0, 82, 204, 0.05);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

.contact-form-box {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 2.8rem 2.2rem;
    box-shadow: var(--shadow-card);
}

.contact-form label {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 7px;
}

.contact-form .form-control {
    background: #F4F7FF;
    border: 1px solid rgba(0, 82, 204, 0.1);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 13.5px;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    width: 100%;
}

.contact-form .form-control:focus {
    background: #FFFFFF;
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
    outline: none;
}

.contact-form .form-control::placeholder { color: var(--text-muted); font-size: 13px; }

.contact-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.btn-submit {
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow-btn);
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.btn-submit:hover {
    box-shadow: 0 8px 30px rgba(0, 82, 204, 0.45);
    transform: translateY(-2px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #030913;
    border-top: 1px solid var(--border-subtle);
    padding: 70px 0 30px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.footer-brand-logo { height: 38px; margin-bottom: 1.1rem; }

.footer-brand-desc {
    font-size: 13px;
    color: var(--text-secondary);
    max-width: 310px;
    line-height: 1.85;
    margin-bottom: 1.6rem;
}

.footer-social {
    display: flex;
    gap: 8px;
}

.footer-social a {
    width: 36px; height: 36px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}

.footer-social a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 200, 240, 0.07);
    transform: translateY(-2px);
}

.footer-col-title {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-primary);
    margin-bottom: 1.3rem;
}

.footer-links a {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 0.65rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-divider {
    border: none;
    border-top: 1px solid var(--border-subtle);
    margin: 3rem 0 1.5rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-bottom p { font-size: 12px; color: var(--text-muted); letter-spacing: 0.3px; }
.footer-bottom a { color: var(--accent-2); }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top-btn {
    position: fixed;
    bottom: 28px; right: 24px;
    width: 44px; height: 44px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-btn);
    border: none;
    cursor: pointer;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    box-shadow: 0 8px 28px rgba(0, 82, 204, 0.45);
    transform: translateY(-3px);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-16px); }
}

@keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.7); }
}

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0); }
    33%       { transform: translate(-22px, -22px); }
    66%       { transform: translate(22px, -11px); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up { animation: fadeUp 0.7s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .nav-links { gap: 1.4rem; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
    .section { padding: 76px 0; }
    .hero-content-wrap { padding: 2.5rem 0 3rem; }
    .hero-counters { gap: 1.8rem; }
    .value-grid { grid-template-columns: 1fr; }
    .client-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-timeline { padding-left: 32px; }
    .portfolio-item::before { left: -28px; }
    .stats-band { padding: 48px 0; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .hero-float-card { display: none; }
}

@media (max-width: 767px) {
    .section { padding: 62px 0; }
    .hero-title { font-size: 2.1rem; letter-spacing: -0.5px; }
    .hero-desc { font-size: 0.93rem; }
    .hero-counters { gap: 1.4rem; padding-top: 1.8rem; margin-top: 2.8rem; }
    .hero-counter h3 { font-size: 1.9rem; }
    .contact-form-box { padding: 1.8rem 1.2rem; }
    .client-grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
    .portfolio-timeline::before, .portfolio-item::before { display: none; }
    .portfolio-timeline { padding-left: 0; }
    .about-stats-row { gap: 0.8rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .stat-item + .stat-item::before { display: none; }
    .stat-item { padding: 18px 12px; }
    .hero-scroll-hint { display: none; }
}

@media (max-width: 480px) {
    .site-navbar { padding: 0 1rem; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .hero-actions a { width: 100%; justify-content: center; }
    .client-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
}
