/* -------------------------------------
   Modern Design System
------------------------------------- */
:root {
    /* Sophisticated Color Palette */
    --clr-bg: #f8fafc;
    --clr-surface: #ffffff;
    --clr-navy: #0a1128; /* Deep rich navy */
    --clr-primary: #1c4ed8; /* Vibrant brand blue */
    --clr-primary-light: #2563eb;
    --clr-accent: #3b82f6;
    
    --clr-text-main: #1e293b;
    --clr-text-muted: #64748b;
    --clr-border: #e2e8f0;
    
    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout & Animation */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 40px rgba(10, 17, 40, 0.08);
}

/* -------------------------------------
   Reset & Base
------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    color: var(--clr-text-main);
    background-color: var(--clr-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Decorative Background Grid */
.bg-grid {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(100, 116, 139, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(100, 116, 139, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--clr-navy);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; object-fit: cover; }

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

/* -------------------------------------
   Buttons & Links
------------------------------------- */
.btn-solid {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background-color: var(--clr-primary);
    color: white;
    padding: 16px 32px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-solid::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--clr-navy);
    transform: scaleX(0); transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
}

.btn-solid:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-solid i { transition: transform 0.3s ease; }
.btn-solid:hover i { transform: translateX(5px); }

.btn-primary-outline {
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--clr-border);
    padding: 12px 24px;
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--clr-navy);
    transition: var(--transition-fast);
}

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

.btn-text {
    display: inline-flex; align-items: center; gap: 12px;
    font-weight: 500;
    font-family: var(--font-display);
    color: var(--clr-navy);
    transition: var(--transition-fast);
}

.icon-circle {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--clr-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--clr-primary);
    transition: var(--transition-fast);
}

.btn-text:hover .icon-circle {
    background-color: var(--clr-primary);
    color: white; border-color: var(--clr-primary);
}

/* -------------------------------------
   Header
------------------------------------- */
.header {
    position: fixed; top: 0; left: 0; width: 100%;
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 100;
    transition: var(--transition-smooth);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    padding: 5px 0; border-bottom: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 4px 30px rgba(0,0,0,0.03);
}

.header .btn-primary-outline { color: white; border-color: rgba(255,255,255,0.3); }
.header .btn-primary-outline:hover { background-color: white; color: var(--clr-navy); border-color: white; }

.header.scrolled .btn-primary-outline { color: var(--clr-navy); border-color: var(--clr-border); background-color: transparent; }
.header.scrolled .btn-primary-outline:hover { background-color: var(--clr-navy); color: white; border-color: var(--clr-navy); }

.header-container {
    display: flex; justify-content: space-between; align-items: center; height: 90px;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
    width: 40px; height: 40px;
    display: block;
}
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: white; transition: var(--transition-smooth); }
.header.scrolled .logo-text { color: var(--clr-navy); }

.nav-list { display: flex; gap: 40px; }
.nav-link {
    font-family: var(--font-display); font-weight: 500; font-size: 0.95rem;
    color: rgba(255,255,255,0.8); transition: var(--transition-fast);
}
.nav-link:hover { color: white; }
.header.scrolled .nav-link { color: var(--clr-text-muted); }
.header.scrolled .nav-link:hover { color: var(--clr-navy); }

.header-action { display: flex; align-items: center; gap: 20px; }

/* Mobile Menu Button */
.mobile-toggle {
    display: none; background: none; border: none; width: 30px; height: 20px;
    position: relative; cursor: pointer; z-index: 101;
}
.mobile-toggle .line {
    position: absolute; width: 100%; height: 2px; background-color: white;
    left: 0; transition: var(--transition-smooth);
}
.header.scrolled .mobile-toggle .line { background-color: var(--clr-navy); }
.mobile-toggle .line:nth-child(1) { top: 0; }
.mobile-toggle .line:nth-child(2) { top: 9px; }
.mobile-toggle .line:nth-child(3) { top: 18px; }

.mobile-toggle.active .line:nth-child(1) { transform: rotate(45deg); top: 9px; }
.mobile-toggle.active .line:nth-child(2) { opacity: 0; }
.mobile-toggle.active .line:nth-child(3) { transform: rotate(-45deg); top: 9px; }

/* -------------------------------------
   Hero Section
------------------------------------- */
.hero {
    padding-top: 100px;
    position: relative; overflow: hidden;
}

/* Ambient Glowing Orbs */
.hero::before {
    content: ''; position: absolute; top: 10%; left: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%; filter: blur(60px); z-index: -1;
    animation: floatGlow 15s infinite alternate ease-in-out;
}
.hero::after {
    content: ''; position: absolute; bottom: -10%; right: -5%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%; filter: blur(60px); z-index: -1;
    animation: floatGlow 12s infinite alternate-reverse ease-in-out;
}
@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, -60px) scale(1.1); }
}

.hero-layout {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
    padding-bottom: 80px;
}



.hero-title { font-size: clamp(3rem, 5vw, 4.5rem); margin-bottom: 30px; }
.text-highlight { 
    background: linear-gradient(135deg, var(--clr-primary) 0%, #3b82f6 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.15rem; color: var(--clr-text-muted);
    max-width: 500px; margin-bottom: 40px;
}

.hero-cta { display: flex; align-items: center; gap: 30px; }

.hero-visual { position: relative; padding-right: 20px; }
.main-img {
    position: relative; height: min(55vh, 520px); min-height: 380px; width: 100%; overflow: hidden;
    /* Irregular shape instead of standard box */
    clip-path: polygon(10% 0, 100% 0%, 90% 100%, 0% 100%);
}
.main-img img { width: 100%; height: 100%; transform: scale(1.05); }

.floating-card {
    position: absolute; bottom: 60px; left: -30px;
    background-color: white; padding: 24px;
    display: flex; align-items: center; gap: 16px;
    box-shadow: var(--shadow-lg); z-index: 10;
}
.fc-icon {
    width: 50px; height: 50px; background-color: var(--clr-navy); color: white;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.fc-text h4 { font-size: 1rem; margin-bottom: 2px; }
.fc-text p { font-size: 0.85rem; color: var(--clr-text-muted); margin: 0; }

/* -------------------------------------
   Metrics / Trust Section
------------------------------------- */
.metrics-section {
    padding: 80px 0; border-top: 1px solid var(--clr-border); border-bottom: 1px solid var(--clr-border);
    background-color: white;
}
.metrics-container {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center;
}
.metric-number { font-size: 3.5rem; font-weight: 700; margin-bottom: 5px; }
.metric-number .accent { color: var(--clr-primary); font-size: 2.5rem; }
.metric-label { font-family: var(--font-display); font-weight: 500; color: var(--clr-text-muted); text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; }

/* -------------------------------------
   About / Expertise
------------------------------------- */
.about-section { padding: 120px 0; overflow: hidden; }
.about-layout {
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}

.about-visual { position: relative; }
.watermark {
    position: absolute; top: -10%; left: -15%;
    font-family: var(--font-display); font-size: 15rem; font-weight: 700;
    color: rgba(0,0,0,0.02); z-index: -1; pointer-events: none;
}
.img-offset-1 { position: relative; z-index: 2; height: 500px; box-shadow: var(--shadow-lg); }
.img-offset-1 img { width: 100%; height: 100%; }
.color-block {
    position: absolute; top: -30px; right: -30px; width: 60%; height: 100%;
    background-color: var(--clr-navy); z-index: 1;
}

.section-title { font-size: clamp(2.5rem, 4vw, 3.5rem); margin-bottom: 30px; }
.lead-text { font-size: 1.25rem; color: var(--clr-navy); font-weight: 500; margin-bottom: 20px; }
.body-text { color: var(--clr-text-muted); margin-bottom: 40px; }

.feature-list li {
    display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
    font-family: var(--font-display); font-weight: 500; color: var(--clr-navy);
}
.feature-icon {
    width: 30px; height: 30px; background-color: rgba(28, 78, 216, 0.1); color: var(--clr-primary);
    display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 0.8rem;
}

/* -------------------------------------
   Services Section (Elevated Cards)
------------------------------------- */
.services-section { padding: 120px 0; background-color: white; }
.section-header { margin-bottom: 80px; max-width: 600px; }

.services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}

.service-card {
    padding: 50px 40px; background-color: var(--clr-bg);
    position: relative; display: flex; flex-direction: column;
    transition: var(--transition-smooth); border: 1px solid var(--clr-border);
}
.service-card:hover { background-color: white; box-shadow: var(--shadow-lg); transform: translateY(-10px); }

.service-number { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--clr-primary); margin-bottom: 40px; }
.service-content { flex-grow: 1; margin-bottom: 40px; }
.service-content h3 { font-size: 1.5rem; margin-bottom: 15px; }
.service-content p { color: var(--clr-text-muted); font-size: 0.95rem; }

.service-link-wrap { display: flex; align-items: center; gap: 20px; }
.service-link-wrap .line { height: 1px; flex-grow: 1; background-color: var(--clr-border); transition: var(--transition-fast); }
.explore-link { width: 40px; height: 40px; border: 1px solid var(--clr-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition-fast); }
.service-card:hover .service-link-wrap .line { background-color: var(--clr-navy); }
.service-card:hover .explore-link { background-color: var(--clr-navy); color: white; border-color: var(--clr-navy); }

/* Featured Image Card */
.service-card.featured { padding: 0; border: none; overflow: hidden; justify-content: flex-end; }
.service-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.service-bg img { width: 100%; height: 100%; transition: transform 1s ease; }
.service-bg .overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(10, 17, 40, 0.9), rgba(10, 17, 40, 0.2)); }
.service-card.featured:hover .service-bg img { transform: scale(1.1); }
.service-card.featured > *:not(.service-bg) { position: relative; z-index: 2; padding: 0 40px; }
.service-card.featured .service-number { margin-top: 50px; color: var(--clr-primary-light); }
.service-card.featured .service-link-wrap { padding-bottom: 50px; }
.text-light h3, .text-light p { color: white; }
.text-light p { color: rgba(255,255,255,0.7); }
.service-card.featured .explore-link { border-color: rgba(255,255,255,0.2); color: white; }
.service-card.featured .line { background-color: rgba(255,255,255,0.2); }
.service-card.featured:hover .explore-link { background-color: white; color: var(--clr-navy); }
.service-card.featured:hover .line { background-color: white; }

/* -------------------------------------
   Contact Section
------------------------------------- */
.contact-section { padding: 120px 0; background-color: var(--clr-navy); color: white; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }

.text-light { color: white; }
.text-light-muted { color: #94a3b8; }

.contact-blocks { margin-top: 50px; display: flex; flex-direction: column; gap: 30px; }
.c-block { display: flex; gap: 20px; }
.c-icon { width: 50px; height: 50px; border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: var(--clr-primary-light); font-size: 1.2rem; }
.c-block h5 { color: white; font-size: 1.1rem; margin-bottom: 5px; }
.c-block p { color: #94a3b8; font-size: 0.95rem; }

.contact-form-wrapper { background-color: white; padding: 50px; }
.modern-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.input-group { margin-bottom: 24px; display: flex; flex-direction: column; gap: 8px; }
.input-group label { font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; color: var(--clr-navy); text-transform: uppercase; letter-spacing: 0.5px; }
.input-group input, .input-group select, .input-group textarea {
    padding: 16px; border: 1px solid var(--clr-border); background-color: var(--clr-bg);
    font-family: var(--font-body); font-size: 1rem; color: var(--clr-text-main);
    transition: var(--transition-fast); outline: none;
}
.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    border-color: var(--clr-primary); background-color: white;
}
.w-full { width: 100%; }

/* -------------------------------------
   Footer
------------------------------------- */
.site-footer { padding: 60px 0; background-color: var(--clr-bg); border-top: 1px solid var(--clr-border); }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-brand .logo { filter: grayscale(100%); opacity: 0.7; }
.footer-legal p { font-size: 0.85rem; color: var(--clr-text-muted); text-align: right; }
.footer-legal span { font-weight: 600; color: var(--clr-navy); }

/* -------------------------------------
   Animations (JS Hooks)
------------------------------------- */
.reveal-up { opacity: 0; transform: translateY(40px); transition: 1s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: 1s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: 1s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-scale { opacity: 0; transform: scale(0.95); transition: 1s cubic-bezier(0.22, 1, 0.36, 1); }

.is-visible { opacity: 1; transform: translate(0) scale(1); }

/* -------------------------------------
   Media Queries
------------------------------------- */
@media (max-width: 1024px) {
    .hero-layout, .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 50px; }
    .hero-visual { padding-right: 0; margin-top: 40px; }
    .main-img { clip-path: none; height: 400px; }
    .floating-card { bottom: -20px; left: 20px; }
    
    .metrics-container { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    
    .img-offset-1 { height: 400px; }
    .color-block { right: 20px; width: 100%; top: 20px; }
    
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .service-card.featured { min-height: 400px; }
}

@media (max-width: 768px) {
    .header-action .btn-primary-outline { display: none; }
    .mobile-toggle { display: block; }
    
    .nav {
        position: fixed; top: 90px; left: 0; width: 100%; height: 0;
        background: rgba(10, 17, 40, 0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        overflow: hidden; transition: var(--transition-smooth);
        display: flex; align-items: center; justify-content: center;
    }
    .nav.active { height: calc(100vh - 90px); }
    .nav-list { flex-direction: column; text-align: center; gap: 40px; opacity: 0; transition: 0.3s; transform: translateY(20px); }
    .nav.active .nav-list { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
    .nav-link { font-size: 2rem; color: white; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; }
    .nav-link:hover { color: var(--clr-primary-light); }
    .dropdown-menu .nav-link { color: rgba(255,255,255,0.8); font-size: 1.2rem; }
    
    .hero-content { text-align: center; display: flex; flex-direction: column; align-items: center; }
    .hero-title { font-size: clamp(2.5rem, 8vw, 3.5rem); text-align: center; }
    .hero-subtitle { text-align: center; max-width: 100%; margin-bottom: 30px; }
    .hero-cta { flex-direction: column; align-items: center; width: 100%; gap: 15px; }
    .hero-cta .btn-solid, .hero-cta .btn-text { width: 100%; justify-content: center; padding: 18px 24px; }
    
    .services-grid { grid-template-columns: 1fr; }
    
    .modern-form .form-row { grid-template-columns: 1fr; }
    .contact-form-wrapper { padding: 30px 20px; }
    
    .footer-content { flex-direction: column; gap: 30px; text-align: center; }
    .footer-legal p { text-align: center; }
}
/* Inner Pages Specific Styles */
.page-header {
    padding: 180px 0 100px;
    background-color: var(--clr-navy);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px; z-index: 1;
}
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { color: white; font-size: clamp(3rem, 5vw, 4rem); margin-bottom: 20px; }
.page-header p { color: #94a3b8; font-size: 1.2rem; max-width: 600px; margin: 0 auto; }
.full-services-section { padding: 100px 0; }
.services-grid-large { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.service-icon-lrg { font-size: 2.5rem; color: var(--clr-primary); margin-bottom: 20px; }
.portfolio-section { padding: 100px 0; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }
.portfolio-card { background: white; border: 1px solid var(--clr-border); overflow: hidden; transition: var(--transition-smooth); }
.portfolio-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.p-img { height: 250px; overflow: hidden; }
.p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.portfolio-card:hover .p-img img { transform: scale(1.05); }
.p-content { padding: 30px; }
.p-category { display: inline-block; font-size: 0.85rem; color: var(--clr-primary); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.p-content h3 { font-size: 1.4rem; margin-bottom: 15px; }
.markets-section { padding: 100px 0; background-color: white; border-bottom: 1px solid var(--clr-border); }
.markets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 60px; }
.market-card {
    position: relative; overflow: hidden; border-radius: 24px;
    height: 550px; box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column; justify-content: flex-end;
    transition: var(--transition-smooth);
}
.market-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(10, 17, 40, 0.2); }
.market-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
    z-index: 1; transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.market-card:hover .market-bg { transform: scale(1.1); }
.market-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(10, 17, 40, 0.98) 0%, rgba(10, 17, 40, 0.7) 50%, rgba(10, 17, 40, 0.1) 100%);
    z-index: 2; transition: 0.5s;
}
.market-card:hover .market-overlay { background: linear-gradient(to top, rgba(10, 17, 40, 0.98) 0%, rgba(10, 17, 40, 0.85) 60%, rgba(10, 17, 40, 0.3) 100%); }
.market-content { position: relative; z-index: 3; padding: 40px; color: white; transform: translateY(20px); transition: 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.market-card:hover .market-content { transform: translateY(0); }

.market-card h3 { font-size: 1.8rem; margin-bottom: 15px; color: white; }
.market-card p { color: rgba(255, 255, 255, 0.85); margin-bottom: 25px; line-height: 1.6; }
.m-list { border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 20px; list-style: none; }
.m-list li { position: relative; padding-left: 30px; margin-bottom: 12px; font-size: 0.95rem; color: white; font-weight: 500; }
.m-list li::before { content: '\f058'; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; color: #60a5fa; font-size: 1.1rem; top: -1px; }
.urgency-cta { background-color: var(--clr-primary); color: white; padding: 80px 0; margin: 60px 24px; border-radius: 20px; position: relative; overflow: hidden; }
.urgency-cta h2 { color: white; margin-bottom: 20px; font-size: clamp(2rem, 4vw, 3rem); }
.urgency-cta p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 40px; }
.urgency-buttons { display: flex; justify-content: center; gap: 20px; }
@media (max-width: 768px) {
    .header-action .header-btn { display: none; }
    .markets-grid { grid-template-columns: 1fr; }
    .urgency-buttons { flex-direction: column; }
}
/* Dropdown Menu Styles */
.nav-list li { position: relative; }
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: 100%; left: 0; background-color: white; min-width: 280px;
    box-shadow: var(--shadow-lg); border-radius: 8px; padding: 10px 0;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: 0.3s ease; z-index: 1000;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li { margin-bottom: 0; }
.dropdown-menu .nav-link { display: block; padding: 10px 20px; font-size: 0.95rem; color: var(--clr-navy); border-bottom: 1px solid var(--clr-border); }
.dropdown-menu li:last-child .nav-link { border-bottom: none; }
.dropdown-menu .nav-link:hover { background-color: var(--clr-bg); color: var(--clr-primary); padding-left: 25px; }
.nav-link i.fa-chevron-down { font-size: 0.8rem; margin-left: 5px; transition: 0.3s ease; }
.dropdown:hover > .nav-link i.fa-chevron-down { transform: rotate(180deg); }

@media (max-width: 768px) {
    .dropdown-menu { position: relative; top: 0; left: 0; min-width: 100%; box-shadow: none; display: none; opacity: 1; visibility: visible; transform: none; background: transparent; padding-top: 10px;}
    .dropdown:hover .dropdown-menu { display: block; }
    .dropdown-menu .nav-link { color: rgba(255,255,255,0.8) !important; font-size: 1.2rem !important; border-bottom: 1px solid rgba(255,255,255,0.1); background: transparent; text-transform: none; letter-spacing: 0; padding: 12px 20px; }
    .dropdown-menu .nav-link:hover { color: var(--clr-primary-light) !important; background: rgba(255,255,255,0.05); padding-left: 25px; }
}

/* Individual Service Page Styles */
.service-detail-section { padding: 100px 0; background-color: white; }
.service-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.service-detail-img { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); position: relative;}
.service-detail-img img { width: 100%; height: auto; display: block; }
.service-detail-content h2 { font-size: 2.5rem; margin-bottom: 20px; color: var(--clr-navy); }
.service-detail-content p { color: var(--clr-text-muted); font-size: 1.1rem; margin-bottom: 20px; }
.service-detail-list { margin: 30px 0; }
.service-detail-list li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 15px; font-weight: 500; color: var(--clr-navy); }
.service-detail-list i { color: var(--clr-primary); margin-top: 5px; }
/* FAQ Section Styles */
.faq-section { padding: 100px 0; background-color: var(--clr-bg); }
.faq-grid { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.faq-item { background: white; border: 1px solid var(--clr-border); border-radius: 8px; overflow: hidden; transition: 0.3s ease; }
.faq-item summary { padding: 25px 30px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--clr-navy); cursor: pointer; display: flex; justify-content: space-between; align-items: center; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { color: var(--clr-primary); transition: 0.3s ease; }
.faq-item[open] summary i { transform: rotate(180deg); }
.faq-content { padding: 0 30px 30px; color: var(--clr-text-muted); line-height: 1.6; }
.faq-item[open] { border-color: var(--clr-primary); box-shadow: var(--shadow-sm); }
/* Blog Styles */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }
.blog-card { background: white; border: 1px solid var(--clr-border); overflow: hidden; transition: var(--transition-smooth); }
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.blog-thumb { height: 220px; overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-thumb img { transform: scale(1.05); }
.blog-body { padding: 30px; }
.blog-meta { display: flex; gap: 15px; font-size: 0.85rem; color: var(--clr-text-muted); margin-bottom: 15px; }
.blog-body h3 { font-size: 1.3rem; margin-bottom: 12px; line-height: 1.3; }
.blog-body h3 a { color: var(--clr-navy); transition: 0.2s; }
.blog-body h3 a:hover { color: var(--clr-primary); }
.blog-body > p { color: var(--clr-text-muted); font-size: 0.95rem; margin-bottom: 20px; }
.read-more { font-family: var(--font-display); font-weight: 600; color: var(--clr-primary); font-size: 0.95rem; display: inline-flex; align-items: center; gap: 8px; }
.read-more:hover { gap: 12px; }
.article-section { padding: 60px 0 100px; background: white; }
.article-container { max-width: 800px; margin: 0 auto; }
.article-container h2 { font-size: 1.8rem; margin: 40px 0 15px; }
.article-container h3 { font-size: 1.4rem; margin: 30px 0 12px; }
.article-container p { color: var(--clr-text-muted); font-size: 1.05rem; line-height: 1.8; margin-bottom: 20px; }
.article-container ul, .article-container ol { margin: 20px 0 20px 25px; color: var(--clr-text-muted); line-height: 1.8; }
.article-container li { margin-bottom: 10px; }
.article-container blockquote { border-left: 4px solid var(--clr-primary); padding: 20px 30px; background: var(--clr-bg); margin: 30px 0; font-style: italic; }
.article-hero { width: 100%; max-height: 450px; object-fit: cover; border-radius: 12px; margin-bottom: 40px; }
.article-cta { background: var(--clr-bg); border: 1px solid var(--clr-border); padding: 40px; text-align: center; border-radius: 12px; margin-top: 50px; }
.article-cta h3 { margin-bottom: 15px; }
.article-cta p { margin-bottom: 25px; }
.tag-pill { display: inline-block; padding: 4px 12px; background: rgba(28,78,216,0.08); color: var(--clr-primary); font-size: 0.8rem; font-weight: 600; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
/* Rich Footer */
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--clr-border); margin-bottom: 30px; }
.footer-tagline { color: var(--clr-text-muted); margin-top: 15px; max-width: 280px; font-size: 0.95rem; }
.footer-col h4 { font-family: var(--font-display); font-size: 1rem; color: var(--clr-navy); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--clr-text-muted); font-size: 0.9rem; transition: 0.2s; }
.footer-col a:hover { color: var(--clr-primary); padding-left: 5px; }
.footer-bottom p { font-size: 0.85rem; color: var(--clr-text-muted); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Additional Mobile Optimizations */
@media (max-width: 768px) {
    /* Fix crushed 2-column layouts on mobile */
    .hero-layout, .about-layout, .contact-layout, .service-detail-layout { grid-template-columns: 1fr !important; gap: 40px !important; text-align: center; }
    
    /* Hero Mobile Polish */
    .hero { padding-top: 120px; }
    .hero-title { font-size: 3.2rem; line-height: 1.1; margin-bottom: 25px; }
    .hero-title .text-highlight { filter: drop-shadow(0 0 25px rgba(59, 130, 246, 0.9)); }
    .hero-subtitle { margin: 0 auto 35px; font-size: 1.1rem; line-height: 1.6; }
    .hero-cta { flex-direction: column; gap: 15px; justify-content: center; margin-bottom: 30px; }
    .hero-cta .btn-solid, .hero-cta .btn-text { width: 100%; justify-content: center; padding: 18px 25px; font-size: 1.1rem; }
    .hero-cta .btn-solid { box-shadow: 0 10px 30px rgba(59, 130, 246, 0.5); }
    
    .hero-visual { position: relative; margin-top: 20px; }
    .hero-visual::before {
        content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
        width: 100%; height: 100%; background: #3b82f6; filter: blur(70px); z-index: -1; opacity: 0.5;
        border-radius: 50%;
    }
    .main-img { border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.1); }
    .floating-card { bottom: -25px; right: 10px; padding: 18px 22px; box-shadow: 0 15px 35px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.15); }
    
    /* Contact Mobile Polish */
    .contact-layout { gap: 30px; }
    .contact-info { text-align: left; }
    .contact-info h1 { font-size: 2.3rem !important; margin-bottom: 15px; }
    .contact-info p { margin-bottom: 25px !important; font-size: 1rem !important; }
    .contact-blocks { gap: 20px; }
    .contact-form-wrapper { padding: 30px 20px !important; opacity: 1 !important; transform: none !important; margin-top: 10px; }
    .form-row { grid-template-columns: 1fr !important; }

    .service-detail-img { order: -1; }
    .service-detail-img { order: -1; }
    .service-detail-content h2 { font-size: 2rem; }
    
    /* Convert Grids into Swipeable Mobile Carousels */
    .markets-grid, .services-grid-large, .portfolio-grid, .blog-grid, .services-grid { 
        display: flex; flex-wrap: nowrap; overflow-x: auto; 
        scroll-snap-type: x mandatory; padding-bottom: 30px; 
        -webkit-overflow-scrolling: touch; gap: 20px;
        margin-left: -24px; margin-right: -24px; padding-left: 24px; padding-right: 24px;
    }
    .market-card, .service-card, .portfolio-card, .blog-card { 
        flex: 0 0 85vw; scroll-snap-align: center; 
    }
    .markets-grid::-webkit-scrollbar, .services-grid-large::-webkit-scrollbar, .portfolio-grid::-webkit-scrollbar, .blog-grid::-webkit-scrollbar, .services-grid::-webkit-scrollbar { display: none; }
    
    /* Reduce excessive vertical padding */
    .page-header { padding: 120px 0 60px; }
    .full-services-section, .portfolio-section, .markets-section, .service-detail-section, .faq-section, .article-section { padding: 60px 0; }
    
    /* Make CTA full-width on mobile */
    .urgency-cta { margin: 40px 0; padding: 40px 20px; border-radius: 0; }
    .urgency-cta h2 { font-size: 1.8rem; }
    
    /* Compact FAQ */
    .faq-item summary { padding: 15px 20px; font-size: 1rem; }
    .faq-content { padding: 0 20px 20px; }
    
    /* Blog typography */
    .article-container h2 { font-size: 1.5rem; }
    .article-cta { padding: 30px 20px; }
}

/* -------------------------------------
   Dynamic Marquee
------------------------------------- */
.marquee-container {
    background-color: var(--clr-navy); color: white;
    padding: 15px 0; overflow: hidden; white-space: nowrap;
    position: relative; display: flex; width: 100%; border-bottom: 2px solid var(--clr-primary); z-index: 10;
}
.marquee-content {
    display: flex; animation: marquee 35s linear infinite;
}
.marquee-content span {
    font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
    letter-spacing: 2px; padding-right: 30px; color: rgba(255,255,255,0.9);
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Button Hover Polish */
.btn-solid:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(28, 78, 216, 0.4); }
.btn-primary-outline:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(28, 78, 216, 0.2); }

/* -------------------------------------
   Dark Mode Hero Overrides
------------------------------------- */
.hero { 
    background-color: var(--clr-navy); 
    background-image: 
        linear-gradient(rgba(10, 17, 40, 0.8), rgba(10, 17, 40, 0.95)),
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    background-position: center;
    color: white; 
}
.hero-title { color: white; text-shadow: 0 4px 30px rgba(0,0,0,0.6); }
.text-highlight { 
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.4));
}
.hero-subtitle { color: rgba(255,255,255,0.85); font-weight: 400; }
.hero .btn-text { color: white; }
.hero .btn-text .icon-circle { background-color: rgba(255,255,255,0.1); color: #60a5fa; border-color: rgba(255,255,255,0.2); }
.hero .btn-text:hover { color: #60a5fa; }
.hero::before { background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, rgba(255,255,255,0) 65%); }
.hero::after { background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, rgba(255,255,255,0) 65%); }
.marquee-container { border-bottom: 2px solid rgba(255,255,255,0.1); }


/* Gray Alt Section to break up white scrolling */
.services-section {
    background-color: #f8fafc !important;
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
}

/* -------------------------------------
   Floating Emergency Dispatch Button
------------------------------------- */
.floating-dispatch-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: var(--clr-navy);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 10px 25px rgba(10, 17, 40, 0.4);
    z-index: 999;
    transition: transform 0.3s ease;
}
.floating-dispatch-btn:hover {
    transform: scale(1.1);
    background-color: var(--clr-primary);
}
.floating-dispatch-btn i { z-index: 2; }

/* Pulsing Ring Effect */
.pulse-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    background-color: var(--clr-navy);
    border-radius: 50%;
    z-index: 1;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

/* -------------------------------------
   Smooth FAQ Accordion
------------------------------------- */
.faq-item {
    background: white; border: 1px solid var(--clr-border);
    border-radius: 8px; margin-bottom: 15px; overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.faq-item:hover { box-shadow: var(--shadow-md); }
.faq-item summary {
    padding: 20px 25px; font-family: var(--font-display);
    font-weight: 600; font-size: 1.1rem; color: var(--clr-navy);
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    list-style: none; /* Hide default arrow */
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i {
    color: var(--clr-primary); transition: transform 0.4s ease;
}
.faq-item[open] summary i { transform: rotate(180deg); }
.faq-content {
    padding: 0 25px 25px; color: var(--clr-text); line-height: 1.7;
    animation: slideDown 0.4s ease-out forwards;
}
@keyframes slideDown {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
    .floating-dispatch-btn { bottom: 20px; right: 20px; width: 55px; height: 55px; font-size: 20px; }
}
