/* ==================== VARIABLES ==================== */
:root {
    --dark-bg: #0B1A2F;
    --dark-secondary: #0F2640;
    --light-bg: #FFFFFF;
    --light-secondary: #F8FAFC;
    --text-dark: #0F172A;
    --text-light: #FFFFFF;
    --text-muted-dark: #CBD5E1;
    --text-muted-light: #64748B;
    --accent: #2563EB;
    --accent-light: #3B82F6;
    --accent-dark: #1E40AF;
    --border-dark: rgba(37, 99, 235, 0.2);
    --border-light: #E2E8F0;
    --card-bg-dark: rgba(15, 38, 64, 0.7);
    --card-bg-light: #FFFFFF;
    --hover-bg-dark: rgba(37, 99, 235, 0.1);
    --hover-bg-light: #F1F5F9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    width: 100%;
}

/* Dark Sections */
.dark-bg { background-color: var(--dark-bg); color: var(--text-light); }
.dark-secondary-bg { background-color: var(--dark-secondary); color: var(--text-light); }

/* Light Sections */
.light-bg { background-color: var(--light-bg); color: var(--text-dark); }
.light-secondary-bg { background-color: var(--light-secondary); color: var(--text-dark); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-light); }

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100000;
    background: rgba(11, 26, 47, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-dark);
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: #CBD5E1;
    transition: color 0.3s ease;
    text-decoration: none;
}
.nav-link:hover {
    color: var(--accent);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Styles */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background: var(--dark-secondary);
    width: 100%;
}

#mobile-menu.show {
    max-height: 500px;
}

#mobile-menu a {
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(37, 99, 235, 0.2);
    font-size: 1.1rem;
    color: #CBD5E1;
    text-decoration: none;
}

#mobile-menu a:last-child {
    border-bottom: none;
}

#mobile-menu a:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent);
}

/* ==================== BUTTONS ==================== */
.btn-primary {
    background: var(--accent);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    width: fit-content;
}
.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px var(--accent);
}

.btn-outline-dark {
    background: transparent;
    color: var(--accent);
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid var(--border-dark);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    width: fit-content;
}
.btn-outline-dark:hover {
    border-color: var(--accent);
    background: var(--hover-bg-dark);
}

.btn-outline-light {
    background: transparent;
    color: var(--text-dark);
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-outline-light:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ==================== CARDS ==================== */
.card-dark {
    background: var(--card-bg-dark);
    border: 1px solid var(--border-dark);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    height: 100%;
}
.card-dark:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.2);
    border-color: var(--accent);
}

.card-light {
    background: var(--card-bg-light);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    height: 100%;
}
.card-light:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.15);
    border-color: var(--accent);
}

/* ==================== IA CARDS (Internal Affairs) ==================== */
.ia-card-light {
    background: var(--card-bg-light);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    height: 100%;
}
.ia-card-light:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.25);
}
.ia-header {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    padding: 1.5rem;
    text-align: center;
}
.ia-header i {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
}
.ia-header h3 {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

/* ==================== SERVICE TIER CARDS ==================== */
.tier-card {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}
.tier-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px -12px rgba(37, 99, 235, 0.2);
}
.tier-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--accent);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ==================== PROTOCOL BLOCKS ==================== */
.protocol-block {
    background: rgba(15, 38, 64, 0.9);
    border: 1px solid var(--border-dark);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.protocol-block:hover {
    border-color: var(--accent);
    transform: translateX(5px);
}
.protocol-icon {
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.protocol-icon i {
    font-size: 1.5rem;
    color: var(--accent);
}

/* ==================== IMAGES ==================== */
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.img-cover:hover {
    transform: scale(1.05);
}

.img-rounded {
    border-radius: 16px;
    overflow: hidden;
}

/* ==================== STATS ==================== */
.stat-item-dark {
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg-dark);
    border-radius: 12px;
    border: 1px solid var(--border-dark);
    backdrop-filter: blur(10px);
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

/* ==================== CLIENT CARDS ==================== */
.client-card-light {
    background: var(--light-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.client-card-light:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

/* ==================== BADGE SECTION ==================== */
.badge-card {
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}
.badge-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 1/1;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
}

/* ==================== FEATURE CARDS ==================== */
.feature-card {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

/* ==================== CASE INSIGHT CARD ==================== */
.case-insight-card {
    background: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 100%);
    border-left: 4px solid var(--accent);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 640px) {
    .container, .max-w-7xl, .px-6 {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
    
    h1.text-5xl { font-size: 2.25rem !important; line-height: 1.2 !important; }
    h2.text-4xl { font-size: 1.875rem !important; line-height: 1.3 !important; }
    .text-4xl.font-bold { font-size: 1.75rem !important; }
    .text-3xl.font-bold { font-size: 1.5rem !important; }
    .stat-number { font-size: 2rem !important; }
    
    .card-dark, .card-light, .ia-card-light .p-8, .feature-card, .tier-card {
        padding: 1.5rem !important;
    }
    
    .grid.md\:grid-cols-2, .grid.md\:grid-cols-3, .grid.lg\:grid-cols-2,
    .grid.lg\:grid-cols-4, .grid.grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .grid.grid-cols-2.md\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .navbar img.h-12 { height: 2.5rem !important; }
    .navbar .text-xl.font-bold { font-size: 1rem !important; }
    
    .flex.flex-wrap.gap-4 { flex-direction: column !important; width: 100% !important; }
    .flex.flex-wrap.gap-4 a { width: 100% !important; justify-content: center !important; }
    
    .protocol-block { margin-bottom: 1rem; }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .grid.md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
    .grid.md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
    .grid.grid-cols-2.md\:grid-cols-3.lg\:grid-cols-6 { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 768px) {
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}