:root {
    --primary: #1a56db;
    --primary-dark: #1341a8;
    --primary-light: #e8f0fe;
    --dark: #0f172a;
    --gray: #64748b;
    --light: #f8fafc;
    --radius: 16px;
    --shadow: 0 10px 40px rgba(15,23,42,.08);
    --shadow-lg: 0 20px 60px rgba(26,86,219,.15);
}

* { font-family: 'Plus Jakarta Sans', sans-serif; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { color: var(--dark); overflow-x: hidden; }

/* Navbar */
.custom-navbar {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    transition: all .3s ease;
    padding: .85rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,.04);
}
.custom-navbar.scrolled { padding: .5rem 0; box-shadow: var(--shadow); }
.navbar-brand { font-size: 1.4rem; }
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), #4f86f7);
    color: #fff; font-weight: 800; margin-right: 6px;
}
.nav-link { font-weight: 500; color: var(--dark) !important; margin: 0 .35rem; position: relative; }
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    width: 0; height: 2px; background: var(--primary);
    transition: all .3s; transform: translateX(-50%);
}
.nav-link:hover::after, .nav-link.active::after { width: 70%; }

/* ===========================
   HERO — GRADIENT BACKGROUNDS
   =========================== */

.hero-section {
    position: relative;
    height: 100vh;
    min-height: 620px;
}

.hero-slide {
    height: 100vh;
    min-height: 620px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* ===== SLIDE 1 — Deep Navy → Electric Blue ===== */
.slide-1 {
    background:
        radial-gradient(ellipse at 20% 15%, rgba(96, 165, 250, .35) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 85%, rgba(37, 99, 235, .45) 0%, transparent 50%),
        linear-gradient(135deg, #0a1e4d 0%, #133a8f 45%, #1a56db 100%);
}

/* ===== SLIDE 2 — Midnight → Royal Blue → Cyan Hint ===== */
.slide-2 {
    background:
        radial-gradient(ellipse at 80% 20%, rgba(56, 189, 248, .30) 0%, transparent 55%),
        radial-gradient(ellipse at 15% 80%, rgba(59, 130, 246, .45) 0%, transparent 50%),
        linear-gradient(135deg, #06122e 0%, #0f2a6f 40%, #1e40af 75%, #2563eb 100%);
}

/* ===== SLIDE 3 — Indigo → Azure → Soft Sky ===== */
.slide-3 {
    background:
        radial-gradient(ellipse at 30% 90%, rgba(147, 197, 253, .30) 0%, transparent 55%),
        radial-gradient(ellipse at 90% 10%, rgba(59, 130, 246, .40) 0%, transparent 50%),
        linear-gradient(135deg, #0b1d3d 0%, #123a8a 50%, #1a56db 85%, #3b82f6 100%);
}

/* ===== Texture overlay (subtle noise + light sweep) ===== */
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(255, 255, 255, .10) 0, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(255, 255, 255, .06) 0, transparent 45%);
    pointer-events: none;
    z-index: 1;
}

/* ===== Soft vignette overlay (readability) ===== */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(5, 15, 40, .55) 0%,
        rgba(5, 15, 40, .25) 45%,
        rgba(5, 15, 40, 0) 75%
    );
    z-index: 1;
}

/* ===== Content z-index ===== */
.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Keep existing controls / badge / text-gradient rules intact */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    z-index: 5;
}
.text-gradient {
    background: linear-gradient(90deg, #bfdbfe 0%, #93c5fd 50%, #e0f2fe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}


/* Animated gradient background untuk setiap slide */
.slide-1,
.slide-2,
.slide-3 {
    background-size: 200% 200%;
    animation: gradientShift 14s ease-in-out infinite;
}

.slide-2 { animation-duration: 17s; animation-delay: -4s; }
.slide-3 { animation-duration: 20s; animation-delay: -8s; }

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hormati preferensi aksesibilitas */
@media (prefers-reduced-motion: reduce) {
    .slide-1, .slide-2, .slide-3 {
        animation: none;
        background-size: auto;
    }
}


/* Sections */
.section-padding { padding: 100px 0; }
.bg-light-soft { background: var(--light); }
.section-tag {
    display: inline-block; color: var(--primary); font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px; font-size: .8rem;
    padding: .35rem 1rem; background: var(--primary-light);
    border-radius: 50px; margin-bottom: 1rem;
}
.section-title { font-size: 1.7rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.2; }

/* About */
.about-visual { position: relative; height: 410px; }
.about-bg-shape {
    position: absolute; inset: 0;
    /*
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    border-radius: 30px; transform: rotate(-3deg);
    */
    border-radius: 20px;
    background-image: url(../../assets/img/zein-about.webp);
}
.about-card-1, .about-card-2 {
    position: absolute; background: #fff; border-radius: var(--radius);
    padding: 1rem 1.3rem; box-shadow: var(--shadow-lg); z-index: 2;
}
.about-card-1 { top: 10px; left: -20px; }
.about-card-2 { bottom: 10px; right: 10px; }
.about-card-1 i, .about-card-2 i { font-size: 1rem; color: var(--primary); margin-bottom: .5rem; display: block; }

/* Card 1: naik dulu */
.about-card-1 {
    animation-name: floatCardUp;
    animation-duration: 3.6s;
    animation-delay: 0s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

/* Card 2: turun dulu (kebalikannya) */
.about-card-2 {
    animation-name: floatCardDown;
    animation-duration: 4.2s;
    animation-delay: -2s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes floatCardUp {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-16px); }
    100% { transform: translateY(0); }
}

@keyframes floatCardDown {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(14px); }
    100% { transform: translateY(0); }
}

/* Hormati preferensi aksesibilitas pengguna */
@media (prefers-reduced-motion: reduce) {
    .about-card-1,
    .about-card-2 {
        animation: none;
    }
}

/* Stats */
.stats-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 70px 0; color: #fff;
}
.stat-item h3 { font-size: 3rem; font-weight: 800; display: inline; }
.stat-item span { font-size: 2rem; font-weight: 700; color: #93c5fd; }
.stat-item p { opacity: .85; margin-top: .5rem; font-weight: 500; }

/* Services */
.service-card {
    background: #fff; border-radius: var(--radius); padding: 2.2rem 1.8rem;
    height: 100%; transition: all .4s ease; border: 1px solid #eef2f7;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-icon {
    width: 64px; height: 64px; border-radius: 16px;
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin-bottom: 1.3rem; transition: all .4s;
}
.service-card:hover .service-icon { background: var(--primary); color: #fff; transform: rotate(-6deg); }
.service-card h5 { font-weight: 700; margin-bottom: .7rem; }

/* Portfolio */
.portfolio-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 20px rgba(15,23,42,.05); transition: all .4s; height: 100%; }
.portfolio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.portfolio-thumb {
    height: 200px; background: linear-gradient(135deg, var(--primary-light), #dbeafe);
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem; color: var(--primary); transition: all .4s;
}
.portfolio-card:hover .portfolio-thumb { background: linear-gradient(135deg, var(--primary), #3b82f6); color: #fff; }
.portfolio-body { padding: 1.5rem; }
.portfolio-tag {
    font-size: .75rem; font-weight: 600; color: var(--primary);
    background: var(--primary-light); padding: .25rem .75rem; border-radius: 50px;
}
.portfolio-body h5 { margin-top: .8rem; font-weight: 700; }
.portfolio-link { color: var(--primary); font-weight: 600; text-decoration: none; font-size: .9rem; }
.portfolio-link:hover { color: var(--primary-dark); }

/* Clients */
.client-card {
    background: #fff; border-radius: 12px; padding: 1.6rem;
    display: flex; align-items: center; justify-content: center; gap: .6rem;
    font-weight: 600; color: var(--gray); box-shadow: 0 2px 12px rgba(15,23,42,.04);
    transition: all .3s; border: 1px solid #eef2f7;
}
.client-card:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-4px); }
.client-card i { font-size: 1.3rem; color: var(--primary); }

/* Why */
.why-item { display: flex; gap: 1rem; margin-top: 1.5rem; }
.why-icon {
    width: 52px; height: 52px; flex-shrink: 0; border-radius: 12px;
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.why-item h6 { font-weight: 700; margin-bottom: .3rem; }

/* Testimonial */
.testimonial-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; border-radius: var(--radius); padding: 2.5rem; position: relative;
}
.quote-icon { font-size: 3rem; color: rgba(255,255,255,.25); }
.testimonial-card p { font-size: 1.05rem; line-height: 1.7; margin-top: 1rem; }
.avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,.2); display: flex; align-items: center;
    justify-content: center; font-weight: 700; font-size: 1.2rem;
}

/* Contact */
.contact-info-card { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); height: 100%; }
.contact-info-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #eef2f7; }
.contact-info-item:last-child { border: none; }
.contact-info-item i { font-size: 1.4rem; color: var(--primary); }
.contact-info-item h6 { font-weight: 700; margin-bottom: .2rem; }
.contact-form { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.form-control { border-radius: 10px; border: 1px solid #e2e8f0; padding: .75rem 1rem; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(26,86,219,.15); }
.form-label { font-weight: 600; font-size: .9rem; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* Footer */
.site-footer { background: var(--dark); color: #fff; padding: 70px 0 30px; }
.footer-brand { font-weight: 800; margin-bottom: 1rem; }
.footer-brand span { color: #60a5fa; }
.footer-links { list-style: none; padding: 0; }
.footer-links a { color: rgba(255,255,255,.6); text-decoration: none; display: block; padding: .35rem 0; transition: .3s; }
.footer-links a:hover { color: #fff; padding-left: 5px; }
.social-links { display: flex; gap: .6rem; margin-top: 1rem; }
.social-links a {
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1);
    color: #fff; display: flex; align-items: center; justify-content: center; transition: .3s;
}
.social-links a:hover { background: var(--primary); transform: translateY(-3px); }
.site-footer h6 { font-weight: 700; margin-bottom: 1rem; }
.footer-divider { border-color: rgba(255,255,255,.1); margin: 40px 0 25px; }

/* WhatsApp */
.wa-float {
    position: fixed; bottom: 24px; left: 24px; width: 58px; height: 58px;
    background: #25d366; color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; box-shadow: 0 8px 25px rgba(37,211,102,.5);
    z-index: 999; transition: .3s; animation: pulse 2s infinite;
}
.wa-float:hover { color: #fff; transform: scale(1.1); }
@keyframes pulse { 0%,100%{ box-shadow: 0 8px 25px rgba(37,211,102,.5);} 50%{ box-shadow: 0 8px 25px rgba(37,211,102,.8);} }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(30px); transition: all .8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 991px) {
    .section-padding { padding: 70px 0; }
    .section-title { font-size: 1.9rem; }
    .hero-section, .hero-slide { height: 90vh; }
    .about-visual { margin-bottom: 2rem; height: 340px; }
}
@media (max-width: 576px) {
    .section-title { font-size: 1.6rem; }
    .hero-slide h1 { font-size: 2rem; }
    .stat-item h3 { font-size: 2.2rem; }
    .contact-form, .contact-info-card { padding: 1.4rem; }
}

