/* Critical Reset Styles - Load Immediately */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
    background: #FFFFFF;
    color: #0F2A2D;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent content overflow before Tailwind loads */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Basic flex and grid support */
.flex { display: flex; }
.hidden { display: none; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }
.w-full { width: 100%; }
.h-full { height: 100%; }

/* Brand Color Tokens */
:root {
    --brand-orange: #EF5A22;
    --brand-dark: #0F2A2D;
    --brand-dark-80: #1A3B3F;
    --brand-dark-60: #335B60;
    --brand-light: #F9F9F9;
    --brand-white: #FFFFFF;
}

.font-display {
    font-family: 'Space Grotesk', sans-serif;
}

.text-gradient {
    background: linear-gradient(to right, #EF5A22, #FF8C5A);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-futuristic-dark {
    background-color: var(--brand-dark);
}

.bg-brand-orange {
    background-color: var(--brand-orange);
}

.bg-brand-dark {
    background-color: var(--brand-dark);
}

.bg-brand-dark-80 {
    background-color: var(--brand-dark-80);
}

.bg-brand-light {
    background-color: var(--brand-light);
}

.text-brand-orange {
    color: var(--brand-orange);
}

.text-brand-dark {
    color: var(--brand-dark);
}

.border-brand-orange {
    border-color: var(--brand-orange);
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-pulse-glow {
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0.5;
    }
}

/* New animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}



/* Background animations */
.animated-bg {
    position: relative;
    overflow: hidden;
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: rotate-bg 20s linear infinite;
}

.animated-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    animation: pulse-bg 8s ease-in-out infinite;
}

@keyframes rotate-bg {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse-bg {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0.5;
    }
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    background: rgba(239, 90, 34, 0.1);
    border-radius: 50%;
    animation: float-particle 15s infinite linear;
}

@keyframes float-particle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}



/* Mobile Header Styles */
.mobile-book-call-btn {
    flex-shrink: 0;
}

.mobile-book-call-btn:hover {
    transform: scale(1.05);
}

.mobile-menu-toggle {
    flex-shrink: 0;
}

/* Hamburger Menu Animation */
.hamburger {
    width: 28px;
    height: 20px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #0F2A2D;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hamburger.active span {
    background: #0F2A2D;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 70%;
    height: 100vh;
    max-width: 320px;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    visibility: visible;
    opacity: 1;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    background: white;
}

.mobile-menu-logo img {
    height: 32px;
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f3f4f6;
    color: #0F2A2D;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    background: #e5e7eb;
    transform: rotate(90deg);
}

.mobile-menu-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
    display: flex !important;
    flex-direction: column !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 0;
}

.mobile-nav-link {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: #374151 !important;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100%;
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover {
    background: #f9fafb;
    color: #0F2A2D;
    border-left-color: #EF5A22;
}

.mobile-nav-link:hover i {
    color: #EF5A22;
}

.mobile-nav-link.active {
    background: rgba(239, 90, 34, 0.05);
    color: #EF5A22;
    border-left-color: #EF5A22;
    font-weight: 600;
}

.mobile-nav-link.active i {
    color: #EF5A22;
}

.mobile-menu-footer {
    padding: 1rem 1.25rem 5rem 1.25rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    flex-shrink: 0;
}

.mobile-menu-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: #EF5A22;
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(239, 90, 34, 0.2);
}

.mobile-menu-cta:hover {
    background: #d94a1a;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(239, 90, 34, 0.3);
}

.mobile-menu-cta i {
    font-size: 0.875rem;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Logo Styling */
nav a img {
    filter: drop-shadow(0 2px 4px rgba(15, 42, 45, 0.1));
    transition: all 0.3s ease;
}

nav a:hover img {
    filter: drop-shadow(0 4px 8px rgba(239, 90, 34, 0.2));
}

/* Navigation Link Improvements */
nav a[href]:not([class*="bg-brand-orange"]) {
    position: relative;
}

/* Sticky Header Enhancement */
nav {
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(15, 42, 45, 0.08);
}

/* Active Navigation State - Desktop */
nav .nav-link.active {
    color: var(--brand-orange);
}

nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    height: 3px;
    background: var(--brand-orange);
    border-radius: 999px;
    opacity: 1;
    z-index: 1;
}

/* Keep hover effects on active links too */
nav .nav-link.active:hover::after {
    width: 75%;
    opacity: 1;
}

nav .nav-link.active .bg-brand-orange {
    opacity: 1;
}

/* Mobile Navigation Active State */
.mobile-nav-link.active {
    color: var(--brand-orange);
    background: rgba(239, 90, 34, 0.1);
}

.mobile-nav-link.active::after {
    content: '';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--brand-orange);
    border-radius: 50%;
    z-index: 1;
}

/* CTA Button Icon Animation */
nav a[class*="bg-brand-orange"] i {
    flex-shrink: 0;
}

/* Navigation Icons */
nav .nav-link i {
    font-size: 0.875rem;
}

.mobile-nav-link i {
    width: 1.25rem;
    text-align: center;
}

/* Typography Scale */
h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 600;
    line-height: 1.3;
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
    line-height: 1.4;
}

h5 {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 600;
    line-height: 1.4;
}

h6 {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 600;
    line-height: 1.5;
}

body {
    color: var(--brand-dark);
    background-color: var(--brand-white);
}



