@import url('theme.css');

/* ==========================================================================
   DESIGN SYSTEM & CUSTOM VARIABLE DEFINITIONS (AQUA THEME)
   ========================================================================== */
:root {
    /* Layout Tokens */
    --container-width: 1280px;
    --header-height: 80px;

    /* Typography Tokens */
    --font-primary: 'Outfit', sans-serif;
    --font-heading: 'Parkinsans', sans-serif;

    /* Transition & Shadows */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --shadow-subtle: 0 4px 20px rgba(var(--primary-rgb), 0.08);
    --shadow-medium: 0 10px 30px rgba(var(--primary-rgb), 0.12);
    --shadow-premium: 0 20px 40px rgba(var(--primary-rgb), 0.18);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-circle: 50%;
}

/* ==========================================================================
   GLOBAL RESET & BASIC STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background: var(--bg-soft-blue);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

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

p {
    color: var(--text-neutral);
}

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

ul {
    list-style: none;
}

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

/* ==========================================================================
   DYNAMIC BACKGROUND RISING BUBBLE ANIMATION
   ========================================================================== */
.bubble-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9) 0%, rgba(var(--primary-rgb), 0.3) 45%, rgba(var(--accent-rgb), 0.08) 80%, rgba(255, 255, 255, 0) 100%);
    border: 1.5px solid rgba(var(--primary-rgb), 0.45);
    /* Distinct glossy border */
    border-radius: var(--radius-circle);
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.7), inset -3px -3px 8px rgba(var(--primary-rgb), 0.2), 0 8px 20px rgba(var(--primary-rgb), 0.1);
    animation: floatUp 15s infinite ease-in;
    pointer-events: none;
}

/* Individual Bubble Configurations */
.bubble-1 {
    left: 10%;
    width: 60px;
    height: 60px;
    animation-duration: 16s;
    animation-delay: 0s;
}

.bubble-2 {
    left: 25%;
    width: 30px;
    height: 30px;
    animation-duration: 12s;
    animation-delay: 2s;
}

.bubble-3 {
    left: 45%;
    width: 80px;
    height: 80px;
    animation-duration: 22s;
    animation-delay: 1s;
}

.bubble-4 {
    left: 60%;
    width: 45px;
    height: 45px;
    animation-duration: 14s;
    animation-delay: 5s;
}

.bubble-5 {
    left: 75%;
    width: 55px;
    height: 55px;
    animation-duration: 17s;
    animation-delay: 3s;
}

.bubble-6 {
    left: 90%;
    width: 25px;
    height: 25px;
    animation-duration: 11s;
    animation-delay: 7s;
}

.bubble-7 {
    left: 18%;
    width: 70px;
    height: 70px;
    animation-duration: 19s;
    animation-delay: 4s;
}

.bubble-8 {
    left: 82%;
    width: 35px;
    height: 35px;
    animation-duration: 13s;
    animation-delay: 6s;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.9;
        /* High opacity during flight */
    }

    90% {
        opacity: 0.9;
    }

    100% {
        transform: translateY(-110vh) translateX(60px) rotate(360deg);
        opacity: 0;
    }
}

/* ==========================================================================
   REUSABLE UTILITIES & COMPONENTS
   ========================================================================== */
.section-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 100px 24px;
}

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

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

/* Rebranded */
.text-accent {
    color: var(--accent) !important;
}

.section-title {
    margin-bottom: 60px;
    max-width: 700px;
}

.section-title.text-center {
    margin-left: auto;
    margin-right: auto;
}

.section-title .sub-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    display: inline-block;
    margin-bottom: 12px;
}

.section-title h2 {
    font-size: 38px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-primary);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-dark);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.35);
    /* Soft blue glow */
}

.btn-secondary {
    background-color: var(--text-dark);
    color: var(--text-white);
}

.btn-secondary:hover {
    background-color: #252d3d;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.15);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--text-white);
    border-color: var(--text-white);
}

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

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Floating Scroll to Top button */
#scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-circle);
    background-color: var(--text-dark);
    color: var(--text-white);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    z-index: 999;
}

#scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scroll-to-top:hover {
    background-color: var(--primary);
    color: var(--text-dark);
    transform: translateY(-3px);
}

/* ==========================================================================
   HEADER NAVIGATION (Sticky & Glassmorphism)
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: transparent;
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: var(--transition-smooth);
}

/* Scrolled Header style */
.main-header.scrolled {
    height: 70px;
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-subtle);
}

.header-container {
    max-width: var(--container-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Submenu layout */
.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu ul li {
    position: relative;
}

.nav-menu ul li>a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu ul li>a.active,
.nav-menu ul li>a:hover {
    color: var(--accent);
}

/* Dropdown Submenu styling */
.nav-menu .has-submenu .submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 250px;
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.nav-menu .has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-menu .submenu li a {
    display: block;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.nav-menu .submenu li a:hover {
    background-color: var(--accent-light);
    color: var(--accent);
    padding-left: 20px;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* Hamburger active transformation */
.mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION (Rebranded Aqua Background)
   ========================================================================== */
.hero-section {
    position: relative;
    padding-top: calc(var(--header-height) + 40px);
    background: transparent;
    overflow: hidden;
}

.hero-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 100px 24px 80px 24px;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    position: relative;
    z-index: 5;
    text-align: center;
}

/* WebGL Floating Lines Hero Background */
.floating-lines-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1000px;
    /* covers header, hero sections, and trust stats perfectly */
    z-index: 2;
    /* sits above body background (z-index: auto) and bubbles (z-index: -1), but behind hero container (z-index: 5) and main-header (z-index: 1000) */
    pointer-events: none;
    /* doesn't block any links or cursor hover */
    overflow: hidden;
    opacity: 0.95;
    background: var(--hero-lines-bg);
    /* fully visible and elegant on light backgrounds */
    /* Smooth fade-out at the bottom to merge seamlessly with the process section */
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0) 100%);
}

.floating-lines-hero-bg canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-lg);
    padding: 40px 60px;
    box-shadow: 
        0 20px 50px rgba(15, 23, 42, 0.02), 
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.hero-content .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: rgba(0, 180, 216, 0.08);
    border: 1px solid rgba(0, 180, 216, 0.22);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: #0088a8; /* Lighter, vibrant sky-blue/cyan */
    margin-bottom: 28px;
    align-self: center;
}

.hero-content .badge i {
    color: #0088a8 !important;
}

.hero-content h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 64px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.hero-italic {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 600;
    color: #0082a3; /* Deeper vibrant cyan-blue for contrast */
}

.hero-content .hero-desc {
    font-size: 17px;
    color: #475569;
    margin: 0 auto 40px auto;
    max-width: 680px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
    width: 100%;
}

.hero-btn-primary {
    background: linear-gradient(135deg, #05c1e1, #009cb8);
    color: var(--text-white) !important;
    box-shadow: 0 10px 22px rgba(5, 193, 225, 0.3);
    border: none;
    padding: 14px 32px;
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(5, 193, 225, 0.4);
    background: linear-gradient(135deg, #009cb8, #05c1e1);
}

.hero-btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 1.5px solid rgba(15, 23, 42, 0.15);
    padding: 13px 32px;
}

.hero-btn-outline:hover {
    background: rgba(15, 23, 42, 0.03);
    border-color: var(--text-dark);
    transform: translateY(-2px);
}

/* Hero features bottom capsule list styling */
.hero-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    width: 100%;
    margin-top: 30px;
    flex-wrap: wrap;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: var(--transition-fast);
}

.feature-pill:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.1);
}

.feature-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.feature-icon-wrapper.shield-bg {
    background-color: rgba(26, 128, 255, 0.1);
    color: var(--accent);
}

.feature-icon-wrapper.leaf-bg {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.feature-icon-wrapper.clock-bg {
    background-color: rgba(26, 128, 255, 0.1);
    color: var(--accent);
}

.feature-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.feature-text strong {
    font-size: 13.5px;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
}

.feature-text span {
    font-size: 11.5px;
    color: var(--text-light);
    font-weight: 500;
    line-height: 1.2;
}

/* ==========================================================================
   PROCESS STEPS SECTION
   ========================================================================== */
.process-section {
    background: transparent;
}

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

.step-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.step-card:hover {
    background-color: var(--bg-white);
    transform: translateY(-5px);
    border-color: rgba(var(--primary-rgb), 0.4);
    box-shadow: var(--shadow-medium);
}

.step-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background-color: var(--bg-white);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-subtle);
}

.step-icon {
    font-size: 32px;
    color: var(--accent);
}

.step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-circle);
    background-color: var(--primary);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.step-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-card p {
    font-size: 15px;
    color: var(--text-neutral);
}

/* ==========================================================================
   SERVICES TABS & CAROUSEL SECTION
   ========================================================================== */
.services-section {
    background: var(--services-bg);
    backdrop-filter: blur(5px);
}

.services-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 80px;
    /* Pushes the service cards lower, giving them more breathing room */
}

.tab-btn {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid transparent;
    background-color: var(--bg-white);
    color: var(--text-neutral);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
    font-family: var(--font-primary);
}

.tab-btn:hover {
    color: var(--text-dark);
    background-color: #f0fdfa;
    /* soft cyan */
}

.tab-btn.active {
    background-color: var(--text-dark);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.15);
}

/* Tab Panels showing/hiding */
.tab-panel {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.tab-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Carousel layout */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 40px;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
    /* Extra vertical padding allows hover animations and edge glows to bleed without clipping */
    padding-top: 40px;
    padding-bottom: 40px;
    margin-top: -40px;
    margin-bottom: -40px;
}

.carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 40px;
    padding-bottom: 40px;
    width: 100%;
}

.service-card {
    flex: 0 0 calc((100% - 48px) / 3);
    /* 3 cards on desktop */
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
}

.card-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Rebranded Custom Aqua Gradients for illustrations */
.bg-gradient-yellow {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--primary) 100%);
}

.bg-gradient-green {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--primary) 100%);
}

.bg-gradient-blue {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
}

.bg-gradient-orange {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--primary) 100%);
}

.service-svg {
    width: 90px;
    height: 90px;
    filter: drop-shadow(0 4px 10px rgba(var(--primary-rgb), 0.15));
    transition: var(--transition-smooth);
}

.service-card:hover .service-svg {
    transform: scale(1.1) rotate(3deg);
}

.card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-content p {
    font-size: 14px;
    color: var(--text-neutral);
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link i {
    transition: var(--transition-fast);
}

.service-link:hover i {
    transform: translateX(4px);
}

/* Carousel Nav Buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: var(--radius-circle);
    background-color: var(--bg-white);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 10;
    transition: var(--transition-smooth);
}

.carousel-nav:hover {
    background-color: var(--primary);
    color: var(--text-dark);
}

.carousel-nav.prev {
    left: -45px;
}

.carousel-nav.next {
    right: -45px;
}

/* ==========================================================================
   INTERACTIVE CALCULATOR & QUOTE FORM SECTION
   ========================================================================== */
.calculator-section {
    background: transparent;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: flex-start;
}

.calculator-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    position: relative;
    overflow: hidden;
}

.calculator-header {
    margin-bottom: 36px;
}

.calc-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--calc-badge-bg);
    color: var(--calc-badge-text);
    font-size: 12px;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.calculator-header h2 {
    font-size: 30px;
    margin-bottom: 8px;
}

/* Form Styles */
.quote-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    background-color: var(--bg-white);
    font-size: 15px;
    font-family: var(--font-primary);
    transition: var(--transition-fast);
    resize: vertical;
    /* Allow vertical resizing only */
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

/* Customized Range Slider (Aqua theme) */
.slider-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-label-row span {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent);
}

.range-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    margin: 15px 0;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(var(--accent-rgb), 0.25);
    transition: var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--accent-hover);
}

/* Dirt Rating Scale 1-10 */
.dirt-rating-scale {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
    width: 100%;
}

.dirt-chip {
    flex: 1 1 0;
    min-width: 32px;
    cursor: pointer;
}

.dirt-chip input {
    display: none !important;
}

.dirt-chip span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    border-radius: var(--radius-sm);
    font-weight: 700;
    color: var(--text-dark);
    background-color: var(--bg-white);
    transition: var(--transition-fast);
    user-select: none;
    box-shadow: var(--shadow-subtle);
}

.dirt-chip:hover span {
    border-color: var(--primary);
    background-color: rgba(var(--primary-rgb), 0.05);
}

.dirt-chip input:checked + span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--bg-white);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}

@media screen and (max-width: 480px) {
    .dirt-rating-scale {
        gap: 6px;
    }
    .dirt-chip {
        min-width: 28px;
    }
    .dirt-chip span {
        height: 38px;
        font-size: 13px;
    }
}

/* Agreement checkbox styling */
.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input {
    margin-top: 4px;
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.checkbox-group label {
    font-size: 13px;
    color: var(--text-neutral);
    font-weight: 500;
}

/* Pricing Display Area */
.calculator-result {
    margin-top: 36px;
    padding-top: 30px;
    border-top: 1px solid rgba(var(--primary-rgb), 0.2);
}

.result-label {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-neutral);
}

.result-price {
    font-size: 40px;
    font-weight: 800;
    color: var(--accent);
    margin: 8px 0;
    font-family: var(--font-heading);
}

.result-note {
    font-size: 12px;
    color: var(--text-light);
}

/* Alert Success box on submission */
.alert-success {
    display: none;
    align-items: center;
    gap: 20px;
    background-color: var(--accent-light);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 24px;
    animation: fadeInUp 0.4s ease forwards;
}

.alert-success i {
    font-size: 40px;
    color: var(--accent);
}

.alert-success h3 {
    font-size: 18px;
    color: var(--text-dark);
}

.alert-success p {
    font-size: 14px;
    color: var(--text-neutral);
}

/* Right Column Info Cards */
.calculator-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    display: flex;
    gap: 20px;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.info-icon {
    font-size: 26px;
    color: var(--accent);
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-subtle);
}

.info-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.info-card p {
    font-size: 14px;
    color: var(--text-neutral);
}

/* Mini Contact panel */
.mini-contact {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-secondary) 100%);
    border-radius: var(--radius-md);
    padding: 36px;
    color: var(--text-white);
    text-align: center;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.mini-contact h3 {
    color: var(--text-white);
    font-size: 20px;
    margin-bottom: 12px;
}

.mini-contact p {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 24px;
}

/* ==========================================================================
   TESTIMONIALS SECTION (Glassmorphism layout)
   ========================================================================== */
.testimonials-section {
    background: rgba(248, 250, 252, 0.55);
    backdrop-filter: blur(5px);
}

.testimonials-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

.testimonials-wrapper {
    overflow: hidden;
    width: 100%;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
    flex: 0 0 100%;
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.testimonial-card .stars {
    color: var(--accent);
    /* Rebranded stars */
    font-size: 16px;
    display: flex;
    gap: 4px;
}

.testimonial-card .quote {
    font-size: 18px;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.6;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-white);
    font-size: 16px;
}

.client-avatar.bg-primary {
    background-color: var(--primary);
    color: var(--text-dark);
}

.client-avatar.bg-success {
    background-color: var(--accent);
}

.client-avatar.bg-blue {
    background-color: var(--accent);
}

.client-info h4 {
    font-size: 16px;
    font-weight: 700;
}

.client-info p {
    font-size: 13px;
    color: var(--text-light);
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-circle);
    background-color: var(--bg-white);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 10;
    transition: var(--transition-smooth);
}

.slider-btn:hover {
    background-color: var(--primary);
    color: var(--text-dark);
}

/* Trust Badge section */
.google-badge-container {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.google-rating-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: var(--bg-white);
    border-radius: 50px;
    padding: 12px 28px;
    box-shadow: var(--shadow-subtle);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.google-rating-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.google-rating-badge .badge-text {
    display: flex;
    flex-direction: column;
}

.google-rating-badge .rating-num {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
}

.google-rating-badge .reviews-count {
    font-size: 12px;
    color: var(--text-neutral);
    font-weight: 500;
}

/* ==========================================================================
   FAQ SECTION (Interactive Details Accordion)
   ========================================================================== */
.faq-section {
    background: transparent;
}

.faq-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: flex-start;
}

.faq-header-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-header-column h2 {
    font-size: 34px;
}

.faq-header-column p {
    margin-bottom: 10px;
}

.faq-card {
    border-radius: var(--radius-md);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-card.bg-light {
    background-color: var(--bg-light);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

/* Accordion details/summary overrides */
.faq-accordion-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid rgba(var(--primary-rgb), 0.05);
}

.faq-item[open] {
    background-color: var(--bg-white);
    border-color: rgba(var(--primary-rgb), 0.4);
    box-shadow: var(--shadow-medium);
}

.faq-title {
    padding: 24px 30px;
    font-size: 17px;
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

/* Hide default details arrow */
.faq-title::-webkit-details-marker {
    display: none;
}

.faq-title::marker {
    display: none;
}

.icon-indicator {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-circle);
    background-color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-subtle);
}

.faq-item[open] .icon-indicator {
    transform: rotate(45deg);
    background-color: var(--primary);
    color: var(--text-dark);
}

.faq-content {
    padding: 0 30px 24px 30px;
    border-top: 1px solid rgba(var(--primary-rgb), 0.15);
    padding-top: 20px;
    animation: fadeIn 0.4s ease forwards;
}

.faq-content p {
    font-size: 15px;
    line-height: 1.7;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.main-footer {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-secondary) 100%);
    color: #cbd5e1;
    padding-top: 80px;
    border-top: 1px solid rgba(var(--primary-rgb), 0.15);
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.col-about {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.footer-desc {
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-circle);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition-smooth);
}

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

.footer-col h3 {
    color: var(--text-white);
    font-size: 18px;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 15px;
}

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

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-contact-info li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.footer-contact-info i {
    font-size: 20px;
    color: var(--primary);
    margin-top: 4px;
}

.footer-contact-info p {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.footer-contact-info a,
.footer-contact-info span {
    font-size: 16px;
    color: var(--text-white);
    font-weight: 500;
}

.footer-bottom {
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #94a3b8;
}

.footer-bottom p {
    color: inherit;
}

.footer-legal-links {
    display: flex;
    gap: 24px;
}

.footer-legal-links a:hover {
    color: var(--primary);
}

/* ==========================================================================
   CSS KEYFRAMES ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes mascotFloat {
    0% {
        transform: translateY(0);
    }

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

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

/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */

/* Tablet Viewports */
@media screen and (max-width: 1024px) {
    .section-container {
        padding: 80px 24px;
    }

    /* Mobile Navigation Drawer */
    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-white);
        padding: 40px 24px;
        overflow-y: auto;
        box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.15);
        transition: var(--transition-smooth);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .nav-menu ul li {
        width: 100%;
    }

    .nav-menu ul li>a {
        font-size: 18px;
        width: 100%;
        justify-content: space-between;
    }

    .nav-menu .submenu {
        position: static;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        width: 100%;
        box-shadow: none;
        border: none;
        padding: 10px 0 0 20px;
        display: none;
        /* hidden until clicked */
    }

    .nav-menu .has-submenu.open .submenu {
        display: flex;
    }

    .header-action {
        display: none;
        /* hide quote btn in header on small devices */
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-content h1 {
        font-size: 44px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .carousel-wrapper {
        padding: 0 20px;
    }

    .carousel-nav.prev {
        left: -15px;
    }

    .carousel-nav.next {
        right: -15px;
    }

    .service-card {
        flex: 0 0 calc((100% - 24px) / 2);
        /* 2 cards on tablets */
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media screen and (max-width: 768px) {

    /* Content overrides */
    .hero-content {
        padding: 30px 20px;
    }

    .hero-content h1 {
        font-size: 38px;
        letter-spacing: -0.5px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-features {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .feature-pill {
        width: 100%;
        justify-content: flex-start;
    }

    .service-card {
        flex: 0 0 100%;
        /* 1 card on mobile */
    }

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

    .calculator-card {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 30px 20px;
    }

    .testimonial-card .quote {
        font-size: 16px;
    }

    .testimonials-slider-container {
        padding: 0 0 70px 0;
        position: relative;
        gap: 0;
    }

    .testimonials-slider-container .slider-btn {
        position: absolute;
        bottom: 0;
        top: auto;
        transform: none;
        width: 44px;
        height: 44px;
    }

    .testimonials-slider-container .slider-btn.prev {
        left: calc(50% - 50px);
    }

    .testimonials-slider-container .slider-btn.next {
        right: calc(50% - 50px);
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-legal-links {
        flex-direction: column;
        gap: 12px;
    }
}

/* ==========================================================================
   BORDER GLOW CARD EFFECT (React Bits Port)
   ========================================================================== */
.border-glow-card {
    --edge-proximity: 0;
    --cursor-angle: 45deg;
    --edge-sensitivity: 25;
    --color-sensitivity: calc(var(--edge-sensitivity) + 15);
    --border-radius: 16px;
    --glow-padding: 30px;
    --cone-spread: 22;
    --fill-opacity: 0.25;
    --card-bg: #ffffff;

    position: relative;
    border-radius: var(--border-radius);
    isolation: isolate;
    transform: translate3d(0, 0, 0.01px);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(var(--primary-rgb), 0.1) !important;
    background: var(--card-bg, #ffffff);
    overflow: visible !important;
    /* Allow glow to spill outside! */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Base style overrides to work seamlessly with our carousel & flex */
.border-glow-card .border-glow-inner {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: var(--card-bg, #ffffff);
    z-index: 1;
    overflow: hidden;
    /* Clips the internal SVGs & layouts correctly! */
}

.border-glow-card::before,
.border-glow-card::after,
.border-glow-card>.edge-light {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    transition: opacity 0.3s ease-out;
    z-index: -1;
}

.border-glow-card:not(:hover) ::before,
.border-glow-card:not(:hover) ::after,
.border-glow-card:not(:hover)>.edge-light {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* colored mesh-gradient border outline */
.border-glow-card::before {
    border: 2px solid transparent;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(var(--card-bg, #ffffff) 0 100%) padding-box,
        linear-gradient(rgba(255, 255, 255, 0) 0% 100%) border-box,
        /* Premium Crystalline Aqua theme mesh colors! */
        var(--gradient-one, radial-gradient(at 80% 55%, var(--border-glow-color-1, #8abeff) 0px, transparent 50%)) border-box,
        var(--gradient-two, radial-gradient(at 69% 34%, var(--border-glow-color-2, #1a80ff) 0px, transparent 50%)) border-box,
        var(--gradient-three, radial-gradient(at 8% 6%, var(--border-glow-color-3, #cce2ff) 0px, transparent 50%)) border-box,
        var(--gradient-four, radial-gradient(at 41% 38%, var(--border-glow-color-1, #8abeff) 0px, transparent 50%)) border-box,
        var(--gradient-five, radial-gradient(at 86% 85%, var(--border-glow-color-2, #1a80ff) 0px, transparent 50%)) border-box,
        var(--gradient-six, radial-gradient(at 82% 18%, var(--border-glow-color-1, #8abeff) 0px, transparent 50%)) border-box,
        var(--gradient-seven, radial-gradient(at 51% 4%, var(--border-glow-color-3, #cce2ff) 0px, transparent 50%)) border-box,
        var(--gradient-base, linear-gradient(var(--border-glow-color-1, #8abeff) 0 100%)) border-box;

    opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));

    mask-image:
        conic-gradient(from var(--cursor-angle) at center,
            black calc(var(--cone-spread) * 1%),
            transparent calc((var(--cone-spread) + 15) * 1%),
            transparent calc((100 - var(--cone-spread) - 15) * 1%),
            black calc((100 - var(--cone-spread)) * 1%));
    -webkit-mask-image:
        conic-gradient(from var(--cursor-angle) at center,
            black calc(var(--cone-spread) * 1%),
            transparent calc((var(--cone-spread) + 15) * 1%),
            transparent calc((100 - var(--cone-spread) - 15) * 1%),
            black calc((100 - var(--cone-spread)) * 1%));
}

/* colored mesh-gradient background fill near edges (subtle light aqua glow overlay) */
.border-glow-card::after {
    border: 1px solid transparent;
    background:
        var(--gradient-one, radial-gradient(at 80% 55%, var(--border-glow-color-1, #8abeff) 0px, transparent 50%)) padding-box,
        var(--gradient-two, radial-gradient(at 69% 34%, var(--border-glow-color-2, #1a80ff) 0px, transparent 50%)) padding-box,
        var(--gradient-three, radial-gradient(at 8% 6%, var(--border-glow-color-3, #cce2ff) 0px, transparent 50%)) padding-box,
        var(--gradient-four, radial-gradient(at 41% 38%, var(--border-glow-color-1, #8abeff) 0px, transparent 50%)) padding-box,
        var(--gradient-five, radial-gradient(at 86% 85%, var(--border-glow-color-2, #1a80ff) 0px, transparent 50%)) padding-box,
        var(--gradient-six, radial-gradient(at 82% 18%, var(--border-glow-color-1, #8abeff) 0px, transparent 50%)) padding-box,
        var(--gradient-seven, radial-gradient(at 51% 4%, var(--border-glow-color-3, #cce2ff) 0px, transparent 50%)) padding-box,
        var(--gradient-base, linear-gradient(var(--border-glow-color-1, #8abeff) 0 100%)) padding-box;

    mask-image:
        linear-gradient(to bottom, black, black),
        radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
        radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%),
        radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%),
        radial-gradient(ellipse at 66% 33%, black 5%, transparent 40%),
        radial-gradient(ellipse at 33% 66%, black 5%, transparent 40%),
        conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);
    -webkit-mask-image:
        linear-gradient(to bottom, black, black),
        radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
        radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%),
        radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%),
        radial-gradient(ellipse at 66% 33%, black 5%, transparent 40%),
        radial-gradient(ellipse at 33% 66%, black 5%, transparent 40%),
        conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);

    mask-composite: subtract, add, add, add, add, add;
    -webkit-mask-composite: source-out, destination-over, destination-over, destination-over, destination-over, destination-over;
    opacity: calc(var(--fill-opacity, 0.25) * (var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
    mix-blend-mode: soft-light;
}

/* outer glow aura */
.border-glow-card>.edge-light {
    inset: calc(var(--glow-padding) * -1);
    pointer-events: none;
    z-index: 1;

    mask-image:
        conic-gradient(from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%);
    -webkit-mask-image:
        conic-gradient(from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%);

    opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
    mix-blend-mode: color-burn;
    /* Looks gorgeous and vivid on light backgrounds! */
}

.border-glow-card>.edge-light::before {
    content: "";
    position: absolute;
    inset: var(--glow-padding);
    border-radius: inherit;
    box-shadow:
        inset 0 0 0 1px var(--glow-color, hsl(213deg 100% 77% / 100%)),
        inset 0 0 1px 0 var(--glow-color-60, hsl(213deg 100% 77% / 60%)),
        inset 0 0 3px 0 var(--glow-color-50, hsl(213deg 100% 77% / 50%)),
        inset 0 0 6px 0 var(--glow-color-40, hsl(213deg 100% 77% / 40%)),
        inset 0 0 15px 0 var(--glow-color-30, hsl(213deg 100% 77% / 30%)),
        inset 0 0 25px 2px var(--glow-color-20, hsl(213deg 100% 77% / 20%)),
        inset 0 0 50px 2px var(--glow-color-10, hsl(213deg 100% 77% / 10%)),
        0 0 1px 0 var(--glow-color-60, hsl(213deg 100% 77% / 60%)),
        0 0 3px 0 var(--glow-color-50, hsl(213deg 100% 77% / 50%)),
        0 0 6px 0 var(--glow-color-40, hsl(213deg 100% 77% / 40%)),
        0 0 15px 0 var(--glow-color-30, hsl(213deg 100% 77% / 30%)),
        0 0 25px 2px var(--glow-color-20, hsl(213deg 100% 77% / 20%)),
        0 0 50px 2px var(--glow-color-10, hsl(213deg 100% 77% / 10%));
}

/* ==========================================================================
   COOKIE CONSENT BANNER STYLES
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    left: auto;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(5, 193, 225, 0.25); /* Accent aqua border */
    border-radius: var(--radius-md);
    box-shadow: 
        0 15px 35px rgba(15, 23, 42, 0.08), 
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    z-index: 10000;
    padding: 20px;
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    pointer-events: none;
    transition: 
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
        opacity 0.4s ease, 
        visibility 0.4s;
    visibility: hidden;
}

.cookie-banner.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-banner.fade-out {
    opacity: 0;
    transform: translateY(15px) scale(0.99);
    pointer-events: none;
    visibility: hidden;
}

.cookie-container {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.cookie-icon {
    font-size: 24px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
    animation: cookiePulse 2s infinite ease-in-out;
}

@keyframes cookiePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1) rotate(10deg); }
}

.cookie-body {
    flex-grow: 1;
}

.cookie-body h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 6px 0;
}

.cookie-body p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-dark);
    margin: 0;
}

.cookie-body a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dotted var(--primary);
    transition: var(--transition-fast);
}

.cookie-body a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.cookie-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
}

.cookie-btn {
    padding: 8px 16px;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-body);
}

.cookie-reject-btn {
    background: transparent;
    border: 1px solid rgba(15, 23, 42, 0.15);
    color: var(--text-dark);
}

.cookie-reject-btn:hover {
    background: rgba(15, 23, 42, 0.05);
}

.cookie-accept-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--bg-white);
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.15);
}

.cookie-accept-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(var(--primary-rgb), 0.25);
}

.cookie-accept-btn:active {
    transform: translateY(0);
}

/* Responsive Styles for Mobile Screen widths */
@media screen and (max-width: 576px) {
    .cookie-banner {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        padding: 20px 16px;
        transform: translateY(100%);
    }

    .cookie-banner.show {
        transform: translateY(0);
    }
    
    .cookie-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-icon {
        margin-top: 0;
    }
    
    .cookie-actions {
        width: 100%;
        margin-top: 12px;
    }
    
    .cookie-btn {
        flex: 1;
        text-align: center;
    }
}