/* Custom CSS for Data Analytics Training Platform */

/* Mobile Menu Fix - Override inline styles */
#mobile-menu {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: 50vw !important;
    height: 100vh !important;
    background: white !important;
    z-index: 99999 !important;
    display: none !important;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1) !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s ease-in-out !important;
}

#mobile-menu:not(.hidden) {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
}

#mobile-menu.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transform: translateX(100%) !important;
}

/* Additional override for inline styles */
div#mobile-menu[style*="left: 0"] {
    left: auto !important;
    right: 0 !important;
    width: 50vw !important;
    transform: translateX(100%) !important;
}

/* Ensure menu starts in hidden position */
#mobile-menu:not(.hidden):not([style*="translateX"]) {
    transform: translateX(100%) !important;
}

/* Mobile First Responsive Design */
/* Extra Small Devices (phones, 320px and up) */
@media only screen and (min-width: 320px) {
    .hero-section {
        height: 70vh;
        min-height: 400px;
    }
    
    .hero-section .hero-content {
        padding: 1rem;
    }
    
    .hero-section .hero-content h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero-section .hero-content h2 {
        font-size: 1.25rem;
    }
    
    .hero-section .hero-content p {
        font-size: 0.875rem;
    }
    
    /* Prevent hover scale on mobile for about button */
    .bg-gradient-to-r {
        transform: none !important;
    }
    
    .bg-gradient-to-r:hover {
        transform: none !important;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media only screen and (min-width: 576px) {
    .hero-section {
        height: 75vh;
        min-height: 450px;
    }
    
    .hero-section .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .hero-section .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-section .hero-content p {
        font-size: 1rem;
    }
    
    /* Allow hover scale on tablets and up */
    .bg-gradient-to-r:hover {
        transform: scale(1.05) !important;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    .hero-section {
        height: 80vh;
        min-height: 500px;
    }
    
    .hero-section .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .hero-content h2 {
        font-size: 1.75rem;
    }
    
    .hero-section .hero-content p {
        font-size: 1.125rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .hero-section {
        height: 85vh;
        min-height: 550px;
    }
    
    .hero-section .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-section .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-section .hero-content p {
        font-size: 1.25rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    .hero-section {
        height: 90vh;
        min-height: 600px;
    }
    
    .hero-section .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-section .hero-content h2 {
        font-size: 2.25rem;
    }
    
    .hero-section .hero-content p {
        font-size: 1.5rem;
    }
}

/* Mobile Menu Improvements */
@media (max-width: 767px) {
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 40;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Ensure mobile buttons don't scale */
    .bg-gradient-to-r {
        transform: none !important;
        transition: background-color 0.3s ease !important;
    }
    
    .bg-gradient-to-r:hover {
        transform: none !important;
    }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    .nav-link {
        padding: 0.75rem 1rem;
    }
    
    button {
        min-height: 44px;
        min-width: 44px;
    }
    
    .expert-card,
    .portfolio-card,
    .academy-card {
        margin-bottom: 1rem;
    }
    
    /* Remove hover effects on touch devices */
    .bg-gradient-to-r:hover {
        transform: none !important;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section .background-image {
        background-size: cover;
        background-attachment: scroll;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: 100vh;
        min-height: 350px;
    }
    
    .hero-section .hero-content {
        padding: 1rem;
    }
    
    .hero-section .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-section .hero-content h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .hero-section .hero-content p {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}

.hero-section .background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll; /* Changed from fixed for mobile compatibility */
    filter: brightness(0.4);
    z-index: 1;
    /* Add loading optimization */
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Mobile-specific background optimization */
@media (max-width: 768px) {
    .hero-section .background-image {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
        /* Optimize for mobile */
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* High DPI mobile optimization */
@media (-webkit-min-device-pixel-ratio: 2) and (max-width: 768px), 
       (min-resolution: 192dpi) and (max-width: 768px) {
    .hero-section .background-image {
        background-size: cover;
        background-attachment: scroll;
    }
}

/* Fallback for hero background */
.hero-section .background-image:not([style*="background-image"]) {
    background-image: url('/images/hero-background.jpg') !important;
}

.hero-section .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 800px;
}

.hero-section .hero-content h1 {
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section .hero-content h2 {
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section .hero-content p {
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-section .hero-content button {
    margin: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-section .hero-content button:first-child {
    background-color: #FEA521;
    border-color: #FEA521;
}

.hero-section .hero-content button:first-child:hover {
    background-color: #e6941a;
    border-color: #e6941a;
}

.hero-section .hero-content button:last-child:hover {
    background-color: #225273;
    border-color: #225273;
    color: white;
}

/* Tentang Kami Section */
.tentang-kami {
    background: linear-gradient(135deg, #225273 0%, #4DB68D 100%);
    color: white;
    border-radius: 1rem;
    padding: 3rem;
    margin: 2rem auto;
    max-width: 1200px;
    box-shadow: 0 10px 30px rgba(34, 152, 231, 0.666);
}

.tentang-kami h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.tentang-kami h2::after {
    background-color: #FEA521;
}

.tentang-kami p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.tentang-kami button {
    margin: 0.5rem;
    transition: all 0.3s ease;
}

.tentang-kami button:first-child {
    background-color: #FEA521;
    border-color: #FEA521;
}

.tentang-kami button:first-child:hover {
    background-color: #e6941a;
    border-color: #e6941a;
}

.tentang-kami button:last-child {
    background-color: transparent;
    border-color: white;
    color: white;
}

.tentang-kami button:last-child:hover {
    background-color: white;
    color: #225273;
}

/* Expert Cards */
.expert-card {
    background: #225273;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* Ensure specific text in expert cards is white, but allow position badges to have their own colors */
.expert-card .text-gray-600,
.expert-card .text-gray-800,
.expert-card .text-sm,
.expert-card h3,
.expert-card .text-center p:not([class*="bg-orange-500"]):not([class*="bg-gradient-to-r"]) {
    color: white !important;
}

/* Allow position badges to maintain their text colors and background */
.expert-card p[class*="bg-orange-500"],
.expert-card p[class*="bg-gradient-to-r"],
.expert-card span[class*="bg-orange-500"],
.expert-card span[class*="bg-gradient-to-r"] {
    color: white !important;
    background-color: #f97316 !important;
    background: #f97316 !important;
}

/* Ensure orange background is visible */
.expert-card .bg-orange-500 {
    background-color: #f97316 !important;
    background: #f97316 !important;
}

/* Ensure orange badges are visible in all contexts */
.bg-orange-500 {
    background-color: #f97316 !important;
    background: #f97316 !important;
}

/* Ensure orange badges maintain orange background */
span.bg-orange-500 {
    background-color: #f97316 !important;
    background: #f97316 !important;
}

/* Remove global orange text override to prevent unwanted changes */
/* .text-orange-600 {
    color: #ea580c !important;
}

.text-orange-600.font-semibold {
    color: #ea580c !important;
    font-weight: 600 !important;
}

[class*="text-orange-"] {
    color: #ea580c !important;
} */

/* Specific fix for orange text visibility issues only where needed */
/* Add specific selectors for problematic orange text elements */
.text-orange-600.mb-2 {
    color: #ea580c !important;
}

/* Only apply to specific contexts where orange text is not visible */
.expert-card .text-orange-600,
.portfolio-card .text-orange-600,
.academy-card .text-orange-600 {
    color: #ea580c !important;
}

/* WhatsApp Floating Button Styles */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.whatsapp-link:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    background: #128C7E;
}

.whatsapp-link svg {
    width: 40px;
    height: 40px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-link {
        width: 60px;
        height: 60px;
    }
    
    .whatsapp-link svg {
        width: 32px;
        height: 32px;
    }
}

/* Portfolio Modal Mobile Fix */
@media (max-width: 768px) {
    #portfolioModal {
        padding: 0;
    }
    
    #portfolioModal > div {
        margin: 0;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        max-width: 100%;
    }
    
    #portfolioModal .flex-shrink-0 {
        flex-shrink: 0;
        position: relative;
        z-index: 10;
    }
    
    #portfolioModal .flex-1 {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    /* Prevent body scroll when modal is open on mobile */
    body.modal-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
}

.expert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(34, 82, 115, 0.15);
    border-color: #4DB68D;
}

.expert-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
    border: 4px solid #FEA521;
}

.expert-name {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #225273;
}

.expert-title {
    color: #4DB68D;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.expert-bio {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.expert-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #225273, #4DB68D);
    color: white;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Portfolio Cards */
.portfolio-card {
    background: #225273;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* Ensure all text in portfolio cards is white */
.portfolio-card * {
    color: white !important;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(34, 82, 115, 0.15);
    border-color: #4DB68D;
}

.portfolio-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.portfolio-card h3 {
    color: white;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.portfolio-card p {
    color: white;
    margin-bottom: 1rem;
}

.portfolio-card button {
    background-color: #4DB68D;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-card button:hover {
    background-color: #3ca576;
}

/* Navigation Active State */
.nav-link {
    color: #000000;
    transition: color 0.3s ease;
    position: relative;
    text-decoration: none;
    padding-bottom: 2px;
}

.nav-link:hover {
    color: #4DB68D;
}

.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #FEA521, #4DB68D);
    animation: slideIn 0.3s ease;
}

.nav-link.active {
    color: #225273;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #f97316, #fb923c);
}

.nav-link.active:hover {
    color: #1a1a4d;
}

@keyframes slideIn {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Navbar Transparent Border */
header {
    border-bottom: 1px solid rgba(34, 82, 115, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Academy Cards */
.academy-card {
    background: #225273;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* Ensure all text in academy cards is white */
.academy-card * {
    color: white !important;
}

.academy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(34, 82, 115, 0.15);
    border-color: #4DB68D;
}

.academy-image-container {
    position: relative;
    height: 192px;
    overflow: hidden;
}

.academy-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(34, 82, 115, 0.8) 0%, transparent 100%);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Hide prices */
.academy-card .flex.items-center.justify-between.mb-4 {
    display: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 80vh;
        min-height: 400px;
        margin-top: 0;
    }
    
    .hero-section .hero-content {
        padding: 1rem;
    }
    
    .hero-section .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .tentang-kami {
        padding: 2rem;
        margin: 1rem;
    }
    
    .expert-card {
        margin-bottom: 2rem;
    }
    
    .portfolio-card {
        margin-bottom: 2rem;
    }
    
    .academy-card {
        margin-bottom: 2rem;
    }
}

/* Button Styles - Mix of #FEA521 and #4DB68D */
button:not([class*="absolute"][class*="right-3"][class*="top-1/2"]):not([class*="transform"]):not([class*="-translate-y-1/2"]):not(.filter-btn):not(.pagination-btn):not([onclick*="search"]):not([onclick*="filter"]):not(.portfolio-card button):not(.academy-card button):not(section[style*="background-color: #225273"] button) {
    background-color: #FEA521 !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 2rem !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

button:not([class*="absolute"][class*="right-3"][class*="top-1/2"]):not([class*="transform"]):not([class*="-translate-y-1/2"]):not(.filter-btn):not(.pagination-btn):not([onclick*="search"]):not([onclick*="filter"]):not(.portfolio-card button):not(.academy-card button):not(section[style*="background-color: #225273"] button):hover {
    background-color: #e6941a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(254, 165, 33, 0.3) !important;
}

/* Portfolio and Academy cards - use #4DB68D */
.portfolio-card button,
.academy-card button {
    background-color: #4DB68D !important;
    color: white !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.portfolio-card button:hover,
.academy-card button:hover {
    background-color: #3ca576 !important;
}

/* Statistics section buttons - use #4DB68D */
section[style*="background-color: #225273"] button {
    background-color: #4DB68D !important;
}

section[style*="background-color: #225273"] button:hover {
    background-color: #3ca576 !important;
}

/* Secondary button style - use #4DB68D */
button.btn-secondary-green,
button.bg-green-600 {
    background-color: #4DB68D !important;
    color: white !important;
}

button.btn-secondary-green:hover,
button.bg-green-600:hover {
    background-color: #3ca576 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(77, 182, 141, 0.3) !important;
}

/* Give some buttons #4DB68D for variety */
button:nth-child(even):not([class*="absolute"][class*="right-3"][class*="top-1/2"]):not([class*="transform"]):not([class*="-translate-y-1/2"]):not(.filter-btn):not(.pagination-btn):not([onclick*="search"]):not([onclick*="filter"]):not(.portfolio-card button):not(.academy-card button):not(section[style*="background-color: #225273"] button):not(section[style*="background-color: #FEA521"] button) {
    background-color: #4DB68D !important;
}

button:nth-child(even):not([class*="absolute"][class*="right-3"][class*="top-1/2"]):not([class*="transform"]):not([class*="-translate-y-1/2"]):not(.filter-btn):not(.pagination-btn):not([onclick*="search"]):not([onclick*="filter"]):not(.portfolio-card button):not(.academy-card button):not(section[style*="background-color: #225273"] button):not(section[style*="background-color: #FEA521"] button):hover {
    background-color: #3ca576 !important;
    box-shadow: 0 4px 12px rgba(77, 182, 141, 0.3) !important;
}

/* Badge color overrides */
.bg-blue-100 {
    background-color: #FEA521 !important;
    color: white !important;
}

.bg-green-100 {
    background-color: #4DB68D !important;
    color: white !important;
}

.bg-purple-100 {
    background-color: #F5F5DC !important;
    color: #333333 !important;
}

.bg-orange-100 {
    background-color: #FEA521 !important;
    color: white !important;
}

/* Footer Background Override */
footer.bg-gray-800 {
    background-color: #F5F5DC !important;
}

/* Footer text color adjustment for light background */
footer.bg-gray-800 .text-white {
    color: #333333 !important;
}

footer.bg-gray-800 h3 {
    color: #333333 !important;
}

footer.bg-gray-800 p {
    color: #666666 !important;
}

footer.bg-gray-800 a {
    color: #333333 !important;
}

footer.bg-gray-800 a:hover {
    color: #FEA521 !important;
}

/* Statistics section override - use #225273 */
section.py-16.bg-blue-600.text-white {
    background-color: #225273 !important;
}

section.py-16.bg-blue-600.text-white .text-blue-100 {
    color: rgba(255, 255, 255, 0.8) !important;
}

.bg-blue-600 {
    background-color: #FEA521 !important;
}

/* Specific button overrides */
.bg-orange-600 {
    background-color: #FEA521 !important;
}

.bg-orange-600:hover {
    background-color: #e6941a !important;
}

.bg-blue-600 {
    background-color: #FEA521 !important;
}

.bg-blue-600:hover {
    background-color: #e6941a !important;
}

.bg-green-600 {
    background-color: #4DB68D !important;
}

.bg-green-600:hover {
    background-color: #3ca576 !important;
}

.bg-purple-600 {
    background-color: #FEA521 !important;
}

.bg-purple-600:hover {
    background-color: #e6941a !important;
}

/* Button text color overrides */
.bg-orange-600.text-white,
.bg-blue-600.text-white,
.bg-green-600.text-white,
.bg-purple-600.text-white {
    color: white !important;
}

/* Hover states */
.hover\:bg-orange-700:hover {
    background-color: #e6941a !important;
}

.hover\:bg-blue-700:hover {
    background-color: #e6941a !important;
}

.hover\:bg-green-700:hover {
    background-color: #3ca576 !important;
}

.hover\:bg-purple-700:hover {
    background-color: #e6941a !important;
}

/* CTA Section buttons - mix colors */
section[style*="background-color: #FEA521"] button:first-child {
    background-color: white !important;
    color: #FEA521 !important;
    border: 2px solid white !important;
}

section[style*="background-color: #FEA521"] button:first-child:hover {
    background-color: #f8f8f8 !important;
    color: #e6941a !important;
}

section[style*="background-color: #FEA521"] button:last-child {
    background-color: transparent !important;
    color: white !important;
    border: 2px solid white !important;
}

section[style*="background-color: #FEA521"] button:last-child:hover {
    background-color: white !important;
    color: #FEA521 !important;
}

/* Section Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, #225273 0%, #4DB68D 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #4DB68D 0%, #FEA521 100%);
}

.bg-gradient-accent {
    background: linear-gradient(135deg, #FEA521 0%, #225273 100%);
}

/* Text Colors */
.text-primary {
    color: #225273;
}

.text-secondary {
    color: #4DB68D;
}

.text-accent {
    color: #FEA521;
}

/* Background Colors */
.bg-primary {
    background-color: #225273;
}

.bg-secondary {
    background-color: #4DB68D;
}

.bg-accent {
    background-color: #FEA521;
}

/* Card Hover Effects */
.course-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: #3b82f6;
}

/* Button Animations */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Statistics Counter Animation */
.stat-counter {
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation Active State */
.nav-link {
    color: #000000;
    transition: color 0.3s ease;
    position: relative;
    text-decoration: none;
    padding-bottom: 2px;
}

.nav-link:hover {
    color: #225273;
}

.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #f97316, #fb923c);
    animation: slideIn 0.3s ease;
}

.nav-link.active {
    color: #225273;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #f97316, #fb923c);
}

.nav-link.active:hover {
    color: #225273;
}

@keyframes slideIn {
    from {
        width: 0;
        left: 0;
    }
    to {
        width: 100%;
        left: 0;
    }
}

/* Navbar Transparent Border */
header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Academy Cards */
.academy-card {
    background: #225273;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.academy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.academy-image-container {
    position: relative;
    height: 192px;
    overflow: hidden;
}

.academy-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.academy-title {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.academy-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.academy-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.academy-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.academy-stat-value {
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
}

.academy-stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
}

.academy-badges {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.badge-academy {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Hide prices */
.academy-card .flex.items-center.justify-between.mb-4 {
    display: none;
}

.academy-card {
    background: #225273;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.academy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.academy-image-container {
    position: relative;
    height: 192px;
    overflow: hidden;
}

.academy-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.academy-title {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.academy-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.academy-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.academy-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.academy-stat-value {
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
}

.academy-stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
}

.academy-badges {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.badge-academy {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.portfolio-card {
    background: #225273;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-image-container {
    position: relative;
    height: 256px;
    overflow: hidden;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.portfolio-title {
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.portfolio-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.portfolio-tech-stack {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}
.expert-card {
    background: #225273;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #f3f4f6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.expert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

.expert-image {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
}

.expert-name {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.expert-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.expert-bio {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.expert-badges {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.badge i {
    color: #3b82f6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .expert-card {
        margin-bottom: 1rem;
    }
    
    .expert-image {
        width: 80px;
        height: 80px;
    }
    
    .expert-name {
        font-size: 1.125rem;
    }
    
    .expert-title {
        font-size: 0.875rem;
    }
    
    .expert-badges {
        font-size: 0.6875rem;
    }
}
.feature-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #f3f4f6;
}

.feature-card:hover {
    border-color: #3b82f6;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Navigation */
.nav-sticky {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* Loading Animation */
.loading-spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .feature-card {
        margin-bottom: 1rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* Focus States */
button:focus,
a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1f2937;
        color: #f9fafb;
    }
    
    .feature-card,
    .testimonial-card {
        background: #374151;
        color: #f9fafb;
    }
}

/* Fix "Tentang Kami" button hover effect - black text permanent, orange underline on hover */
a[href="/about"].bg-gradient-to-r {
    color: black !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

a[href="/about"].bg-gradient-to-r:hover {
    color: black !important;
    text-decoration: underline !important;
    text-decoration-color: #f97316 !important;
    text-underline-offset: 4px !important;
    text-decoration-thickness: 2px !important;
}

/* Also fix mobile version */
a[href="/about"]:not(.hidden).bg-gradient-to-r {
    color: black !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

a[href="/about"]:not(.hidden).bg-gradient-to-r:hover {
    color: black !important;
    text-decoration: underline !important;
    text-decoration-color: #f97316 !important;
    text-underline-offset: 4px !important;
    text-decoration-thickness: 2px !important;
}
