:root {
    --bg-dark: #05070a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --primary: #00f2ff;
    --secondary: #7000ff;
    --text-main: #e0e0e0;
    --text-dim: #a0a0a0;
    --accent-gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --section-padding: clamp(4rem, 10vw, 8rem) 0;
    /* Extra theme tokens */
    --header-bg: rgba(5, 7, 10, 0.85);
    --footer-bg: #030508;
    --card-border: rgba(255, 255, 255, 0.08);
    --input-bg: rgba(255, 255, 255, 0.05);
    --section-alt-bg: #05070a;
    --nav-mobile-bg: rgba(4, 5, 8, 0.98);
}

/* ── Light Mode Overrides ─────────────────────── */
[data-theme="light"] {
    --bg-dark: #f0f4f8;
    --bg-card: rgba(255, 255, 255, 0.85);
    --primary: #0070cc;
    --secondary: #6600dd;
    --text-main: #1a1a2e;
    --text-dim: #555577;
    --accent-gradient: linear-gradient(135deg, #0070cc, #6600dd);
    --glass-border: rgba(0, 0, 0, 0.1);
    --header-bg: rgba(240, 244, 248, 0.92);
    --footer-bg: #dde3ea;
    --card-border: rgba(0, 0, 0, 0.1);
    --input-bg: rgba(0, 0, 0, 0.04);
    --section-alt-bg: #e8edf3;
    --nav-mobile-bg: rgba(240, 244, 248, 0.98);
}

/* Target theme transition to common UI elements only to improve performance */
body,
header,
footer,
.service-card,
.product-card,
.pricing-card,
.badge,
.glass-card,
.modal-container,
h1,
h2,
h3,
h4,
p,
a,
span,
input,
select,
textarea {
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    /* Slightly more open for premium feel */
    overflow-x: hidden;
    width: 100%;
    letter-spacing: 0.3px;
    /* Subtle opening of body text */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.2;
    /* Better balance for large headlines */
    margin-bottom: 2rem;
    letter-spacing: -1.5px;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.3;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.sub-headline {
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2rem;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

header.scrolled {
    background: var(--header-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    position: relative;
    display: inline-block;
    overflow: hidden;
    /* Clips the glare to text bounds */
    transition: var(--transition);
}

.logo-text span {
    color: var(--primary);
    font-weight: 300;
}

/* Premium Glare Sweep */
.logo-text::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 30%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 70%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: glare-sweep 5s infinite cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
}

@keyframes glare-sweep {
    0% {
        left: -150%;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    40% {
        left: 150%;
        opacity: 1;
    }

    60%,
    100% {
        left: 150%;
        opacity: 0;
    }
}

.logo:hover .logo-text {
    transform: translateY(-1px);
    text-shadow: 0 5px 15px rgba(0, 242, 255, 0.2);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 400;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Nav Actions (theme toggle + hamburger wrapper) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle Button */
#theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

#theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(20deg) scale(1.1);
}

/* Show moon in dark mode, sun in light mode */
#theme-toggle .icon-moon {
    display: block;
}

#theme-toggle .icon-sun {
    display: none;
}

[data-theme="light"] #theme-toggle .icon-moon {
    display: none;
}

[data-theme="light"] #theme-toggle .icon-sun {
    display: block;
}

/* Light Mode Overrides */
[data-theme="light"] body {
    background-color: var(--bg-dark);
    color: var(--text-main);
}

[data-theme="light"] header {
    background: rgba(240, 244, 248, 0.6);
}

[data-theme="light"] header.scrolled {
    background: var(--header-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .logo-text {
    color: #1a1a2e;
}

[data-theme="light"] .nav-links a {
    color: #1a1a2e;
}

[data-theme="light"] .nav-links a:hover {
    color: var(--primary);
}

/* Fix mobile nav menu background in light mode */
[data-theme="light"] .nav-links.active {
    background: rgba(240, 244, 248, 0.98);
}

[data-theme="light"] .hero {
    background: #e8edf3;
}

/* Nav Highlight */
.nav-links li a.nav-highlight {
    color: var(--primary);
    font-weight: 600;
    position: relative;
}

.nav-links li a.nav-highlight::after {
    content: 'BETA';
    position: absolute;
    top: -12px;
    right: -24px;
    font-size: 7px;
    background: var(--primary);
    color: white;
    padding: 2px 5px;
    border-radius: 4px;
    letter-spacing: 0.8px;
    font-weight: 800;
}

[data-theme="light"] .video-overlay {
    background: linear-gradient(to bottom, rgba(232, 237, 243, 0.75) 0%, rgba(232, 237, 243, 0.3) 50%, rgba(232, 237, 243, 0.95) 100%);
}

[data-theme="light"] .hero-content h1,
[data-theme="light"] .hero-content h2,
[data-theme="light"] .hero-content p {
    color: #1a1a2e;
}

[data-theme="light"] .services,
[data-theme="light"] .hardware,
[data-theme="light"] .about,
[data-theme="light"] .contact-info-section {
    background: var(--bg-dark);
}

[data-theme="light"] .pricing {
    background: var(--section-alt-bg);
}

[data-theme="light"] .service-card,
[data-theme="light"] .product-card,
[data-theme="light"] .pricing-card,
[data-theme="light"] .badge,
[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--card-border);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    color: var(--text-main);
}

[data-theme="light"] .service-card h3,
[data-theme="light"] .product-card h3,
[data-theme="light"] .pricing-card h3,
[data-theme="light"] .badge h4,
[data-theme="light"] .section-header h2,
[data-theme="light"] .about-content h2 {
    color: #1a1a2e;
}

[data-theme="light"] .service-card p,
[data-theme="light"] .product-card p,
[data-theme="light"] .badge p,
[data-theme="light"] .section-header p,
[data-theme="light"] .about-content p,
[data-theme="light"] .check-list li {
    color: var(--text-dim);
}

/* Fix pricing card text that might stay white */
[data-theme="light"] .pricing-features li strong {
    color: #1a1a2e;
}

[data-theme="light"] .price {
    color: #1a1a2e;
}

[data-theme="light"] footer {
    background: var(--footer-bg);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-dim);
}

[data-theme="light"] .footer-links a,
[data-theme="light"] .footer-contact p,
[data-theme="light"] .footer-column h4 {
    color: var(--text-dim);
}

[data-theme="light"] .modal-container {
    background: #ffffff;
    border-color: rgba(0, 112, 204, 0.2);
}

[data-theme="light"] .modal-header h2 {
    color: #1a1a2e;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.15);
    color: #1a1a2e;
}

[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder {
    color: #888;
}

[data-theme="light"] .mobile-menu-toggle span {
    background: #1a1a2e;
}

[data-theme="light"] .pricing-features li {
    color: var(--text-dim);
    border-color: rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .btn-secondary {
    color: #1a1a2e;
    border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .check-list li::before {
    color: var(--primary);
}

[data-theme="light"] .footer-links a:hover {
    color: var(--primary);
}

[data-theme="light"] .footer-column h4 {
    color: #1a1a2e;
}

[data-theme="light"] .stat-item .number {
    color: #1a1a2e;
}

[data-theme="light"] .stat-item .label {
    color: var(--text-dim);
}

[data-theme="light"] .modal-close {
    color: #1a1a2e;
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .modal-close:hover {
    background: var(--primary);
    color: #fff;
}

[data-theme="light"] .form-group select option {
    background: #fff;
    color: #1a1a2e;
}

[data-theme="light"] .country-prefix {
    color: #1a1a2e;
}

[data-theme="light"] .sub-headline {
    color: var(--primary);
    /* Uses the darker light-mode primary */
}

/* Ensure secondary buttons are clearly visible */
[data-theme="light"] .btn-secondary {
    color: #1a1a2e;
    border-color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(0, 112, 204, 0.05);
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 10px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Buttons */
.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 242, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary:active,
.btn-secondary:active,
.product-card:active,
.pricing-card:active {
    transform: scale(0.96);
    transition: transform 0.1s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-dark);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.5;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--header-bg) 0%, transparent 50%, var(--bg-dark) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin-top: 2rem;
    /* Subtle move down */
}

.hero-content * {
    pointer-events: auto;
    /* Re-enable for buttons and links */
}

.sub-headline {
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 2.5rem;
    margin-bottom: 2rem;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
    color: var(--text-dim);
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

/* Services */
.services {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header p {
    color: var(--text-dim);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 24px;
    transition: var(--transition);
    cursor: default;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-10px);
    border-color: var(--primary);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* Hardware Section */
.hardware {
    padding: var(--section-padding);
    background: linear-gradient(180deg, #05070a 0%, #0a0d14 100%);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.product-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #000;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    opacity: 1;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
    opacity: 1;
}

.product-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    display: block;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.product-info p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.product-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.btn-primary.mini {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
}

.featured-product {
    position: relative;
    border-color: rgba(0, 242, 255, 0.3);
    background: rgba(0, 242, 255, 0.02);
}

.featured-product::after {
    content: 'CHEF\'S CHOICE';
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: #000;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

/* Pricing Section */
.pricing {
    padding: var(--section-padding);
    background: rgba(255, 255, 255, 0.01);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 4rem 2.5rem;
    border-radius: 32px;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: var(--primary);
    background: rgba(0, 242, 255, 0.03);
    transform: scale(1.05);
    z-index: 2;
}

.card-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    background: var(--glass-border);
    border-radius: 20px;
    color: var(--text-dim);
}

.featured .card-tag {
    background: var(--primary);
    color: #000;
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 3rem;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.4;
}

.pricing-features li strong {
    color: #fff;
    display: block;
    margin-bottom: 0.2rem;
}

.pricing-card .btn-secondary,
.pricing-card .btn-primary {
    width: 100%;
    text-align: center;
}

/* About */
.about {
    padding: var(--section-padding);
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0a0d14 100%);
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-content {
    flex: 1;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text-dim);
}

.check-list {
    list-style: none;
    margin-top: 2rem;
}

.check-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-list li::before {
    content: '→';
    color: var(--primary);
    font-weight: bold;
}

.about-image {
    flex: 1;
    height: 400px;
    background: url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?auto=format&fit=crop&q=80&w=800') center/cover;
    border-radius: 32px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 24px;
    width: 280px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
}

.stat-item {
    text-align: center;
}

.stat-item .number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-item .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    margin-top: 5px;
}

/* CTA Section */
.cta-section {
    padding: var(--section-padding);
    text-align: center;
}

.btn-primary.large {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    margin-top: 2rem;
}

/* Footer */
footer {
    padding: 5rem 0 2rem;
    background: #020305;
    border-top: 1px solid var(--glass-border);
}

/* Modal Styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 5, 8, 0.9);
    backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.active .modal-overlay {
    opacity: 1;
}

.modal-container {
    position: relative;
    width: 95%;
    max-width: 680px;
    max-height: 85vh;
    /* Slightly reduced for better fit */
    background: #0d1117;
    border: 1px solid rgba(0, 242, 255, 0.15);
    border-radius: 40px;
    padding: 3.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    /* Fix horizontal scroll issue */
    transform: translateY(40px) scale(0.98);
    opacity: 0;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Premium Scrollbar Styling */
.modal-container::-webkit-scrollbar {
    width: 6px;
}

.modal-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.modal-container::-webkit-scrollbar-thumb {
    background: rgba(0, 242, 255, 0.1);
    /* Even more subtle */
    border-radius: 10px;
}

.modal-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.modal.active .modal-container {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Moving Detail Elements */
.modal-bg-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    filter: blur(100px);
    opacity: 0.12;
    border-radius: 50%;
    animation: blobMorph 15s infinite alternate ease-in-out;
}

.blob-1 {
    top: -200px;
    left: -200px;
}

.blob-2 {
    bottom: -200px;
    right: -200px;
    animation-delay: -7s;
}

@keyframes blobMorph {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

.modal-content {
    position: relative;
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 10;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--primary);
    color: #000;
    transform: rotate(90deg) scale(1.1);
    border-color: transparent;
}

.modal-header {
    text-align: center;
    margin-bottom: 4rem;
    /* More space for the close button */
    padding-top: 1rem;
}

.modal-header h2:not(.sub-headline) {
    font-size: 2.2rem;
    margin-top: 1rem;
    letter-spacing: -1px;
}

.modal-divider {
    width: 60px;
    height: 3px;
    background: var(--accent-gradient);
    margin: 1.5rem auto 0;
    border-radius: 10px;
}

/* Staggered Entrance Animation */
.modal.active .form-group {
    animation: fadeInUp 0.8s forwards;
    opacity: 0;
}

.modal.active .form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.modal.active .form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.modal.active .form-group:nth-child(3) {
    animation-delay: 0.3s;
}

.modal.active .form-group:nth-child(4) {
    animation-delay: 0.4s;
}

.modal.active .form-group:nth-child(5) {
    animation-delay: 0.5s;
}

.modal.active .quote-form button {
    animation: fadeInUp 0.8s forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Increased border contrast */
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    color: #ffffff;
    /* Explicit pure white for all inputs */
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

/* Specialized Phone Input with Prefix */
.phone-input-container {
    display: flex;
    align-items: center;
    position: relative;
}

.country-prefix {
    position: absolute;
    left: 1.2rem;
    color: var(--primary);
    font-weight: 600;
    pointer-events: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-right: 0.8rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-with-prefix {
    padding-left: 6.5rem !important;
    /* Make room for the flag and prefix */
}

/* Fix for Select Dropdown Options */
.form-group select option {
    background-color: #0d1117;
    /* Matches modal background */
    color: #ffffff;
    padding: 1rem;
}

/* Ensure placeholder/initial text is also visible */
.form-group select:invalid,
.form-group select option[value=""][disabled] {
    color: rgba(255, 255, 255, 0.6);
}

/* Highlight line effect on focus */
.form-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 1px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    pointer-events: none;
}

.form-group:focus-within::after {
    transform: scaleX(1);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 242, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group textarea {
    resize: none;
    line-height: 1.6;
}

/* Custom Select Styling Arrow Color */
select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300f2ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 1rem;
}

.full-width {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 1rem;
    margin-bottom: 2rem;
    /* Added space at bottom */
}

.form-status {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    /* Ensure space at the very bottom */
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(10px);
}

.form-status:not(:empty) {
    opacity: 1;
    transform: translateY(0);
}

.form-status.success {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.form-status.error {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.2);
}

@media (max-width: 768px) {
    .modal-container {
        padding: 2.5rem 1.5rem;
        border-radius: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .modal-header h2:not(.sub-headline) {
        font-size: 1.8rem;
    }
}

/* Contact Info Section */
.contact-info-section {
    padding: var(--section-padding);
    background: var(--bg-dark);
    border-top: 1px solid var(--card-border);
}

.contact-badges-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.badge {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.badge:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    background: rgba(0, 242, 255, 0.02);
}

.badge h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.badge p {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.8;
}

/* Animations */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1rem;
    color: var(--text-dim);
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-links ul {
    list-style: none;
}

.contact-methods {
    margin-top: 1.5rem;
}

.contact-methods p {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.website-link {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-dim);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.protected-email,
.protected-phone {
    color: #fff !important;
    text-decoration: none !important;
    transition: var(--transition);
}

.protected-email:hover,
.protected-phone:hover {
    color: var(--secondary) !important;
}

[data-theme="light"] .protected-email,
[data-theme="light"] .protected-phone {
    color: #1a1a2e !important;
}

[data-theme="light"] .protected-email:hover,
[data-theme="light"] .protected-phone:hover {
    color: var(--primary) !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* Mobile Responsive Exceptional Design */
@media (max-width: 992px) {
    .container {
        padding: 0 2rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .mobile-stack {
        flex-direction: column;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem 0;
    }

    .hero {
        padding-top: 4rem;
        height: auto;
        min-height: 80vh;
        /* Reduced from 100vh to fix blank space */
        display: flex;
        align-items: center;
        text-align: center;
    }

    .hero-content {
        margin-top: 0;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    /* Enhanced Mobile Menu */
    .mobile-menu-toggle {
        display: flex;
        z-index: 1100;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--nav-mobile-bg);
        backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: right 0.6s cubic-bezier(0.85, 0, 0.15, 1);
        z-index: 1050;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav-links a {
        font-size: 2rem;
        font-weight: 700;
        letter-spacing: -1px;
    }

    /* Logo adjustment for mobile */
    .logo-text {
        font-size: 0.9rem;
        white-space: nowrap;
    }

    header .container {
        padding: 0 1rem;
    }

    /* About section refinements */
    .about-flex {
        flex-direction: column;
        gap: 4rem;
    }

    .about-image {
        order: -1;
        height: 300px;
        /* Reduced for better mobile proportion */
    }

    .glass-card {
        position: relative;
        bottom: -20px;
        /* Slight offset for depth */
        left: 0;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        padding: 1.5rem;
        box-sizing: border-box;
    }

    /* Grid refinements */
    .product-grid,
    .pricing-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Featured pricing card correction */
    .pricing-card.featured {
        transform: scale(1);
        border-color: var(--primary);
    }

    .pricing-card {
        padding: 2.5rem 1.5rem;
    }

    .product-footer {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .price {
        font-size: 1.1rem;
    }

    .pricing-features {
        margin-bottom: 2rem;
    }

    /* Footer refinement */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .logo {
        justify-content: center;
    }

    /* Modal adjustments */
    .modal-container {
        padding: 4rem 1.5rem 2rem;
        border-radius: 32px;
        width: 92%;
        margin: auto;
        max-height: 85vh;
    }

    .modal-content {
        height: 100%;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    .modal-header h2:not(.sub-headline) {
        font-size: 1.6rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        position: absolute;
        color: var(--text-main);
        font-size: 1.5rem;
        z-index: 10;
        background: var(--bg-card);
        border: 1px solid var(--glass-border);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .sub-headline {
        letter-spacing: 4px;
        font-size: 0.75rem;
        margin-top: 2rem;
        margin-bottom: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .about-content h2 {
        font-size: 1.8rem;
    }

    /* Exceptional Detail: Smatek text refinement */
    .about-content p:first-of-type {
        font-size: 0.95rem;
        line-height: 1.7;
        color: var(--text-main);
        background: rgba(0, 242, 255, 0.03);
        padding: 1rem;
        border-left: 2px solid var(--primary);
        border-radius: 4px;
    }

    .product-card {
        border-radius: 20px;
    }

    .footer-bottom p {
        font-size: 0.75rem;
        line-height: 1.5;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   Quick Contact Floating Menu
   ============================================= */
.contact-floating-wrapper {
    position: fixed;
    bottom: 20px;
    /* Lower at the bottom */
    right: 40px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 15px;
}

.contact-main-trigger {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0, 242, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.contact-floating-wrapper:hover .contact-main-trigger {
    transform: rotate(90deg) scale(1.1);
}

.contact-sub-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reveal buttons on hover or focus-within */
.contact-floating-wrapper:hover .contact-sub-buttons,
.contact-floating-wrapper:focus-within .contact-sub-buttons {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.sub-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.sub-btn:hover {
    transform: scale(1.15);
}

.call-btn {
    background: #0070cc;
}

.wa-btn {
    background: #25D366;
}

.sub-btn .tooltip {
    position: absolute;
    right: 65px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.sub-btn:hover .tooltip {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .contact-floating-wrapper {
        bottom: 20px !important;
        right: 20px;
    }

    .contact-main-trigger {
        width: 52px;
        height: 52px;
    }

    .sub-btn {
        width: 46px;
        height: 46px;
    }
}

/* =============================================
   Weather Ticker
   ============================================= */
#weather-ticker-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9998;
    padding: 8px 0;
    overflow: hidden;
    color: #fff;
    font-size: 0.85rem;
}

#weather-ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker-scroll 60s linear infinite;
    gap: 40px;
    /* Tighter gap for standard look */
    width: max-content;
    padding-left: 20px;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-separator {
    color: var(--primary);
    font-weight: 700;
    opacity: 0.6;
}

.news-item {
    font-weight: 400;
    letter-spacing: 0.3px;
}

.ticker-city {
    color: var(--primary);
    font-weight: 700;
    margin-right: 4px;
}

.ticker-temp {
    font-weight: 700;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Halfway point for seamless loop */
}

[data-theme="light"] #weather-ticker-container {
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a2e;
    border-top-color: rgba(0, 0, 0, 0.1);
}

footer {
    padding-bottom: 3.5rem !important;
}