:root {
    --primary-navy: #0A192F;
    --secondary-navy: #1E293B;
    --brand-blue: #0284C7;
    --brand-blue-hover: #0369A1;
    --aqua-accent: #0EA5E9;
    --emergency-orange: #e7111b;
    --emergency-orange-hover: #c50e17;
    --light-bg: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-main: #334155;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-md: 12px;
    --radius-lg: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-main);
    line-height: 1.6;
    padding-bottom: 70px;
    overflow-x: hidden;
}

@media (min-width: 1024px) {
    body { padding-bottom: 0; }
}

h1, h2, h3, h4 { color: var(--primary-navy); font-weight: 700; line-height: 1.2; }
p { color: var(--text-main); }
a { text-decoration: none; color: inherit; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.btn:active::after {
    width: 300px;
    height: 300px;
}
.btn-primary { background-color: var(--brand-blue); color: white; }
.btn-primary:hover { background-color: var(--brand-blue-hover); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4); }
.btn-emergency { background-color: var(--emergency-orange); color: white; }
.btn-emergency:hover { background-color: var(--emergency-orange-hover); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(231, 17, 27, 0.4); }
.btn-outline { border: 2px solid var(--brand-blue); color: var(--brand-blue); background: transparent; }
.btn-outline:hover { background: var(--brand-blue); color: white; transform: translateY(-2px); }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 100px 0; }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 30px; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 20px; }

/* Section Headings */
.section-heading {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}
.section-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-blue), var(--aqua-accent));
    border-radius: 2px;
}

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ===== STICKY HEADER ===== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease;
}
header.scrolled {
    box-shadow: var(--shadow-md);
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}
.logo-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary-navy);
}
.logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.logo-brand:hover .logo-img {
    transform: scale(1.05);
}
.logo-brand i { color: var(--brand-blue); font-size: 1.5rem; }
.nav-menu { display: none; gap: 24px; }
.nav-link { font-weight: 600; color: var(--text-main); transition: color 0.2s; cursor: pointer; }
.nav-link:hover, .nav-link.active { color: var(--brand-blue); }
.header-actions { display: none; align-items: center; gap: 16px; }
.mobile-toggle { display: block; background: none; border: none; font-size: 1.5rem; color: var(--primary-navy); cursor: pointer; }

@media (min-width: 1024px) {
    .nav-menu { display: flex; }
    .header-actions { display: flex; }
    .mobile-toggle { display: none; }
}

/* Mobile Drawer */
.mobile-nav {
    display: none;
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
    box-shadow: var(--shadow-md);
    z-index: 999;
}
.mobile-nav.open { display: flex; flex-direction: column; gap: 16px; }

/* Mobile Bottom Bar */
.mobile-call-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--primary-navy);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-top: 2px solid var(--brand-blue);
    animation: slideUpBar 0.5s ease;
}
@keyframes slideUpBar {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
@media (min-width: 1024px) { .mobile-call-bar { display: none; } }

/* ===== HERO ===== */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-navy) 0%, #0D2847 50%, var(--secondary-navy) 100%);
    color: white;
    padding: 100px 0;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroGlow 6s ease-in-out infinite;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroGlow 8s ease-in-out 2s infinite;
}
@keyframes heroGlow {
    0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.5; }
    50% { transform: scale(1.15) translate(-20px, 20px); opacity: 1; }
}
.hero h1 { color: white; font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 20px; line-height: 1.15; }
.hero-tagline {
    color: var(--aqua-accent);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}
.hero-tagline::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--aqua-accent);
    border-radius: 2px;
    animation: taglineLine 1s ease 0.5s forwards;
    transform-origin: left;
    transform: scaleX(0);
}
@keyframes taglineLine {
    to { transform: scaleX(1); }
}
.hero-copy { color: #94A3B8; font-size: 1.15rem; margin-bottom: 36px; max-width: 600px; line-height: 1.7; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 44px; }
.hero-image-wrap {
    position: relative;
}
.hero-image-wrap::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: calc(var(--radius-lg) + 4px);
    background: linear-gradient(135deg, var(--aqua-accent), var(--brand-blue), var(--emergency-orange));
    z-index: -1;
    opacity: 0.6;
    animation: borderGlow 4s ease-in-out infinite;
}
@keyframes borderGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #CBD5E1;
    backdrop-filter: blur(4px);
}
.trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.trust-strip span:hover {
    color: white;
}

/* ===== EMERGENCY BANNER ===== */
.emergency-banner {
    background: linear-gradient(135deg, var(--emergency-orange) 0%, #b91018 100%);
    color: white;
    padding: 28px 0;
    position: relative;
    overflow: hidden;
}
.emergency-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.emergency-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    animation: shimmer 3s infinite;
}
@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}
.emergency-flex { display: flex; flex-direction: column; gap: 16px; align-items: center; justify-content: space-between; }
@media (min-width: 768px) { .emergency-flex { flex-direction: row; } }

/* ===== CARDS ===== */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-blue), var(--aqua-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.card:hover::before {
    transform: scaleX(1);
}
.card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15); }
.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #E0F2FE, #BAE6FD);
    color: var(--brand-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover .card-icon {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-hover));
    color: white;
    transform: rotate(-5deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

/* Service Card */
.service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease;
}
.service-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 260px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}
.gallery-item:hover {
    box-shadow: var(--shadow-lg);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.gallery-item:hover img { transform: scale(1.12); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.95) 0%, rgba(10, 25, 47, 0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: white;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h4 {
    transform: translateY(10px);
    transition: transform 0.4s ease;
}
.gallery-item:hover .gallery-overlay h4 {
    transform: translateY(0);
}

/* ===== FORM ===== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; }
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.form-control:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1); }

/* ===== FOOTER ===== */
footer { background: var(--primary-navy); color: white; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-col h4 { color: white; margin-bottom: 20px; font-size: 1.1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; color: #94A3B8; }
.footer-col ul li a { transition: color 0.2s; }
.footer-col ul li a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px; text-align: center; color: #64748B; font-size: 0.9rem; }

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-in-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.fade-in-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}
.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ===== HERO ENTRY ANIMATIONS ===== */
@keyframes heroTextSlideUp {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes heroImageSlideIn {
    from { opacity: 0; transform: translateX(80px) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes heroImageFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.hero .hero-tagline { animation: heroTextSlideUp 0.8s ease forwards; }
.hero h1 { animation: heroTextSlideUp 0.8s ease 0.2s forwards; opacity: 0; }
.hero .hero-copy { animation: heroTextSlideUp 0.8s ease 0.4s forwards; opacity: 0; }
.hero .hero-cta { animation: heroTextSlideUp 0.8s ease 0.6s forwards; opacity: 0; }
.hero .trust-strip { animation: heroTextSlideUp 0.8s ease 0.8s forwards; opacity: 0; }
.hero-image-wrap { animation: heroImageSlideIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards; opacity: 0; }

/* ===== FLOATING PARTICLES ===== */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.particle {
    position: absolute;
    bottom: -20px;
    width: 4px;
    height: 4px;
    background: rgba(14, 165, 233, 0.4);
    border-radius: 50%;
    animation: floatUp linear infinite;
    box-shadow: 0 0 6px rgba(14, 165, 233, 0.3);
}
.particle:nth-child(odd) {
    background: rgba(2, 132, 199, 0.3);
    box-shadow: 0 0 6px rgba(2, 132, 199, 0.2);
}
@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0; }
    10% { opacity: 1; }
    50% { opacity: 0.8; transform: translateY(-50vh) rotate(360deg) scale(1.2); }
    90% { opacity: 0.6; }
    100% { transform: translateY(-110vh) rotate(720deg) scale(0.5); opacity: 0; }
}

/* ===== COUNTER ANIMATION ===== */
.counter {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-blue);
}

/* ===== PULSE ANIMATION FOR EMERGENCY ===== */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(231, 17, 27, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(231, 17, 27, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 17, 27, 0); }
}
.btn-emergency { animation: pulse 2s infinite; }
.btn-emergency:hover { animation: none; }

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: var(--brand-blue);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow-md);
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--brand-blue-hover);
    transform: translateY(-3px);
}
@media (min-width: 1024px) {
    .back-to-top { bottom: 30px; }
}

/* ===== PAGE TRANSITION ===== */
.page-content {
    animation: pageIn 0.5s ease forwards;
}
@keyframes pageIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== MAP PLACEHOLDER ===== */
.map-placeholder {
    background: #E2E8F0;
    height: 300px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
}
.map-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(2,132,199,0.05) 25%, transparent 25%, transparent 50%, rgba(2,132,199,0.05) 50%, rgba(2,132,199,0.05) 75%, transparent 75%);
    background-size: 40px 40px;
}

/* ===== NAV ACTIVE UNDERLINE ===== */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-blue);
    transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

