:root {
    --primary: #369fde;
    --primary-dark: #2a7db1;
    --bs-primary: #369fde;
    --bs-primary-rgb: 54, 159, 222;

    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, 
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
}

.lead {
    font-family: var(--font-primary);
    font-weight: 400;
}

/* Override Bootstrap primary color */
/* .bg-primary {
    background-color: var(--primary) !important;
} */

.text-primary {
    color: var(--primary) !important;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
} 

/* Custom Styles */
.min-vh-80 {
    min-height: 80vh;
}

.shadow-hover {
    transition: all 0.3s ease;
}

.shadow-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hover-primary {
    transition: all 0.3s ease;
}

.hover-primary:hover {
    color: var(--primary) !important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navbar link hover effect */
.navbar-nav .nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary) !important;
}

/* Active filter button */
#filter-buttons .btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Product filter animation */
#products-grid .col-xl-4 {
    transition: all 0.3s ease;
}

/* Testimonial styling */
.testimonial-text {
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .min-vh-80 {
        min-height: 60vh;
    }
}

.hero-modern {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

/* Untuk desktop, hilangkan padding top */
@media (min-width: 992px) {
    .hero-modern {
        padding-top: 0;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-gradient {
    background: linear-gradient(45deg, #369fde, #2a7db1);
    width: 100%;
    height: 100%;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.text-highlight {
    background: linear-gradient(45deg, #fff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.hero-stats {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 2rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

.hero-visual {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: float 3s ease-in-out infinite;
}

.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: 10%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

.hero-main-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-down {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    animation: bounce 2s infinite;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Glassmorphism */
.navbar-modern {
    background: rgba(0, 200, 255, 14%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

/* Navbar Scrolled dengan Text Hitam */
.navbar-modern.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* ===== DEFAULT STATE (Background Biru) ===== */
.navbar-modern .nav-link {
    color: white !important;
    transition: all 0.3s ease;
}

.navbar-modern .nav-link:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    transform: translateY(-1px);
}

.navbar-modern .nav-link.active {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar-modern .nav-icon {
    color: white;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.navbar-modern .nav-link:hover .nav-icon,
.navbar-modern .nav-link.active .nav-icon {
    color: white;
    opacity: 1;
    transform: scale(1.1);
}

/* ===== SCROLLED STATE (Background Putih) ===== */
/* Scrolled state dengan glassmorphism */
.navbar-modern.scrolled {
    background: rgba(255, 255, 255, 0.1) !important; /* Semi-transparan */
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-modern.scrolled .nav-link {
    color: #1a202c !important;
    font-weight: 500;
}

.navbar-modern.scrolled .nav-link:hover,
.navbar-modern.scrolled .nav-link.active {
    color: var(--primary) !important;
    background: rgba(54, 159, 222, 0.15) !important; /* Glassmorphism effect */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(54, 159, 222, 0.2);
}

.navbar-modern.scrolled .brand-text {
    color: #1a202c;
    font-weight: 700;
}

.navbar-modern.scrolled .btn-login {
    background: rgba(54, 159, 222, 0.15) !important;
    color: var(--primary);
    border: 1px solid rgba(54, 159, 222, 0.25);
    backdrop-filter: blur(10px);
}

.navbar-modern.scrolled .btn-login:hover {
    background: var(--primary) !important;
    color: white;
    border-color: var(--primary);
    backdrop-filter: none;
}

/* Default state - login button */
.navbar-modern .btn-login {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar-modern .btn-login:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Scrolled state - login button */
.navbar-modern.scrolled .btn-login {
    background: rgba(54, 159, 222, 0.1);
    color: var(--primary);
    border: 1px solid rgba(54, 159, 222, 0.3);
}

.navbar-modern.scrolled .btn-login:hover {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary);
}

/* Brand Styles */
.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    height: 40px;
    width: auto;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    transition: color 0.3s ease;
}

/* Navbar Center Menu */
.navbar-nav-center {
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
}

.nav-icon {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Login Dropdown */
.navbar-actions {
    display: flex;
    align-items: center;
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Dropdown Menu */
.login-dropdown .dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
}

.login-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.login-dropdown .dropdown-item:hover {
    background: rgba(54, 159, 222, 0.1);
    color: var(--primary);
}

/* Navbar Toggler */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(54, 159, 222, 0.5);
}

/* Warna hamburger icon */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.25em;
    height: 1.25em;
}

/* Untuk navbar scrolled */
.navbar-modern.scrolled .navbar-toggler {
    background: rgba(54, 159, 222, 0.1);
    border: 1px solid rgba(54, 159, 222, 0.2);
}

.navbar-modern.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23369fde' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Glass Button */
.btn-glass {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive Button Layout */
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-actions .btn {
        min-width: 250px;
        margin: 0 !important;
    }
}