:root {
    --color-black: #1a1a1a;
    --color-gray: #6b7280;
    --color-gray-light: #afbcd5;

  /* Primary */
  --color-primary: #3E6FB2;
  --color-primary-dark: #2C5A96;
  --color-primary-light: #f8f9fa;

  /* Secondary & Tertiary */
  --color-secondary: #10B981;
  --color-tertiary: #8B5CF6;

  /* Accent & States */
  --color-accent: #F59E0B;
  --color-error: #EF4444;
  --color-success: #10B981;
  --color-warning: #F59E0B;

  /* Backgrounds (dark mode) */
  --color-bg: #0F172A;
  --color-surface: #1E293B;
  --color-surface-light: #334155;

  /* Text */
  --color-text-primary: #F8FAFC;
  --color-text-secondary: #94A3B8;
  --color-text-muted: #64748B;

  /* Borders */
  --color-border: #475569;
  --color-border-light: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: #ffffff;
    color: var(--color-black);
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    padding: 1.5rem 0;
    background: transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

/* Mobile navbar background */
@media (max-width: 991px) {
    .navbar {
        background: white;
    }
    
    .navbar-collapse {
        background: white;
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 8px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav {
        align-items: flex-start !important;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0 !important;
    }
    
    .navbar-nav .dropdown-menu {
        box-shadow: none;
        padding-left: 1rem;
        border: none;
        background: transparent;
    }
    
    .navbar-nav .btn-contact {
        margin-top: 1rem;
        display: inline-block;
    }
}

.navbar-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-black) !important;
    text-decoration: none;
    position: relative;
    letter-spacing: -1px;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    top: 2px;
    right: -10px;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

/* Navbar logo placeholder - starts invisible (for homepage animation) */
.logo-placeholder {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.7rem;
    font-weight: 700;
    color: var(--color-black);
    text-decoration: none;
    position: relative;
    letter-spacing: -1px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.logo-placeholder.visible {
    opacity: 1;
    visibility: visible;
}

.logo-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    right: -12px;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
}

.logo-placeholder::before {
    content: '';
    position: absolute;
    top: -6px;
    right: -6px;
    width: 5px;
    height: 5px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0.6;
}

.nav-link {
    color: var(--color-black) !important;
    font-weight: 500;
    padding: 0.5rem 1.25rem !important;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--color-primary) !important;
}

/* Dropdown Menus */
.dropdown-toggle::after {
    margin-left: 0.5rem;
    vertical-align: middle;
}

.dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: var(--color-black);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.dropdown-item:active {
    background: var(--color-primary);
    color: white;
}

.btn-contact {
    background: var(--color-black);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: auto;
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-top: 100px;
    padding-bottom: 4rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--color-primary-light) 0%, transparent 70%);
    pointer-events: none;
}

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

/* Logo Animation Styles */
.animated-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.4rem, 5vw, 2.7rem);
    font-weight: 700;
    display: inline-flex;
    align-items: baseline;
    position: absolute;
    color: var(--color-black);
    z-index: 1001;
    left: calc((100% - 1320px) / 2 + 12px);
    top: 25%;
    transform: translateY(-50%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 1399px) {
    .animated-logo {
        left: calc((100% - 1140px) / 2 + 12px);
    }
}

@media (max-width: 1199px) {
    .animated-logo {
        left: calc((100% - 960px) / 2 + 12px);
    }
}

@media (max-width: 991px) {
    .animated-logo {
        left: calc((100% - 720px) / 2 + 12px);
    }
}

@media (max-width: 767px) {
    .animated-logo {
        left: 12px;
    }
}

.animated-logo.in-navbar {
    position: fixed;
    top: 1.5rem;
    transform: translateY(0);
    font-size: 2.7rem;
}

.animated-logo .word {
    display: inline-flex;
    overflow: hidden;
}

.animated-logo .letter {
    display: inline-block;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--color-primary);
}

.animated-logo .collapsible {
    max-width: 30px;
    opacity: 1;
}

.animated-logo.collapsed .collapsible {
    max-width: 0;
    opacity: 0;
}

.animated-logo .first-letter {
    text-transform: uppercase;
    color: var(--color-black);
}

.animated-logo.collapsed .first-letter {
    text-transform: lowercase;
    color: var(--color-black);
}

/* Match navbar logo styling when collapsed */
.animated-logo.collapsed {
    letter-spacing: -1px;
}

.animated-logo .space {
    width: 12px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animated-logo.collapsed .space {
    width: 0;
}

.animated-logo .period {
    opacity: 0;
    max-width: 0;
    transition: all 0.4s ease 0.4s;
}

.animated-logo.collapsed .period {
    opacity: 1;
    max-width: 20px;
    color: var(--color-black);
}

.animated-logo .green-dots {
    position: absolute;
    top: 0;
    right: -15px;
    opacity: 0;
    transition: opacity 0.4s ease 0.5s;
}

.animated-logo.collapsed .green-dots {
    opacity: 1;
}

.animated-logo .green-dots::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 0;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
}

.animated-logo .green-dots::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 5px;
    width: 5px;
    height: 5px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0.6;
}

/* Hide animated logo after it settles */
.animated-logo.hidden {
    opacity: 0;
    visibility: hidden;
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.0rem;
    color: var(--color-black);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.hero h1.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero h1 span {
    color: var(--color-primary);
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--color-gray);
    max-width: 540px;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.hero-tagline.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-accent-bar {
    width: 60px;
    height: 4px;
    opacity: 0;
    background: var(--color-primary);
    margin-bottom: 0.5rem;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.hero-accent-bar.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hero-buttons {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.hero-buttons.visible {
    opacity: 1;
    transform: translateY(0);
}

.btn-primary-hst {
    background: var(--color-primary);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary-hst:hover {
    background: var(--color-primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--color-primary-dark);
}

.btn-secondary-hst {
    background: transparent;
    color: var(--color-black);
    padding: 1rem 2rem;
    border: 2px solid var(--color-black);
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.btn-secondary-hst:hover {
    background: var(--color-black);
    color: white;
}

/* Stats Bar */
.stats-bar {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.stats-bar.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-black);
    line-height: 1;
}

.stat-number span {
    color: var(--color-primary);
}

.stat-label {
    color: var(--color-gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--color-primary-light);
}

.section-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-black);
}

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

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    height: 100%;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--color-primary);
    transition: height 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.service-card:hover::before {
    height: 100%;
}

a.service-card {
    display: block;
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    height: 100%;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

a.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--color-primary);
    transition: height 0.3s ease;
}

a.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

a.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--color-primary-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.service-card h3 {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-black);
}

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

/* Markets Section */
.markets {
    padding: 6rem 0;
    background: white;
}

.market-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--color-primary-light);
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.market-item:hover {
    background: var(--color-black);
    color: white;
}

.market-item:hover .market-icon {
    background: var(--color-primary);
    color: white;
}
a.market-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--color-primary-light);
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

a.market-item:hover {
    background: var(--color-black);
    color: white;
}

a.market-item:hover .market-icon {
    background: var(--color-primary);
    color: white;
}

a.service-card:hover::before {
    height: 100%;
}

.market-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-black);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.market-text h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.market-text p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Trusted By Section */
.trusted {
    padding: 5rem 0;
    background: var(--color-black);
    color: white;
}

.trusted-label {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 2rem;
}

.cert-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.cert-badge:hover {
    background: rgba(0, 200, 83, 0.1);
    border-color: var(--color-primary);
}

.cert-badge svg {
    color: var(--color-primary);
}

.cert-badge span {
    font-weight: 600;
    font-size: 0.95rem;
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: white;
    text-align: center;
}

.cta-box {
    background: var(--color-primary-light);
    padding: 5rem 3rem;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--color-primary-dark) 0%, transparent 70%);
    pointer-events: none;
}

.cta h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta p {
    color: var(--color-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background: var(--color-black);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.footer-logo::after {
    content: '';
    position: absolute;
    top: 0;
    right: -10px;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

.footer-links h5 {
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    margin-top: 3rem;
}

.footer-bottom p {
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        text-align: center;
    }

    .hero-tagline {
        margin-left: auto;
        margin-right: auto;
    }

    .btn-secondary-hst {
        margin-left: 0;
        margin-top: 1rem;
    }

    .stats-bar {
        text-align: center;
    }

    .stat-item {
        text-align: center;
        margin-bottom: 2rem;
    }

    .animated-logo {
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
    }

    .animated-logo.in-navbar {
        left: 12px;
        top: 1.5rem;
        transform: translateX(0) translateY(0);
    }
}