/* =========================================
   1. General Setup & Colors
   ========================================= */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    min-height: 100vh;
}

/* =========================================
   Glassmorphism Panel - Behind Text Only
   ========================================= */
.glass-panel {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.glass-panel-dark {
    background: rgba(30, 58, 138, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .glass-panel,
    .glass-panel-dark {
        padding: 1.5rem;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.2);
    }
}

/* =========================================
   About Section Glassmorphism
   ========================================= */
.glass-section {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .glass-section {
        background: rgba(255, 255, 255, 0.85);
    }
}

/* =========================================
   About Us - Asymmetric Section
   ========================================= */
.about-section {
    background-color: #FDF2E2;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.about-content {
    padding-right: 2rem;
}

.about-content h1 {
    font-size: 2.75rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.about-content h2 {
    font-size: 1.5rem;
    line-height: 1.4;
}

.about-content p {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Stat Cards */
.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Images Wrapper */
.about-images-wrapper {
    position: relative;
    min-height: 520px;
    padding: 30px 0;
}

/* Top Image */
.about-image-top {
    position: relative;
    z-index: 1;
}

.about-img-top {
    width: 100%;
    max-width: 480px;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    margin-left: auto;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

/* Bottom Image (Overlapping) */
.about-image-bottom {
    position: absolute;
    bottom: 20px;
    left: 0;
    z-index: 2;
}

.about-img-bottom {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    margin-left: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

/* Responsive - Tablet & Mobile */
@media (max-width: 991px) {
    .about-content {
        padding-right: 0;
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .about-content h1 {
        font-size: 2.25rem;
    }
    
    .about-content h2 {
        font-size: 1.25rem;
    }
    
    .about-images-wrapper {
        min-height: auto;
        padding: 0;
    }
    
    .about-image-top {
        position: relative !important;
        margin-bottom: 0;
    }
    
    .about-img-top {
        max-width: 100%;
        margin-left: auto !important;
        margin-right: auto;
    }
    
    /* Overlap effect tetap terjaga di mobile */
    .about-image-bottom {
        position: relative !important;
        bottom: auto;
        left: auto;
        margin-top: -80px;
        margin-left: auto !important;
        margin-right: auto;
        display: table;
    }
    
    .about-img-bottom {
        max-width: 85%;
        margin-left: auto !important;
        margin-right: auto;
    }
}

@media (max-width: 767px) {
    .about-section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .about-content h1 {
        font-size: 1.875rem;
    }
    
    .about-content h2 {
        font-size: 1.125rem;
    }
    
    .stat-card .p-3 {
        padding: 0.75rem !important;
    }
    
    .stat-card h3 {
        font-size: 1.25rem !important;
    }
    
    .stat-card small {
        font-size: 0.75rem !important;
    }
    
    .about-img-bottom {
        max-width: 90%;
    }
}

/* Rubik Font for Special Headings */
.font-rubik {
    font-family: 'Rubik', sans-serif;
    font-weight: 900;
    letter-spacing: -0.5px;
}

/* Standar Warna Herz (Pilih salah satu, di sini saya pakai #EA580C agar konsisten) */
.text-herz-blue { color: #1e3a8a; }
.text-herz-orange { color: #EA580C !important; }
.text-herz-white { color: #ffffff !important; }
.text-white { color: #ffffff !important; }
.bg-herz-blue { background-color: #1e3a8a; }

.btn-herz-blue {
    background-color: #1e3a8a;
    color: white;
}
.btn-herz-blue:hover { background-color: #172554; color: white; }

.btn-herz-orange { 
    background-color: #EA580C; 
    border-color: #EA580C;
    color: white; 
}
.btn-herz-orange:hover { background-color: #d14d0a; }

/* =========================================
   2. Components
   ========================================= */
/* REVISI 2026-05-07: Perbesar logo agar lebih jelas */
.brand-logo { width: 100px; height: 100px; transition: transform 0.3s ease; }
.brand-logo:hover { transform: scale(1.05); }

@media (max-width: 768px) {
    .brand-logo { height: 60px; }
}

.border-bottom-herz-orange { border-bottom: 3px solid #EA580C; }

/* REVISI 2026-05-07: Perjelas kontras font */
.text-muted { color: #4b5563 !important; } /* Lebih gelap dari default bootstrap muted */
.text-light-blue { color: #dbeafe !important; }

/* =========================================
   Hero Slider (Background Image Carousel)
   ========================================= */
.hero-slider {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero-panel {
    max-width: 100%;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.hero-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 72px;
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-bg {
    min-height: 100vh;
    background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)), url('https://images.unsplash.com/photo-1532601224476-15c79f2f7a51?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 80px;
}

.hero-subtitle {
    border-left: 4px solid #EA580C;
    padding-left: 1rem;
    color: #1e3a8a;
}

@media (max-width: 991px) {
    .hero-slider {
        min-height: auto;
        padding: 120px 0 48px;
    }

    .hero-title {
        font-size: clamp(2.4rem, 7vw, 3.75rem);
        line-height: 1.12;
    }

    .hero-description {
        margin-bottom: 2rem !important;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        padding: 104px 0 40px;
    }

    .hero-panel {
        padding: 1.5rem 1.25rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-title {
        font-size: clamp(2rem, 9vw, 2.8rem);
        margin-bottom: 1.25rem !important;
    }

    .hero-description {
        font-size: 1.05rem;
        line-height: 1.7;
    }

    .hero-actions {
        gap: 0.75rem !important;
    }

    .hero-action-btn {
        flex: 1 1 calc(50% - 0.75rem);
        width: 100%;
        min-height: 64px;
        padding: 0.95rem 1rem !important;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        padding: 96px 0 32px;
    }

    .hero-panel {
        padding: 1.25rem 1rem;
        border-radius: 18px;
    }

    .hero-subtitle {
        margin-bottom: 1rem !important;
        font-size: 0.82rem;
        letter-spacing: 0.04em;
    }

    .hero-title {
        font-size: clamp(1.85rem, 10vw, 2.35rem);
        line-height: 1.15;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem !important;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-action-btn {
        flex: 1 1 100%;
        min-height: 56px;
    }
}

.about-img {
    height: 400px;
    background-image: url('../assets/images/WhatsApp Image 2026-05-28 at 17.19.41.jpeg');
    background-size: cover;
    background-position: center;
}

/*hero image*/

/* Kita bikin section-nya span full width */
.full-width-hero {
    width: 100vw; /* Viewport Width (lebar layar) murni */
    min-height: 80vh; /* Tinggi section minimal 80% dari tinggi layar */
    margin-left: calc(-50vw + 50%); /* Trik TI buat override margin container */
    margin-right: calc(-50vw + 50%);
    position: relative;
    overflow: hidden; /* Biar nggak ada scrollbar horizontal */
}

/* Kita atur gambarnya di dalem section */
.full-width-hero img {
    width: 100%; /* Lebar gambar full mengikuti section pembungkus */
    height: 100%; /* Tinggi gambar full mengikuti section */
    object-fit: cover; /* Trik TI: Gambar nggak bakal distorsi, dia bakal di-crop */
    object-position: center; /* Fokus crop di tengah */
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1; /* Gambar ditaruh di belakang konten teks */
}

/* Full-width Blue Section */
.full-width-blue-section {
    width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  background-color: #1e3a8a;
  background-size: cover;
  background-position: center;
  
  /* TAMBAHAN BIAR PANJANG KE BAWAH */
  min-height: 600px; /* Atur angka ini sesuai selera lu */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Teks tetep di tengah meskipun section-nya tinggi */
  padding: 80px 20px; /* Ruang napas buat mobile */
}

.full-width-blue-section h2 {
    font-family: 'Rubik', sans-serif;
    font-weight: 900;
    letter-spacing: -1px;
}

/* =========================================
   Masonry Grid Section (CSS Grid-based)
   ========================================= */
.masonry-grid-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background-color: #1e3a8a;
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    min-height: 600px;
}

.masonry-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 14px;
    max-width: 1080px;
    margin: 0 auto;
}

@media (min-width: 576px) {
    .masonry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .masonry-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Portfolio documentation images (uniform size) */
.masonry-item {
    border-radius: 10px;
    overflow: hidden;
    background-color: #e2e8f0;
    aspect-ratio: 16 / 10;
    max-height: 220px;
}

.masonry-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Card base styles */
.masonry-card {
    position: relative;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(40px);
}

.masonry-card.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s ease;
}

.masonry-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* Card sizes */
.masonry-card-standard {
    grid-column: span 1;
    grid-row: span 1;
}

.masonry-card-wide {
    grid-column: span 2;
    grid-row: span 1;
}

.masonry-card-tall {
    grid-column: span 1;
    grid-row: span 2;
}

/* Card image */
.masonry-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transition: transform 0.4s ease;
}

.masonry-card:hover .masonry-card-img {
    transform: scale(1.05);
}

/* Card content overlay */
.masonry-card-body {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4), transparent);
    color: #ffffff;
    border-radius: 0 0 12px 12px;
}

.masonry-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.masonry-card-text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* Responsive: single column on mobile */
@media (max-width: 575px) {
    .masonry-card-wide,
    .masonry-card-tall {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .masonry-item {
        max-height: 180px;
    }
}
/* =========================================
   3. Services & Cards - Redesigned
   ========================================= */
.service-card {
    background: white;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.15) !important;
    border-color: #EA580C;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3a8a 0%, #EA580C 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card h4 {
    font-size: 1.15rem;
    line-height: 1.4;
    color: #1e3a8a;
    transition: color 0.3s ease;
}

.service-card:hover h4 {
    color: #EA580C;
}

.service-card .text-muted {
    transition: color 0.3s ease;
}

.service-card:hover .text-muted {
    color: #64748b !important;
}

/* Icon Box Redesigned */
.icon-box, .icon-box-orange {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    border-radius: 14px;
    transition: all 0.3s ease;
}

.icon-box {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e3a8a;
}

.icon-box-orange {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    color: #EA580C;
}

.service-card:hover .icon-box {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    transform: scale(1.1) rotate(-5deg);
}

.service-card:hover .icon-box-orange {
    background: linear-gradient(135deg, #EA580C 0%, #f97316 100%);
    color: white;
    transform: scale(1.1) rotate(-5deg);
}

.border-top-orange { border-top: none !important; }

/* =========================================
   4. Scroll-Driven Animations
   ========================================= */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px); /* Posisi awal fade-up */
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Contact Modal Grid Cards
   ========================================= */
.contact-grid-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #475569;
    font-size: 0.8rem;
}

.contact-grid-card:hover {
    background: #ffffff;
    border-color: #1e3a8a;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.1);
    color: #1e3a8a;
}

.contact-grid-card .icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.contact-grid-card .icon-wrapper.whatsapp { background: #dcfce7; color: #16a34a; }
.contact-grid-card:hover .icon-wrapper.whatsapp { background: #16a34a; color: #ffffff; }

.contact-grid-card .icon-wrapper.email { background: #e0e7ff; color: #2563eb; }
.contact-grid-card:hover .icon-wrapper.email { background: #2563eb; color: #ffffff; }

.contact-grid-card .icon-wrapper.linkedin { background: #e0f2fe; color: #0284c7; }
.contact-grid-card:hover .icon-wrapper.linkedin { background: #0284c7; color: #ffffff; }

/* About Card Overlay Layout */
.about-card-overlap {
    background: #ffffff;
    z-index: 2;
    position: relative;
}

.about-img-under {
    z-index: 1;
    position: relative;
}

@media (min-width: 992px) {
    .about-card-overlap {
        margin-right: -100px; /* Pull card right over the image */
    }
    .about-img-under {
        height: 550px;
        object-fit: cover;
    }
}

@media (max-width: 991px) {
    .about-img-under {
        margin-top: -50px; /* On small screens, image sits slightly under the card */
        height: 350px;
        object-fit: cover;
    }
}

/* Staggered Fade Up */
.fade-up-stagger {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up-stagger.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggering delays for list items */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.3s; }
.stagger-3 { transition-delay: 0.5s; }
.stagger-4 { transition-delay: 0.7s; }
.stagger-5 { transition-delay: 0.9s; }

/* Reveal from Right */
.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* =========================================
   Stat Divider Section
   ========================================= */
.stat-divider {
    background-color: #f8fafc;
    position: relative;
    z-index: 10;
}
.stat-item {
    padding: 1rem;
    transition: transform 0.3s ease;
}
.stat-item:hover {
    transform: translateY(-5px);
}

/* WAJIB: Biar gak ada scrollbar horizontal liar */
section {
    overflow-x: hidden;
}
/* Reveal Left Animation */
.reveal-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 1s cubic-bezier(0.17, 0.55, 0.55, 1),
                transform 1s cubic-bezier(0.17, 0.55, 0.55, 1);
}

.reveal-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered Delays for Cards */
.col-md-4:nth-child(1) .animate-on-scroll {
    transition-delay: 0.2s;
}

.col-md-4:nth-child(2) .animate-on-scroll {
    transition-delay: 0.4s;
}

.col-md-4:nth-child(3) .animate-on-scroll {
    transition-delay: 0.6s;
}

/* =========================================
   5. Navbar - Glassmorphism
   ========================================= */

.navbar {
    position: relative;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    padding: 0.75rem 0 !important;
}

.nav-link {
    color: #1e3a8a !important;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem !important;
}
.nav-link:hover {
    color: #EA580C !important;
}

.navbar .btn-herz-blue {
    background-color: #1e3a8a;
    color: white;
    border: none;
    padding: 0.4rem 1rem !important;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.navbar .btn-herz-blue:hover {
    background-color: #172554;
    color: white;
}

/* =========================================
   6. Scroll Progress Bar
   ========================================= */

.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, #1e3a8a, #EA580C);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* =========================================
   7. Footer & Portfolio Extra
   ========================================= */
.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: 0.3s;
}
.social-icon:hover { background: rgba(255,255,255,0.35); transform: scale(1.1); }

.client-logo { height: 60px; max-width: 120px; object-fit: contain; }

.case-card { transition: all 0.3s ease; }
.case-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }

.case-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    transition: 0.4s;
}
.case-img:hover { transform: scale(1.05); }

.border-bottom-hover {
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}
.border-bottom-hover:hover {
    border-bottom: 2px solid #EA580C;
    color: #1e3a8a;
}

/* =========================================
   Fade-in + Slide Up Animation
   ========================================= */
.fade-in-text {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-text.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for multiple fade-in elements */
.fade-in-text:nth-child(2) {
    transition-delay: 0.2s;
}

.fade-in-text:nth-child(3) {
    transition-delay: 0.4s;
}

/* =========================================
   6. Typing Animation
   ========================================= */
.typing-title {
    display: block;
}

.typing-subtitle {
    display: block;
    margin-top: 1rem;
}

/* =========================================
   8. Circular Testimonial
   ========================================= */

.testimonial-img-container img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.testimonial-item {
    animation: fadeIn 0.8s ease-in-out;
}

.nav-testi {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.nav-testi:hover {
    transform: scale(1.1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bg-herz-dark {
    background-color: #060507;
}

/* =========================================
   9. Contact Section
   ========================================= */
.contact-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-hero {
    border-radius: 28px !important;
}

.contact-card {
    border-radius: 24px !important;
    border-color: #e2e8f0 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12) !important;
}

.contact-modal {
    border-radius: 20px;
    overflow: hidden;
}

.contact-modal .modal-header {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 65%);
}

.contact-modal .modal-body {
    padding: 1.25rem 1.25rem 1.5rem;
}

.contact-modal .btn {
    border-radius: 12px;
}

.contact-image-wrap {
    border-top-right-radius: 28px;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    overflow: hidden;
}

.contact-image-wrap img {
    border-top-right-radius: 28px;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
}

@media (max-width: 991px) {
    .contact-image-wrap {
        border-top-right-radius: 0;
        border-bottom-left-radius: 28px;
        border-bottom-right-radius: 28px;
    }

    .contact-image-wrap img {
        border-top-right-radius: 0;
        border-bottom-left-radius: 28px;
        border-bottom-right-radius: 28px;
    }
}


/* =========================================
   Slider Logo Klien (Infinite Marquee)
   ========================================= */

.logo-slider-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: slideContinuous 20s linear infinite;
}

.logo-slider-track:hover {
    animation-play-state: paused;
}

.client-slide-box {
    width: 200px;
    flex-shrink: 0;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.client-slide-box:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.client-logo {
    height: 60px;
    max-width: 120px;
    object-fit: contain;
}

@keyframes slideContinuous {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* =========================================
   Services Page Styles
   ========================================= */

/* Hero Section untuk Services */
.services-hero {
    background: #f8fafc;
    padding: 120px 0 60px;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.services-hero h1 {
    font-family: 'Rubik', sans-serif;
    font-weight: 800;
    letter-spacing: -1px;
}

.services-hero .lead {
    color: #64748b;
}

.hero-badge {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.hero-badge span {
    background: #e2e8f0;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 24px;
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    border: 1px solid #eef2f8;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: #EA580C;
}

.service-card-header {
    padding: 28px 28px 20px;
    border-bottom: 2px solid #f0f4fa;
    display: flex;
    align-items: center;
    gap: 16px;
}

.service-icon {
    width: 54px;
    height: 75px;
    background: #eef2ff;
    border-radius: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #1e3a8a;
    flex-shrink: 0;
}

.service-card-header h3 {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
    color: #0f2b4d;
}

.service-card-body {
    padding: 24px 28px 28px;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.service-list li {
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #334155;
    font-weight: 500;
}

.service-list li i {
    color: #EA580C;
    font-size: 1.1rem;
    margin-top: 2px;
    min-width: 20px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 24px;
}

.tech-stack span {
    background: #f1f5f9;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #1e3a8a;
}

/* Competency List Section Customization */
.competency-list-section .service-card {
    border-left: 5px solid #1e3a8a;
    transition: all 0.3s ease;
}

.competency-list-section .service-card:hover {
    border-left: 5px solid #EA580C;
}

@media (max-width: 768px) {
    .service-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }
    
    .service-card-header h3 {
        font-size: 1.2rem;
    }
    
    .service-card-body {
        padding: 20px;
    }
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #EA580C;
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 12px;
    color: #1e3a8a;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f2b4d 100%);
    border-radius: 28px;
    padding: 48px 40px;
    margin: 48px 0;
    text-align: center;
}

.cta-section h3 {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Clients Section */
.clients-section {
    padding: 40px 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 40px;
}

.client-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: center;
}

.client-logos span {
    font-weight: 700;
    color: #475569;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* Button Styles */
.btn-herz-blue {
    background-color: #1e3a8a;
    color: white;
    transition: all 0.3s ease;
}

.btn-herz-blue:hover {
    background-color: #172554;
    color: white;
    transform: translateY(-2px);
}

.btn-herz-orange {
    background-color: #EA580C;
    border-color: #EA580C;
    color: white;
    transition: all 0.3s ease;
}

.btn-herz-orange:hover {
    background-color: #d14d0a;
    color: white;
    transform: translateY(-2px);
}

.btn-outline-herz-blue {
    border: 2px solid #1e3a8a;
    color: #1e3a8a;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-herz-blue:hover {
    background: #1e3a8a;
    color: white;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .services-hero {
        padding: 120px 0 60px;
    }
    .services-hero h1 {
        font-size: 2rem;
    }
    .service-card-header h3 {
        font-size: 1.25rem;
    }
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    .cta-section {
        padding: 32px 24px;
    }
    .cta-section h3 {
        font-size: 1.3rem;
    }
    .client-logos {
        gap: 24px;
    }
    .client-logos span {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .service-card-header {
        padding: 20px;
    }
    .service-card-body {
        padding: 20px;
    }
}

/* =========================================
   Certificate Page Styles
   ========================================= */

/* Hero Section */
.certificate-hero {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background-color: #1e3a8a;
    background-image: linear-gradient(rgba(30, 58, 138, 0.92), rgba(30, 58, 138, 0.92));
    background-size: cover;
    background-position: center;
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding: 120px 20px 60px;
}

/* Carousel Section */
.certificate-carousel-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.carousel-track-container {
    overflow: hidden;
    border-radius: 16px;
    flex: 1;
}

.carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px 0;
}

/* Certificate Card - No Image Version */
.certificate-card {
    min-width: calc(33.333% - 16px);
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.certificate-card-content {
    padding: 32px 24px;
    text-align: center;
}

.certificate-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: white;
}

.certificate-card h5 {
    color: #1e3a8a;
    font-size: 1.1rem;
    line-height: 1.4;
}

.certificate-card .text-muted {
    font-size: 0.875rem;
}

/* Navigation Buttons */
.carousel-nav {
    width: 48px;
    height: 48px;
    background: white;
    border: 2px solid #1e3a8a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #1e3a8a;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.carousel-nav:hover {
    background: #1e3a8a;
    color: white;
    transform: scale(1.1);
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-nav:disabled:hover {
    background: white;
    color: #1e3a8a;
    transform: none;
}

/* Dots Indicator */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #1e3a8a;
    transform: scale(1.3);
}

.dot:hover:not(.active) {
    background: #94a3b8;
}

/* Responsive */
@media (max-width: 991px) {
    .certificate-card {
        min-width: calc(50% - 12px);
    }
}

@media (max-width: 767px) {
    .certificate-card {
        min-width: calc(100% - 0px);
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .carousel-wrapper {
        gap: 12px;
    }
    
    .certificate-hero {
        min-height: 40vh;
        padding: 100px 20px 40px;
    }
    
    .certificate-hero h1 {
        font-size: 2rem;
    }
    
    .certificate-card-content {
        padding: 24px 20px;
    }
    
    .certificate-icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }
}
