/* ============================================
   Dynamic Data Systems - Modern Design System
   Inspired by OpsPortal aesthetic
   WCAG 2.1 AA Compliant
   ============================================ */

/* CSS Custom Properties (Design Tokens) */
:root {
    /* Primary Colors - Deep Navy/Indigo */
    --color-primary: #1e3a5f;
    --color-primary-dark: #152a45;
    --color-primary-light: #2d5a8a;

    /* Accent Colors - Gold/Amber (DDS Lightbulb) */
    --color-accent: #f59e0b;
    --color-accent-dark: #d97706;
    --color-accent-light: #fbbf24;

    /* Neutral Colors */
    --color-white: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;

    /* Semantic Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #3b82f6;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Container */
    --container-max: 1440px;
    --container-padding: 2rem;
}

/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-gray-700);
    background-color: var(--color-white);
    margin: 0;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-bold);
    line-height: 1.2;
    color: var(--color-gray-900);
    margin-top: 0;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    margin-top: 0;
    margin-bottom: var(--space-4);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-light);
}

/* Focus States - Accessibility */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Skip Link - Accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-3) var(--space-4);
    z-index: 9999;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar-dds {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: var(--space-4) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.navbar-dds .navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
}

.navbar-dds .navbar-brand img {
    height: 45px;
    width: auto;
}

.navbar-dds .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: var(--font-medium);
    padding: var(--space-2) var(--space-4) !important;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.navbar-dds .nav-link:hover,
.navbar-dds .nav-link:focus {
    color: var(--color-white) !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-dds .nav-link.active {
    color: var(--color-accent) !important;
}

.navbar-dds .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-dds .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.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Services Dropdown */
.navbar-dds .dropdown-menu {
    background: var(--color-white);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-2);
    min-width: 220px;
}

.navbar-dds .dropdown-item {
    color: var(--color-gray-700);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.navbar-dds .dropdown-item:hover {
    background-color: var(--color-gray-100);
    color: var(--color-primary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-gray-50) 100%);
    color: var(--color-gray-800);
    padding: var(--space-24) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(30,58,95,0.04)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    width: 120px;
    height: auto;
    margin-bottom: var(--space-6);
    animation: fadeInUp 0.6s ease-out;
}

.hero h1 {
    color: var(--color-primary);
    font-size: var(--text-5xl);
    font-weight: var(--font-extrabold);
    margin-bottom: var(--space-4);
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero .tagline {
    font-size: var(--text-xl);
    color: var(--color-accent-dark);
    font-weight: var(--font-medium);
    margin-bottom: var(--space-8);
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero p {
    font-size: var(--text-lg);
    color: var(--color-gray-600);
    margin-bottom: var(--space-8);
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary-dds {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: var(--color-white);
    font-weight: var(--font-semibold);
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.btn-primary-dds:hover {
    background: linear-gradient(135deg, var(--color-accent-dark) 0%, #b45309 100%);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary-dds {
    background: transparent;
    color: var(--color-primary);
    font-weight: var(--font-semibold);
    padding: var(--space-3) var(--space-6);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.btn-secondary-dds:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* Secondary button variant for dark backgrounds */
.btn-secondary-light {
    background: transparent;
    color: var(--color-white);
    font-weight: var(--font-semibold);
    padding: var(--space-3) var(--space-6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.btn-secondary-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--color-white);
}

.btn-outline-primary {
    background: transparent;
    color: var(--color-primary);
    font-weight: var(--font-semibold);
    padding: var(--space-3) var(--space-6);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.btn-outline-primary:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--space-20) 0;
}

.section-light {
    background-color: var(--color-gray-50);
}

.section-dark {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
}

.section-dark h2,
.section-dark h3 {
    color: var(--color-white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-12);
}

.section-header h2 {
    margin-bottom: var(--space-4);
}

.section-header p {
    color: var(--color-gray-600);
    font-size: var(--text-lg);
}

.section-dark .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

/* First row: 3 cards centered, second row: 4 cards */
.services-grid > *:nth-child(-n+3) {
    grid-column: span 1;
}

/* On homepage with 7 cards: 3 on top centered, 4 on bottom full width */
@media (min-width: 1200px) {
    .services-grid.services-grid-7 {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    /* First 3 cards: ~31% width to center nicely */
    .services-grid.services-grid-7 > *:nth-child(-n+3) {
        flex: 0 0 calc(33.333% - var(--space-6));
        max-width: calc(33.333% - var(--space-6));
    }
    /* Bottom 4 cards: 25% each, full width row */
    .services-grid.services-grid-7 > *:nth-child(n+4) {
        flex: 0 0 calc(25% - var(--space-6));
        max-width: calc(25% - var(--space-6));
    }
}

@media (max-width: 1199px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-grid.services-grid-7 > * {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--color-gray-100);
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-accent);
    color: inherit;
}

.service-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-5);
}

.service-card-icon i {
    font-size: 1.75rem;
    color: var(--color-white);
}

.service-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

.service-card p {
    color: var(--color-gray-600);
    margin-bottom: var(--space-4);
}

.service-card .card-link {
    color: var(--color-primary);
    font-weight: var(--font-semibold);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.service-card:hover .card-link {
    color: var(--color-accent);
}

/* ============================================
   OPSPORTAL FEATURE SECTION
   ============================================ */
.opsportal-feature {
    background: linear-gradient(180deg, var(--color-gray-50) 0%, var(--color-gray-100) 100%);
    color: var(--color-gray-800);
    padding: var(--space-20) 0;
    position: relative;
    overflow: hidden;
}

.opsportal-feature::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.opsportal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.opsportal-badge {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-4);
}

.opsportal-feature h2 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
    color: var(--color-primary);
}

.opsportal-feature p {
    font-size: var(--text-lg);
    color: var(--color-gray-600);
    margin-bottom: var(--space-6);
}

.opsportal-feature ul {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-8);
}

.opsportal-feature li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    color: var(--color-gray-700);
}

.opsportal-feature li i {
    color: var(--color-accent-dark);
}

@media (max-width: 768px) {
    .opsportal-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ============================================
   TRANSIT HIGHLIGHT
   ============================================ */
.transit-highlight {
    background: var(--color-gray-50);
    padding: var(--space-16) 0;
}

.transit-card {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    padding: var(--space-12);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.transit-card h2 {
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.transit-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.transit-feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.transit-feature-item i {
    color: var(--color-accent);
    font-size: var(--text-xl);
}

@media (max-width: 768px) {
    .transit-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .transit-features {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   WHO WE ARE / ABOUT SECTION
   ============================================ */
.about-section {
    background: linear-gradient(rgba(30, 58, 95, 0.9), rgba(30, 58, 95, 0.9)),
                url('/images/office-594132_1280-2.png') center/cover no-repeat;
    color: var(--color-white);
    padding: var(--space-20) 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-12);
    align-items: start;
}

.about-heading h2 {
    color: var(--color-white);
    font-size: var(--text-3xl);
    margin: 0;
}

.about-text p {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.about-text .btn {
    display: inline-flex;
}

@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-text .btn {
        justify-content: center;
    }
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    padding: var(--space-20) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
}

.contact-info h2 {
    margin-bottom: var(--space-6);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-icon i {
    color: var(--color-white);
    font-size: var(--text-xl);
}

.contact-item a {
    color: var(--color-gray-700);
    font-weight: var(--font-medium);
}

.contact-item a:hover {
    color: var(--color-primary);
}

.contact-form {
    background: var(--color-gray-50);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    font-weight: var(--font-medium);
    margin-bottom: var(--space-2);
    color: var(--color-gray-700);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: var(--text-base);
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    outline: none;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer-dds {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, #0f172a 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-brand img {
    height: 50px;
    margin-bottom: var(--space-4);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-column h4 {
    color: var(--color-white);
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: var(--space-2);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-8);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
    color: var(--color-accent);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

/* ============================================
   PAGE HEADERS
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    padding: var(--space-16) 0;
    text-align: center;
}

.page-header h1 {
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.page-header p {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
    font-size: var(--text-sm);
}

.breadcrumb-nav a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-nav a:hover {
    color: var(--color-white);
}

.breadcrumb-nav span {
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content-section {
    padding: var(--space-16) 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}

.content-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .content-grid,
    .content-grid.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: var(--space-6) 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.feature-list li i {
    color: var(--color-accent);
    font-size: var(--text-lg);
    margin-top: 3px;
    flex-shrink: 0;
}

.feature-list h5 {
    margin-bottom: var(--space-1);
    color: var(--color-gray-900);
}

.feature-list p {
    color: var(--color-gray-600);
    margin: 0;
}

/* ============================================
   INDUSTRY CARDS
   ============================================ */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
}

.industry-card {
    background: var(--color-white);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-100);
    transition: all var(--transition-base);
}

.industry-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.industry-card i {
    font-size: var(--text-3xl);
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}

.industry-card h4 {
    font-size: var(--text-lg);
    margin-bottom: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children animations */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-children.is-visible > *:nth-child(1) { animation: fadeInUp 0.5s ease-out 0.1s forwards; }
.stagger-children.is-visible > *:nth-child(2) { animation: fadeInUp 0.5s ease-out 0.2s forwards; }
.stagger-children.is-visible > *:nth-child(3) { animation: fadeInUp 0.5s ease-out 0.3s forwards; }
.stagger-children.is-visible > *:nth-child(4) { animation: fadeInUp 0.5s ease-out 0.4s forwards; }
.stagger-children.is-visible > *:nth-child(5) { animation: fadeInUp 0.5s ease-out 0.5s forwards; }

/* ============================================
   UTILITIES
   ============================================ */
.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }
.text-white { color: var(--color-white); }
.text-muted { color: var(--color-gray-500); }

.bg-primary { background-color: var(--color-primary); }
.bg-accent { background-color: var(--color-accent); }
.bg-light { background-color: var(--color-gray-50); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.my-0 { margin-top: 0; margin-bottom: 0; }

.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-8 { margin-bottom: var(--space-8); }

.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-16 { padding-top: var(--space-16); padding-bottom: var(--space-16); }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }

/* Responsive visibility */
@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
}

@media (min-width: 769px) {
    .hide-desktop { display: none !important; }
}

/* ============================================
   RESPONSIVE TYPOGRAPHY
   ============================================ */
@media (max-width: 768px) {
    h1 { font-size: var(--text-4xl); }
    h2 { font-size: var(--text-3xl); }
    h3 { font-size: var(--text-2xl); }

    .hero h1 { font-size: var(--text-4xl); }
    .hero { padding: var(--space-16) 0; }

    .section { padding: var(--space-12) 0; }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal for grid items */
.services-grid .reveal,
.stats-grid .reveal,
.industry-grid .reveal {
    transition-delay: calc(var(--stagger, 0) * 0.1s);
}

/* Navbar scroll state */
.navbar-dds {
    transition: background-color var(--transition-base),
                box-shadow var(--transition-base);
}

.navbar-dds.navbar-scrolled {
    background-color: rgba(30, 58, 95, 0.98) !important;
    box-shadow: var(--shadow-lg);
}

.navbar-dds.navbar-hidden {
    transform: translateY(-100%);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity var(--transition-base),
                visibility var(--transition-base),
                transform var(--transition-base),
                background-color var(--transition-fast);
    z-index: 9998;
}

.back-to-top:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
}

.back-to-top:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top i {
    font-size: 1.25rem;
}

/* Lazy loaded images */
img.lazy {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img.lazy.loaded {
    opacity: 1;
}

/* Input focus animation */
.input-focused {
    transform: scale(1.02);
}

/* Success button state */
.btn-success {
    background-color: var(--color-success) !important;
    border-color: var(--color-success) !important;
}

/* Alert messages */
.alert {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.alert i {
    font-size: var(--text-xl);
    flex-shrink: 0;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Reduced motion preferences */
.reduced-motion *,
.reduced-motion *::before,
.reduced-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

.reduced-motion .reveal {
    opacity: 1;
    transform: none;
}

/* JS loaded state - enables animations only after JS is ready */
body:not(.js-loaded) .reveal {
    opacity: 1;
    transform: none;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar-dds,
    .footer-dds,
    .btn-primary-dds,
    .btn-secondary-dds,
    .back-to-top {
        display: none !important;
    }

    .hero,
    .section-dark {
        background: none !important;
        color: #000 !important;
    }

    .hero h1,
    .section-dark h2 {
        color: #000 !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
