:root {
    --primary: #000000;
    --primary-dark: #000000;
    --primary-light: #1A1A1A;
    --primary-glow: rgba(0,0,0,0.25);
    --blue: #2B5ADC;
    --blue-dark: #1E48B8;
    --blue-light: #4A7AE8;
    --blue-glow: rgba(43,90,220,0.25);
    --cream: #FAF9F7;
    --cream-dark: #E5E0D8;
    --cream-light: #FCFBFA;
    --orange: #F97316;
    --orange-dark: #EA580C;
    --orange-light: #FB923C;
    --orange-glow: rgba(249,115,22,0.25);
    --white: #FFFFFF;
    --gray-50: #FAF9F7;
    --gray-100: #F5F3F0;
    --gray-200: #E5E0D8;
    --gray-300: #CCC5BC;
    --gray-400: #A39B92;
    --gray-500: #7A7269;
    --gray-600: #524B43;
    --gray-700: #2D2823;
    --gray-800: #1A1714;
    --gray-900: #0D0B0A;
    --font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-3d-blue: 0 6px 0 var(--blue-dark), 0 8px 20px var(--blue-glow);
    --shadow-3d-orange: 0 6px 0 var(--orange-dark), 0 8px 20px var(--orange-glow);
    --shadow-3d-primary: 0 6px 0 #1A1A1A, 0 8px 20px var(--primary-glow);
    --shadow-inset: inset 0 2px 4px rgba(0,0,0,0.06);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-family);
    padding-top: 80px;
    color: var(--primary);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { transition: color 0.2s; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

/* ====== NAVBAR ====== */
.navbar {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
    padding: 12px 0;
    min-height: 72px;
    border-bottom: 3px solid var(--blue);
}

.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    color: var(--blue) !important;
}

.navbar .nav-link {
    font-weight: 500;
    color: var(--cream) !important;
    padding: 8px 14px !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--blue) !important;
    background-color: rgba(61,144,210,0.1);
}

.navbar .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius);
    padding: 8px;
    margin-top: 8px;
    background: var(--primary);
}

.navbar .dropdown-item {
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-size: 0.9rem;
    color: var(--cream) !important;
}

.navbar .dropdown-item:hover {
    background-color: rgba(61,144,210,0.15);
    color: var(--blue) !important;
}

.navbar .dropdown-item i { width: 20px; text-align: center; color: var(--blue); }
.navbar .dropdown-header { color: var(--blue) !important; }

/* ====== BUTTONS ====== */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 10px 24px;
    transition: all 0.15s;
    position: relative;
}

.btn-primary {
    background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%);
    border: none;
    color: var(--white);
    box-shadow: var(--shadow-3d-blue);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(180deg, var(--blue-light) 0%, var(--blue) 100%) !important;
    border: none !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 0 var(--blue-dark), 0 12px 28px var(--blue-glow);
}

.btn-primary:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 var(--blue-dark), 0 4px 12px var(--blue-glow);
}

.btn-accent {
    background: linear-gradient(180deg, var(--orange) 0%, var(--orange-dark) 100%);
    border: none;
    color: var(--white);
    box-shadow: var(--shadow-3d-orange);
}

.btn-accent:hover,
.btn-accent:focus {
    background: linear-gradient(180deg, var(--orange-light) 0%, var(--orange) 100%) !important;
    border: none !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 0 var(--orange-dark), 0 12px 28px var(--orange-glow);
}

.btn-accent:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 var(--orange-dark), 0 4px 12px var(--orange-glow);
}

.btn-outline-primary {
    color: var(--blue);
    border: 2px solid var(--blue);
    background: transparent;
}

.btn-outline-primary:hover {
    background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%);
    border-color: var(--blue);
    color: var(--white);
    box-shadow: var(--shadow-3d-blue);
    transform: translateY(-2px);
}

.btn-outline-primary:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 var(--blue-dark), 0 4px 12px var(--blue-glow);
}

.btn-outline-accent {
    color: var(--orange);
    border: 2px solid var(--orange);
    background: transparent;
}

.btn-outline-accent:hover {
    background: linear-gradient(180deg, var(--orange) 0%, var(--orange-dark) 100%);
    border-color: var(--orange);
    color: var(--white);
    box-shadow: var(--shadow-3d-orange);
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-dark {
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline-dark:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--cream);
    transform: translateY(-2px);
}

.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }

/* ====== SECTION TITLES ====== */
.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--orange);
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 600px;
}

/* ====== HERO ====== */
.hero-section {
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #141414 100%);
    color: var(--cream);
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--blue);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-section .lead {
    font-size: 1.15rem;
    color: var(--cream-dark);
    max-width: 560px;
    margin-bottom: 32px;
}

.hero-stats {
    display: flex;
    gap: 36px;
    justify-content: center;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

@media (min-width: 992px) {
    .hero-stats { justify-content: start; }
}

.hero-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--blue);
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--cream-dark);
}

.hero-image-wrapper {
    position: relative;
    z-index: 1;
}

.hero-image {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.hero-image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.05);
    border: 2px dashed rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--gray-500);
}

/* ====== CARDS ====== */
.card {
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius);
    transition: all 0.3s;
    box-shadow: var(--shadow);
    background: var(--white);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.feature-card {
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius);
    transition: all 0.3s;
    background: var(--white);
    box-shadow: var(--shadow), var(--shadow-inset);
    position: relative;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--orange));
    border-radius: 0 0 var(--radius) var(--radius);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--blue);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--blue);
    display: inline-block;
}

.service-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    background: rgba(61,144,210,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--blue);
    box-shadow: var(--shadow-inset);
}

/* ====== MODULE CARDS ====== */
.module-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
}

.module-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.module-card .module-overlay {
    position: relative;
    padding: 32px 28px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
}

.module-card .module-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.module-card h5 {
    font-weight: 700;
    margin-bottom: 8px;
}

.module-card p {
    font-size: 0.9rem;
    opacity: 0.85;
    flex-grow: 1;
}

/* ====== TESTIMONIALS ====== */
.testimonial-card {
    border: none;
    border-radius: var(--radius);
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--cream-dark);
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.testimonial-stars {
    color: var(--blue);
}

/* ====== NEWSLETTER ====== */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    padding: 60px;
    border: 2px solid var(--blue);
    box-shadow: 0 10px 40px var(--blue-glow);
}

/* ====== BLOG ====== */
.blog-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-700);
}

/* ====== COLOR UTILITIES ====== */
.text-blue { color: var(--blue) !important; }
.text-orange { color: var(--orange) !important; }
.text-primary { color: var(--primary) !important; }
.text-cream { color: var(--cream) !important; }
.bg-blue { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%) !important; }
.bg-orange { background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%) !important; }
.bg-primary { background: var(--primary) !important; }
.bg-cream { background: var(--cream) !important; }
.bg-white { background: var(--white) !important; }
.bg-gray-50 { background-color: var(--gray-50) !important; }
.bg-gray-100 { background-color: var(--gray-100) !important; }

/* ====== PROGRESS BARS ====== */
.progress {
    border-radius: 999px;
    background-color: var(--cream-dark);
    height: 8px;
    box-shadow: var(--shadow-inset);
}

.progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue), var(--orange));
}

/* ====== BADGES ====== */
.badge { font-weight: 600; border-radius: var(--radius-sm); padding: 4px 10px; }
.badge.bg-blue { background: var(--blue) !important; color: white; }
.badge.bg-orange { background: var(--orange) !important; color: white; }
.badge.bg-primary { background: var(--primary) !important; color: var(--cream); }

/* ====== FORMS ====== */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 2px solid var(--cream-dark);
    padding: 10px 14px;
    font-size: 0.95rem;
    box-shadow: var(--shadow-inset);
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
}

.form-control:focus, .form-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-glow), var(--shadow-inset);
}

/* ====== BREADCRUMBS ====== */
.breadcrumb { background: transparent; padding: 0; }
.breadcrumb-item a { color: var(--blue); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--blue-dark); }
.breadcrumb-item.active { color: var(--gray-500); }

/* ====== SCROLL ANIMATION ====== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}

/* ====== 3D UTILITY ====== */
.shadow-3d-blue { box-shadow: var(--shadow-3d-blue); }
.shadow-3d-orange { box-shadow: var(--shadow-3d-orange); }
.shadow-3d-primary { box-shadow: var(--shadow-3d-primary); }

.border-bottom-blue { border-bottom: 3px solid var(--blue); }
.border-bottom-orange { border-bottom: 3px solid var(--orange); }

/* ====== CUSTOM CREAM BG SECTIONS ====== */
.bg-cream-light { background-color: var(--cream-light); }

/* ====== FOOTER VISIBILITY ====== */
footer { background-color: #000000 !important; }
footer h5, footer h6 { color: var(--cream) !important; }
footer a { color: var(--blue-light) !important; }
footer a:hover { color: var(--cream) !important; }
footer .text-muted { color: var(--gray-300) !important; }
footer p { color: var(--gray-300) !important; }

/* ====== BACKWARD-COMPATIBLE ALIASES ====== */
.text-emerald { color: var(--blue) !important; }
.text-accent { color: var(--orange) !important; }
.text-success { color: var(--blue) !important; }
.text-danger { color: var(--orange) !important; }
.bg-emerald { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%) !important; }
.bg-accent { background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%) !important; }
.btn-success { background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%); border: none; color: var(--white); box-shadow: var(--shadow-3d-blue); }
.btn-success:hover, .btn-success:focus { background: linear-gradient(180deg, var(--blue-light) 0%, var(--blue) 100%) !important; border: none !important; color: var(--white) !important; transform: translateY(-2px); box-shadow: 0 8px 0 var(--blue-dark), 0 12px 28px var(--blue-glow); }
.btn-success:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--blue-dark), 0 4px 12px var(--blue-glow); }
.btn-outline-success { color: var(--blue); border: 2px solid var(--blue); background: transparent; }
.btn-outline-success:hover { background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%); border-color: var(--blue); color: var(--white); box-shadow: var(--shadow-3d-blue); transform: translateY(-2px); }

/* ====== RESPONSIVE ====== */
@media (max-width: 991.98px) {
    body { padding-top: 72px; }
    .hero-section { padding: 100px 0 60px; }
    .hero-section h1 { font-size: 2.2rem; }
    .hero-stats { flex-wrap: wrap; gap: 24px; }
    .hero-stat-value { font-size: 1.6rem; }
    .section-title { font-size: 1.8rem; }
    .newsletter-section { padding: 40px 24px; }
    .navbar .navbar-nav { padding-top: 12px; }
    .navbar .nav-link { padding: 10px 0 !important; }
}

@media (max-width: 575.98px) {
    .hero-section h1 { font-size: 1.8rem; }
    .hero-section .lead { font-size: 1rem; }
    .section-title { font-size: 1.5rem; }
    .module-card .module-overlay { min-height: 200px; padding: 24px 20px; }
}

/* ====== SEO LANDING PAGES ====== */
.display-4.fw-bold {
    font-size: 3rem;
}

.card .display-4.fw-bold {
    color: var(--blue);
}

.card .service-icon-wrap {
    transition: transform 0.3s;
}

.card:hover .service-icon-wrap {
    transform: scale(1.1);
}

/* Process section numbering */
.card .display-4 {
    font-size: 2.8rem;
    line-height: 1;
}

/* Ensure consistent card heights */
.row.g-4 .card.h-100 {
    display: flex;
    flex-direction: column;
}

.row.g-4 .card.h-100 .card-body {
    flex: 1;
}
