/* --- Global Styles & Tokens --- */
:root {
    /* Color Palette */
    --clr-bg: #f8fafc;
    --clr-surface: #ffffff;
    --clr-text-main: #0f172a;
    --clr-text-muted: #475569;
    
    /* Vibrant Theme Colors */
    --clr-primary: #004e92;
    --clr-primary-light: #000428;
    --clr-accent: #ff6b6b;
    --clr-accent-dark: #ee5253;
    
    --clr-tropical-cyan: #00d2d3;
    --clr-tropical-blue: #0984e3;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius-md: 12px;
    --radius-lg: 24px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text-main);
    background-color: var(--clr-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.highlight {
    color: var(--clr-tropical-cyan);
}

/* --- Buttons --- */
.btn-primary, .btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-dark));
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    box-shadow: 0 4px 14px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover, .btn-nav:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.125rem;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition);
    padding: 16px 0;
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--clr-primary-light);
    letter-spacing: -0.5px;
}

.logo-text .highlight {
    color: var(--clr-tropical-blue);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    font-weight: 500;
}

.nav-links a:not(.btn-nav) {
    position: relative;
    color: var(--clr-text-main);
    transition: color 0.3s;
}

.nav-links a:not(.btn-nav):hover {
    color: var(--clr-tropical-blue);
}

.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--clr-tropical-blue);
    transition: width 0.3s;
}

.nav-links a:not(.btn-nav):hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--clr-primary-light);
    transition: 0.3s;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Offset for nav */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: slowZoom 20s infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 4, 40, 0.85) 0%, rgba(0, 78, 146, 0.6) 100%);
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    color: white;
}

.hero-text-wrapper {
    max-width: 700px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 550px;
}

/* --- Humanized Intro --- */
.intro-section {
    padding: 100px 0;
    background-color: var(--clr-surface);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-text h2 {
    font-size: 2.25rem;
    color: var(--clr-primary-light);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 20px;
}

.intro-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--clr-accent);
    border-radius: 2px;
}

.intro-text p {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.glass-card {
    background: linear-gradient(135deg, #ffffff, #f0f4f8);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 227, 204, 0.1) 0%, transparent 60%);
    animation: rotate 15s linear infinite;
}

.stat-icon {
    width: 64px;
    height: 64px;
    background: var(--clr-primary-light);
    color: var(--clr-tropical-cyan);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.stat-card h3, .stat-card p {
    position: relative;
    z-index: 1;
}

.stat-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

/* --- Services Section --- */
.services-section {
    padding: 100px 0;
    background-color: var(--clr-bg);
}

.section-headers {
    margin-bottom: 60px;
}

.section-headers h2 {
    font-size: 2.5rem;
    color: var(--clr-primary-light);
    margin-bottom: 16px;
}

.text-center {
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--clr-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* Custom animated visuals instead of photos */
.service-visual {
    height: 240px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.rust-visual {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.rust-animation {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(238, 82, 83, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseRust 4s infinite alternate;
}

.patch-visual {
    background: linear-gradient(135deg, #093028 0%, #237A57 100%);
}

.patch-animation {
    position: absolute;
    width: 120px;
    height: 80px;
    background: rgba(255,255,255,0.15);
    border: 2px dashed rgba(255,255,255,0.4);
    border-radius: 8px;
    transform: rotate(-10deg);
    animation: flashPatch 3s infinite;
}

.visual-text {
    position: relative;
    z-index: 2;
    color: white;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.service-content {
    padding: 32px;
    flex-grow: 1;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--clr-primary-light);
}

.service-content p {
    color: var(--clr-text-muted);
}

/* --- CTA Banner --- */
.cta-banner {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background-color: var(--clr-primary-light);
    color: white;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--clr-tropical-blue) 0%, transparent 60%);
    opacity: 0.6;
}

.cta-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-banner p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.relative { position: relative; }
.z-10 { z-index: 10; }

/* --- Footer --- */
.site-footer {
    background-color: #0b1120;
    color: #94a3b8;
    padding: 80px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo-text {
    display: block;
    margin-bottom: 24px;
}

.footer-desc {
    max-width: 300px;
}

.footer-contact h4, .footer-hours h4 {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-list svg {
    color: var(--clr-tropical-cyan);
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-list a {
    transition: color 0.3s;
}
.contact-list a:hover {
    color: white;
}

.footer-hours ul {
    list-style: none;
}

.footer-hours li {
    margin-bottom: 12px;
}
.footer-hours .emergency {
    color: var(--clr-accent);
    font-weight: 600;
    margin-top: 24px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 32px;
    font-size: 0.875rem;
}

/* --- Animations --- */
@keyframes slowZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

@keyframes pulseRust {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0.9; }
}

@keyframes flashPatch {
    0%, 100% { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); }
    50% { border-color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.2); }
}

/* Scroll Animations (Intersection Observer Classes) */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Responsive */
@media (max-width: 900px) {
    .intro-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--clr-surface);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
