/* =============================================
   DISKOMINFOTIK KOTA METRO - Modern Public Styles
   ============================================= */

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #dbeafe;
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    --secondary: #06b6d4;
    --secondary-gradient: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --accent: #f59e0b;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f1f5f9;
    --white: #ffffff;
    --font-family: 'Poppins', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

* { font-family: var(--font-family); }

html { scroll-behavior: smooth; }

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* ─── Page Load Animation ─── */
.page-loaded .fade-up { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.page-loaded .fade-up.show { opacity: 1; transform: translateY(0); }
.page-loaded .fade-in { opacity: 0; transition: opacity 0.8s ease; }
.page-loaded .fade-in.show { opacity: 1; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--gray-light); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray); }

/* ═══════════════════════════════════════
   TOP BAR — Premium Modern
   ═══════════════════════════════════════ */
.top-bar {
    background: #0b508c;
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    padding: 0;
    position: relative;
    z-index: 1031;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
/* Premium glow line */
.top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #3b82f6);
}
.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    flex-wrap: wrap;
    gap: 6px 20px;
}
.top-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    font-weight: 400;
}
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.top-bar-link {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.3s;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}
.top-bar-link:hover {
    color: #fff;
    background: rgba(59,130,246,0.15);
    border-color: rgba(59,130,246,0.2);
    transform: translateY(-1px);
}
.top-bar-icon {
    color: #60a5fa;
    font-size: 12px;
    transition: all 0.3s;
}
/* Social icons in top bar */
.top-bar-link .bi-facebook,
.top-bar-link .bi-instagram,
.top-bar-link .bi-tiktok,
.top-bar-link .bi-youtube {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}
.top-bar-link:hover .bi-facebook,
.top-bar-link:hover .bi-instagram,
.top-bar-link:hover .bi-tiktok,
.top-bar-link:hover .bi-youtube {
    color: #fff;
    transform: scale(1.15);
}
.top-bar-link:hover .top-bar-icon {
    color: #93c5fd;
    transform: scale(1.15);
}
.top-bar-dot {
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .top-bar-inner {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 4px;
    }
    .top-bar-left { font-size: 11px; }
    .top-bar-link { font-size: 11px; padding: 2px 8px; }
    .top-bar-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .top-bar-link span {
        display: none;
    }
    .top-bar-link .bi {
        font-size: 14px;
    }
}

/* ═══════════════════════════════════════
   NAVBAR — Glassmorphism Premium
   ═══════════════════════════════════════ */
.navbar-main {
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1020;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Default state (at top of page) */
.navbar-main:not(.navbar-scrolled) {
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

/* Scrolled state — glassmorphism */
.navbar-main.navbar-scrolled {
    background: rgba(255,255,255,0.85) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0,0,0,0.06), 0 1px 0 rgba(0,0,0,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* ── Brand / Logo ── */
.navbar-main .navbar-brand {
    padding: 8px 16px 8px 0;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    margin-right: 20px;
}
.navbar-main .navbar-brand .brand-logo-img {
    width: auto;
    height: 50px;
    object-fit: contain;
}

/* ── Nav Links ── */
.navbar-main .nav-link {
    padding: 22px 20px !important;
    font-weight: 500;
    font-size: 14px;
    color: var(--dark-2) !important;
    transition: all 0.3s;
    position: relative;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.navbar-main .nav-link i {
    font-size: 16px;
    line-height: 1;
}
.navbar-nav { flex-grow: 1; }
.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
    color: var(--primary) !important;
}
/* Bottom indicator dot */
.navbar-main .nav-link::before {
    content: '';
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 6px;
    height: 6px;
    background: var(--primary-gradient);
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.navbar-main .nav-link:hover::before,
.navbar-main .nav-link.active::before {
    transform: translateX(-50%) scale(1);
}
/* Active link subtle background */
.navbar-main .nav-link.active {
    background: rgba(37,99,235,0.04);
    border-radius: 10px;
}

/* ── Dropdown ── */
.dropdown-menu {
    border: none;
    box-shadow: 0 24px 80px rgba(0,0,0,0.12);
    border-radius: 18px;
    padding: 10px 0;
    margin-top: 6px !important;
    border: 1px solid rgba(0,0,0,0.04);
    animation: dropIn 0.25s ease;
}
@keyframes dropIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.dropdown-item {
    padding: 10px 24px;
    font-weight: 500;
    font-size: 14px;
    color: var(--gray);
    border-radius: 10px;
    margin: 2px 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.dropdown-item i { font-size: 16px; color: var(--gray-light); transition: color 0.2s; }
.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: translateX(6px);
}
.dropdown-item:hover i { color: var(--primary); }

/* ── Nested Dropdown Submenu ── */
.dropdown-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 4px;
    margin-top: 0;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.04);
    animation: dropIn 0.25s ease;
}
.dropdown-item.dropdown-toggle:hover + .dropdown-submenu,
.dropdown-submenu:hover {
    display: block;
}

/* ── Login button in nav ── */
a.nav-btn-login,
a.nav-btn-login:visited,
a.nav-btn-login:hover,
a.nav-btn-login:active,
a.nav-btn-login.active,
.navbar-main .nav-link.nav-btn-login,
.navbar-main .nav-link.nav-btn-login:hover,
.navbar-main .nav-link.nav-btn-login.active {
    background: #2563eb !important;
    color: #ffffff !important;
    padding: 10px 24px !important;
    border-radius: 12px !important;
    margin-left: auto;
    box-shadow: 0 4px 12px rgba(37,99,235,0.25);
    transition: all 0.3s !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}
a.nav-btn-login:hover,
.navbar-main .nav-link.nav-btn-login:hover {
    background: #1d4ed8 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(37,99,235,0.35) !important;
    color: #ffffff !important;
}
a.nav-btn-login::before { display: none !important; }

/* ═══ DIGITAL RAIN / DATA STREAMS ═══ */
.hero-data-streams {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.hero-data-stream {
    position: absolute;
    top: -100px;
    width: 1px;
    height: 200px;
    background: linear-gradient(to bottom, transparent, rgba(59,130,246,0.08), transparent);
    animation: dataStream 10s linear infinite;
}
.hero-data-stream::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1.5px;
    width: 4px;
    height: 4px;
    background: rgba(59,130,246,0.4);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(59,130,246,0.3), 0 0 20px rgba(59,130,246,0.1);
    animation: dataDot 10s linear infinite;
}
.hero-data-stream:nth-child(1) { left: 8%; animation-delay: 0s; height: 150px; }
.hero-data-stream:nth-child(2) { left: 20%; animation-delay: 1.5s; height: 200px; }
.hero-data-stream:nth-child(3) { left: 32%; animation-delay: 3s; height: 120px; }
.hero-data-stream:nth-child(4) { left: 45%; animation-delay: 0.8s; height: 180px; }
.hero-data-stream:nth-child(5) { left: 55%; animation-delay: 2.3s; height: 160px; }
.hero-data-stream:nth-child(6) { left: 68%; animation-delay: 4s; height: 220px; }
.hero-data-stream:nth-child(7) { left: 78%; animation-delay: 1s; height: 140px; }
.hero-data-stream:nth-child(8) { left: 88%; animation-delay: 3.5s; height: 190px; }
@keyframes dataStream {
    0% { transform: translateY(-300px); opacity: 0; }
    10% { opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translateY(calc(100vh + 300px)); opacity: 0; }
}
@keyframes dataDot {
    0% { transform: translateY(0); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: translateY(250px); opacity: 0.5; }
}

/* ═══ SECURITY GLOW ═══ */
.hero-security-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(circle, rgba(59,130,246,0.03) 0%, transparent 70%);
    animation: securityPulse 6s ease-in-out infinite;
}
@keyframes securityPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.6; }
}

/* ─── HERO SECTION ─── Tech Futuristic ─── */
.hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 30%, #2563eb 50%, #1e40af 70%, #1e3a8a 100%);
    min-height: 92vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
/* Animated tech grid */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59,130,246,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,0.06) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    animation: gridMove 20s linear infinite;
    transform-origin: center;
}
@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(0deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(0deg) translateY(50px); }
}
/* Radial glow */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(59,130,246,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139,92,246,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(6,182,212,0.08) 0%, transparent 50%);
    z-index: 1;
}

/* Circuit lines decoration */
.hero-circuit {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.hero-circuit-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.1), transparent);
    height: 1px;
    width: 300px;
    animation: circuitFlow 4s linear infinite;
}
.hero-circuit-line:nth-child(1) { top: 15%; left: -200px; animation-delay: 0s; }
.hero-circuit-line:nth-child(2) { top: 45%; left: -300px; animation-delay: 1.5s; width: 400px; }
.hero-circuit-line:nth-child(3) { top: 75%; left: -150px; animation-delay: 3s; }
@keyframes circuitFlow {
    0% { transform: translateX(0); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(1500px); opacity: 0; }
}

/* Floating tech particles */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.hero-particle {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: rgba(255,255,255,0.08);
    animation: techFloat 20s infinite ease-in-out;
}
.hero-particle:nth-child(1) { top: 10%; left: 10%; font-size: 28px; animation-delay: 0s; }
.hero-particle:nth-child(2) { top: 70%; left: 85%; font-size: 24px; animation-delay: -4s; }
.hero-particle:nth-child(3) { top: 30%; left: 90%; font-size: 18px; animation-delay: -8s; }
.hero-particle:nth-child(4) { top: 80%; left: 15%; font-size: 22px; animation-delay: -12s; }
.hero-particle:nth-child(5) { top: 50%; left: 5%; font-size: 16px; animation-delay: -16s; }
.hero-particle:nth-child(6) { top: 15%; left: 50%; font-size: 20px; animation-delay: -6s; }
@keyframes techFloat {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0.06; }
    25% { transform: translateY(-30px) rotate(10deg) scale(1.1); opacity: 0.12; }
    50% { transform: translateY(10px) rotate(-5deg) scale(0.9); opacity: 0.08; }
    75% { transform: translateY(-15px) rotate(8deg) scale(1.05); opacity: 0.1; }
}

/* Floating tech circles */
.hero-tech-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(59,130,246,0.08);
    z-index: 1;
    pointer-events: none;
    animation: pulseCircle 6s ease-in-out infinite;
}
.hero-tech-circle:nth-child(7) {
    width: 400px; height: 400px;
    top: -100px; right: -50px;
}
.hero-tech-circle:nth-child(8) {
    width: 250px; height: 250px;
    bottom: 50px; left: -50px;
    animation-delay: -3s;
    border-color: rgba(139,92,246,0.08);
}
@keyframes pulseCircle {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

/* Content */
.hero-section .hero-content { position: relative; z-index: 2; }

/* Badge tech */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(59,130,246,0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(59,130,246,0.2);
    color: #93c5fd;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 0.3px;
    animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.2); border-color: rgba(59,130,246,0.2); }
    50% { box-shadow: 0 0 20px 4px rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.4); }
}
.hero-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(34,197,94,0.5);
    animation: badgeBlink 1.5s infinite;
}
@keyframes badgeBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

/* Heading with gradient */
.hero-section h1 {
    color: #fff;
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}
.hero-section h1 .tech-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 40%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}
/* Glow under title */
.hero-section h1 .tech-gradient::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #60a5fa, #a78bfa, transparent);
    border-radius: 2px;
    animation: titleGlow 3s ease-in-out infinite;
}
@keyframes titleGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Typing text */
.hero-typing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 16px;
    font-family: 'Courier New', monospace;
    border-right: 2px solid rgba(255,255,255,0.3);
    padding-right: 8px;
    animation: cursorBlink 0.8s infinite;
}
@keyframes cursorBlink {
    0%, 100% { border-color: rgba(255,255,255,0.3); }
    50% { border-color: transparent; }
}

/* Description */
.hero-section .hero-description {
    color: rgba(255,255,255,0.6);
    font-size: 1.05rem;
    max-width: 540px;
    margin-bottom: 32px;
    line-height: 1.8;
}

/* Hero buttons - tech style */
.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff !important;
    border: none;
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 24px rgba(37,99,235,0.35);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.hero-btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}
.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(37,99,235,0.45);
    color: #fff !important;
}
.hero-btn-primary:hover::before {
    transform: translateX(100%);
}
.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8) !important;
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    text-decoration: none;
}
.hero-btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
    color: #fff !important;
    transform: translateY(-2px);
}

/* Tech illustration */
.hero-tech-illus {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}
.hero-tech-illus .glow-sphere {
    width: 400px;
    height: 400px;
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(59,130,246,0.15), rgba(139,92,246,0.08), transparent 70%);
    animation: sphereFloat 8s ease-in-out infinite;
}
@keyframes sphereFloat {
    0%, 100% { transform: scale(1) rotate(0deg); }
    33% { transform: scale(1.05) rotate(120deg); }
    66% { transform: scale(0.95) rotate(240deg); }
}
.hero-tech-illus .tech-card {
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 36px 32px;
    text-align: center;
    width: 340px;
    transform-style: preserve-3d;
    animation: cardTilt 6s ease-in-out infinite;
}
@keyframes cardTilt {
    0%, 100% { transform: rotateY(-3deg) rotateX(2deg); }
    50% { transform: rotateY(3deg) rotateX(-2deg); }
}
.hero-tech-illus .tech-card .card-icon-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(139,92,246,0.15));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.06);
    animation: iconGlow 3s ease-in-out infinite;
}
@keyframes iconGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(59,130,246,0.1); }
    50% { box-shadow: 0 0 40px rgba(59,130,246,0.2); }
}
.hero-tech-illus .tech-card h5 {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    margin-bottom: 16px;
}
.hero-tech-illus .tech-card .tech-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hero-tech-illus .tech-card .tech-bar {
    height: 6px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
    position: relative;
}
.hero-tech-illus .tech-card .tech-bar-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    animation: barFill 3s ease-in-out infinite;
}
.hero-tech-illus .tech-card .tech-bar:nth-child(1) .tech-bar-fill { width: 85%; animation-delay: 0s; }
.hero-tech-illus .tech-card .tech-bar:nth-child(2) .tech-bar-fill { width: 65%; animation-delay: 0.3s; background: linear-gradient(90deg, #06b6d4, #3b82f6); }
.hero-tech-illus .tech-card .tech-bar:nth-child(3) .tech-bar-fill { width: 90%; animation-delay: 0.6s; }
.hero-tech-illus .tech-card .tech-bar:nth-child(4) .tech-bar-fill { width: 72%; animation-delay: 0.9s; background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
@keyframes barFill {
    0%, 100% { transform: scaleX(1); opacity: 1; }
    50% { transform: scaleX(1.02); opacity: 0.8; }
}
.hero-tech-illus .tech-card .tech-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    font-family: 'Courier New', monospace;
}
.hero-tech-illus .tech-card .tech-status .status-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(34,197,94,0.4);
    animation: badgeBlink 1.5s infinite;
}

/* Hero stats */
.hero-stats-row {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.hero-stat-item h3 {
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 2px;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-stat-item p {
    color: rgba(255,255,255,0.35);
    font-size: 12px;
    margin: 0;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Hero wave */
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; z-index: 2; line-height: 0; }
.hero-wave svg { display: block; width: 100%; height: 80px; }

/* Hero stats row */
.hero-stats-row {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-item h3 {
    color: #fff;
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 0;
}
.hero-stat-item p {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    margin: 0;
}

/* Hero wave */
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; z-index: 2; line-height: 0; }
.hero-wave svg { display: block; width: 100%; height: 100px; }

/* ─── SECTION STYLES ─── */
.section-padding { padding: 100px 0; }
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.25;
}
.section-subtitle {
    font-size: 16px;
    color: var(--gray);
    max-width: 560px;
    line-height: 1.7;
}

/* ─── ABOUT SECTION ─── */
.about-section {
    background: var(--white);
    padding: 100px 0;
    position: relative;
}
.about-image-wrapper {
    position: relative;
}
.about-image-main {
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.about-image-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
}
.about-image-main i {
    font-size: 100px;
    color: rgba(255,255,255,0.3);
    position: relative;
    z-index: 1;
}
.about-float-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 20px 24px;
    box-shadow: var(--shadow-xl);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
}
.about-float-card .float-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
}
.about-float-card .float-text h6 { font-weight: 700; margin: 0; font-size: 14px; }
.about-float-card .float-text p { margin: 0; font-size: 12px; color: var(--gray); }

.about-feature-list { margin-top: 32px; }
.about-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--light);
    border-radius: var(--radius-md);
    transition: all 0.3s;
    cursor: default;
}
.about-feature-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.about-feature-item .feat-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: var(--primary-gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}
.about-feature-item h6 { font-weight: 600; margin-bottom: 4px; font-size: 15px; }
.about-feature-item p { font-size: 13px; color: var(--gray); margin: 0; line-height: 1.6; }

/* ─── SERVICE CARDS (MODERN) ─── */
.services-section { background: var(--light); padding: 100px 0; }
.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
    cursor: default;
}
/* Top gradient bar */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.4s;
}
.service-card:hover::before { opacity: 1; }
/* Corner glow */
.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(37,99,235,0.04), transparent);
    transition: all 0.5s;
    border-radius: 50%;
    pointer-events: none;
}
.service-card:hover::after {
    transform: scale(1.5);
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(37,99,235,0.12);
    border-color: rgba(37,99,235,0.1);
}
.service-card .icon-wrapper {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
    color: var(--primary);
    transition: all 0.4s;
    position: relative;
    z-index: 1;
}
.service-card:hover .icon-wrapper {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 8px 24px rgba(37,99,235,0.3);
    transform: scale(1.05) rotate(-5deg);
}
.service-card h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}
.service-card:hover h5 { color: var(--primary); }
.service-card p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}
.service-card .service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}
.service-card .service-link:hover { gap: 12px; color: var(--primary-dark); }
.service-card .card-number {
    position: absolute;
    bottom: 12px;
    right: 20px;
    font-size: 48px;
    font-weight: 800;
    color: rgba(0,0,0,0.03);
    line-height: 1;
    pointer-events: none;
}

/* ─── STATS SECTION ─── */
.stats-section {
    background: var(--dark);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(37,99,235,0.15), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(6,182,212,0.1), transparent 50%);
}
.stat-item { position: relative; z-index: 1; }
.stat-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.06);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s;
}
.stat-item:hover .stat-icon {
    background: rgba(37,99,235,0.2);
    color: #60a5fa;
    border-color: rgba(37,99,235,0.2);
    transform: translateY(-4px);
}
.stat-item h2 {
    color: #fff;
    font-weight: 800;
    font-size: 2.8rem;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-item p {
    color: rgba(255,255,255,0.5);
    font-weight: 500;
    font-size: 14px;
}

/* ─── CTA SECTION ─── */
.cta-section {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 40%, #0891b2 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(255,255,255,0.05), transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(6,182,212,0.1), transparent 40%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 {
    color: #fff;
    font-weight: 700;
    font-size: 2.2rem;
}
.cta-section p {
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto 32px;
}
.cta-btn-light {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: var(--primary) !important;
    padding: 14px 32px;
    border-radius: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.cta-btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.cta-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255,255,255,0.2);
    color: #fff !important;
    padding: 14px 32px;
    border-radius: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}
.cta-btn-outline:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* ─── FOOTER ─── */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.5);
    padding: 80px 0 0;
}
.footer h5 {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}
.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 2px;
}
.footer a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    transition: all 0.3s;
}
.footer a:hover {
    color: #fff;
    transform: translateX(4px);
}
.footer .footer-desc {
    color: rgba(255,255,255,0.45);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}
.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    margin-right: 8px;
    color: rgba(255,255,255,0.4);
    font-size: 16px;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.06);
}
.footer .social-links a:hover {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37,99,235,0.3);
}
.footer .footer-contact p {
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.footer .footer-contact i {
    margin-top: 3px;
    color: var(--primary);
}
.footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 24px 0;
    margin-top: 60px;
    font-size: 13px;
    color: rgba(255,255,255,0.3);
}

/* ─── PAGE HEADER ─── */
.page-header {
    background: var(--primary-gradient);
    padding: 100px 0 60px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06), transparent 50%);
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { font-weight: 700; font-size: 2.4rem; }
.page-header .breadcrumb { background: transparent; padding: 0; margin: 0; }
.page-header .breadcrumb-item { color: rgba(255,255,255,0.6); }
.page-header .breadcrumb-item a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.3s; }
.page-header .breadcrumb-item a:hover { color: #fff; }
.page-header .breadcrumb-item.active { color: #fff; }
.page-header .breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,0.3); }

/* ─── CONTENT PAGE ─── */
.content-page { padding: 80px 0; }
.content-page h4 { color: var(--primary); font-weight: 600; margin-top: 32px; margin-bottom: 16px; }
.content-page p { color: var(--gray); line-height: 1.9; }
.content-page ul, .content-page ol { color: var(--gray); line-height: 2.2; }

/* ─── VISI MISI ─── */
.visi-misi-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 24px;
    border-left: 5px solid var(--primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}
.visi-misi-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.visi-misi-card h4 { color: var(--primary); font-weight: 700; margin-top: 0; }

/* ─── SERVICE DETAIL ─── */
.service-detail-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
}
.service-detail-content h5 { color: var(--dark); font-weight: 600; margin-bottom: 16px; }
.service-submission-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
}
.service-submission-form .form-control,
.service-submission-form .form-select {
    border-radius: 12px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
}
.service-submission-form .form-control:focus,
.service-submission-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
}

/* ─── BUTTONS ─── */
.btn-primary {
    background: var(--primary-gradient) !important;
    border: none !important;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(37,99,235,0.2);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37,99,235,0.3);
}

/* ─── FLASH MESSAGE ─── */
.alert-floating {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 350px;
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    animation: slideInRight 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
@keyframes slideInRight {
    from { transform: translateX(100%) scale(0.9); opacity: 0; }
    to { transform: translateX(0) scale(1); opacity: 1; }
}

/* ─── STICKY SIDEBAR ─── */
.sticky-sidebar { position: sticky; top: 100px; }

/* ─── UTILITY ─── */
.text-gray { color: var(--gray); }
.bg-primary-light { background: var(--primary-light); }
.rounded-20 { border-radius: 20px; }
.shadow-card { box-shadow: var(--shadow-sm); }
.text-accent { color: var(--secondary) !important; }
.text-white-50 { color: rgba(255,255,255,0.7) !important; }
.lh-lg { line-height: 1.8; }
.small-label { font-size: 14px; }

/* ─── Scroll Animation ─── */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* ─── TICKET MODAL ─── */
.ticket-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeOverlay 0.3s ease;
}
@keyframes fadeOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}
.ticket-modal {
    background: #fff;
    border-radius: 24px;
    padding: 40px 32px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.2);
    animation: ticketSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes ticketSlide {
    from { transform: scale(0.8) translateY(30px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
.ticket-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}
.ticket-close:hover { color: #475569; }
.ticket-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 30px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(34,197,94,0.3);
}
.ticket-modal h5 {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 4px;
    color: #1e293b;
}
.ticket-sub {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}
.ticket-number {
    background: #f1f5f9;
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    border: 2px dashed #cbd5e1;
}
.ticket-number span {
    font-family: 'Courier New', monospace;
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 3px;
}
.ticket-copy {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
}
.ticket-copy:hover { background: var(--primary-dark); transform: scale(1.05); }
.ticket-copy.copied { background: #22c55e; }
.ticket-info {
    background: #f8fafc;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
}
.ticket-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
}
.ticket-info-row:last-child { border-bottom: none; }
.ticket-info-row span:first-child { color: #94a3b8; }
.ticket-info-row span:last-child { font-weight: 600; color: #1e293b; }
.ticket-note {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 16px;
}

/* ─── BACK TO TOP ─── */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(37,99,235,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37,99,235,0.4);
    color: #fff;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 991px) {
    .hero-section { min-height: auto; padding: 80px 0 60px; }
    .hero-section h1 { font-size: 2.4rem; }
    .hero-tech-illus { display: none !important; }
    .hero-description { font-size: 1rem; max-width: 100%; }
    .hero-badge { font-size: 11px; padding: 6px 16px; margin-bottom: 16px; }
    .hero-btn-primary, .hero-btn-secondary { padding: 12px 24px; font-size: 14px; }
    .hero-stats-row { margin-top: 32px; padding-top: 20px; }
    .hero-stat-item h3 { font-size: 1.3rem; }
    .hero-stat-item p { font-size: 11px; }
    .hero-data-streams, .hero-particles, .hero-tech-circle, .hero-security-glow { display: none !important; }
    .section-title { font-size: 1.7rem; }
    .section-padding { padding: 60px 0; }
    .about-section { padding: 60px 0; }
    .services-section { padding: 60px 0; }
    .about-float-card { position: relative; bottom: 0; right: 0; margin-top: 20px; }
    .footer { padding: 60px 0 0; }
    .footer .footer-bottom { margin-top: 40px; }
    .page-header { padding: 80px 0 40px; }
    .page-header h1 { font-size: 1.8rem; }
    .stat-item h2 { font-size: 2rem; }
    .cta-section h2 { font-size: 1.6rem; }
    .service-card { padding: 24px 20px; }
    .stats-section { padding: 50px 0; }
    .cta-section { padding: 50px 0; }
    .content-page { padding: 40px 0; }
    .about-section { padding: 40px 0; }
    .services-section { padding: 40px 0; }
    .section-padding { padding: 40px 0; }
    .hero-wave svg { height: 50px; }
    .back-to-top { width: 40px; height: 40px; font-size: 16px; bottom: 20px; right: 20px; }
}

@media (max-width: 768px) {
    .hero-section { padding: 60px 0 40px; }
    .hero-section h1 { font-size: 1.8rem; line-height: 1.3; }
    .hero-description { font-size: 0.95rem; }
    .hero-btn-primary, .hero-btn-secondary { 
        padding: 12px 20px; 
        font-size: 13px; 
        width: 100%;
        justify-content: center;
    }
    .hero-stats-row { margin-top: 24px; }
    .hero-stat-item h3 { font-size: 1.2rem; }
    .hero-stat-item p { font-size: 10px; }
    .section-padding { padding: 60px 0; }
    .section-title { font-size: 1.6rem; }
    .stat-item h2 { font-size: 2rem; }
    .cta-section h2 { font-size: 1.6rem; }
    .service-card { padding: 24px 20px; }
    .stats-section { padding: 50px 0; }
    .cta-section { padding: 50px 0; }
    .content-page { padding: 40px 0; }
    .about-section { padding: 40px 0; }
    .services-section { padding: 40px 0; }
    .section-padding { padding: 40px 0; }
    .hero-wave svg { height: 50px; }
    .back-to-top { width: 40px; height: 40px; font-size: 16px; bottom: 20px; right: 20px; }
}

@media (max-width: 576px) {
    .hero-section { padding: 50px 0 30px; }
    .hero-section h1 { font-size: 1.5rem; }
    .hero-description { font-size: 0.9rem; line-height: 1.6; }
    .hero-badge { font-size: 10px; padding: 5px 12px; }
    .hero-btn-primary, .hero-btn-secondary { 
        padding: 10px 16px; 
        font-size: 12px; 
    }
    .hero-stats-row { margin-top: 20px; padding-top: 16px; }
    .hero-stat-item h3 { font-size: 1.1rem; }
    .hero-stat-item p { font-size: 9px; }
    .section-padding { padding: 40px 0; }
    .section-title { font-size: 1.4rem; }
    .section-subtitle { font-size: 14px; }
    .container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
    }
}

/* ══════════════════════════════════════
   MOBILE NAVBAR — Modern Offcanvas Style
   ══════════════════════════════════════ */
@media (max-width: 991px) {
    .navbar-main .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    .navbar-main .navbar-collapse.show ~ .navbar-brand {
        display: none;
    }

    .navbar-main .navbar-brand { flex-shrink: 0; z-index: 100001; position: relative; }
    .navbar-main .navbar-brand .brand-logo-img { height: 40px; width: auto; }
    .navbar-main .navbar-toggler { flex-shrink: 0; z-index: 100001; position: relative; }

    /* Offcanvas panel */
    .navbar-main .navbar-collapse {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 300px;
        max-width: 82vw;
        height: calc(100vh - 100px);
        background: #fff;
        z-index: 100000;
        box-shadow: -8px 0 50px rgba(0,0,0,0.2);
        overflow-y: auto;
        flex-direction: column;
        padding: 0;
        display: flex !important;
        visibility: hidden;
        transition: right 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s 0.35s;
        border-radius: 20px 0 0 20px;
    }
    .navbar-main .navbar-collapse.collapsing {
        height: calc(100vh - 100px) !important;
        display: flex !important;
        transition: right 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s !important;
        overflow: visible !important;
    }
    .navbar-main .navbar-collapse.show {
        right: 0;
        visibility: visible;
        transition: right 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
    }

    /* Header */
    .mobile-menu-header {
        padding: 40px 20px 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-bottom: 1px solid #f1f5f9;
        flex-shrink: 0;
    }
    .mobile-menu-header img { height: 36px; width: auto; object-fit: contain; }

    /* Nav items */
    .navbar-nav {
        padding: 12px 16px;
        flex: 1;
    }
    .navbar-nav .nav-item { width: 100%; }
    .navbar-nav .nav-link {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        flex-direction: row-reverse;
        gap: 14px;
        padding: 13px 16px !important;
        font-size: 15px;
        font-weight: 500;
        color: var(--dark-2) !important;
        border-radius: 14px;
        margin-bottom: 2px;
        transition: all 0.2s;
        border: none;
        position: relative;
    }
    .navbar-nav .nav-link::before { display: none !important; }
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background: var(--primary-light) !important;
        color: var(--primary) !important;
    }
    .navbar-nav .nav-link .nav-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        background: #f1f5f9;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        color: var(--gray);
        flex-shrink: 0;
        transition: all 0.2s;
        order: 2;
    }
    .navbar-nav .nav-link:hover .nav-icon,
    .navbar-nav .nav-link.active .nav-icon {
        background: var(--primary);
        color: #fff;
    }

    /* Dropdown in mobile */
    .navbar-nav .dropdown-menu {
        position: static !important;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 4px 0 8px 16px;
        margin: 0 !important;
        animation: none;
    }
    .navbar-nav .dropdown-item {
        padding: 10px 16px;
        margin: 2px 0;
        border-radius: 10px;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 10px;
        flex-direction: row-reverse;
        justify-content: flex-end;
    }
    .navbar-nav .dropdown-item i { font-size: 15px; order: 2; }

    /* Remove desktop dropdown arrow in mobile */
    .nav-link.dropdown-toggle::after { display: none; }

    /* Bottom login button */
    .mobile-menu-login {
        padding: 16px 20px 24px;
        border-top: 1px solid #f1f5f9;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .mobile-menu-login .btn {
        width: 100%;
        padding: 14px;
        border-radius: 14px;
        font-weight: 600;
        font-size: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    .mobile-menu-close {
        width: 100%;
        padding: 14px;
        border-radius: 14px;
        background: #f1f5f9;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        font-weight: 600;
        color: var(--dark);
        cursor: pointer;
        transition: all 0.2s;
        gap: 8px;
    }
    .mobile-menu-close:hover { background: #e2e8f0; }

    /* Toggler (hamburger) button */
    .navbar-toggler {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        background: #f1f5f9;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        padding: 0;
        transition: all 0.2s;
    }
    .navbar-toggler:hover { background: #e2e8f0; }
    .navbar-toggler:focus { box-shadow: none; }
    .navbar-toggler-icon {
        width: 20px;
        height: 14px;
        background-image: none;
        position: relative;
        display: block;
    }
    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--dark);
        border-radius: 2px;
        transition: all 0.3s;
    }
    .navbar-toggler-icon::before { top: 0; }
    .navbar-toggler-icon::after { bottom: 0; }
}
