/* Light Theme (Default) */
:root {
    --primary: #0b63bd; /* solid blue */
    --primary-dark: #083e8b;
    --primary-grad: linear-gradient(135deg, #0ea5e9 0%, #0b63bd 60%, #083e8b 100%);
    --cyan: #00d0ff; /* button cyan */
    --cyan-dark: #00a8cc;
    --accent: #00b3d6;
    --dark: #0f172a;
    --light: #ffffff;
    --gray: #64748b;
    --light-gray: #e5e7eb;
    --section-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border-light: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    
    /* Theme-specific variables */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --input-bg: #ffffff;
    --input-border: #d1d5db;
    --input-focus: #00d0ff;
    --card-bg: #ffffff;
    --nav-bg: rgba(255,255,255,0.95);
    --overlay: rgba(0,0,0,0.6);
}

/* Form required/optional and error styles */
label span[aria-hidden="true"] {
  color: #ef4444; /* red asterisk */
  margin-left: 4px;
}
.form-group .error-text,
.hq-row .error-text {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 6px;
}
.form-control.input-error,
.hq-row input.input-error,
.hq-row select.input-error,
.hq-row textarea.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

/* Dark Theme */
[data-theme="dark"] {
    --primary: #3b82f6; /* lighter blue for dark mode */
    --primary-dark: #1d4ed8;
    --primary-grad: linear-gradient(135deg, #60a5fa 0%, #3b82f6 60%, #1d4ed8 100%);
    --cyan: #06b6d4; /* adjusted cyan for dark mode */
    --cyan-dark: #0891b2;
    --accent: #06b6d4;
    --dark: #f8fafc;
    --light: #0f172a;
    --gray: #94a3b8;
    --light-gray: #334155;
    --section-bg: #0f172a;
    --card-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --border-light: #334155;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.3);
    
    /* Theme-specific variables for dark mode */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --border-hover: #475569;
    --input-bg: #1e293b;
    --input-border: #475569;
    --input-focus: #06b6d4;
    --card-bg: #1e293b;
    --nav-bg: rgba(15,23,42,0.95);
    --overlay: rgba(0,0,0,0.8);
}

/* Dark mode feature cards styling */
[data-theme="dark"] .feature {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .feature h4 {
    color: #60a5fa !important; /* Light blue for dark mode */
}

[data-theme="dark"] .feature p {
    color: #d1d5db !important; /* Light grey for dark mode */
}

/* Light mode feature cards text (override only in light mode) */
:root[data-theme="light"] .feature h4,
:root:not([data-theme="dark"]) .feature h4 {
    color: var(--text-primary) !important;
}

:root[data-theme="light"] .feature p,
:root:not([data-theme="dark"]) .feature p {
    color: var(--text-secondary) !important; /* use readable secondary text in light mode */
}

/* Dark mode review cards styling */
[data-theme="dark"] .review-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--cyan);
}

[data-theme="dark"] .review-date {
    color: #60a5fa !important; /* Light blue for dark mode */
}

[data-theme="dark"] .review-content p {
    color: #e2e8f0 !important; /* Light grey for dark mode */
}

[data-theme="dark"] .review-author {
    color: #60a5fa !important; /* Light blue for dark mode */
}

/* Auto dark mode based on system preference */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --primary: #3b82f6;
        --primary-dark: #1d4ed8;
        --primary-grad: linear-gradient(135deg, #60a5fa 0%, #3b82f6 60%, #1d4ed8 100%);
        --cyan: #06b6d4;
        --cyan-dark: #0891b2;
        --accent: #06b6d4;
        --dark: #f8fafc;
        --light: #0f172a;
        --gray: #94a3b8;
        --light-gray: #334155;
        --section-bg: #0f172a;
        --card-bg: #1e293b;
        --text-primary: #f8fafc;
        --text-secondary: #cbd5e1;
        --border-light: #334155;
        --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
        --shadow-md: 0 4px 12px rgba(0,0,0,0.2);
        --shadow-lg: 0 10px 25px rgba(0,0,0,0.3);
        
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --bg-tertiary: #334155;
        --text-primary: #f8fafc;
        --text-secondary: #cbd5e1;
        --text-muted: #94a3b8;
        --border-color: #334155;
        --border-hover: #475569;
        --input-bg: #1e293b;
        --input-border: #475569;
        --input-focus: #06b6d4;
        --card-bg: #1e293b;
        --nav-bg: rgba(15,23,42,0.95);
        --overlay: rgba(0,0,0,0.8);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--cyan);
    color: var(--dark);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--cyan-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-accent { 
    background: var(--primary-grad); 
    color: #fff; 
    box-shadow: var(--shadow-md);
}

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--cyan);
    color: var(--cyan);
}

.btn-outline:hover {
    background: var(--cyan);
    color: var(--dark);
    transform: translateY(-2px);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Buttons with icons: add spacing and slightly larger icon */
.btn i {
    margin-right: 8px;
    font-size: 1.1em;
    line-height: 1;
}

/* Top Navigation Bar */
.top-nav {
    background: var(--primary);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.top-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.company-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.call-button {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.3s;
}

.call-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Main Navigation */
/* Enhanced Navigation */
.main-nav {
    background: var(--nav-bg);
    backdrop-filter: saturate(140%) blur(12px);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 2001;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-shadow: none;
}

.nav-links a:hover {
    background: rgba(0,208,255,0.1);
    color: var(--cyan);
    transform: translateY(-2px);
}

/* Theme Toggle Button */
#theme-toggle {
    background: transparent;
    border: 2px solid var(--cyan);
    color: var(--cyan);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
}

#theme-toggle:hover {
    background: var(--cyan);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

#theme-toggle i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

#theme-toggle:hover i {
    transform: rotate(180deg);
}

/* Mobile drawer navigation */
@media (max-width: 768px) {
  .main-nav .container { position: relative; }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    left: 12px;
    top: 12px;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 1201;
    padding: 6px 8px;
  }
  .nav-links {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 33.33vw !important; /* exactly one-third of the screen */
    max-width: 320px !important;
    min-width: 220px !important;
    background: var(--card-bg);
    box-shadow: var(--shadow-lg);
    gap: 14px;
    padding: 64px 14px 14px; /* space for header */
    flex-direction: column;
    align-items: flex-start;
    display: flex;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 1200;
    border-right: 1px solid var(--border-color);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { width: 100%; }
  /* Clean, compact rows for standard links */
  .nav-links a:not(.btn-accent) {
    width: 100%;
    padding: 12px 4px 12px 8px;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    text-transform: uppercase;
    letter-spacing: .2px;
    transition: all 0.3s ease;
  }
  .nav-links li:not(:last-child) { border-bottom: 1px solid var(--border-color); }
  .nav-links a:not(.btn-accent):hover { 
    background: var(--bg-tertiary); 
    color: var(--text-primary);
  }
  .nav-links a:not(.btn-accent) i { 
    color: var(--text-secondary); 
    width: 20px; 
    text-align:center; 
    background:none; 
    padding:0; 
    border-radius:0; 
    font-size: 1.05rem;
    transition: color 0.3s ease;
  }
  /* Theme toggle in mobile nav */
  .nav-links #theme-toggle { 
    width: 100%; 
    margin: 8px 0; 
    justify-content: center; /* center like other items */
    align-items: center;
    padding: 12px 16px; 
    text-align: center;
  }
  /* Show a readable label next to the theme icon on mobile drawer */
  .nav-links #theme-toggle::after {
    content: ' Theme';
    display: inline-block;
    margin-left: 10px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: .2px;
    text-transform: uppercase;
  }
  /* CTA button pinned to bottom for nice layout */
  .nav-links .btn-accent { width: 100%; margin-top: auto; display: inline-flex; justify-content: center; align-items: center; border-radius: 12px; padding: 12px 14px; }
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35); /* dim the rest of the page so drawer width is obvious */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1199;
  }
  .nav-overlay.show { opacity: 1; pointer-events: auto; }
}

.nav-links .btn-accent {
    background: var(--primary-grad);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(11,99,189,0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.nav-links .btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(11,99,189,0.4);
    background: var(--primary-grad);
    color: white;
}

/* Enhanced Hero Quote Form */
.hero-quote-card {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    padding: 50px;
    border: 2px solid rgba(30, 64, 175, 0.2);
    backdrop-filter: blur(15px);
    z-index: 99;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.hero-quote-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--text-primary);
    text-align: center;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-quote-card label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.hero-quote-card input,
.hero-quote-card select,
.hero-quote-card textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1f2937;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hero-quote-card input:focus,
.hero-quote-card select:focus,
.hero-quote-card textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.hero-quote-card .btn {
    width: 100%;
    background: var(--cyan);
    color: var(--dark);
    font-weight: 800;
    padding: 18px;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    box-shadow: 0 6px 20px rgba(0,208,255,0.3);
    position: relative;
    z-index: 1000;
    cursor: pointer;
}

.hero-quote-card .btn:hover {
    background: var(--cyan-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,208,255,0.4);
    z-index: 1000;
}

.hero-quote-wrapper  {
    position: absolute;
    right: 5%;
    top: clamp(8px, 6vh, 120px); /* raised further (more) */
    z-index: 99;
    width: 420px;
    max-width: 92vw;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 6px; /* slightly closer to the text */
}

/* Image logo in nav */
.logo-img {
    height: 44px; /* reduced size */
    width: auto;
    max-width: 180px; /* prevent overly long logos from breaking layout */
    display: inline-block;
    object-fit: contain; /* show entire image without cropping */
    border-radius: 6px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
    padding-top: 15px;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Desktop: nudge nav links slightly lower for better vertical alignment */
@media (min-width: 769px) {
    .main-nav .nav-links {
        margin-top: 6px;
    }

    /* Desktop only: make hero WhatsApp button a bit larger */
    .hero .btn.btn-accent.hero-btn {
        padding: 16px 34px;
    }
}

/* Hero Section */
.hero { 
    height: 90vh; 
    height: 90svh; /* small viewport height for mobile browsers */
    height: 90dvh; /* dynamic viewport height for desktop browsers (Windows) */
    min-height: 560px; 
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: white; 
    overflow: hidden;
}

/* On browsers that support dvh explicitly, ensure we use it */
@supports (height: 100dvh) {
    .hero {
        height: 90dvh;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

/* On medium desktop widths, reserve space at the right for the quote card so it doesn't overlap the hero text */
@media (min-width: 981px) and (max-width: 1400px) {
    .hero-content {
        /* make room for the card width (380-420) plus some gap */
        padding-right: min(38vw, 560px);
        /* center the text within the remaining left area */
        padding-left: 0;
        width: auto;
        max-width: none;
        margin: 0 auto; 
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center; /* ensure internal centering */
        justify-content: center;
    }
    /* Explicitly center the inner hero text block */
    .hero-content .hero-text {
        max-width: 820px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
}

/* Large desktops: apply the same centering logic and reserve fixed space for the card */
@media (min-width: 1401px) {
    .hero-content {
        padding-right: 560px; /* reserve for the quote card */
        padding-left: 0;
        width: auto;
        max-width: none;
        margin: 0 auto;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center; /* ensure internal centering */
        justify-content: center;
    }
    .hero-content .hero-text {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
}

/* Ensure hero text centers by default inside its block */
.hero-content .hero-text { text-align: center; }

/* Hero Quote Card inspired layout */
.hero-quote-wrapper {
    position: absolute;
    right: 5%;
    top: clamp(8px, 6vh, 120px); /* raised further (more) */
    z-index: 99;
    width: 420px;
    max-width: 92vw;
    margin: 0 0 100px 0;
}

/* Tight desktop widths: stack the quote card under the hero text to guarantee no overlap */
@media (min-width: 981px) and (max-width: 1150px) {
    .hero {
        height: auto;
        min-height: 560px;
        padding-bottom: 120px;
    }
    .hero-content {
        padding-right: 20px; /* no reserve needed when card is stacked */
    }
    .hero-quote-wrapper {
        position: static;
        width: 100%;
        max-width: 620px;
        margin: 20px auto 0;
        right: auto;
        top: auto;
    }
}

/* Narrower desktops: slightly smaller card so text has more space */
@media (min-width: 981px) and (max-width: 1280px) {
    .hero-quote-wrapper { 
        width: 380px; 
        right: 3%;
    }
    .hero-quote-card { padding: 32px; }
}

/* Handle short viewport heights on laptops (common on Windows with taskbar + browser chrome) */
@media (max-height: 750px) and (min-width: 981px) {
    .hero {
        height: auto;
        min-height: 520px;
        padding: 40px 0 120px;
    }
    .hero-quote-wrapper {
        top: 40px;
        transform: translateY(0) scale(0.95);
    }
    .hero h1 {
        font-size: clamp(2rem, 3.5vw + 0.5rem, 3.2rem);
    }
}

/* Desktop defaults: ensure enough height and vertically center the form card */
@media (min-width: 981px) {
    .hero {
        height: auto;              /* let hero grow to fit content */
        padding: 100px 0;          /* breathing room top/bottom */
        overflow: visible;         /* avoid clipping the card */
    }
    /* Dynamic hero heights */
    .hero.is-collapsed { min-height: 560px; }
    .hero.is-expanded  { min-height: 840px; }
    .hero-quote-wrapper {
        top: 50%;
        transform: translateY(-50%);
    }
}

/* Very short screens: stack the quote card below hero content even on desktop widths */
@media (max-height: 650px) {
    .hero {
        height: auto;
        min-height: 500px;
        padding-bottom: 110px;
    }
    .hero-quote-wrapper {
        position: static;
        width: 100%;
        max-width: 640px;
        margin: 20px auto 0;
        transform: none;
    }
}

.hero-quote-card {
    background: var(--card-bg);
    color: var(--text-primary);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 40px;
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
    animation: slideInRight 1.2s ease-out 1.5s both, cardFloat 6s ease-in-out infinite;
    transform-origin: center;
}

.hero-quote-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-align: center;
}

.hero-quote-card .form-group {
    margin-bottom: 20px;
}

.hero-quote-card label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.hero-quote-card input,
.hero-quote-card select,
.hero-quote-card textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--light);
    color: var(--text-primary);
}

.hero-quote-card input:focus,
.hero-quote-card select:focus,
.hero-quote-card textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 208, 255, 0.1);
}

.hero-quote-card .btn {
    width: 100%;
    background: var(--cyan);
    color: var(--dark);
    font-weight: 700;
    padding: 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hero-quote-card .btn:hover {
    background: var(--cyan-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-quote-card input::placeholder,
.hero-quote-card textarea::placeholder {
    color: #6b7280;
    font-weight: 400;
}

.hero-quote-card select option {
    color: #1f2937;
    background: #ffffff;
}

.hero-quote-card .hq-row {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
}

.hero-quote-card .hq-row.two {
    grid-template-columns: 1fr 1fr;
}

.hero-quote-card input,
.hero-quote-card textarea,
.hero-quote-card select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
    color: #111827;
}

.hero-quote-card textarea {
    min-height: 80px;
    resize: vertical;
}

.hero-quote-card input:focus,
.hero-quote-card textarea:focus,
.hero-quote-card select:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 208, 255, 0.15);
    animation: formFieldFocus 0.3s ease-out forwards;
}

.hero-quote-card .hq-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 6px;
}

.hero-quote-card .field-hint {
    display: block;
    margin: -4px 0 8px;
    color: #0f172a;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.85rem;
}

/* Collapsible More Options */
.collapsible {
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.25s ease;
    max-height: 800px; /* expanded default for no-js */
    opacity: 1;
}
.collapsible.collapsed {
    max-height: 0;
    opacity: 0;
    margin: 0 !important;
}
.link-button {
    background: transparent;
    border: none;
    color: var(--cyan);
    font-weight: 700;
    cursor: pointer;
    padding: 6px 0;
    text-decoration: underline;
}
.link-button:hover { color: var(--cyan-dark); }

/* Floating WhatsApp button */
.floating-whatsapp {
    position: fixed;
    right: 20px;
    bottom: 20px;
    transform: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: pulse-whatsapp 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.floating-whatsapp i { font-size: 28px; }

.floating-whatsapp:hover { filter: brightness(0.95); }

/* Mobile Quick Request Bar */
.floating-quickbar { display:none; }
@media (max-width: 768px) {
  .floating-quickbar {
    position: fixed;
    left: 0; right: 0;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
    z-index: 1000;
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 -6px 20px rgba(0,0,0,0.08);
  }
  .floating-quickbar .qb-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    border: none;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    box-shadow: var(--shadow-md);
  }
  .floating-quickbar .qb-btn i { font-size: 1.1rem; }
  .floating-quickbar .qb-primary { background: var(--primary-grad); color:#fff; }
  .floating-quickbar .qb-whatsapp { background:#25D366; color:#fff; }
  .floating-quickbar .qb-call { background:#0ea5e9; color:#fff; }
  /* Add bottom spacing to page when quickbar is present */
  body.has-quickbar { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  body.has-quickbar .section { padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }
  body.has-quickbar .services { padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px)); }
  body.has-quickbar .booking { padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px)); }

  /* Extra space inside details so CTA clears the quickbar visually */
  .service-details { padding-bottom: 16px; }
}

/* Ensure quickbar never appears on desktop */
@media (min-width: 769px) { .floating-quickbar { display: none !important; } }

/* Responsiveness for hero quote card */
@media (max-width: 980px) {
    .hero-quote-wrapper {
        position: static;
        width: 100%;
        max-width: 640px;
        margin: 20px auto 0;
    }
    .hero { height: auto; min-height: 720px; padding-bottom: 120px; }
    .hero-content { padding-top: 40px; }
}

@media (max-width: 520px) {
    .hero-quote-card .hq-actions { grid-template-columns: 1fr; }
    .hero-quote-card .hq-row.two { grid-template-columns: 1fr; }
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
    animation: fadeInUp 1s ease-out 0.8s both;
    z-index: 20;
    position: relative;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw + 0.8rem, 3.8rem);
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 
        0 0 10px rgba(0, 208, 255, 0.6),
        0 0 20px rgba(0, 208, 255, 0.4),
        0 0 30px rgba(0, 208, 255, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.2s both;
}
/* Ensure the hero title spans the full available width for proper centering */
.hero .hero-text,
.hero h1 { width: 100%; }

/* Ensure each line in the hero title stacks and centers perfectly */
.hero h1 .hero-line {
    display: block;
    text-align: center;
}

.hero h1 .hero-line + .hero-line {
    margin-top: 6px; /* gentle spacing between lines */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    color: white;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.95);
    font-weight: 400;
    text-shadow: 
        0 0 8px rgba(0, 208, 255, 0.4),
        0 0 15px rgba(0, 208, 255, 0.2),
        0 1px 4px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.95);
    font-weight: 400;
    text-shadow: 
        0 0 8px rgba(0, 208, 255, 0.4),
        0 0 15px rgba(0, 208, 255, 0.2),
        0 1px 4px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease-out 0.5s both;
}

/* Universal Section Title Styling */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    display: block !important;
    visibility: visible !important;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--text-primary) !important;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
    display: block !important;
    visibility: visible !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #00d0ff, #0ea5e9, #00d0ff);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0,208,255,0.3);
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-secondary) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    display: block !important;
    visibility: visible !important;
    font-weight: 500;
}

/* Enhanced Button Visibility */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

/* Main submit button styling */
.form-actions button[type="submit"] {
    padding: 18px 40px !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    min-width: 220px;
    background: linear-gradient(135deg, #00d0ff 0%, #0ea5e9 50%, #38bdf8 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    box-shadow: 
        0 8px 32px rgba(0, 208, 255, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.1) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.form-actions button[type="submit"]:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 
        0 12px 40px rgba(0, 208, 255, 0.5),
        0 6px 24px rgba(0, 0, 0, 0.15) !important;
    background: linear-gradient(135deg, #38bdf8 0%, #00d0ff 50%, #0ea5e9 100%) !important;
}

/* Secondary buttons in form actions */
.form-actions .btn:not(button[type="submit"]) {
    padding: 12px 24px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    min-width: 160px;
}

.btn-cyan {
    background: var(--cyan);
    color: var(--light);
    box-shadow: var(--shadow-md);
}

.btn-cyan:hover {
    background: var(--cyan-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: var(--cyan);
    color: var(--dark);
    box-shadow: 0 6px 20px rgba(0,208,255,0.3);
}

.btn-primary:hover {
    background: var(--cyan-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,208,255,0.4);
    color: var(--dark);
}

.btn-accent { 
    background: var(--primary-grad); 
    color: #fff; 
    box-shadow: 0 6px 20px rgba(11,99,189,0.3);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(11,99,189,0.4);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 3px solid var(--cyan);
    color: var(--cyan);
    font-weight: 700;
}

.btn-outline:hover {
    background: var(--cyan);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,208,255,0.4);
}

.btn.hero-btn { 
    position: relative;
    font-weight: 700;
    padding: 18px 36px;
    font-size: 1.15rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    z-index: 15;
    animation: slideInUp 1s ease-out 1s both;
    display: inline-block;
    visibility: visible;
}

.btn.hero-btn.btn-cyan {
    background: linear-gradient(135deg, #25D366 0%, #1DB954 50%, #128C7E 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(37, 211, 102, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn.hero-btn.btn-cyan:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 12px 40px rgba(37, 211, 102, 0.4),
        0 6px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #2EE86C 0%, #25D366 50%, #1DB954 100%);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn.hero-btn.btn-cyan::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
    z-index: -1;
}

.btn.hero-btn.btn-cyan:hover::before {
    left: 100%;
}

.btn.hero-btn:not(.btn-cyan) {
    background: transparent;
    border: 3px solid rgba(255, 255, 255, 0.9);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.btn.hero-btn:not(.btn-cyan)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    transition: width 0.4s ease;
    z-index: -1;
}

.btn.hero-btn:not(.btn-cyan):hover {
    transform: translateY(-4px) scale(1.05);
    border-color: rgba(255, 255, 255, 1);
    color: white;
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.2);
}

.btn.hero-btn:not(.btn-cyan):hover::before {
    width: 100%;
}

.btn.hero-btn i {
    margin-right: 10px;
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.btn.hero-btn:hover i {
    transform: scale(1.1) rotate(5deg);
}

@keyframes heroBtnPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.btn.hero-btn.btn-cyan {
    animation: heroBtnPulse 2s infinite, slideInUp 1s ease-out 1s both;
}

.btn.hero-btn:hover {
    filter: brightness(1.1);
}

/* Section Styling */
.section {
    padding: 100px 0;
    position: relative;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

/* Specific section backgrounds for better visibility */
.services {
    background: var(--bg-secondary);
}

.additional-services {
    background: var(--bg-primary);
}

.stats-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

.about {
    background: var(--bg-primary);
}

#reviews-preview {
    background: var(--bg-secondary);
}

.booking {
    background: var(--bg-primary);
}

.map {
    background: var(--bg-secondary);
}

.feedback {
    background: var(--bg-primary);
}

/* Ensure all text is visible in different sections */
.services .section-title h2,
.additional-services .section-title h2,
.about .section-title h2,
#reviews-preview .section-title h2,
.booking .section-title h2,
.map .section-title h2,
.feedback .section-title h2 {
    color: #1f2937;
    text-shadow: 0 2px 6px rgba(0,0,0,0.1);
    font-weight: 800;
}

.services .section-title p,
.additional-services .section-title p,
.about .section-title p,
#reviews-preview .section-title p,
.booking .section-title p,
.map .section-title p,
.feedback .section-title p {
    color: #6b7280;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    font-weight: 500;
}

/* Dark sections need light text */
.stats-section .section-title h2 {
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.stats-section .section-title p {
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Special styling for Request a Tow section */
.booking .section-title h2 {
    color: #1f2937;
}

.booking .section-title h2 .tow-gradient {
    background: linear-gradient(135deg, #00d0ff 0%, #0ea5e9 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* Special styling for Track Record section */
.stats-section .section-title h2 .track-gradient {
    background: linear-gradient(135deg, #00d0ff 0%, #0ea5e9 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* Change icon color for track record section */
.stats-section .section-title h2 i.fas.fa-chart-line {
    background: linear-gradient(135deg, #00d0ff 0%, #0ea5e9 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Reviews Section Styling */
.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.review-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    /* Hidden initial state for reveal */
    opacity: 0;
    transform: translateY(16px) scale(0.98);
}

.review-card.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
    /* Stagger per card via JS */
    transition-delay: var(--review-delay, 0ms);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Hover shine sweep similar to About feature cards */
.review-card::after {
    content: "";
    position: absolute;
    top: 0; left: -30%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.22), rgba(255,255,255,0));
    transform: skewX(-20deg) translateX(-120%);
    opacity: 0;
    pointer-events: none;
}
.review-card:hover::after {
    animation: feature-sweep 0.9s ease forwards;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.review-stars {
    color: #ffd700;
    font-size: 1.2rem;
}

.review-stars i {
    margin-right: 2px;
}

.review-date {
    color: #1e40af !important; /* Dark blue for better contrast */
    font-size: 0.9rem;
    font-weight: 600;
}

.review-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #1e293b !important; /* Dark blue-grey for better readability */
    margin-bottom: 20px;
    font-style: italic;
    font-weight: 500;
}

.review-author {
    color: #1e40af !important; /* Dark blue for better contrast */
    font-weight: 600;
    font-size: 1.1rem;
}

.no-reviews {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.no-reviews p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* Service Categories */
.service-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.category-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
}

.category-card:hover { transform: translateY(-10px); box-shadow: 0 20px 45px rgba(0,0,0,.12); }

.category-image {
    height: 200px;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 8px;
    position: relative;
    background-size: cover; /* Back to cover for better fill */
    background-position: center center; /* Focus on center of image */
    background-repeat: no-repeat;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* scale background wrapper instead of img */
.category-card:hover .category-image { transform: scale(1.025); }
.category-card:hover .category-image::after { opacity: 1; }

.category-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
    display: block;
}

.category-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

/* Services Grid */
/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(0,208,255,0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(14,165,233,0.12) 0%, transparent 50%);
    pointer-events: none;
}

.stats-section .section-title {
    display: block;
}

.stats-section .section-title h2 {
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.stats-section .section-title h2::after {
    background: linear-gradient(90deg, #00d0ff, #0ea5e9);
    box-shadow: 0 2px 8px rgba(0,208,255,0.3);
}

.stats-section .section-title p {
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

.stat-card {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,208,255,0.1), rgba(14,165,233,0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.15);
    border-color: var(--cyan);
    box-shadow: 0 20px 40px rgba(0,208,255,0.2);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-grad);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,208,255,0.4);
}

.stat-icon i {
    font-size: 2rem;
    color: white;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--cyan);
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0,208,255,0.3);
    position: relative;
    z-index: 2;
}

.stat-label {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
}

.stat-description {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0,208,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(14,165,233,0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0,208,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.services::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 0%, rgba(0,208,255,0.05) 25%, transparent 50%, rgba(14,165,233,0.05) 75%, transparent 100%);
    pointer-events: none;
}

.services .section-title h2 {
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.services .section-title h2::after {
    background: linear-gradient(90deg, #00d0ff, #0ea5e9, #00d0ff);
    box-shadow: 0 2px 8px rgba(0,208,255,0.3);
}

.services .section-title p {
    color: var(--text-secondary);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

.service-card {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    overflow: hidden; /* clip to rounded corners on desktop */
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, height 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid rgba(0,208,255,0.1);
    backdrop-filter: blur(10px);
    height: auto;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    will-change: transform, opacity;
    /* Hidden pre-reveal state for staggered animation */
    opacity: 0;
    transform: translateY(20px);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,208,255,0.25);
    border-color: var(--cyan);
    opacity: 1;
}

.service-card.in-view {
    opacity: 1;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,208,255,0.25);
    border-color: var(--cyan);
    /* Staggered reveal per card (value set from JS) */
    transition-delay: var(--card-delay, 0ms);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,208,255,0.1), rgba(14,165,233,0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.service-card:hover::before,
.service-card.in-view::before {
    opacity: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0,208,255,0.1), transparent);
    opacity: 0;
    transition: all 0.6s ease;
    z-index: 0;
}

.service-card:hover::after,
.service-card.in-view::after {
    opacity: 1;
    transform: rotate(180deg);
}

.service-img {
    height: 250px;
    overflow: hidden;
    position: relative;
    background-size: cover; /* Back to cover for better fill */
    background-position: center center; /* Focus on center of image */
    background-repeat: no-repeat;
}

/* remove <img> specific rules since we use background images now */

/* Dark overlay to boost text contrast on hover */
.service-img::after,
.category-image::after,
.additional-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 10%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.55) 100%);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}

.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 45px rgba(0,0,0,.12); }
.service-card:hover .service-img img,
.service-card.in-view .service-img img { transform: scale(1.06); }
.service-card:hover .service-img::after,
.service-card.in-view .service-img::after { opacity: 1; }

/* Fancy gradient border + glow using pseudo-elements */
.service-card::before,
.category-card::before,
.additional-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 12px;
    background: conic-gradient(from 180deg at 50% 50%, rgba(225,29,72,.18), rgba(59,130,246,.18), rgba(16,185,129,.18), rgba(225,29,72,.18));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity .35s ease;
}

.service-card:hover::before,
.category-card:hover::before,
.additional-card:hover::before { opacity: 1; }

/* Subtle highlight sweep */
.service-card::after,
.category-card::after,
.additional-card::after {
    content: "";
    position: absolute;
    top: -40%;
    left: -20%;
    width: 60%;
    height: 180%;
    transform: rotate(25deg);
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.22) 40%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity .35s ease, transform .6s ease;
    pointer-events: none;
}

.service-card:hover::after,
.category-card:hover::after,
.additional-card:hover::after { opacity: .9; transform: translateX(120%) rotate(25deg); }

/* Enhanced Card Content Visibility */
.service-content {
    padding: 15px 15px 8px 15px;
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.98);
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.service-content h3 {
    margin-bottom: 8px;
    color: var(--dark-blue);
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* Hide the preview chips to avoid duplicate rows; keep only the main feature chips */
.service-features-preview {
    display: none;
}

.service-card:hover .service-features-preview,
.service-card.in-view .service-features-preview {
    opacity: 1;
    transform: none;
}
.service-card.in-view .service-features-preview { transition-delay: var(--reveal-delay, 0ms); }

/* Service details: normal flow, hidden by default, reveal when card is in view */
.service-details {
    position: static;            /* keep in flow so card height expands */
    padding-top: 8px;
    overflow: hidden;            /* hide while collapsed */
    opacity: 0;
    transform: translateY(8px);
    max-height: 0;
    transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease;
    will-change: opacity, transform, max-height;
}

.service-card.in-view .service-details {
    opacity: 1;
    transform: translateY(0);
    max-height: 1000px;          /* sufficiently large to fit content */
}
.service-card.in-view .service-details { transition-delay: var(--reveal-delay, 0ms); }

.service-details p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Dark mode: unify service & category cards (bg, border, radius, shadow) */
[data-theme="dark"] .service-card,
[data-theme="dark"] .category-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.35);
}

[data-theme="dark"] .service-content {
    background: transparent !important; /* match the card background */
}

[data-theme="dark"] .service-content h3 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .service-content p {
    color: var(--text-secondary) !important;
}

/* Ensure feature chips remain readable in dark mode */
[data-theme="dark"] .service-feature {
    background: rgba(148, 163, 184, 0.15); /* slate-400 at low opacity */
    color: #e5e7eb; /* text-gray-200 */
}

/* Remove dark bands on images in dark mode so top area matches card */
[data-theme="dark"] .service-img::after,
[data-theme="dark"] .category-image::after {
    background: none !important;
    opacity: 0 !important;
}
[data-theme="dark"] .service-img,
[data-theme="dark"] .category-image {
    background-color: transparent !important;
}

/* System dark mode support */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .service-card,
  :root:not([data-theme="light"]) .category-card {
      background: var(--card-bg);
      border: 1px solid var(--border-color);
      border-radius: 20px;
      box-shadow: 0 8px 25px rgba(0,0,0,0.35);
  }
  :root:not([data-theme="light"]) .service-content { background: transparent; }
  :root:not([data-theme="light"]) .service-content h3 { color: var(--text-primary) !important; }
  :root:not([data-theme="light"]) .service-content p { color: var(--text-secondary) !important; }
  :root:not([data-theme="light"]) .service-feature {
      background: rgba(148, 163, 184, 0.15);
      color: #e5e7eb;
  }
  :root:not([data-theme="light"]) .service-img::after,
  :root:not([data-theme="light"]) .category-image::after {
      background: none !important;
      opacity: 0 !important;
  }
  :root:not([data-theme="light"]) .service-img,
  :root:not([data-theme="light"]) .category-image { background-color: transparent !important; }
}

/* Dark mode: make category cards match service cards (same bg + text colors) */
[data-theme="dark"] .category-card h3 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .category-card p {
    color: var(--text-secondary) !important;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .category-card {
      background: var(--card-bg);
      border: 1px solid var(--border-color);
  }
  :root:not([data-theme="light"]) .category-card h3 { color: var(--text-primary) !important; }
  :root:not([data-theme="light"]) .category-card p { color: var(--text-secondary) !important; }
}

.service-details .btn { margin-top: 8px; margin-bottom: 12px; position: relative; z-index: 2; }

.service-features-full {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    margin-bottom: 6px;
}

.service-feature {
    background: linear-gradient(135deg, var(--light-blue), #e8f4fd);
    color: var(--dark-blue);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.service-feature:hover {
    background: linear-gradient(135deg, #00d0ff, var(--light-blue));
    color: white;
    transform: translateY(-2px);
}

.service-content p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.additional-card h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 800;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.additional-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Enhanced About Section */
.about-text h3 {
    color: var(--text-primary);
    margin-bottom: 25px;
    font-size: 2rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.about-features li {
    color: var(--text-secondary);
    margin-bottom: 15px;
    padding-left: 35px;
    position: relative;
    font-size: 1rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.about-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-weight: bold;
    font-size: 1.3rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Enhanced Footer */
.footer-section h3 {
    color: var(--cyan);
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: 800;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.footer-section a:hover {
    color: var(--cyan);
    text-shadow: 0 1px 3px rgba(0,208,255,0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Always show full description (no truncation) */
.service-card .service-content p,
.category-card p,
.additional-card p {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
    position: static;
    max-height: none;
}

.service-card .service-content p::after,
.category-card p::after,
.additional-card p::after {
    display: none;
}

/* Descriptions are always fully visible; hover state unchanged */

.service-card:hover .service-content p::after,
.service-card.in-view .service-content p::after,
.category-card:hover p::after,
.additional-card:hover p::after { display: none; }

/* Make text more visible on hover */
.service-card .service-content h3,
.service-card .service-content p,
.category-card h3,
.additional-card h3 { transition: color .3s ease, text-shadow .3s ease; }

.service-card:hover .service-content h3,
.service-card.in-view .service-content h3,
.service-card:hover .service-content p,
.service-card.in-view .service-content p { color: #0b1220; text-shadow: 0 1px 0 rgba(255,255,255,.25); }

.category-card:hover h3,
.additional-card:hover h3 { color: #0b1220; text-shadow: 0 1px 0 rgba(255,255,255,.25); }

/* Blink glow once on hover */
@keyframes blinkGlow {
    0% { opacity: 0; }
    35% { opacity: 1; }
    70% { opacity: .4; }
    100% { opacity: 1; }
}

.service-card:hover::before,
.category-card:hover::before,
.additional-card:hover::before { animation: blinkGlow .9s ease both; }

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    margin-bottom: 6px;
}

.service-feature {
    background: var(--light-gray);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Additional Services */
.additional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.additional-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-align: center;
    position: relative;
    border: 1px solid var(--border-light);
    padding: 40px 30px;
}

.additional-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-lg);
    border-color: var(--cyan);
}

.additional-icon-badge {
    width: 80px;
    height: 80px;
    background: var(--primary-grad);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: all 0.3s ease;
}

.additional-card:hover .additional-icon-badge {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 208, 255, 0.3);
}

.additional-icon-badge i {
    font-size: 2rem;
    color: white;
}

.additional-card h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 1.3rem;
    font-weight: 700;
}

.additional-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.additional-image {
    height: 200px;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 8px;
    position: relative;
    background-size: cover; /* Back to cover for better fill */
    background-position: center center; /* Focus on center of image */
    background-repeat: no-repeat;
}

/* removed img rules: background images used */

.additional-card:hover .additional-image { transform: scale(1.025); }
.additional-card:hover .additional-image::after { opacity: 1; }

/* Optional: cursor-follow tilt (JS will add inline transform) */
.tilt-enabled { will-change: transform; }

.additional-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
    display: block;
}

.additional-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

/* Icon tile style like professional industry grid */
.icon-tile {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #eef2f7;
    border-radius: 16px;
    padding: 28px 22px;
    box-shadow: 0 10px 24px rgba(2,6,23,.04);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}

.icon-tile .tile-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    background: radial-gradient(80% 80% at 30% 20%, #0ea5e9 0%, #1e3a8a 100%);
    color: #fff;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.25), 0 10px 20px rgba(2,6,23,.15);
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.icon-tile .tile-icon i { font-size: 32px; }

.icon-tile:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(2,6,23,.12); border-color: #dbe7ff; }
.icon-tile:hover .tile-icon { transform: scale(1.06) rotate(-2deg); filter: saturate(1.2); }

.icon-tile h3 { color: #0f172a; margin-bottom: 6px; }
.icon-tile p { color: #334155; font-size: .98rem; }

/* About Section */
.about {
    background: var(--light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: scale(1.02);
}

/* About: animated reveal and shine for image */
.about-image {
    position: relative;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}
.about-image.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: var(--about-img-delay, 0ms);
}
.about-image::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.25) 50%, transparent 60%);
    transform: translateX(-120%) rotate(15deg);
    opacity: 0;
    pointer-events: none;
}
.about-image:hover::after { 
    animation: about-shine 1s ease forwards; 
}

@keyframes about-shine {
    0% { opacity: 0; transform: translateX(-120%) rotate(15deg); }
    10% { opacity: 1; }
    100% { opacity: 0; transform: translateX(120%) rotate(15deg); }
}

/* Optional gentle float once visible */
.about-image.in-view img { 
    animation: about-float 8s ease-in-out infinite alternate; 
}
@keyframes about-float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}

.about-text h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-features {
    list-style: none;
    margin-top: 30px;
}

.about-features li {
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

.about-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-weight: bold;
    font-size: 1.2rem;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.about-text p {
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* About feature cards: animated reveal + hover lift */
.about .feature {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--cyan);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    padding: 18px 16px 16px 16px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease;
    will-change: opacity, transform;
}
.about .feature.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: var(--about-delay, 0ms);
}
.about .feature:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-lg);
}
.about .feature::after {
    content: "";
    position: absolute;
    top: 0; left: -30%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.25), rgba(255,255,255,0));
    transform: skewX(-20deg) translateX(-120%);
    opacity: 0;
    pointer-events: none;
}
.about .feature:hover::after { 
    animation: feature-sweep 0.9s ease forwards; 
}
@keyframes feature-sweep {
    0% { opacity: 0; transform: skewX(-20deg) translateX(-120%); }
    20% { opacity: 1; }
    100% { opacity: 0; transform: skewX(-20deg) translateX(220%); }
}

.feature {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.feature h4 {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.feature p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Booking Form */
.booking {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 50%, #1e293b 100%);
    color: white;
}

.section-title h2,
.section-title p {
    color: white;
}

.form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.form-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-details {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-top: 5px;
}

.contact-text a {
    color: white;
    text-decoration: none;
}

.contact-text a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus {
    outline: none;
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(0,208,255,0.15);
}

/* Ensure dropdown option text is visible */
.form-control option {
    color: var(--text-primary);
    background: var(--input-bg);
}

/* Booking form: ensure proper contrast in dark sections */
.booking .form-control {
    background: var(--input-bg) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--input-border) !important;
}

.booking .form-control::placeholder {
    color: var(--text-muted) !important;
}

/* Simple invalid input highlight */
.input-error,
.form-control.input-error {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

/* Map Section */
.map-container {
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

#leafletMap { width: 100%; height: 100%; }
.leaflet-container { background: #eef2f7; font-family: 'Roboto', sans-serif; }
.leaflet-control-zoom a { background:#0f172a; color:#e2e8f0; border:none; box-shadow:0 4px 12px rgba(0,0,0,.2); }
.leaflet-popup-content-wrapper { background:#0f172a; color:#e2e8f0; border-radius:10px; box-shadow:0 10px 24px rgba(0,0,0,.35); }
.leaflet-popup-tip { background:#0f172a; }

.map-info {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, .35);
    box-shadow: 0 20px 40px rgba(2,6,23,.15);
    max-width: 280px;
    z-index: 1000;
}
.map-info h4 { margin: 0 0 6px; color: #1e3a8a; }
.map-info p { margin: 4px 0; font-size: .95rem; }

/* iframe removed; Leaflet takes over */

/* Footer */
/* Enhanced Footer */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    color: white;
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(0,208,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(14,165,233,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h3 {
    color: var(--cyan);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--cyan);
}

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

.footer-col h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

.footer-about {
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--light-gray);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
}

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

.footer-links a i {
    font-size: 0.8rem;
    color: var(--accent);
}

.copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--light-gray);
}

/* Copyright color override in dark modes */
[data-theme="dark"] .copyright {
    color: var(--cyan) !important;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .copyright {
      color: var(--cyan) !important;
  }
}

/* Enhanced Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.lightbox img:hover {
    transform: scale(1.02);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #00d0ff;
}

/* Clickable images cursor */
.clickable-img {
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.clickable-img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--accent);
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 15px;
    font-size: 1.1rem;
}

/* Image click effect */
.clickable-img {
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.clickable-img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Feedback Section */
.feedback {
    background-color: #f8fafc;
    padding: 80px 0;
}

.feedback-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.feedback-form {
    flex: 1;
    max-width: 600px;
}

.feedback-form .form-group {
    margin-bottom: 1.5rem;
}

.feedback-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
}

.feedback-form .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #1f2937;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.feedback-form .form-control:focus {
    color: #1f2937;
    background-color: #fff;
    border-color: #3b82f6;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.feedback-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Dark mode styles for feedback section */
[data-theme="dark"] .section.feedback {
    background: var(--bg-primary);
}

[data-theme="dark"] .feedback-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .feedback-form label {
    color: var(--text-primary);
}

[data-theme="dark"] .feedback-form .form-control {
    background: var(--input-bg);
    color: var(--text-primary);
    border: 1px solid var(--input-border);
}

[data-theme="dark"] .feedback-form .form-control:focus {
    background: var(--input-bg);
    color: var(--text-primary);
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(0,208,255,0.15);
}

[data-theme="dark"] .feedback .section-title h2 {
    color: var(--text-primary);
}

[data-theme="dark"] .feedback .section-title p {
    color: #60a5fa;
}

[data-theme="dark"] .feedback .section-title p#paragraph {
    color: #60a5fa !important;
}

/* Dark mode styles for footer */
[data-theme="dark"] .footer-section h3 {
    color: var(--cyan) !important;
}

[data-theme="dark"] .footer-section p,
[data-theme="dark"] .footer-section li {
    color: rgba(255, 255, 255, 0.9) !important;
}

[data-theme="dark"] .footer-section a {
    color: rgba(255, 255, 255, 0.9) !important;
}

[data-theme="dark"] .footer-section a:hover {
    color: var(--cyan) !important;
}

[data-theme="dark"] .footer-bottom {
    color: rgba(255, 255, 255, 0.6) !important;
}

[data-theme="dark"] .footer-links a {
    color: rgba(255, 255, 255, 0.9) !important;
}

[data-theme="dark"] .footer-links a:hover {
    color: var(--cyan) !important;
}

/* System dark mode support for feedback section */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .section.feedback {
        background: var(--bg-primary);
    }

    :root:not([data-theme="light"]) .feedback-container {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    :root:not([data-theme="light"]) .feedback-form label {
        color: var(--text-primary);
    }

    :root:not([data-theme="light"]) .feedback-form .form-control {
        background: var(--input-bg);
        color: var(--text-primary);
        border: 1px solid var(--input-border);
    }

    :root:not([data-theme="light"]) .feedback-form .form-control:focus {
        background: var(--input-bg);
        color: var(--text-primary);
        border-color: var(--input-focus);
        box-shadow: 0 0 0 3px rgba(0,208,255,0.15);
    }

    :root:not([data-theme="light"]) .feedback .section-title h2 {
        color: var(--text-primary);
    }

    :root:not([data-theme="light"]) .feedback .section-title p {
        color: #60a5fa;
    }

    :root:not([data-theme="light"]) .feedback .section-title p#paragraph {
        color: #60a5fa !important;
    }

    /* System dark mode footer styles */
    :root:not([data-theme="light"]) .footer-section h3 {
        color: var(--cyan) !important;
    }

    :root:not([data-theme="light"]) .footer-section p,
    :root:not([data-theme="light"]) .footer-section li {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    :root:not([data-theme="light"]) .footer-section a {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    :root:not([data-theme="light"]) .footer-section a:hover {
        color: var(--cyan) !important;
    }

    :root:not([data-theme="light"]) .footer-bottom {
        color: rgba(255, 255, 255, 0.6) !important;
    }

    :root:not([data-theme="light"]) .footer-links a {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    :root:not([data-theme="light"]) .footer-links a:hover {
        color: var(--cyan) !important;
    }
}

.feedback-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feedback-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.feedback-image img:hover {
    transform: scale(1.03);
}

.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
    margin: 10px 0 20px;
    gap: 8px;
}

.rating-stars input[type="radio"] {
    display: none;
}

.rating-stars label {
    color: #e4e4e4;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.rating-stars input[type="radio"]:checked~label,
.rating-stars input[type="radio"]:hover~label,
.rating-stars label:hover,
.rating-stars label:hover~label {
    color: #f59e0b;
}

.rating-stars input[type="radio"]:checked~label {
    color: #f59e0b;
}

/* Error message styling */
.error-message {
    display: none;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    background-color: #fee2e2;
    color: #b91c1c;
    font-size: 0.875rem;
}

.error-message.show {
    display: block;
}

.success-message {
    display: none;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    background-color: #dcfce7;
    color: #166534;
    font-size: 0.875rem;
}

.success-message.show {
    display: block;
}

/* ========================================
   COMPREHENSIVE MOBILE & TABLET RESPONSIVE DESIGN
   ======================================== */

/* Mobile Navigation */
@media (max-width: 768px) {
    .main-nav .container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        padding: 12px 20px;
        border-radius: 8px;
        background: rgba(0, 208, 255, 0.1);
        transition: all 0.3s ease;
    }
    
    .nav-links a:hover {
        background: rgba(0, 208, 255, 0.2);
        transform: none;
    }
}

/* Hero Section Mobile Optimization */
@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 60px 0 40px;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .hero-content {
        padding: 20px;
        text-align: center;
        order: 1;
        margin-bottom: 30px;
    }
    
    .hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: clamp(1rem, 4vw, 1.2rem);
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        margin-top: 25px;
    }
    
    .hero .btn.hero-btn {
        width: 280px;
        max-width: 90vw;
        padding: 14px 24px;
        font-size: 1rem;
        border-radius: 25px;
    }
    
    /* Hero Quote Form Mobile */
    .hero-quote-wrapper {
        position: static;
        width: 100%;
        max-width: 100%;
        margin: 0;
        order: 2;
    }
    
    .hero-quote-card {
        padding: 25px 20px;
        border-radius: 15px;
        margin: 0 10px;
    }
    
    .hero-quote-card h3 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .hero-quote-card .hq-row.two {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .hero-quote-card input,
    .hero-quote-card select,
    .hero-quote-card textarea {
        padding: 12px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .hero-quote-card .btn {
        padding: 16px;
        font-size: 1rem;
    }
}

/* Tablet Hero Optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero {
        height: auto;
        min-height: 90vh;
        padding: 80px 0 60px;
    }
    
    .hero-content {
        padding: 0 30px;
        margin-bottom: 40px;
    }
    
    .hero h1 {
        font-size: clamp(2.2rem, 6vw, 3rem);
    }
    
    .hero p {
        font-size: clamp(1.1rem, 3vw, 1.3rem);
    }
    
    .hero-quote-wrapper {
        position: static;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero-quote-card {
        padding: 35px 30px;
    }
}

/* Service Cards Mobile Optimization */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 10px;
    }
    
    .service-card {
        margin: 0;
        height: auto;
        min-height: 280px;
        border-radius: 15px;
        contain: layout paint;     /* isolate layout/paint for smoother animations */
    }
    
    .service-card.in-view {
        transform: translateY(-5px); /* transform-only animation */
    }
    
    .service-card:hover {
        transform: translateY(-5px);
    }
    
    .service-img {
        height: 180px;
        border-radius: 15px 15px 0 0;
        background-size: cover; /* Cover for better fill on mobile */
        background-position: center center;
        background-repeat: no-repeat;
    }
    
    .service-content {
        padding: 12px 12px 5px 12px;
    }
    
    .service-content h3 {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }
    
    .service-details {
        position: static; /* keep in flow on mobile */
        top: auto; left: auto; right: auto; bottom: auto;
        overflow: hidden; /* allow collapse */
        /* use the same opacity/transform from the base rules */
    }
    
    /* base rules handle reveal */
    
    .service-features-preview {
        display: none;
    }
    
    .service-card.in-view .service-features-preview {
        opacity: 0;
        transform: translateY(-15px);
    }
    
    /* Remove tap prompts in new auto-reveal behavior */
    .service-card { cursor: default; position: relative; }
    .service-card::after { content: none; }
}

/* Service Categories Mobile */
@media (max-width: 768px) {
    .service-categories {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .category-card {
        border-radius: 15px;
        overflow: hidden;
    }
    
    .category-image {
        height: 160px;
        border-radius: 15px 15px 0 0;
        background-size: cover; /* Cover for better fill on mobile */
        background-position: center center;
        background-repeat: no-repeat;
    }
    
    .category-card i {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .category-card h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .category-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Additional Services Mobile */
@media (max-width: 768px) {
    .additional-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .additional-card {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .additional-card h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .additional-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .tile-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 12px;
    }
    
    .tile-icon i {
        font-size: 24px;
    }
}

/* Stats Section Mobile */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 10px;
    }
    
    .stat-card {
        padding: 25px 15px;
        border-radius: 15px;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 15px;
    }
    
    .stat-icon i {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    .stat-label {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .stat-description {
        font-size: 0.85rem;
    }
}

/* About Section Mobile */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-text h2 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    
    .about-text p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 20px;
    }
    
    .feature {
        padding: 15px;
        text-align: center;
    }
    
    .feature i {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .feature h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .feature p {
        font-size: 0.85rem;
    }
}

/* Reviews Mobile */
@media (max-width: 768px) {
    .reviews-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .review-card {
        padding: 20px;
        border-radius: 12px;
    }
    
    .review-content p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .review-author {
        font-size: 1rem;
    }
}

/* Booking Form Mobile */
@media (max-width: 768px) {
    .form-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 25px 20px;
    }
    
    .form-info h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .contact-item {
        margin-bottom: 15px;
    }
    
    .contact-item i {
        font-size: 1.2rem;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-control {
        padding: 12px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions button,
    .form-actions a {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }
}

/* Map Section Mobile */
@media (max-width: 768px) {
    .map-container {
        height: 300px;
        margin: 0 10px;
        border-radius: 12px;
    }
    
    .map-info {
        position: static;
        max-width: 100%;
        margin: 15px 0;
        padding: 15px;
    }
    
    .map-info h4 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .map-info p {
        font-size: 0.9rem;
        margin: 3px 0;
    }
}

/* Footer Mobile */
@media (max-width: 768px) {
    .footer {
        padding: 50px 0 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 10px;
    }
    
    .footer-col h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .footer-section p,
    .footer-section li {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 15px;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
    }
}

/* Floating WhatsApp Button Mobile */
@media (max-width: 768px) {
    .floating-whatsapp {
        width: 55px;
        height: 55px;
        right: 15px;
        bottom: 15px;
        font-size: 1.3rem;
    }
    
    .floating-whatsapp i {
        font-size: 24px;
    }
}

/* Section Titles Mobile */
@media (max-width: 768px) {
    .section-title h2 {
        font-size: 1.6rem !important;
        margin-bottom: 15px;
    }
    
    .section-title p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .section {
        padding: 60px 0;
    }
}

/* Tablet Specific Optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .service-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .additional-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .reviews-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .about-content {
        gap: 40px;
    }
    
    .form-container {
        gap: 35px;
        padding: 35px;
    }
    
    /* Enable animations on tablet */
    .service-card,
    .category-card,
    .additional-card,
    .stat-card,
    .review-card {
        animation: fadeInUp 0.8s cubic-bezier(.23, 1.01, .32, 1) both;
    }
    
    /* Enable hover effects on tablet */
    .service-card:hover,
    .category-card:hover,
    .additional-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }
    
    /* Service card details behavior for tablet (same as mobile) */
    .service-card {
        margin: 0;
        height: 480px;             /* fixed to prevent layout shift */
        min-height: 480px;
        transition: transform 0.3s ease, box-shadow 0.3s ease; /* no height transition */
        contain: layout paint;
    }
    
    .service-card.in-view {
        transform: translateY(-8px); /* transform-only */
    }
    
    .service-details {
        position: static;
        top: auto; left: auto; right: auto; bottom: auto;
        overflow: hidden; /* allow collapse */
        /* keep base opacity/transform transitions */
        backface-visibility: visible;
    }
    
    .service-card.in-view .service-details { /* base rules handle reveal */ }
    
    .service-features-preview {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 0;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .service-card.in-view .service-features-preview {
        opacity: 0;
        transform: translateY(-15px);
    }
    
    /* Additional card active state for tablet */
    .additional-card.active {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }
    
    .additional-card.active p {
        -webkit-line-clamp: unset;
        line-clamp: unset;
        max-height: 100vh;
    }
    
    .additional-card.active p::after {
        display: none;
    }
    
    /* Add visual indicator for additional cards on tablet */
    .additional-card {
        cursor: pointer;
        position: relative;
    }
    
    .additional-card::after {
        content: 'Tap to read more';
        position: absolute;
        bottom: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 0.75rem;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    
    .additional-card:hover::after,
    .additional-card:active::after {
        opacity: 1;
    }
    
    .additional-card.active::after {
        content: 'Tap to close';
        opacity: 1;
    }
    
    /* Enable button animations */
    .btn,
    .hero-btn {
        animation: pulse 2s infinite;
    }
    
    /* Enable hero animations */
    .hero h1 {
        animation: fadeInUp 1s ease-out 0.2s both;
    }
    
    .hero p {
        animation: fadeInUp 1s ease-out 0.5s both;
    }
    
    .hero-buttons {
        animation: fadeInUp 1s ease-out 0.8s both;
    }
    
    /* Enable section title animations */
    .section-title h2 {
        animation: fadeInUp 0.8s ease-out both;
    }
    
    .section-title p {
        animation: fadeInUp 0.8s ease-out 0.2s both;
    }
}

/* Extra Small Devices (320px and below) */
@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .hero .btn.hero-btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .hero-quote-card {
        padding: 20px 15px;
        margin: 0 5px;
    }
    
    .hero-quote-card h3 {
        font-size: 1.2rem;
    }
    
    .service-card,
    .category-card,
    .additional-card {
        margin: 0 5px;
    }
    
    .section-title h2 {
        font-size: 1.4rem !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 40px 0 30px;
    }
    
    .hero-content {
        margin-bottom: 20px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-quote-card {
        padding: 20px;
    }
    
    .service-img,
    .category-image {
        height: 120px;
    }
}

/* Touch-friendly improvements for mobile */
@media (max-width: 768px) {
    /* Ensure all interactive elements are touch-friendly */
    .btn,
    .hero-btn,
    .nav-links a,
    .floating-whatsapp {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Improve touch targets for form elements */
    .hero-quote-card input,
    .hero-quote-card select,
    .hero-quote-card textarea,
    .form-control {
        min-height: 44px;
        padding: 12px 16px;
    }
    
    /* Better spacing for touch interaction */
    .service-card,
    .category-card,
    .additional-card {
        margin-bottom: 20px;
    }
    
    /* Improve readability on small screens */
    .hero h1 .hero-line {
        margin-bottom: 4px;
    }
    
    /* Better button spacing */
    .hero-buttons .btn {
        margin-bottom: 10px;
    }
    
    /* Improve form field spacing */
    .hero-quote-card .hq-row {
        margin-bottom: 15px;
    }
    
    /* Better card hover states for touch devices */
    .service-card:active,
    .category-card:active,
    .additional-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Enable animations on mobile and tablet */
    .service-card,
    .category-card,
    .additional-card,
    .stat-card,
    .review-card {
        animation: fadeInUp 0.8s cubic-bezier(.23, 1.01, .32, 1) both;
    }
    
    /* Ensure hover effects work on touch devices */
    .service-card:hover,
    .category-card:hover,
    .additional-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }
    
    /* Enable button animations */
    .btn,
    .hero-btn {
        animation: pulse 2s infinite;
    }
    
    /* Enable hero animations */
    .hero h1 {
        animation: fadeInUp 1s ease-out 0.2s both;
    }
    
    .hero p {
        animation: fadeInUp 1s ease-out 0.5s both;
    }
    
    .hero-buttons {
        animation: fadeInUp 1s ease-out 0.8s both;
    }
    
    /* Enable section title animations */
    .section-title h2 {
        animation: fadeInUp 0.8s ease-out both;
    }
    
    .section-title p {
        animation: fadeInUp 0.8s ease-out 0.2s both;
    }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-quote-card,
    .service-card,
    .category-card,
    .additional-card {
        border-width: 0.5px;
    }
}

/* Enhanced Dark Mode Support */
[data-theme="dark"] .hero-quote-card {
    background: rgba(30, 41, 59, 0.95);
    color: var(--text-primary);
    border-color: rgba(59, 130, 246, 0.3);
}

@media (prefers-color-scheme: dark) {
    .hero-quote-card {
        background: var(--card-bg);
        color: var(--text-primary);
        border-color: var(--border-color);
    }
    
    .hero-quote-card input,
    .hero-quote-card select,
    .hero-quote-card textarea {
        background: var(--input-bg);
        color: var(--text-primary);
        border-color: var(--input-border);
    }
    
    .hero-quote-card input::placeholder,
    .hero-quote-card textarea::placeholder {
        color: var(--text-muted);
    }
    
    .hero-quote-card label {
        color: var(--text-primary);
    }
}

/* Dark mode specific improvements */
[data-theme="dark"] {
    .service-card,
    .category-card,
    .additional-card,
    .review-card {
        background: var(--card-bg);
        border-color: var(--border-color);
        color: var(--text-primary);
    }
    
    .service-card h3,
    .category-card h3,
    .additional-card h3 {
        color: var(--text-primary);
    }
    
    .service-card p,
    .category-card p,
    .additional-card p {
        color: var(--text-secondary);
    }
    
    .footer {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    }
    
    .stats-section {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    }
    
    .booking {
        background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 50%, #1e293b 100%);
    }
    
    /* Enhanced navigation visibility in dark mode */
    .nav-links a {
        color: #f8fafc;
        font-weight: 700;
    }
    
    .nav-links a:hover {
        color: var(--cyan);
        background: rgba(6, 182, 212, 0.15);
    }
    
    .nav-links a i {
        color: var(--cyan);
    }
    
    /* Mobile navigation improvements */
    .nav-links {
        background: var(--card-bg);
        border-right-color: var(--border-color);
    }
    
    .nav-links a:not(.btn-accent) {
        color: #f8fafc;
        font-weight: 700;
    }
    
    .nav-links a:not(.btn-accent):hover {
        background: rgba(6, 182, 212, 0.15);
        color: var(--cyan);
    }
    
    .nav-links a:not(.btn-accent) i {
        color: var(--cyan);
    }
    
    .nav-links li:not(:last-child) {
        border-bottom-color: var(--border-color);
    }
}

/* Additional Mobile & Tablet Animations */
@media (max-width: 1024px) {
    /* Ensure all animations work on mobile and tablet */
    * {
        animation-fill-mode: both;
    }
    
    /* Hero section animations */
    .hero-slider .slide {
        animation: slideShow 12s infinite;
    }
    
    /* Card entrance animations */
    .service-card:nth-child(1) { animation-delay: 0.1s; }
    .service-card:nth-child(2) { animation-delay: 0.2s; }
    .service-card:nth-child(3) { animation-delay: 0.3s; }
    
    .category-card:nth-child(1) { animation-delay: 0.1s; }
    .category-card:nth-child(2) { animation-delay: 0.2s; }
    .category-card:nth-child(3) { animation-delay: 0.3s; }
    
    .additional-card:nth-child(1) { animation-delay: 0.1s; }
    .additional-card:nth-child(2) { animation-delay: 0.2s; }
    .additional-card:nth-child(3) { animation-delay: 0.3s; }
    
    .stat-card:nth-child(1) { animation-delay: 0.1s; }
    .stat-card:nth-child(2) { animation-delay: 0.2s; }
    .stat-card:nth-child(3) { animation-delay: 0.3s; }
    .stat-card:nth-child(4) { animation-delay: 0.4s; }
    
    /* Button animations */
    .btn, .hero-btn {
        animation: pulse 2s infinite, fadeInUp 0.8s ease-out both;
    }
    
    /* Form animations */
    .hero-quote-card {
        animation: slideInRight 1.2s ease-out 1.5s both, cardFloat 6s ease-in-out infinite;
    }
    
    /* Stats counter animation */
    .stat-number {
        animation: countUp 2s ease-out both;
    }
    
    /* Review cards animation */
    .review-card {
        animation: fadeInUp 0.8s ease-out both;
    }
    
    .review-card:nth-child(1) { animation-delay: 0.1s; }
    .review-card:nth-child(2) { animation-delay: 0.2s; }
    .review-card:nth-child(3) { animation-delay: 0.3s; }
    .review-card:nth-child(4) { animation-delay: 0.4s; }
    .review-card:nth-child(5) { animation-delay: 0.5s; }
    .review-card:nth-child(6) { animation-delay: 0.6s; }
}

/* Additional keyframes for mobile animations */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes cardFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-8px) rotate(0.5deg); 
    }
}

@media (max-width: 768px) {
    .feedback-container {
        flex-direction: column;
        padding: 1.25rem;
        gap: 1rem;
    }

    .feedback-form {
        width: 100%;
        max-width: 100%;
    }

    .rating-stars label {
        font-size: 1.6rem;
    }
}

/* Extra small phones: tighten layout further */
@media (max-width: 600px) {
    .section.feedback {
        padding: 60px 0;
    }

    .feedback-container {
        padding: 1rem;
        border-radius: 10px;
    }

    .feedback-form .form-group {
        margin-bottom: 1rem;
    }

    .feedback-form .form-control {
        padding: 0.65rem 0.85rem;
        font-size: 0.95rem;
    }

    /* Make submit button full width for easier tapping */
    .feedback-form .form-actions,
    .feedback-form button[type="submit"] {
        width: 100%;
    }

    .feedback-form button[type="submit"] {
        display: block;
        width: 100%;
        padding: 0.85rem 1rem;
    }

    /* Secondary buttons align full width stacked with gap */
    .feedback .form-actions a.btn {
        width: 100%;
    }

    .feedback-image {
        border-radius: 8px;
        max-height: 220px;
    }

    .feedback-image img {
        object-fit: cover;
        height: 220px;
    }
}

/* Very small devices: optionally hide the large image for clarity */
@media (max-width: 420px) {
    .feedback-image {
        display: none;
    }
}

/* Legacy Mobile Responsive Design - Enhanced */
@media (max-width: 600px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

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

    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        /* center buttons horizontally */
    }

    /* Make hero buttons smaller in mobile view only */
    .hero .btn.hero-btn {
        padding: 10px 16px !important;
        font-size: 0.95rem !important;
        line-height: 1.2;
        border-radius: 24px;
        width: 250px;
        /* avoid full-width */
        /* centered via parent align-items */
    }

    .section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }
}

:root {
    --primary: #1e3a8a;
    --accent: #00b3d6;
    --dark: #1f2937;
    --light: #f9fafb;
    --gray: #6b7280;
    --light-gray: #e5e7eb;
}

/* ... your existing CSS ... */

/* Animation for section titles */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes buttonFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes textGlow {
    0% {
        text-shadow: 
            0 0 10px rgba(0, 208, 255, 0.6),
            0 0 20px rgba(0, 208, 255, 0.4),
            0 0 30px rgba(0, 208, 255, 0.3),
            0 2px 8px rgba(0, 0, 0, 0.5);
    }
    100% {
        text-shadow: 
            0 0 15px rgba(0, 208, 255, 0.8),
            0 0 25px rgba(0, 208, 255, 0.6),
            0 0 35px rgba(0, 208, 255, 0.4),
            0 2px 8px rgba(0, 0, 0, 0.5);
    }
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(0.5deg); }
}

@keyframes titlePulse {
    0%, 100% { box-shadow: 0 0 8px rgba(0, 208, 255, 0.3); }
    50% { box-shadow: 0 0 12px rgba(0, 208, 255, 0.5); }
}

@keyframes formFieldFocus {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    100% {
        transform: scale(1.02);
        box-shadow: 0 4px 15px rgba(0, 208, 255, 0.15);
    }
}

@keyframes btnGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 208, 255, 0.3);
    }
    50% {
        box-shadow: 0 6px 20px rgba(0, 208, 255, 0.5);
    }
}

/* Service Categories Scrollable on Mobile */
@media (max-width: 900px) {
    .service-categories {
        /* Allow wrapping to avoid horizontal slider */
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        overflow-x: hidden;
        /* prevent accidental horizontal scroll */
        padding-bottom: 0;
    }

    .category-card {
        /* Remove min-width that forced side scroll */
        min-width: 0;
        width: 100%;
        flex: 1 1 auto;
    }

    .service-categories::-webkit-scrollbar {
        height: 8px;
    }

    .service-categories::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 4px;
    }

    .service-categories::-webkit-scrollbar-track {
        background: var(--light-gray);
    }
}

/* Overflow safety: ensure media never causes horizontal scroll */
.category-image,
.service-img,
.additional-image {
    overflow: hidden;
    cursor: zoom-in;
}

/* Image tags removed in favor of background images */

/* Mobile image sizing: avoid zoom/crop on small screens */
@media (max-width: 768px) {

    /* Use fixed aspect ratio so cards have consistent, not-too-tall height */
    .category-image,
    .service-img,
    .additional-image {
        width: 100%;
        height: auto !important;
        /* override any fixed heights */
        aspect-ratio: 16 / 9;
        position: relative;
        overflow: hidden;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .category-image img,
    .service-img img,
    .additional-image img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover; /* Back to cover for better fill */
        object-position: center center;
    }
}

/* Tablets: slightly taller images, still consistent */
@media (min-width: 769px) and (max-width: 1024px) {

    .category-image,
    .service-img,
    .additional-image {
        width: 100%;
        height: auto !important;
        aspect-ratio: 4 / 3;
        position: relative;
        overflow: hidden;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .main-nav .nav-links {
        margin-top: 6px;
    }

    .category-image img,
    .service-img img,
    .additional-image img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover; /* Back to cover for better fill */
        object-position: center center;
    }

    /* Ensure all cards (including first three) use identical sizing */
    .service-categories .category-card .category-image,
    .services-grid .service-card .service-img,
    .additional-grid .additional-card .additional-image {
        width: 100%;
    }
}

/* Desktop: reduce cropping of service category images */
@media (min-width: 1025px) {
    .service-categories .category-image {
        height: 260px;
        /* taller than default 200px to show more of the image */
    }

    .service-categories .category-image img {
        object-fit: cover; /* Back to cover for better fill */
        object-position: center center;
    }
}

/* Animations for Cards and Buttons */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card,
.service-card,
.additional-card {
    animation: fadeInUp 0.8s cubic-bezier(.23, 1.01, .32, 1) both;
}

.category-card {
    animation-delay: 0.1s;
}

.category-card:nth-child(2) {
    animation-delay: 0.2s;
}

.category-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card {
    animation-delay: 0.2s;
}

.additional-card {
    animation-delay: 0.3s;
}

.btn,
.hero-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 208, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 208, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 208, 255, 0);
    }
}

/* Animated headings on scroll */
.animated-heading {
    opacity: 1 !important;
    transform: none !important;
    transition: all 0.7s;
}

.animated-heading.visible {
    opacity: 1;
    transform: none;
}

/* Mobile typography overrides */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 2rem;
        line-height: 1.25;
    }

    h3 {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    .section-title h2 {
        font-size: 1.5rem !important;
    }

    .hero-title {
        font-size: 1.9rem !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }
}

/* Specific styling for the company description text */
#company.section-title p {
    color: #1e40af !important; /* Blue color for better visibility */
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Dark mode styling for company description text */
[data-theme="dark"] #company.section-title p {
    color: #60a5fa !important; /* Lighter blue for dark mode */
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* System dark mode support */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) #company.section-title p {
        color: #60a5fa !important; /* Lighter blue for dark mode */
        text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }
}

/* Reviews Preview Styles */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.review-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f7;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.review-quote {
    color: var(--accent);
    font-size: 1.2rem;
}

.review-message {
    color: #334155;
    line-height: 1.6;
    margin: 2px 0 6px;
}

.review-stars {
    color: #f59e0b;
    letter-spacing: 1px;
    font-size: 1rem;
}

.review-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.review-name {
    font-weight: 600;
    color: var(--primary);
}

.review-date {
    color: #64748b;
    font-size: .9rem;
}

.text-muted {
    color: #6b7280;
}

#feedback3.section-title p {
    color: #000 !important;
}

/* Hero Background Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: slideShow 12s infinite;
}

.slide:nth-child(1) {
    opacity: 1;
    animation-delay: 0s;
}

.slide:nth-child(2) {
    animation-delay: 4s;
}

.slide:nth-child(3) {
    animation-delay: 8s;
}

@keyframes slideShow {
    0% { 
        opacity: 1; 
    }
    25% { 
        opacity: 1; 
    }
    33.33% { 
        opacity: 0; 
    }
    100% { 
        opacity: 0; 
    }
}

/* Enhanced Date/Time Picker Styling */
.datetime-field {
    display: flex;
    flex-direction: column;
}

.datetime-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.datetime-field input[type="date"],
.datetime-field input[type="time"] {
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--light);
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.datetime-field input[type="date"]:focus,
.datetime-field input[type="time"]:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0,208,255,0.15);
    transform: translateY(-2px);
}


/* Enhanced field hints */
.field-hint {
    display: block;
    margin: 8px 0 16px;
    color: var(--text-secondary);
    background: rgba(0,208,255,0.05);
    border: 1px solid rgba(0,208,255,0.2);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.field-hint strong {
    color: var(--cyan);
    font-weight: 700;
}

/* Mobile responsiveness for date/time fields */
@media (max-width: 520px) {
    .hq-row.two .datetime-field {
        margin-bottom: 12px;
    }
}

/* Priority-based form styling */
.hero-quote-card.priority-emergency {
    border: 3px solid #dc2626;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
    animation: emergency-pulse 2s infinite;
}

.hero-quote-card.priority-urgent {
    border: 2px solid #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.hero-quote-card.priority-scheduled {
    border: 2px solid #059669;
    box-shadow: 0 0 10px rgba(5, 150, 105, 0.15);
}

/* Ensure all form elements have proper contrast in both themes */
input, textarea, select {
    background-color: var(--input-bg) !important;
    color: var(--text-primary) !important;
    border-color: var(--input-border) !important;
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted) !important;
}

/* Dark mode specific form improvements */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background-color: #374151 !important;
    color: #f9fafb !important;
    border-color: #4b5563 !important;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: #9ca3af !important;
}

/* System dark mode form improvements */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) input,
    :root:not([data-theme="light"]) textarea,
    :root:not([data-theme="light"]) select {
        background-color: #374151 !important;
        color: #f9fafb !important;
        border-color: #4b5563 !important;
    }
    
    :root:not([data-theme="light"]) input::placeholder,
    :root:not([data-theme="light"]) textarea::placeholder {
        color: #9ca3af !important;
    }
    
    /* System dark mode navigation improvements */
    :root:not([data-theme="light"]) .nav-links a {
        color: #f8fafc;
        font-weight: 700;
    }
    
    :root:not([data-theme="light"]) .nav-links a:hover {
        color: var(--cyan);
        background: rgba(6, 182, 212, 0.15);
    }
    
    :root:not([data-theme="light"]) .nav-links a i {
        color: var(--cyan);
    }
    
    :root:not([data-theme="light"]) .nav-links {
        background: var(--card-bg);
        border-right-color: var(--border-color);
    }
    
    /* System dark mode feature cards */
    :root:not([data-theme="light"]) .feature {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
    }
    
    :root:not([data-theme="light"]) .feature h4 {
        color: #60a5fa !important; /* Light blue for dark mode */
    }
    
    :root:not([data-theme="light"]) .feature p {
        color: #d1d5db !important; /* Light grey for dark mode */
    }
    
    /* System dark mode review cards */
    :root:not([data-theme="light"]) .review-card {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-left: 4px solid var(--cyan);
    }
    
    :root:not([data-theme="light"]) .review-date {
        color: #60a5fa !important; /* Light blue for dark mode */
    }
    
    :root:not([data-theme="light"]) .review-content p {
        color: #e2e8f0 !important; /* Light grey for dark mode */
    }
    
    :root:not([data-theme="light"]) .review-author {
        color: #60a5fa !important; /* Light blue for dark mode */
    }
    
    :root:not([data-theme="light"]) .nav-links a:not(.btn-accent) {
        color: #f8fafc;
        font-weight: 700;
    }
    
    :root:not([data-theme="light"]) .nav-links a:not(.btn-accent):hover {
        background: rgba(6, 182, 212, 0.15);
        color: var(--cyan);
    }
    
    :root:not([data-theme="light"]) .nav-links a:not(.btn-accent) i {
        color: var(--cyan);
    }
    
    :root:not([data-theme="light"]) .nav-links li:not(:last-child) {
        border-bottom-color: var(--border-color);
    }
}

@keyframes emergency-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(220, 38, 38, 0.3); }
    50% { box-shadow: 0 0 30px rgba(220, 38, 38, 0.6); }
}

.priority-alert {
    margin: 12px 0;
    padding: 12px 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    color: #92400e;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.priority-alert strong {
    color: #78350f;
    font-weight: 700;
}