/* 
   Vortex Home Service - Modern Premium Design System 
   "Advanced, Dynamic, Local"
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* 
       Color Palette: Deep Slate & Vibrant Orange
       Using HSL for better manipulation
    */
    --primary-h: 217;
    --primary-s: 70%;
    --primary-l: 15%;
    /* #0b1d36 - Deep Navy */

    --accent-h: 25;
    --accent-s: 95%;
    --accent-l: 55%;
    /* Softer, more premium orange */

    --secondary-h: 195;
    --secondary-s: 100%;
    --secondary-l: 45%;
    /* #00b4d8 - Cyan Blue */

    /* Core Colors */
    --primary-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --primary-dark: hsl(var(--primary-h), var(--primary-s), 10%);
    --primary-light: hsl(var(--primary-h), var(--primary-s), 25%);

    --accent-color: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
    --accent-light: hsl(var(--accent-h), var(--accent-s), 60%);

    --secondary-color: hsl(var(--secondary-h), var(--secondary-s), var(--secondary-l));

    /* Premium Gradients */
    --gradient-hero: linear-gradient(135deg, hsl(217, 70%, 12%) 0%, hsl(217, 70%, 20%) 100%);
    --gradient-accent: linear-gradient(135deg, #ff9e00 0%, #ff5e00 100%);
    --gradient-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    --gradient-dark-glass: linear-gradient(145deg, rgba(11, 29, 54, 0.8), rgba(11, 29, 54, 0.6));

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --text-dark: #1a1a1a;
    --text-light: #5a6b85;
    --text-white: #f0f4f8;

    /* Spacing & Layout */
    --container-width: 1280px;
    --header-height: 90px;
    --border-radius: 16px;

    /* Shadows & Glassmorphism */
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --card-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --glow-accent: 0 0 30px rgba(255, 123, 0, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: #f8faff;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

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

.text-accent {
    color: var(--accent-color);
}

.text-white {
    color: var(--text-white);
}

.text-secondary {
    color: var(--secondary-color);
}

.bg-light {
    background-color: #f8faff;
}

.bg-white {
    background-color: #ffffff;
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--glass-shadow);
}

.glass-dark {
    background: rgba(11, 29, 54, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 10px 20px rgba(11, 29, 54, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(11, 29, 54, 0.3);
}

.btn-accent {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 10px 20px rgba(255, 123, 0, 0.25);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-accent);
}

.btn-outline {
    border: 2px solid white;
    color: white;
    background: transparent;
}

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

/* Discount Banner */
#discount-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    background: var(--accent-color);
    color: white;
    text-align: center;
    padding: 10px 15px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    overflow: hidden;
}

@media (max-width: 768px) {
    #discount-banner {
        font-size: 0.75rem;
        padding: 8px 10px;
    }
}

/* Header & Navigation */
header {
    position: fixed;
    top: 48px;
    /* Height of discount banner */
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: white;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo img {
    height: 60px;
    transition: transform 0.3s ease;
}

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

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--primary-color);
    /* Simplified for better visibility on glass header */
    font-family: var(--font-heading);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.bar {
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 4px;
    transition: 0.3s;
}

/* Hero Section - Immersive */
.hero {
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 48px);
    /* Header + discount banner */
    background: url('../images/Fresh Air For Family.webp') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Dark overlay with gradient for better text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 25, 47, 0.95), rgba(10, 25, 47, 0.6));
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    color: white;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(255, 123, 0, 0.15);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #aab7c4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Hero Card Form */
.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    border-top: 4px solid var(--accent-color);
}

.hero-card h3 {
    color: white;
    margin-bottom: 1rem;
}

.hero-card p {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Sections */
.section-title-wrapper {
    margin-bottom: 4rem;
    text-align: center;
}

.section-subtitle {
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

/* How It Works (Process) */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    position: relative;
}

/* Connecting line (desktop only) */
.process-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: repeating-linear-gradient(to right, #e2e8f0 0, #e2e8f0 10px, transparent 10px, transparent 20px);
    z-index: 0;
    display: none;
}

@media(min-width: 992px) {
    .process-grid::before {
        display: block;
    }
}

.process-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    text-align: center;
    position: relative;
    z-index: 1;
    transition: var(--transition-smooth);
}

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

.process-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--gradient-hero);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 20px rgba(11, 29, 54, 0.2);
}

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

.service-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    /* Replace glass shadow for better contrast */
    transition: var(--transition-smooth);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
    border-color: transparent;
}

.service-img-wrapper {
    height: 240px;
    overflow: hidden;
    position: relative;
}

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

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

.service-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    margin-bottom: 1rem;
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: var(--accent-color);
    gap: 0.5rem;
}

.service-link span {
    transition: transform 0.3s;
}

.service-link:hover span {
    transform: translateX(5px);
}

/* Why Choose Us (Stats/Trust) */
.trust-section {
    background: var(--primary-color);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.trust-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 180, 216, 0.1), transparent 50%);
    pointer-events: none;
}

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

.trust-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.trust-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
}

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

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 6rem;
    color: rgba(0, 0, 0, 0.05);
    font-family: serif;
    line-height: 1;
}

.stars {
    color: #FFD700;
    margin-bottom: 1rem;
}

/* Call to Action */
.cta-box {
    background: var(--gradient-hero);
    border-radius: 30px;
    padding: 5rem 3rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml,...');
    /* Add pattern if needed */
    opacity: 0.1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background: #061224;
    /* Even darker than primary */
    color: #8892b0;
    padding-top: 5rem;
    font-size: 0.95rem;
}

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

.footer-brand h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-desc {
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.footer-links h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .hero-card {
        max-width: 500px;
        width: 100%;
        margin: 0 auto;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: calc(var(--header-height) + 48px);
        /* Account for discount banner */
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height) - 48px);
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    /* Hide phone number on mobile, keep CTA button */
    .navbar>div:has(a[href^="tel"]) a[href^="tel"] {
        display: none;
    }

    /* Fix button visibility in mobile menu */
    .nav-links.active~div .btn-accent,
    .hamburger~div .btn-accent {
        color: white !important;
        background: var(--gradient-accent) !important;
    }
}

/* ========================================
   ADVANCED ANIMATIONS & SCROLL EFFECTS
   ======================================== */

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease backwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease backwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Floating Animation */
@keyframes floating {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Gradient Text Animation */
@keyframes gradientText {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.gradient-text {
    background: linear-gradient(90deg,
            var(--accent-color),
            var(--secondary-color),
            var(--accent-color));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 3s ease infinite;
}

/* Counter Animation (will be triggered by JS) */
.counter {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    font-family: var(--font-heading);
}

/* Delay Classes */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* Parallax Container */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Smooth Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Ripple Effect Container */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Loading Spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}

/* Scale on Hover */
.scale-hover {
    transition: transform 0.3s ease;
}

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

/* Glow Effect */
.glow {
    box-shadow: 0 0 20px rgba(255, 123, 0, 0.5);
    transition: box-shadow 0.3s ease;
}

.glow:hover {
    box-shadow: 0 0 40px rgba(255, 123, 0, 0.8);
}