/**
 * assets/css/main.css
 * ═══════════════════════════════════════════════════════
 * CSS Utama Halaman Publik — Toko Anggrek Komputer
 * ═══════════════════════════════════════════════════════
 */

/* ─── 1. CSS VARIABLES ─── */
:root {
    --primary:       #0052d4;
    --primary-light: #00b0ff;
    --dark-bg:       #071530;
    --dark-card:     #0f2042;
    --accent:        #ec4899;
    --light-bg:      #f8fafc;
    --text-dark:     #0f172a;
    --text-muted:    #64748b;
}

/* ─── 2. BASE ─── */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    scroll-behavior: smooth;
}
h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Outfit', sans-serif;
}

/* ─── 3. NAVBAR ─── */
.navbar-custom {
    background-color: rgba(7, 21, 48, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 0;
    transition: all 0.3s;
}
.navbar-custom .navbar-brand       { color: #fff; font-size: 1.15rem; letter-spacing: 0.3px; }
.navbar-custom .navbar-brand img   { height: 32px; }
.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.82rem;
    padding: 6px 10px !important;
    letter-spacing: 0.2px;
    transition: color 0.25s;
    white-space: nowrap;
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active    { color: var(--primary-light); }
.navbar-custom .nav-link.active    { border-bottom: 2px solid var(--primary-light); }
.navbar-custom .btn-sm             { font-size: 0.78rem; padding: 5px 14px; }

/* ─── 4. HERO ─── */
.hero-section {
    background: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.15), transparent),
                linear-gradient(135deg, var(--dark-bg), #0f172a);
    color: white;
    padding: 160px 0 120px 0;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.7;
    pointer-events: none;   /* ← agar klik bisa tembus ke tombol di bawah */
}
.hero-section > .container {
    position: relative;
    z-index: 1;             /* ← pastikan konten di atas overlay */
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 30%, #00b0ff, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
}
.hero-lead {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 600px;
    margin-bottom: 35px;
}

/* ─── 5. SECTION HELPERS ─── */
.section-padding        { padding: 90px 0; }
.section-title-wrap     { text-align: center; margin-bottom: 50px; }
.section-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
}
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}
.section-title-white    { color: #ffffff; }
.title-bar {
    width: 60px; height: 4px;
    background: linear-gradient(to right, var(--primary-light), var(--accent));
    margin: 0 auto;
    border-radius: 2px;
}

/* ─── 6. PREMIUM CARDS (Layanan) ─── */
.premium-card {
    background-color: #fff;
    border: none;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.premium-card::before {
    content: "";
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0, 176, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}
.premium-card:hover                 { transform: translateY(-8px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1); }
.premium-card:hover::before         { opacity: 1; }
.card-icon {
    width: 70px; height: 70px;
    border-radius: 50%;
    background-color: rgba(0, 176, 255, 0.1);
    color: var(--primary-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: all 0.3s;
}
.premium-card:hover .card-icon     { background-color: var(--primary-light); color: white; transform: scale(1.1); }

/* ─── 7. GALLERY ─── */
.gallery-item {
    position: relative; overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 24px;
}
.gallery-img {
    width: 100%; height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(11, 19, 43, 0.9), transparent);
    opacity: 0;
    display: flex; flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-img    { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ─── 8. TESTIMONIALS ─── */
.testimonial-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border-left: 4px solid var(--accent);
}

/* ─── 9. TEAM ─── */
.team-card {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    text-align: center;
    padding-bottom: 25px;
    transition: transform 0.3s;
}
.team-card:hover { transform: translateY(-5px); }
.team-avatar {
    width: 100px; height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 30px auto 20px auto;
    border: 3px solid rgba(0, 176, 255, 0.2);
}

/* ─── 10. FOOTER ─── */
.footer-premium {
    background-color: var(--dark-bg);
    color: #94a3b8;
    padding: 60px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ─── 11. RESPONSIVE ─── */
@media (max-width: 991px) {
    .navbar-custom               { padding: 10px 0; }
    .navbar-collapse {
        background-color: rgba(11, 19, 43, 0.98);
        padding: 20px; border-radius: 12px; margin-top: 12px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    .navbar-nav                  { align-items: stretch !important; width: 100%; }
    .navbar-nav .nav-item        { width: 100%; margin-bottom: 5px; }
    .navbar-nav .nav-item.ms-2   { margin-left: 0 !important; margin-top: 8px; }
    .navbar-nav .btn             { width: 100%; text-align: center; padding: 10px !important; }
    .hero-section                { padding: 120px 0 80px 0; text-align: center; }
    .hero-title                  { font-size: 2.2rem; }
    .hero-lead                   { margin: 0 auto 30px auto; font-size: 1.05rem; }
    .hero-section .d-flex        { justify-content: center; }
}
@media (max-width: 768px) {
    .section-padding             { padding: 60px 0; }
    .section-title               { font-size: 1.8rem; }
    .team-card,
    .testimonial-card,
    .premium-card                { margin-bottom: 15px; }
}
