/* Base Styles & Variables */
:root {
    --primary:    rgb(0, 73, 24);
    --secondary: #1d3557;
    --accent: #a8dadc;
    --light: #f1faee;
    --dark: #0a1128;
    --gray: #6c757d;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --black: #000000;
    --font-primary: 'Poppins', sans-serif;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}


img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    height:auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.divider {
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.section-description {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #c1121f;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}


:root {
    --primary:   rgb(0, 73, 24);
    --primary-dark: rgb(3, 107, 3);
    --dark: #2b2d42;
    --light: #f8f9fa;
    --transition: all 0.6s cubic-bezier(0.33, 1, 0.68, 1); /* Smoother easing function */
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
    --border-radius: 20px; /* Consolidated radius variable */
}

/* Base Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    overflow: hidden;
    border-radius: 0; /* Start with no radius */
}

/* Initial State - Centered and Narrow */
.navbar.animate__animated {
    width: 60%;
    left: 20%;
    border-radius: var(--border-radius);
    opacity: 0;
    transform: translateY(-20px) scale(0.98); /* More subtle scale */
    animation: 
        centerFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards,
        expandWidth 0.8s cubic-bezier(0.33, 1, 0.68, 1) 0.3s forwards; /* Smoother timing */
}

/* Animation Keyframes */
@keyframes centerFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(0.98);
    }
}

@keyframes expandWidth {
    0% {
        width: 60%;
        left: 20%;
        border-radius: var(--border-radius);
    }
    50% {background-color: white;
        border-radius: calc(var(--border-radius) * 0.5); /* Intermediate state */
    }
   
    100% {
        width: 100%;
        left: 0;
        border-radius: 50;
    }
}

/* Scrolled State */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 0.5rem 0;
    box-shadow: 0 5px 20px -10px rgba(0, 0, 0, 0.15);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin: 0 auto;
    border-radius: 30px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    transition-delay: 0.9s; /* Slightly delayed to match expansion */
}

.navbar.animate__animated .nav {
    opacity: 1;
    transform: translateY(0);
}

/* Logo Styles */
.navbar-brand .logo {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.navbar.scrolled .logo {
    height: 40px;
}

/* Navigation Links */
.navbar-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.1rem;
    color: white;
    position: relative;
    text-decoration: none;
    transition: var(--transition);
}

.nav-link i {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
    color: rgb(0, 73, 24);
    transition: var(--transition);
}

.nav-link::after {
    content: attr(data-title);
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(5px);
    transition: var(--transition);
    position: absolute;
    bottom: -15px;
}

/* Hover Effects */
.nav-link:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.nav-link:hover i {
    transform: scale(1.1);
}

.nav-link:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Active State */
.nav-link.active {
    color: rgb(0, 73, 24);
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5)); /* Shadow agak tebal */

}

.nav-link.active i {
    transform: scale(1.1);
}

.nav-link.active::after {
    opacity: 1;
    transform: translateY(0);
}

/* Login Button */
.login-btn {
    width: 120px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 128, 0, 0.3); /* Green shadow to match theme */
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    position: relative;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 128, 0, 0.4);
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 128, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar.animate__animated {
        width: 80%;
        left: 10%;
    }
    
    .nav {
        padding: 1rem;
    }
    
    .navbar-links {
        gap: 1.5rem;
    }
}
/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}

.video-background {
    position: absolute;
    top: 0;
  
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: auto;
    border-radius: 90px;
    padding: 50px;
    object-fit: cover;
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 1;
    padding: 0 2rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.scroller {
    width: 5px;
    height: 8px;
    background-color: var(--white);
    border-radius: 3px;
    margin-top: 5px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(10px);
        opacity: 0.5;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* About Section */
.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-logos {
    flex: 1;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.logo-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.logo-card:hover {
    transform: translateY(-10px);
}

.logo-img {
    height: 120px;
    width: auto;
    margin: 0 auto;
}

.badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Leadership Section */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.leadership-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.leadership-card:hover {
    transform: translateY(-10px);
}

.leader-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.leader-image img {
    width: 90%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.leadership-card:hover .leader-image img {
    transform: scale(1.05);
}

.leader-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.leader-info {
    padding: 1.5rem;
}

.leader-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.position {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tenure {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
}

.view-all {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 2rem;
}

.view-all-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.view-all-button:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

/* Programs Section */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.program-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: var(--primary);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-10px);
}

.program-card:hover::before {
    height: 100%;
}

.program-card.highlight {
    background: var(--secondary);
    color: var(--white);
}

.program-card.highlight .program-link {
    color: var(--white);
}

.program-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.program-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.program-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.program-card p {
    margin-bottom: 1.5rem;
    color: var(--gray);
}

.program-card.highlight p {
    color: rgba(255, 255, 255, 0.8);
}

.program-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.program-card.highlight .program-link:hover {
    color: var(--accent);
}

/* Products Section - Modern E-commerce Style */
.products-section {
    background-color: var(--light);
    position: relative;
    overflow: hidden;
}

.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    z-index: 0;
    opacity: 0.5;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.05) 100%);
    z-index: 1;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.product-image {
    height: 280px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    position: relative;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 70%, rgba(255, 255, 255, 0.8) 100%);
    z-index: 1;
}

.product-image img {
    width: auto;
    height: 80%;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

.product-card:hover .product-image img {
    transform: scale(1.05);
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.15));
}

.product-info {
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--secondary);
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: inline-block;
    background: var(--light-gray);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
}

.buy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    background: green;
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(57, 230, 109, 0.3);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.buy-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.buy-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
}

.buy-button:hover::before {
    opacity: 1;
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    flex: 1;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--primary);
    margin-top: 0.3rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.contact-form {
    flex: 1;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--secondary);
    color: var(--white);
    padding: 4rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-logo p {
    opacity: 0.8;
    margin-top: 1rem;
}

.footer-links h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary);
    padding-left: 5px;
}

.footer-newsletter h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-newsletter h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

.footer-newsletter p {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 5px 0 0 5px;
    font-family: var(--font-primary);
    font-size: 1rem;
}

.newsletter-form button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0 1.2rem;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: #c1121f;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.legal-links a {
    opacity: 0.7;
    font-size: 0.9rem;
    transition: var(--transition);
}

.legal-links a:hover {
    opacity: 1;
    color: var(--primary);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content,
    .contact-content {
        flex-direction: column;
    }
    
    .about-logos {
        margin-top: 2rem;
    }
    
    .contact-info {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-links.active {
        right: 0;
    }
    
    .nav-link::after {
        opacity: 1;
        font-size: 1rem;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    section {
        padding: 3rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .about-logos {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .nav {
        padding: 10px;
        background-color: transparent;
    }
    .navbar{
        background-color: transparent;
        
    }
    .navbar-brand .logo {
        height: 40px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    /* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 5px;
        margin-bottom: 0.5rem;
    }
    
    .newsletter-form button {
        border-radius: 5px;
        padding: 0.8rem;
    }
    .scroll-indicator{
        display: none;
    }
    .legal-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    .badge{
        width: 150px;
    }
    .product-image{
        margin: auto;

        width: 100%;
    }
  
    .leader-image{
        margin: auto;
    }
.leader-image img {
    width: 70%;
        margin: auto;

    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.video-background video{
    top: 50%;
    border-radius: 20px;
    padding: 10px;
    margin-top: 30vh;
}
 .login-btn {
            width: 50px;
            background-color: transparent;
            border: none;
            height: auto;
            padding: 12px;
            border-radius: 10px;
            font-size: 10px;
        }
}

