/* ===== GLOBAL STYLES & RESETS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: poppins;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f8f9fa;
}

/* ===== NAVIGATION BAR ===== */
/* Floating pill-style navigation bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    z-index: 1000;
    width: 100%;
    max-width: none;
}

.navbar-container {
    background: linear-gradient(135deg,
            rgba(21, 98, 188, 0.75) 0%,
            rgba(13, 69, 128, 0.75) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    box-shadow: 0 4px 20px rgba(0, 0, 139, 0.15);
}


/* Left Side: Brand Section */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    height: 100%;
}

.navbar-logo {
    height: 35px;
    width: auto;
    object-fit: contain;
    margin-right: auto;
    flex-shrink: 0;
    filter: drop-shadow(1px 0px 0px rgba(255, 0, 0, 0.75)) drop-shadow(-1px 0px 0px rgba(0, 255, 255, 0.75));
}

.nav-logo {
    text-decoration: none;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-company-name {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    display: inline-block;
    line-height: 1;
    text-shadow: 1px 0px 0px rgba(255, 0, 0, 0.75), -1px 0px 0px rgba(0, 255, 255, 0.75);
}

/* Right Side: Menu Section */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-item {
    display: inline-block;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: opacity 0.2s ease;
    position: relative;
    text-shadow: 1px 0px 0px rgba(255, 0, 0, 0.75), -1px 0px 0px rgba(0, 255, 255, 0.75);
}

.nav-link:hover {
    opacity: 0.85;
}

/* Nav link underline effect */
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Contact Button */
.btn-contact {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-shadow: 1px 0px 0px rgba(255, 0, 0, 0.75), -1px 0px 0px rgba(0, 255, 255, 0.75);
    box-shadow: 1px 0px 0px rgba(255, 0, 0, 0.3), -1px 0px 0px rgba(0, 255, 255, 0.3);
}

.btn-contact:hover {
    background-color: #ffffff;
    color: #1562BC;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #1a1a1a;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #2a3f5f;
    z-index: 1;
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: translateX(100%);
    animation: slideRightToLeft 45s infinite ease-in-out;
}

/* Delay tiap slide */
.hero-slide:nth-child(1) {
    animation-delay: 0s;
}

.hero-slide:nth-child(2) {
    animation-delay: 15s;
}

.hero-slide:nth-child(3) {
    animation-delay: 30s;
}

/* Overlay */
.hero-slideshow::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(21, 98, 188, 0.85),
            rgba(13, 69, 128, 0.85),
            rgba(0, 0, 0, 0.7));
    z-index: 2;
}

/* Animasi smooth kanan → kiri */
@keyframes slideRightToLeft {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }

    10% {
        opacity: 1;
        transform: translateX(0);
    }

    40% {
        opacity: 1;
        transform: translateX(0);
    }

    55% {
        opacity: 0;
        transform: translateX(-100%);
    }

    100% {
        opacity: 0;
        transform: translateX(-100%);
    }
}


.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 2rem 2rem;
    width: 100%;
}

.hero-card {
    max-width: 600px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-label {
    font-family: poppins;
    display: inline-block;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    opacity: 0.95;
}

.hero-headline {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: inline-block;
    background-color: #D85818;
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(21, 98, 188, 0.4);
}

.hero-cta:hover {
    background-color: #0d4580;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 98, 188, 0.5);
}

/* ===== SHARED SECTION STYLES ===== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: poppins;
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1A3A52;
    margin-top: 0;
}

/* ===== CLIENT & PARTNER SHOWCASE SECTION ===== */
.clients-section {
    padding: 4rem 0;
    background-color: #ffffff;
    overflow: hidden;
}

/* Marquee Wrapper - Infinite Scroll Container */
.marquee-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    /* Gradient mask creates fading edges effect */
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-row {
    display: flex;
    overflow: hidden;
    user-select: none;
    width: 100%;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 3rem;
    animation: scroll linear infinite;
    /* Ensures content width is calculated correctly for infinite loop */
    width: max-content;
    /* Must match gap to ensure perfect seamless loop */
    padding-right: 3rem;
    will-change: transform;
}

/* Marquee Animation Keyframes */
/* Moves exactly 50% to shift duplicate set into position */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-reverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Animation Speed Modifiers */
.marquee-row.slow .marquee-content {
    animation-duration: 40s;
}

.marquee-row.fast .marquee-content {
    animation-duration: 25s;
}

/* Reverse Direction */
.marquee-row.reverse .marquee-content {
    animation-name: scroll-reverse;
}

/* Pause animation on hover */
.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .marquee-content {
        animation-play-state: paused;
    }
}

/* Partner Logo Styling */
.partner-logo {
    height: auto;
    width: 100px;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.partner-logo:hover {
    filter: grayscale(0%) opacity(1) invert(0);
    transform: scale(1.1);
}

/* Location Section */
.location-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
}

/* ===== RESPONSIVE DESIGN: NAVBAR & HERO ===== */
@media (max-width: 1200px) {
    .navbar {
        top: 0;
        left: 0;
        width: 100%;
    }

    .navbar-container {
        padding: 0 1.5rem;
    }

    .navbar-company-name {
        font-size: 1rem;
    }

    .navbar-nav {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.95rem;
    }
}

@media (max-width: 992px) {
    .navbar-nav {
        gap: 1.2rem;
    }

    .navbar-company-name {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {

    /* Navbar Mobile Styles */
    .navbar {
        top: 0;
        left: 0;
        width: 100%;
    }

    .navbar-container {
        padding: 0 1.2rem;
        height: 65px;
    }

    .navbar-brand {
        gap: 0.8rem;
    }

    .navbar-logo {
        height: 35px;
    }

    .navbar-company-name {
        font-size: 0.85rem;
    }

    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: 1.2rem;
    }

    /* Mobile menu dropdown */
    .navbar-menu {
        position: fixed;
        top: 90px;
        left: 50%;
        transform: translateX(-50%);
        width: 94%;
        max-width: 500px;
        background-color: rgba(21, 98, 188, 0.85);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 30px;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem;
        gap: 2rem;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        box-shadow: 0 4px 20px rgba(21, 98, 188, 0.2);
    }

    .navbar-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .btn-contact {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
    }

    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Hamburger menu animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Hero Section - Tablet */
    .hero-container {
        padding: 100px 1.5rem 2rem;
    }

    .hero-card {
        padding: 2.5rem;
    }

    .hero-headline {
        font-size: 2.8rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    /* Marquee logos smaller on tablet */
    .marquee-row {
        gap: 1.5rem;
    }

    .marquee-content {
        gap: 2rem;
        padding-right: 2rem;
    }

    .partner-logo {
        width: 80px;
    }
}

@media (max-width: 480px) {

    /* Navbar Mobile Small */
    .navbar {
        top: 0;
        left: 0;
        width: 100%;
    }

    .navbar-container {
        padding: 0 1rem;
        height: 60px;
    }

    .navbar-brand {
        gap: 0.6rem;
    }

    .navbar-logo {
        height: 25px;
    }

    .navbar-company-name {
        font-size: 0.75rem;
    }

    .navbar-menu {
        top: 80px;
        width: 100%;
    }

    /* Hero Section - Mobile */
    .hero-container {
        padding: 90px 1rem 2rem;
    }

    .hero-card {
        padding: 2rem;
    }

    .hero-label {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .hero-headline {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .hero-cta {
        padding: 0.9rem 2rem;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }
}