/* ======================================
   1. Global Variables & Reset
   ====================================== */
:root {
    --primary: #2563eb;
    --secondary: #10b981;
    --dark: #1e293b;
    --light: #f8fafc;
    --accent: #00d4ff;
    --red-brand: #e31e24;
}

* { box-sizing: border-box; margin:0; padding:0; }

body {
    font-family: 'Segoe UI', system-ui, Arial, sans-serif;
    background: var(--light);
    line-height: 1.6;
    color: var(--dark);
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: auto;
    padding: 0 12px;
}

/* ======================================
   2. Header & Navigation (Elegan + Aman di 225px)
   ====================================== */
.site-header {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    max-width: 1200px;
    margin: 0 auto;
}


.logo img {
    height: 70px;  /* Ubah di sini */
    width: auto;
    max-width: 250px;  /* Sesuaikan agar proporsional */
    display: block;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.logo img:hover { transform: scale(1.05); }

@media (max-width: 768px) {
    .logo img {
        height: 50px;  /* Kecilkan sedikit di HP agar tidak overflow */
    }
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--primary);
    margin: 3.5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Navigasi desktop */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.3s ease, transform 0.2s ease;
    padding: 8px 0;
}

.main-nav a:hover { color: var(--secondary); transform: translateY(-2px); }

.main-nav .highlight {
    background: var(--secondary);
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
}

/* Mobile: Hamburger muncul & menu collapse */
@media (max-width: 991px) {
    .hamburger { display: block; }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #eee;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 999;
        padding: 20px 15px;
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1.2rem;
        align-items: center;
    }

    .main-nav a { font-size: 1.1rem; padding: 10px 0; width: 100%; text-align: center; }

    /* Aman di layar 225px */
    .header-inner { padding: 8px 6px; }
    .logo img { height: 34px; max-width: 130px; }
    .hamburger { padding: 4px; }
    .hamburger span { width: 22px; height: 2px; margin: 3px 0; }
}

/* Desktop: Logo kiri, menu kanan */
@media (min-width: 992px) {
    .main-nav { margin-left: auto; }
    .nav-link { padding: 0.5rem 1.2rem; }
    .hamburger { display: none !important; }
}

/* ======================================
   3. Hero Section (Background Aman - Tanpa 404)
   ====================================== */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
                url('/assets/img/bg.webp') center/cover no-repeat fixed;
    transform: translate(var(--mx, 0px), var(--my, 0px)) scale(1.05);
    transition: transform 0.3s ease-out;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
}

.hero h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.2; }
.hero p { font-size: 1.25rem; margin-bottom: 2rem; opacity: 0.9; }


/* ======================================
   4. Buttons, Services, Footer, dll. (dari kode kamu, sudah dibersihkan)
   ====================================== */
.btn-primary, .btn-secondary {
    padding: 1rem 2.2rem;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    cursor: pointer;
}

.btn-primary { background: var(--red-brand); color: white; border: 2px solid var(--red-brand); }
.btn-secondary { background: transparent; color: white; border: 2px solid white; }

.btn-primary:hover { background: #c71a1f; transform: translateY(-4px); }
.btn-secondary:hover { background: rgba(255,255,255,0.15); transform: translateY(-4px); }

.services { padding: 4rem 0; background: white; }
.section-title { text-align: center; font-size: 2.5rem; margin: 3rem 0 2.5rem; color: var(--dark); }

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem 1.8rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
    border: 1px solid #f0f0f0;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}

.footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
    border-top: 4px solid var(--red-brand);
}

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: #94a3b8;
}

/* ======================================
   3. About Section (Statistics)
   ====================================== */
.about-intro { padding: 80px 0; background: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--light);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 5px solid var(--red-brand);
}

.stat-icon { font-size: 2rem; }

/* ======================================
   4. Animations
   ====================================== */
.fade-in {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.4rem; }
    .hero p { font-size: 1.1rem; }
    .container { width: 95%; padding: 15px; }
}

/*SOLUSI TEKNOLOGI TERDEPAN */
/* ======================================
   About Section - Responsif
   ====================================== */

/* Desktop & Tablet besar (default) */
.about-intro {
    padding: 80px 0;
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;   /* dua kolom sama lebar */
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--light);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 5px solid var(--red-brand);
}

.stat-icon {
    font-size: 2.2rem;   /* atau min-width: 50px; kalau mau pakai SVG lebih besar */
    flex-shrink: 0;
}

.stat-title {
    font-size: 1.25rem;
    margin: 0;
}

/* ──────────────────────────────────────
   Responsif: Tablet & Smartphone
   ────────────────────────────────────── */

@media (max-width: 992px) {
    .about-grid {
        gap: 40px;
    }
    
    .about-text h2 {
        font-size: 2.1rem;
    }
}

@media (max-width: 768px) {
    .about-intro {
        padding: 60px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;          /* jadi satu kolom vertikal */
        gap: 45px;
    }

    .about-text {
        text-align: center;                  /* opsional: center agar lebih simetris */
    }

    .about-text h2 {
        font-size: 1.9rem;
        margin-bottom: 1.2rem;
    }

    .about-text p {
        font-size: 1.05rem;
        line-height: 1.65;
    }

    .about-stats {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;                 /* center card di HP */
    }

    .stat-card {
        width: 100%;
        max-width: 420px;                    /* batasi lebar agar tidak terlalu lebar di HP */
        padding: 18px;
        text-align: left;                    /* kembalikan ke kiri biar rapi */
    }

    .stat-icon {
        font-size: 2rem;
    }

    .stat-title {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .about-intro {
        padding: 50px 0;
    }

    .about-text h2 {
        font-size: 1.75rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .stat-card {
        padding: 16px;
        gap: 12px;
    }
}

/*tampilan Solusi IT pada HP */
/* Hero Buttons - Default (desktop & tablet) */
.hero-btns {
    display: flex;
    flex-wrap: wrap;          /* biarkan wrap ke baris baru kalau tidak muat */
    gap: 1.2rem;              /* jarak antar tombol */
    justify-content: center;  /* center di tengah */
    margin-top: 2rem;
}

/* Pastikan tombol punya lebar minimal yang wajar */
.hero-btns a {
    flex: 1 1 auto;           /* tombol bisa melebar tapi tidak terlalu sempit */
    min-width: 180px;         /* minimal lebar tombol agar tidak terlalu kecil */
    text-align: center;
    white-space: nowrap;      /* teks tidak pecah ke baris baru */
}

/* ──────────────────────────────────────
   Smartphone & layar kecil
   ────────────────────────────────────── */
@media (max-width: 576px) {   /* atau max-width: 480px kalau ingin lebih ketat */
    .hero-btns {
        flex-direction: column;    /* ubah jadi vertikal (satu di atas satu) */
        gap: 1rem;                 /* jarak vertikal antar tombol lebih rapat & nyaman */
        align-items: stretch;      /* tombol melebar penuh lebar container */
    }

    .hero-btns a {
        min-width: unset;          /* hilangkan min-width biar full width */
        width: 100%;               /* tombol memenuhi lebar layar */
        padding: 1rem 1.5rem;      /* padding lebih kecil biar tidak terlalu besar */
        font-size: 1.05rem;        /* sedikit kecil agar proporsional */
    }
}

@media (max-width: 400px) {
    .hero-btns a {
        padding: 0.9rem 1.2rem;
        font-size: 1rem;
    }
}