/* ==========================================
   GLOBAL SETTING
========================================== */
* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1f2937;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* ==========================================
   TEXT & BACKGROUND EFFECTS
========================================== */
.gradient-text {
    background: linear-gradient(135deg, #f1f1f1 0%, #555050 50%, #5f6b7b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg {
    background: linear-gradient(135deg, #c5c3ec 0%, #0012ad 50%, #6991be 100%);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================
   CARD & HOVER EFFECTS
========================================== */
.card-hover, 
.hover-lift,
.service-category-card,
.service-item-card {
    transition: all 0.3s ease;
}

.card-hover:hover, 
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.service-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.service-item-card {
    position: relative;
    overflow: hidden;
}

.service-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.service-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.7s ease;
}

.service-item-card:hover::before {
    left: 100%;
}

/* ==========================================
   FLOATING SHAPES
========================================== */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1), rgba(59, 130, 246, 0.05));
    filter: blur(40px);
    z-index: 0;
}

/* ==========================================
   PAGE HEADER & WAVE
========================================== */
.page-title {
    position: relative;
    overflow: hidden;
}

.wave-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23ffffff' fill-opacity='0.15'%3E%3C/path%3E%3C/svg%3E");
    animation: waveMove 12s linear infinite;
}

@keyframes waveMove {
    0% { transform: translateX(0); }
    50% { transform: translateX(-25%); }
    100% { transform: translateX(-50%); }
}

/* ==========================================
   SECTION SPACING
========================================== */
section {
    scroll-margin-top: 100px;
}

/* ==========================================
   SCROLLBAR
========================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

/* ==========================================
   NAVBAR
========================================== */
.nav-link {
    color: #374151;
    transition: all 0.2s ease;
    position: relative;
}

.logo-text p {
    color: #010101;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-link:hover {
    color: #ffffff;
    background-color: rgba(30, 64, 175, 0.05);
}

/* Dropdown Menu */
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==========================================
   ANIMATIONS
========================================== */
@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    0% { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.animate-fade-up {
    animation: fadeUp 0.8s ease-out;
}

.animate-slide-in {
    animation: slideIn 0.6s ease-out;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* ==========================================
   MOBILE MENU STYLING
========================================== */
.mobile-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.mobile-menu-item:hover {
    background-color: #f3f4f6;
    color: #1e40af;
}

.mobile-menu-item.active {
    background-color: #eff6ff;
    color: #1e40af;
    font-weight: 600;
}

.mobile-dropdown-link {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 2px;
}

.mobile-dropdown-link:hover {
    background-color: #f9fafb;
    color: #1e40af;
}

/* Mobile Menu Animation */
#mobileMenu {
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
}

#mobileMenu.show {
    transform: translateX(0);
}

#mobileMenuBackdrop {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

#mobileMenuBackdrop.show {
    opacity: 1;
}

/* ==========================================
   NEW SERVICE COMPONENTS
========================================== */
/* Service Content Box */
.service-content-box {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.service-content-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.service-content-box h3 {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #1f2937;
}

.service-content-box h3 i {
    margin-right: 12px;
    font-size: 1.2em;
}

.service-content-box p {
    color: #6b7280;
    line-height: 1.6;
}

/* Service List */
.service-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.service-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: flex-start;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list i {
    color: #3b82f6;
    margin-right: 10px;
    margin-top: 3px;
    font-size: 0.9em;
}

/* Service Grid */
.service-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Service Type Badges */
.service-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-akuntansi {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-pajak {
    background-color: #dcfce7;
    color: #166534;
}

.badge-putusan {
    background-color: #f3e8ff;
    color: #6b21a8;
}

.badge-resume {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-uji-materi {
    background-color: #fce7f3;
    color: #9d174d;
}

/* Service Navigation Buttons */
.service-nav-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
}

.service-nav-btn i {
    margin-right: 8px;
    font-size: 1.1em;
}

.service-nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: currentColor;
}

/* ==========================================
   SUB-MENU STYLING
========================================== */
.sub-menu-container {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 32px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.sub-menu-btn {
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    margin: 4px;
}

.sub-menu-btn:hover {
    transform: translateY(-2px);
}

.sub-menu-btn.blue {
    background-color: #dbeafe;
    color: #1e40af;
}

.sub-menu-btn.green {
    background-color: #dcfce7;
    color: #166534;
}

.sub-menu-btn.purple {
    background-color: #f3e8ff;
    color: #6b21a8;
}

.sub-menu-btn.red {
    background-color: #fee2e2;
    color: #991b1b;
}

.sub-menu-btn.yellow {
    background-color: #fef9c3;
    color: #854d0e;
}

/* ==========================================
   SERVICE SECTION BACKGROUNDS
========================================== */
.bg-gradient-to-b.from-white.to-blue-50 {
    background-color: #f0f9ff;
}

.bg-white {
    background-color: white;
}

.bg-gradient-to-b.from-white.to-purple-50 {
    background-color: #faf5ff;
}

.bg-gradient-to-b.from-white.to-red-50 {
    background-color: #fef2f2;
}

.bg-gradient-to-b.from-white.to-pink-50 {
    background-color: #fdf2f8;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

/* ==========================================
   MOBILE RESPONSIVE
========================================== */
@media (max-width: 768px) {
    /* Navbar Mobile */
    .navbar-container {
        position: relative;
        min-height: 70px;
    }
    
    .mobile-menu-btn {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 60;
        background: none;
        border: none;
        cursor: pointer;
    }
    
    .logo-container {
        max-width: 70%;
    }
    
    .logo-text h1 {
        font-size: 1rem !important;
        line-height: 1.2;
    }
    
    .logo-text p {
        font-size: 0.6rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Mobile Menu */
    #mobileMenu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        z-index: 50;
        padding-top: 80px;
        overflow-y: auto;
        transition: transform 0.3s ease-out;
    }
    
    #mobileMenu.hidden {
        display: none;
    }
    
    #mobileMenu.show {
        display: block;
    }
    
    .mobile-menu-content {
        padding: 20px;
    }
    
    /* Wave background */
    .wave-bg {
        height: 80px;
    }
    
    /* Service cards */
    .service-category-card,
    .service-item-card,
    .service-content-box {
        margin-bottom: 20px;
    }
    
    /* Service grid */
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    /* Sub-menu buttons */
    .flex-wrap {
        justify-content: flex-start;
    }
    
    /* Service navigation buttons */
    .service-nav-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    /* Mobile Menu Header */
    #mobileMenu .sticky {
        position: sticky;
        top: 0;
        background: white;
        z-index: 50;
        border-bottom: 1px solid #e5e7eb;
        padding: 1rem;
    }
    
    #mobileMenu .sticky .flex {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    #mobileMenu .sticky img {
        height: 2rem;
        width: auto;
    }
    
    #closeMobileMenu {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 0.5rem;
        transition: background-color 0.2s ease;
    }
    
    #closeMobileMenu:hover {
        background-color: #f3f4f6;
    }
}

@media (max-width: 480px) {
    /* Glass effect */
    .glass-effect {
        backdrop-filter: blur(5px);
    }
    
    /* Font sizes */
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    .page-title-content {
        padding-top: 100px;
        padding-bottom: 100px;
    }
    
    /* Service content box */
    .service-content-box {
        padding: 20px;
    }
    
    /* Mobile menu adjustments */
    .mobile-menu-item {
        padding: 10px 14px;
        font-size: 15px;
    }
    
    .mobile-dropdown-link {
        padding: 8px 14px;
        font-size: 14px;
    }
}

/* ==========================================
   UTILITY CLASSES
========================================== */
.mobile-menu-btn {
    cursor: pointer;
}

.logo-img {
    max-width: 100%;
    height: auto;
}

.border-border-color {
    border-color: #e5e7eb;
}

.text-text-light {
    color: #6b7280;
}

.text-primary {
    color: #1f2937;
}

.text-accent {
    color: #3b82f6;
}

.text-white-800 {
    color: rgba(255, 255, 255, 0.8);
}

.bg-white-600 {
    background-color: rgba(255, 255, 255, 0.6);
}

/* ==========================================
   BACK TO TOP BUTTON
========================================== */
#backToTop {
    transition: all 0.3s ease;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop.invisible {
    opacity: 0;
    visibility: hidden;
}

#backToTop:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   SCROLL ANIMATIONS
========================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   MOBILE MENU BACKDROP
========================================== */
#mobileMenuBackdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 40;
    transition: opacity 0.3s ease-out;
}

#mobileMenuBackdrop.hidden {
    display: none;
}

#mobileMenuBackdrop.show {
    display: block;
}

/* ==========================================
   SMOOTH SCROLL
========================================== */
html {
    scroll-behavior: smooth;
}

/* ==========================================
   FOCUS STATES
========================================== */
*:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* ==========================================
   PRINT STYLES
========================================== */
@media print {
    .nav-link,
    .mobile-menu-btn,
    .gradient-bg,
    .wave-bg,
    #backToTop,
    #mobileMenu,
    #mobileMenuBackdrop {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .service-item-card,
    .service-category-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}