/* ========================================
   APEX ACCURACY ESTIMATING - MAIN STYLES
   Modern, High-End Web Application
   ======================================== */

/* CSS Variables for Colors */
:root {
    --primary-blue: #0056b3;
    --primary-black: #1a1a1a;
    --primary-white: #ffffff;
    --accent-light: #4a9eff;
    --accent-dark: #003d7a;
    --gray-light: #f5f5f5;
    --gray-medium: #e0e0e0;
    --gray-dark: #333333;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset and Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--primary-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================
   LOADING SCREEN
   ======================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--primary-blue) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-container {
    text-align: center;
}

.logo-wrapper {
    position: relative;
    width: 200px;
    height: 150px;
    margin: 0 auto 2rem;
}

.loading-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 1rem;
}

.progress-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-white), var(--accent-light));
    border-radius: 2px;
    animation: progressFill 2.5s ease-out forwards;
}

@keyframes progressFill {
    0% { width: 0; }
    100% { width: 100%; }
}

.loading-text-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
}

.loading-text-shiny {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-white);
    background: linear-gradient(90deg, #fff, #4a9eff, #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 2s linear infinite;
    letter-spacing: 2px;
}

@keyframes shine {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.loading-dots {
    font-size: 2rem;
    color: var(--primary-white);
    animation: dotBounce 1s ease-in-out infinite;
}

.loading-dots:nth-child(2) { animation-delay: 0.2s; }
.loading-dots:nth-child(3) { animation-delay: 0.4s; }
.loading-dots:nth-child(4) { animation-delay: 0.6s; }

@keyframes dotBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ========================================
   ANIMATED BACKGROUND CANVAS
   ======================================== */
.background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.05;
}

/* ========================================
   NAVIGATION - Pill Nav Style
   ======================================== */
.pill-nav {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    padding: 0.75rem 1.5rem;
    transition: var(--transition-medium);
    border: 1px solid rgba(0,86,179,0.1);
}

.pill-nav.scrolled {
    top: 1rem;
    padding: 0.5rem 1.25rem;
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-logo img {
    height: 40px;
    transition: var(--transition-fast);
}

.nav-logo img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-dark));
    border-radius: 25px;
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: -1;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-white);
}

.nav-link:hover::before,
.nav-link.active::before {
    transform: scale(1);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 3px;
    transition: var(--transition-fast);
}

/* ========================================
   HERO SECTION WITH PREMIUM BACKGROUND
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(0, 86, 179, 0.85) 0%, rgba(26, 26, 26, 0.9) 50%, rgba(0, 61, 122, 0.85) 100%),
        url('images/Apex Accuracy Estimating - Commercial Office Complex.avif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    padding: 8rem 2rem 4rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 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-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: patternMove 20s linear infinite;
    z-index: 1;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-particles::before,
.hero-particles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(74, 144, 255, 0.1));
    animation: particleFloat 15s ease-in-out infinite;
}

.hero-particles::before {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.hero-particles::after {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation-delay: 7.5s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-50px) translateX(30px) scale(1.1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-100px) translateX(-20px) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-50px) translateX(-40px) scale(1.05);
        opacity: 0.5;
    }
}

@keyframes patternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.hero-content {
    text-align: center;
    color: var(--primary-white);
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition-medium);
}

.hero-badge:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.1);
}

.hero-badge i {
    color: #ffd700;
    animation: badgeGlow 2s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-align: center;
    position: relative;
}

.hero-title span {
    display: block;
    text-align: center;
    line-height: 1.1;
}

/* Split Text Animation */
.split-text {
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.split-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-light), var(--primary-white), var(--accent-light));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: splitShine 3s ease-in-out infinite;
}

@keyframes splitShine {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

/* Blur Text Animation */
.blur-text {
    display: inline-block;
    animation: blurIn 1.5s ease-out forwards;
    filter: blur(0);
}

@keyframes blurIn {
    0% { filter: blur(10px); opacity: 0; }
    100% { filter: blur(0); opacity: 1; }
}

/* Type Text Animation */
.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    opacity: 0.9;
    margin-bottom: 2rem;
    overflow: hidden;
    border-right: 3px solid var(--primary-white);
    white-space: nowrap;
    animation: typing 3s steps(40) forwards, blink 0.75s step-end infinite;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Enhanced Fade In Up Animation */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUpEnhanced 0.8s ease-out forwards;
}

@keyframes fadeInUpEnhanced {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-medium);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-white);
    color: var(--primary-blue);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,86,179,0.1), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.3);
}

/* Pulse Animation for Primary Button */
.pulse-animation {
    animation: buttonPulse 2s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255,255,255,0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255,255,255,0);
    }
}

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

.btn-secondary:hover {
    background: var(--primary-white);
    color: var(--primary-blue);
}

/* Hero Stats Enhanced */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-card {
    text-align: center;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition-medium);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-light);
    display: block;
    margin-bottom: 0.5rem;
    position: relative;
}

.stat-number.counter {
    animation: counterGlow 2s ease-in-out infinite;
}

@keyframes counterGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(74, 144, 255, 0.5); }
    50% { text-shadow: 0 0 20px rgba(74, 144, 255, 0.8), 0 0 30px rgba(74, 144, 255, 0.4); }
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Enhanced Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-white);
    opacity: 0.7;
    transition: var(--transition-medium);
}

.hero-scroll-indicator:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--primary-white);
    border-radius: 15px;
    position: relative;
    animation: mouseScroll 2s ease-in-out infinite;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-white);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes mouseScroll {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

@keyframes scrollWheel {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 0; }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ========================================
   SECTION STYLES
   ======================================== */
/* Section Fade - Make visible by default */
.section-fade {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-dark));
    color: var(--primary-white);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.animated-tag {
    animation: tagPulse 2s ease-in-out infinite;
}

@keyframes tagPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--primary-black);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    padding: 8rem 0;
    background: var(--gray-light);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Magic Bento Grid */
.magic-bento {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--primary-white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-medium);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-dark));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-white);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-black);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Tilted Card Effect */
.tilted-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.tilted-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   SERVICES SECTION WITH BACKGROUND IMAGE
   ======================================== */
.services {
    position: relative;
    padding: 10rem 0;
    background: url('images/Apex Accuracy Estimating - Our Services.avif') center/cover no-repeat;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.25), rgba(0, 50, 120, 0.25));
    z-index: 1;
}

.services .container {
    position: relative;
    z-index: 2;
}

.services .section-title,
.services .section-subtitle {
    color: var(--primary-white);
}

.services .section-tag {
    background: rgba(255,255,255,0.2);
    color: var(--primary-white);
}

.service-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Animated List */
.animated-list {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.animated-list .service-card {
    opacity: 0;
    animation: slideInUp 0.6s ease forwards;
}

.animated-list .service-card:nth-child(1) { animation-delay: 0.1s; }
.animated-list .service-card:nth-child(2) { animation-delay: 0.2s; }
.animated-list .service-card:nth-child(3) { animation-delay: 0.3s; }
.animated-list .service-card:nth-child(4) { animation-delay: 0.4s; }
.animated-list .service-card:nth-child(5) { animation-delay: 0.5s; }
.animated-list .service-card:nth-child(6) { animation-delay: 0.6s; }

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

@keyframes fadeInUp {
    to {
        opacity: 1;
    }
}

.service-card {
    background: var(--gray-light);
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

.service-image {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

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

.service-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.service-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 1rem;
}

/* ========================================
   WHY CHOOSE US SECTION
   ======================================== */
.why-us {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--primary-black), var(--primary-blue));
    color: var(--primary-white);
}

.why-us .section-title {
    color: var(--primary-white);
}

.features-scroll-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition-medium);
}

.feature-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px);
}

.feature-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-light);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.feature-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-content p {
    opacity: 0.8;
    line-height: 1.8;
}

/* Animated Content */
.animated-content {
    opacity: 0;
    animation: fadeInContent 0.8s ease forwards;
}

.animated-content:nth-child(1) { animation-delay: 0.1s; }
.animated-content:nth-child(2) { animation-delay: 0.2s; }
.animated-content:nth-child(3) { animation-delay: 0.3s; }
.animated-content:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   PORTFOLIO SECTION ENHANCED
   ======================================== */
.portfolio-overview {
    margin-bottom: 4rem;
}

.overview-card {
    background: var(--primary-white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-medium);
    text-align: center;
}

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

.overview-card .card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: var(--primary-white);
}

.overview-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-black);
}

.overview-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Client Types Section */
.clients-section {
    margin-bottom: 4rem;
    text-align: center;
}

.clients-title {
    font-size: 2rem;
    color: var(--primary-black);
    margin-bottom: 2rem;
    font-weight: 700;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.client-card {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-dark));
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition-medium);
    color: var(--primary-white);
    box-shadow: var(--shadow-md);
}

.client-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.client-card i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.client-card span {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
}

/* Featured Projects */
.featured-projects {
    margin-bottom: 2rem;
}

.projects-title {
    font-size: 2rem;
    color: var(--primary-black);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

.projects-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--primary-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-medium);
}

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

.project-image {
    height: 220px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-black);
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-location {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-dark));
    color: var(--primary-white);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Responsive Portfolio Styles */
@media (max-width: 768px) {
    .portfolio-overview {
        margin-bottom: 3rem;
    }

    .overview-card {
        padding: 2rem;
    }

    .overview-card .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .client-card {
        padding: 1.5rem 1rem;
    }

    .client-card i {
        font-size: 1.5rem;
    }

    .projects-showcase {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-info {
        padding: 1.5rem;
    }
}

/* ========================================
   SAMPLES PAGE STYLES
   ======================================== */
.samples-hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--primary-blue) 50%, var(--accent-dark) 100%);
    color: var(--primary-white);
    text-align: center;
}

.samples-hero .section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
}

.samples-hero .section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* Sample Categories */
.samples-section {
    padding: 6rem 0;
    background: var(--gray-light);
}

.samples-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--primary-white);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition-medium);
}

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

.category-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: var(--primary-white);
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-black);
}

.category-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.category-link:hover {
    color: var(--accent-dark);
    gap: 0.75rem;
}

/* Sample Category Sections */
.sample-category {
    padding: 6rem 0;
}

.sample-category:nth-child(even) {
    background: var(--gray-light);
}

.category-title {
    font-size: 2.5rem;
    color: var(--primary-black);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

.samples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.sample-item {
    background: var(--primary-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-medium);
}

.sample-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.sample-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--gray-light);
}

.sample-type {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-dark));
    color: var(--primary-white);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.sample-header h4 {
    font-size: 1.25rem;
    color: var(--primary-black);
    margin: 0;
    font-weight: 600;
}

.sample-content {
    padding: 1.5rem 2rem;
}

.sample-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-tag {
    background: rgba(74, 144, 255, 0.1);
    color: var(--primary-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.sample-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.sample-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-light);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.sample-preview {
    padding: 1.5rem 2rem 2rem;
    border-top: 1px solid var(--gray-light);
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem;
    background: var(--gray-light);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.preview-placeholder i {
    font-size: 2rem;
    color: var(--primary-blue);
}

.preview-placeholder span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.sample-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-dark));
    color: var(--primary-white);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
    width: 100%;
    justify-content: center;
}

.sample-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 255, 0.3);
}

/* Samples CTA Section */
.samples-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--primary-blue) 50%, var(--accent-dark) 100%);
    color: var(--primary-white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Samples Styles */
@media (max-width: 768px) {
    .samples-categories {
        grid-template-columns: 1fr;
    }

    .samples-grid {
        grid-template-columns: 1fr;
    }

    .category-title {
        font-size: 2rem;
    }

    .sample-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .category-card,
    .sample-item {
        margin: 0 1rem;
    }
}

.logo-track {
    display: flex;
    animation: scrollLoop 20s linear infinite;
    width: max-content;
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 3rem;
    color: var(--primary-white);
    font-size: 1.25rem;
    font-weight: 600;
    white-space: nowrap;
}

.logo-item i {
    color: var(--accent-light);
}

@keyframes scrollLoop {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Duplicate logo items for seamless loop */
.logo-track {
    display: flex;
    animation: scrollLoop 30s linear infinite;
    width: max-content;
}

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

/* ========================================
   CONTACT SECTION WITH BACKGROUND IMAGE
   ======================================== */
.contact {
    position: relative;
    padding: 10rem 0;
    background: url('images/Apex Accuracy Estimating - Contact us.avif') center/cover no-repeat;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.25), rgba(0, 50, 120, 0.25));
    z-index: 1;
}

.contact .container {
    position: relative;
    z-index: 2;
}

.contact .section-title,
.contact .section-subtitle {
    color: var(--primary-white);
}

.contact .section-tag {
    background: rgba(255,255,255,0.2);
    color: var(--primary-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition-medium);
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
}

.form-title {
    font-size: 1.75rem;
    color: var(--primary-black);
    margin-bottom: 0.75rem;
    text-align: center;
}

.form-description {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.form-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-note i {
    color: var(--primary-blue);
}

.contact-detail {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    line-height: 1.6;
}

.service-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 1rem 0 1.5rem;
}

.section-subtitle {
    max-width: 800px;
    margin: 1rem auto 0;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--gray-medium);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
    background: var(--primary-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0,86,179,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-dark));
    color: var(--primary-white);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-medium);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,86,179,0.3);
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-brand p {
    opacity: 0.7;
    line-height: 1.8;
}

.footer-links h4,
.footer-services h4,
.footer-social h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--primary-white);
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

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

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

.footer-links a:hover,
.footer-services a:hover {
    color: var(--accent-light);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-white);
    text-decoration: none;
    transition: var(--transition-medium);
}

.social-links a:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    opacity: 0.7;
}

.footer-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
}

.footer-location a {
    color: var(--primary-white);
    text-decoration: none;
}

/* ========================================
   CLICK SPARK EFFECT
   ======================================== */
.spark {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--accent-light), transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: sparkExpand 0.6s ease-out forwards;
}

@keyframes sparkExpand {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(4) rotate(180deg);
        opacity: 0;
    }
}

/* ========================================
   WHATSAPP FLOATING BUTTON
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-white);
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition-medium);
    z-index: 999;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: var(--primary-black);
    color: var(--primary-white);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .pill-nav {
        top: 1rem;
        padding: 0.5rem 1rem;
        width: calc(100% - 2rem);
        max-width: none;
    }
    
    .nav-container {
        justify-content: space-between;
    }
    
    .nav-menu {
        position: fixed;
        top: 90px;
        left: 50%;
        transform: translateX(-50%) scale(0);
        flex-direction: column;
        background: var(--primary-white);
        padding: 2rem;
        border-radius: 20px;
        box-shadow: var(--shadow-lg);
        opacity: 0;
        transition: all 0.3s ease;
        width: calc(100% - 2rem);
        max-width: 400px;
    }
    
    .nav-menu.active {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
    
    .nav-menu .nav-link {
        text-align: center;
        width: 100%;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-title span {
        font-size: inherit;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 6rem 1rem 3rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .about-card,
    .service-card,
    .feature-card,
    .info-card {
        padding: 1.5rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

/* ========================================
   STATES SECTION - 50 STATES NAVIGATION
   ======================================== */
.states-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--primary-white) 100%);
}

.states-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.states-column {
    background: var(--primary-white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.states-image {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.states-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.states-image:hover img {
    transform: scale(1.05);
}

.states-column h3 {
    font-size: 1.25rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.states-column h3 i {
    color: var(--primary-blue);
}

.states-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.states-list li {
    margin-bottom: 0;
}

.states-list li a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
}

.states-list li a:hover {
    background: linear-gradient(90deg, rgba(0, 86, 179, 0.1), transparent);
    color: var(--primary-blue);
    border-left-color: var(--primary-blue);
    transform: translateX(5px);
}

/* Responsive States Section */
@media (max-width: 768px) {
    .states-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .states-column {
        padding: 1.5rem;
    }
    
    .states-image {
        height: 150px;
    }
    
    .states-list {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .states-list li a {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .states-list {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   STATES PAGE SPECIFIC STYLES
   ======================================== */
.states-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--primary-blue) 50%, var(--accent-dark) 100%);
    position: relative;
    overflow: hidden;
    padding: 8rem 2rem 4rem;
    text-align: center;
}

.states-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 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-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

.states-hero-content {
    position: relative;
    z-index: 2;
    color: var(--primary-white);
    max-width: 800px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-tag i {
    color: #ffd700;
}

.states-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.states-hero h1 span {
    color: var(--accent-light);
}

.states-hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* States Stats Section */
.states-stats {
    padding: 4rem 0;
    background: var(--primary-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    background: var(--gray-light);
    border-radius: 15px;
    transition: var(--transition-medium);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-item .stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-blue);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-item .stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* States Featured Image */
.states-featured-image {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 3rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.states-featured-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.states-featured-image:hover img {
    transform: scale(1.02);
}

/* Responsive Featured Image */
@media (max-width: 768px) {
    .states-featured-image {
        margin-bottom: 2rem;
        border-radius: 15px;
    }
    
    .states-featured-image img {
        max-height: 250px;
    }
}

/* State-Specific SEO Content Section */
.state-seo-content {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
}

.state-seo-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.state-seo-wrapper h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--primary-black);
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.state-seo-wrapper h2 i {
    color: var(--primary-blue);
    font-size: 2rem;
}

.state-seo-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.state-seo-intro strong {
    color: var(--primary-blue);
    font-weight: 600;
}

.state-seo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.state-seo-card {
    background: var(--primary-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-left: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.state-seo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.state-seo-card h3 {
    font-size: 1.2rem;
    color: var(--primary-black);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.state-seo-card h3 i {
    color: var(--primary-blue);
    font-size: 1.25rem;
}

.state-seo-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.state-seo-card strong {
    color: var(--primary-blue);
    font-weight: 600;
}

.state-seo-closing {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-dark));
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.state-seo-closing strong {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Responsive State SEO */
@media (max-width: 1024px) {
    .state-seo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .state-seo-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .state-seo-card {
        padding: 1.5rem;
    }
    
    .state-seo-closing {
        padding: 1.5rem;
        font-size: 1rem;
    }
}

/* SEO Content Section */
.seo-content-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-white) 0%, var(--gray-light) 100%);
}

.seo-content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.seo-content-item {
    background: var(--primary-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-blue);
    transition: var(--transition-medium);
}

.seo-content-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.seo-content-item h3 {
    font-size: 1.25rem;
    color: var(--primary-black);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.seo-content-item h3 i {
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.seo-content-item p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

.seo-content-item strong {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Responsive SEO Content */
@media (max-width: 768px) {
    .seo-content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .seo-content-item {
        padding: 1.5rem;
    }
}
.services-overview {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--primary-white) 100%);
}

.services-overview .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-dark));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-white);
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background: var(--primary-white);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-blue);
}

.faq-item h3 {
    font-size: 1.25rem;
    color: var(--primary-black);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-item h3 i {
    color: var(--primary-blue);
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-dark) 100%);
    color: var(--primary-white);
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive States Page */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .states-hero {
        min-height: 60vh;
        padding: 6rem 1.5rem 3rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .stat-item .stat-number {
        font-size: 2rem;
    }
    
    .states-grid-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* SEO States Section */
.seo-states-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--primary-white) 100%);
}

.seo-states-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.seo-states-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--primary-black);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.seo-states-content h2 i {
    color: var(--primary-blue);
}

.seo-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.states-all-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: left;
    margin-bottom: 3rem;
}

.state-group {
    background: var(--primary-white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--primary-blue);
}

.state-group h4 {
    font-size: 1.1rem;
    color: var(--primary-black);
    margin-bottom: 1rem;
    font-weight: 600;
}

.state-group p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.state-group a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.state-group a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

.seo-outro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

/* Responsive SEO States */
@media (max-width: 768px) {
    .states-all-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .state-group {
        padding: 1.25rem;
    }
}

/* Logo Loop Section - Black Background */
.logo-loop-section {
    background: #000000;
    padding: 2rem 0;
    overflow: hidden;
    position: relative;
}

.logo-track {
    display: flex;
    animation: logoScroll 30s linear infinite;
    width: max-content;
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 2rem;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
}

.logo-item i {
    color: var(--primary-blue);
    font-size: 1.2rem;
}

@keyframes logoScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Loading Screen for Samples Page */
.samples-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--primary-blue) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.samples-loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.samples-loading .loading-logo {
    width: 150px;
    height: auto;
    animation: logoPulse 2s ease-in-out infinite;
}
.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-dark));
    color: var(--primary-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

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

.scroll-top:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .scroll-top {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}
