/**
 * Main Stylesheet - ADVANCE IT TECHNOLOGY INDIA
 * Dark Blue, White, Grey Theme with Glassmorphism
 * Bootstrap 5.3 Custom Variables & Components
 */

:root {
    /* Brand Colors */
    --primary: #0d1b2a;
    --primary-dark: #090d12;
    --primary-light: #1b2a4a;
    --secondary: #1b263b;
    --accent: #00b4d8;
    --accent-dark: #0096c7;
    --accent-light: #48cae4;
    --white: #ffffff;
    --light: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #3498db;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    --glass-blur: blur(12px);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 32px rgba(0, 180, 216, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Typography */
    --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ========================================
   RESET & BASE
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background-color: var(--accent);
    color: var(--white);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h5 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.2rem); }

.display-1 { font-size: clamp(3.5rem, 7vw, 6rem); }
.display-2 { font-size: clamp(3rem, 6vw, 5rem); }
.display-3 { font-size: clamp(2.5rem, 5vw, 4rem); }
.display-4 { font-size: clamp(2rem, 4vw, 3.5rem); }

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--gray-600);
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */
.container-custom {
    max-width: 1320px;
}

.section {
    padding: var(--space-3xl) 0;
}

.section-sm {
    padding: var(--space-xl) 0;
}

.section-lg {
    padding: calc(var(--space-3xl) * 1.5) 0;
}

/* ========================================
   NAVIGATION - PROFESSIONAL REDESIGN
   ======================================== */
#mainNav {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    padding: 0.5rem 0;
    transition: all var(--transition-normal);
    z-index: 1030;
    backdrop-filter: blur(10px);
}

#mainNav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    padding: 0.35rem 0;
    background: rgba(13, 27, 42, 0.98) !important;
}

.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
}

.navbar-brand:hover {
    color: var(--accent) !important;
}

.navbar-brand i {
    font-size: 1.5rem;
    color: var(--accent);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    color: rgba(255, 255, 255, 0.85) !important;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.dropdown-menu {
    background: var(--secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 0.75rem;
    min-width: 220px;
    margin-top: 8px;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

.dropdown-item:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateX(5px);
}

#mainNav.scrolled {
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
    background: rgba(13, 27, 42, 0.95) !important;
    backdrop-filter: var(--glass-blur);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    transition: color var(--transition-fast);
}

.navbar-brand:hover {
    color: var(--accent) !important;
}

.navbar-brand i {
    font-size: 1.75rem;
    color: var(--accent);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    color: rgba(255, 255, 255, 0.85) !important;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.dropdown-menu {
    background: var(--secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 220px;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--accent);
    color: var(--white);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.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='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    font-weight: 600;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    transition: all var(--transition-normal);
    border: none;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    box-shadow: 0 4px 16px rgba(0, 180, 216, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-300);
    color: var(--primary);
}

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

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

.btn-outline-secondary {
    border: 2px solid var(--gray-300);
    color: var(--gray-600);
}

.btn-outline-secondary:hover {
    background: var(--gray-300);
    color: var(--primary);
}

.btn-light {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-light:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white);
}

/* ========================================
   CARDS
   ======================================== */
.card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-normal);
    background: var(--white);
}

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

.card-img-top {
    transition: transform var(--transition-slow);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: var(--space-xl);
}

.card-title {
    font-weight: 600;
    color: var(--primary);
}

.card-text {
    color: var(--gray-600);
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* ========================================
   HERO SECTION - PROFESSIONAL REDESIGN
   ======================================== */
.hero {
    position: relative;
    min-height: 95vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 45%, var(--primary-dark) 100%);
    overflow: hidden;
    isolation: isolate;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
}

.hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero .lead {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto var(--space-xl);
    line-height: 1.6;
}

.hero-buttons .btn {
    margin: 0.5rem;
    min-width: 180px;
}

.hero-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.scroll-indicator .scroll-dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.scroll-indicator .scroll-dot.active {
    background: var(--accent);
    animation: none;
}

.scroll-indicator .scroll-arrow {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    animation: bounce 2s infinite;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 30%, rgba(0, 180, 216, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 70%, rgba(72, 202, 228, 0.1) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2v-4h4v-2h-4zm-30 0V0h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0 30v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2v-4h4v-2H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--white);
}

.hero .lead {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
}

.hero-buttons .btn {
    margin: 0.5rem;
}

/* Animated background elements */
.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.1), rgba(72, 202, 228, 0.05));
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

.hero-bg-shape:nth-child(1) { width: 400px; height: 400px; top: -100px; right: -100px; animation-delay: 0s; }
.hero-bg-shape:nth-child(2) { width: 250px; height: 250px; bottom: -50px; left: -50px; animation-delay: -5s; }
.hero-bg-shape:nth-child(3) { width: 150px; height: 150px; top: 30%; right: 10%; animation-delay: -10s; }
.hero-bg-shape:nth-child(4) { width: 100px; height: 100px; bottom: 20%; right: 30%; animation-delay: -15s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(90deg); }
    50% { transform: translate(-20px, 20px) rotate(180deg); }
    75% { transform: translate(-30px, -20px) rotate(270deg); }
}

/* ========================================
   PAGE HEADER (styles defined later in file)
   ======================================== */

.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--accent);
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   ICON BOXES
   ======================================== */
.icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.icon-box-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
}

.icon-box-secondary {
    background: var(--gray-100);
    color: var(--primary);
}

.icon-box:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

/* ========================================
   SERVICE CARDS
   ======================================== */
.service-card {
    padding: var(--space-xl);
    border-radius: 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
    height: 100%;
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.service-card .icon-box {
    margin-bottom: var(--space-lg);
}

.service-card h4 {
    font-size: 1.35rem;
    margin-bottom: var(--space-md);
}

.service-card p {
    color: var(--gray-600);
    margin-bottom: var(--space-lg);
}

/* ========================================
   CLIENT LOGOS MARQUEE
   ======================================== */
.logo-marquee {
    background: var(--light);
    padding: var(--space-xl) 0;
    overflow: hidden;
    position: relative;
}

.logo-marquee::before,
.logo-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.logo-marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--light), transparent);
}

.logo-marquee::after {
    right: 0;
    background: linear-gradient(270deg, var(--light), transparent);
}

.logo-marquee-label {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: var(--space-lg);
}

.marquee-track {
    display: flex;
    gap: 4rem;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.marquee-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
    filter: grayscale(100%);
}

.marquee-item:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.marquee-item i {
    font-size: 2.5rem;
    color: var(--primary);
}

/* ========================================
   TESTIMONIALS CAROUSEL
   ======================================== */
.testimonial-carousel {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
}

.testimonial-carousel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2v-4h4v-2h-4zm-30 0V0h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0 30v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2v-4h4v-2H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: var(--space-2xl);
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-quote {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 600;
    color: var(--white);
}

.testimonial-role {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.testimonial-carousel .carousel-control-prev,
.testimonial-carousel .carousel-control-next {
    width: 5%;
    opacity: 0.7;
}

.testimonial-carousel .carousel-control-prev-icon,
.testimonial-carousel .carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 1.5rem;
    backdrop-filter: var(--glass-blur);
}

.testimonial-carousel .carousel-indicators {
    margin-bottom: -2rem;
}

.testimonial-carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
}

.testimonial-carousel .carousel-indicators button.active {
    background-color: var(--accent);
}

/* ========================================
   STATS BAND
   ======================================== */
.stats-band {
    background: var(--primary-dark);
    padding: var(--space-xl) 0;
}

.stat-item {
    text-align: center;
    padding: var(--space-lg);
}

.stat-item .stat-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.stat-item .stat-value {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.stat-item .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer-section {
    background: var(--primary);
    position: relative;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer-brand h3 {
    color: var(--white);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent) !important;
    transform: translateX(4px);
}

.social-links a {
    transition: all var(--transition-fast);
}

.social-links a:hover {
    color: var(--accent) !important;
    transform: translateY(-3px);
}

.footer-bottom {
    background: var(--primary-dark);
}

.certificate-badges .badge {
    font-size: 0.75rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.certificate-badges .badge:hover {
    background: var(--accent) !important;
    color: var(--white) !important;
    border-color: var(--accent) !important;
    transform: translateY(-2px);
}

/* ========================================
   FOOTER NAV
   ======================================== */
.footer-nav {
    background: var(--primary);
}

.footer-nav a {
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    transition: color var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--accent) !important;
}

/* ========================================
   FORM STYLES
   ======================================== */
.form-control,
.form-select {
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: var(--white);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.15);
    background: var(--white);
}

.form-control-lg,
.form-select-lg {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
}

.form-control::placeholder {
    color: var(--gray-400);
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-text {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.input-group-text {
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-right: none;
    color: var(--gray-700);
}

.input-group .form-control {
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--gray-300);
    margin-top: 0.2rem;
}

.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.15);
}

.is-valid {
    border-color: var(--success) !important;
}

.is-invalid {
    border-color: var(--danger) !important;
}

.invalid-feedback {
    font-size: 0.875rem;
}

/* ========================================
   ALERTS
   ======================================== */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
}

.alert-success {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1) 0%, rgba(46, 204, 113, 0.05) 100%);
    color: #1e8a49;
    border-left: 4px solid var(--success);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(231, 76, 60, 0.05) 100%);
    color: #c0392b;
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.1) 0%, rgba(243, 156, 18, 0.05) 100%);
    color: #b8860b;
    border-left: 4px solid var(--warning);
}

.alert-info {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.1) 0%, rgba(0, 180, 216, 0.05) 100%);
    color: #006d8a;
    border-left: 4px solid var(--accent);
}

/* ========================================
   BADGES
   ======================================== */
.badge {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease forwards;
}

.delay-1 { animation-delay: 100ms; }
.delay-2 { animation-delay: 200ms; }
.delay-3 { animation-delay: 300ms; }
.delay-4 { animation-delay: 400ms; }
.delay-5 { animation-delay: 500ms; }

/* ========================================
   PROFESSIONAL SECTION SPACING
   ======================================== */
.section {
    padding: calc(var(--space-3xl) * 1.25) 0;
}

.section-sm {
    padding: var(--space-2xl) 0;
}

.section-lg {
    padding: calc(var(--space-3xl) * 1.75) 0;
}

/* ========================================
   PROFESSIONAL PAGE HEADER
   ======================================== */
.page-header {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    overflow: hidden;
    padding: 5rem 0 4rem;
    margin-top: -1px;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 50% at 80% 20%, rgba(0, 180, 216, 0.15) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2v-4h4v-2h-4zm-30 0V0h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0 30v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2v-4h4v-2H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.page-header h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--accent);
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   PROFESSIONAL SERVICE CARDS
   ======================================== */
.service-card {
    padding: var(--space-xl);
    border-radius: 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
    transform-origin: left;
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card .icon-box {
    margin-bottom: var(--space-lg);
    transition: transform var(--transition-slow);
}

.service-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

.service-card h4,
.service-card h5 {
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
    color: var(--primary);
}

.service-card p {
    color: var(--gray-600);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

/* ========================================
   PROFESSIONAL FOOTER
   ======================================== */
.footer-section {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    padding: 4rem 0 3rem;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer-brand h3 {
    color: var(--white);
    font-size: 1.4rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    transition: all var(--transition-fast);
    display: inline-block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent) !important;
    transform: translateX(4px);
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    margin-right: 0.5rem;
}

.social-links a:hover {
    background: var(--accent);
    color: var(--white) !important;
    transform: translateY(-3px);
}

.footer-bottom {
    background: var(--primary-dark);
    padding: 1.5rem 0;
}

.certificate-badges .badge {
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    padding: 0.5rem 1rem;
}

.certificate-badges .badge:hover {
    background: var(--accent) !important;
    color: var(--white) !important;
    border-color: var(--accent) !important;
    transform: translateY(-2px);
}

/* ========================================
   SCROLL REVEAL (IntersectionObserver)
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 991.98px) {
    .navbar-nav {
        background: rgba(9, 13, 18, 0.98);
        backdrop-filter: var(--glass-blur);
        padding: var(--space-lg);
        border-radius: 16px;
        margin-top: var(--space-md);
    }

    .nav-link::after {
        display: none;
    }

    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .hero {
        min-height: auto;
        padding: 8rem 0 4rem;
    }

    .section {
        padding: var(--space-2xl) 0;
    }

    .card-body {
        padding: var(--space-lg);
    }

    .footer-links {
        text-align: center;
    }

    .footer-nav .list-inline-item {
        display: block;
        margin: 0.25rem 0 !important;
    }

    .footer-nav .list-inline-item.mx-2 {
        display: none;
    }
}

/* ========================================
   PRINT
   ======================================== */
@media print {
    .navbar,
    .footer-section,
    .footer-nav,
    .btn,
    .form-control,
    .alert {
        display: none !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }

    a {
        text-decoration: none;
        color: var(--primary);
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --gray-200: #000;
        --gray-300: #000;
    }

    .btn-primary {
        border: 2px solid var(--white);
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-primary-custom { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.bg-primary-custom { background-color: var(--primary) !important; }
.bg-secondary-custom { background-color: var(--secondary) !important; }
.bg-accent { background-color: var(--accent) !important; }
.bg-glass { background: var(--glass-bg); backdrop-filter: var(--glass-blur); }
.border-accent { border-color: var(--accent) !important; }
.rounded-xl { border-radius: 20px !important; }
.rounded-2xl { border-radius: 24px !important; }
.shadow-custom { box-shadow: var(--shadow-md) !important; }
.shadow-glow { box-shadow: var(--shadow-glow) !important; }
.transition-custom { transition: all var(--transition-normal) !important; }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-grab { cursor: grab; }

/* Overflow */
.overflow-hidden-custom { overflow: hidden; }

/* Z-index layers */
.z-index-1 { z-index: 1; }
.z-index-2 { z-index: 2; }
.z-index-10 { z-index: 10; }

/* ========================================
   HERO SPECIFIC
   ======================================== */
.hero-stats {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: var(--space-xl);
}

.hero-stats .stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.hero-stats .stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* ========================================
   GRID BACKGROUND
   ======================================== */
.grid-bg {
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ========================================
   LOADING SPINNER
   ======================================== */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

.spinner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 27, 42, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.spinner-overlay.active {
    opacity: 1;
    visibility: visible;
}