:root {
    --primary-color: #0b4a8d;
    --primary-dark: #073a71;
    --secondary-color: #10b981;
    --secondary-dark: #059669;
    --accent-color: #3b82f6;
    --text-color: #1f2937;
    --light-text: #4b5563;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.underline {
    width: 80px;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 0 auto;
    border-radius: 10px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo span {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--primary-color);
    max-width: 220px;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.navbar.scrolled .nav-links a {
    color: var(--text-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Button Component */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(11, 74, 141, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(11, 74, 141, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 40%),
                radial-gradient(circle at bottom left, rgba(11, 74, 141, 0.08), transparent 40%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 60px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 24px;
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--light-text);
    margin-bottom: 40px;
    max-width: 550px;
    font-weight: 400;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-image {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-shape {
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 20s ease-in-out infinite;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.hero-shape::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary-color);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.3;
}

@keyframes morph {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: rotate(0deg); }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; transform: rotate(180deg); }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: rotate(360deg); }
}

/* About Us */
.about {
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--light-text);
    text-align: justify;
}

.about-vision-mission {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.vision-box, .mission-box, .tujuan-box {
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    border-left: 6px solid var(--secondary-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.vision-box:hover, .mission-box:hover, .tujuan-box:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.mission-box { border-left-color: var(--primary-color); }
.tujuan-box { border-left-color: var(--accent-color); }

.vision-box h3, .mission-box h3, .tujuan-box h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.4rem;
}

.vision-box h3 i, .mission-box h3 i, .tujuan-box h3 i {
    font-size: 1.2rem;
    background: rgba(16, 185, 129, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.mission-box h3 i { background: rgba(11, 74, 141, 0.1); color: var(--primary-color); }
.tujuan-box h3 i { background: rgba(59, 130, 246, 0.1); color: var(--accent-color); }

.vision-box ul, .mission-box ul, .mission-box ol, .tujuan-box ol {
    padding-left: 20px;
}

.vision-box li, .mission-box li, .tujuan-box li {
    margin-bottom: 12px;
    color: var(--light-text);
    font-size: 1rem;
}

.vision-box ul li {
    list-style-type: disc;
}

.mission-box ol li, .tujuan-box ol li {
    list-style-type: decimal;
}

/* Services */
.services {
    background-color: var(--bg-light);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--secondary-color) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    opacity: 0.05;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: rgba(16, 185, 129, 0.2);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    margin-bottom: 16px;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.service-card p {
    color: var(--light-text);
    font-size: 1rem;
    line-height: 1.7;
}

.service-card ul {
    text-align: left;
    display: inline-block;
    color: var(--light-text);
    font-size: 1rem;
}

.service-card li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-card li::before {
    content: '→';
    color: var(--secondary-color);
    font-weight: bold;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.info-item {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: 20px;
    transition: var(--transition);
}

.info-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateX(10px);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    background: rgba(16, 185, 129, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    flex-shrink: 0;
}

.info-item h4 {
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
}

.info-item p {
    color: var(--light-text);
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 16px;
    font-size: 1.4rem;
    box-shadow: 0 4px 10px rgba(11, 74, 141, 0.2);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-5px) rotate(8deg);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.contact-map {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 8px solid var(--white);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    margin-bottom: 0;
}

/* Mobile Nav Styles (Hidden by default) */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -5px 25px rgba(0,0,0,0.1);
    z-index: 1001;
    display: flex; /* Base is flex, but hidden by display: none above? wait */
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.mobile-nav {
    display: none; /* Re-hiding for desktop */
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--light-text);
    font-size: 0.7rem;
    font-weight: 600;
    transition: var(--transition);
    min-width: 0; /* Prevent flex items from overflowing */
}

.mobile-nav-item i {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.mobile-nav-item.active {
    color: var(--primary-color);
}

.mobile-nav-item:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Floating WhatsApp */
.floating-wa {
    position: fixed;
    right: 30px;
    bottom: 30px;
    left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.floating-wa:hover {
    transform: scale(1.1);
}

/* Reveal Animations */
[data-reveal] {
    opacity: 0;
    transition: 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

[data-reveal="up"] { transform: translateY(60px); }
[data-reveal="left"] { transform: translateX(-60px); }
[data-reveal="right"] { transform: translateX(60px); }

[data-reveal].active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Helper for staggered delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Responsive */
@media (max-width: 992px) {
    .hero .container, .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        margin: 0 auto 30px;
    }

    .hero-btns {
        justify-content: center;
    }

    .about-text p {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .navbar {
        background: rgba(255, 255, 255, 0.8) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        box-shadow: var(--shadow-sm);
        padding: 12px 0;
    }

    .nav-links {
        display: none !important;
    }

    .menu-toggle {
        display: none !important;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .mobile-nav {
        display: flex;
    }

    .footer {
        padding-bottom: 100px; /* Space for mobile nav */
    }

    .floating-wa {
        bottom: 85px; /* Perfectly adjusted above mobile nav */
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 26px;
        animation: pulse-wa 2s infinite;
    }

    .hero-content h1 {
        font-size: 2.75rem;
    }

    .hero-image {
        height: 300px;
    }

    .hero-shape {
        width: 280px;
        height: 280px;
    }

    .contact-map iframe {
        width: 100% !important;
    }
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
