:root {
    /* Color Palette - Premium Deep Blue & Purple */
    --bg-dark: #020617;
    --bg-card: #0f172a;
    --bg-card-hover: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #8ea1b6;
    
    /* Brand Colors */
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #8b5cf6;
    --accent: #22d3ee;
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    --grad-text: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    
    /* Fluid Typography (clamp: min, preferred, max) */
    --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --fs-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    --fs-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --fs-lg: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
    --fs-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --fs-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --fs-3xl: clamp(2rem, 1.7rem + 1.5vw, 3rem);
    --fs-hero: clamp(2.5rem, 2rem + 4vw, 5rem);
    
    /* Standardized Spacing */
    --space-xs: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
    --space-sm: clamp(1rem, 0.8rem + 1vw, 1.5rem);
    --space-md: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
    --space-lg: clamp(2rem, 1.5rem + 2.5vw, 4rem);
    --space-xl: clamp(4rem, 3rem + 5vw, 8rem);
    
    /* Effects */
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --container-width: 1280px;
    --nav-height: 80px;
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base for rem */
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: var(--fs-base);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
}

/* Typography Helpers */
.text-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* Screen Reader Only utility for SEO & accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Premium Circular Social Button */
.social-circle-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.social-circle-btn:hover {
    background: var(--grad-primary);
    border-color: transparent;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--primary-glow);
}

.social-circle-btn svg {
    width: 20px !important;
    height: 20px !important;
    stroke: currentColor;
    stroke-width: 2px;
    display: block;
}

/* Sections */
section {
    padding: 10rem 0;
    position: relative;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 99px;
    color: var(--primary);
    font-size: var(--fs-xs);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-title {
    font-size: var(--fs-3xl);
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: var(--fs-lg);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto var(--space-lg);
}

/* Navbar Optimization */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    #navbar { height: 70px; }
}

#navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    height: 70px;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-size: 1.5rem;
    color: white;
}

@media (max-width: 380px) {
    .logo {
        gap: 0.4rem;
        font-size: 1.2rem;
    }
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--grad-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--primary-glow);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .nav-cta {
        display: none !important;
    }
}

.menu-toggle {
    display: none;
    cursor: pointer;
    color: white;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--grad-primary);
    color: white;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 99px;
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    margin-bottom: 2rem;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 3rem;
    opacity: 0.6;
}

.hero-visual {
    position: relative;
}

.hero-visual img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5));
    animation: float 6s ease-in-out infinite;
}

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

/* Background Blobs */
.bg-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
}

.blob-primary {
    background: var(--primary);
    top: -200px;
    right: -200px;
}

.blob-secondary {
    background: var(--secondary);
    bottom: -100px;
    left: -200px;
}

/* Services Grid Optimization */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 30vw, 350px), 1fr));
    gap: var(--space-md);
}

.service-card {
    background: var(--bg-card);
    padding: var(--space-md);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

@media (max-width: 480px) {
    .service-card {
        padding: 1.5rem;
    }
}

.service-card h3 {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-xs);
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none; /* Prevents the hover effect from blocking clicks */
}

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

/* Ensure form elements are clickable */
.contact-form input, 
.contact-form select, 
.contact-form textarea, 
.contact-form button,
form input,
form select,
form textarea,
form button {
    position: relative;
    z-index: 5;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: white;
    transform: rotate(10deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

/* Product Showcase Optimization */
.product-showcase {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.product-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

@media (max-width: 1024px) {
    .product-item, .product-item.reverse {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-md);
    }
}

.product-content h3 {
    font-size: var(--fs-3xl);
    margin-bottom: var(--space-sm);
}

.product-item.reverse .product-content {
    order: 2;
}

.product-image-container {
    position: relative;
    border-radius: 24px;
    padding: 1rem;
    background: var(--grad-surface);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-premium);
}

.product-image-container img {
    width: 100%;
    border-radius: 16px;
    display: block;
}

.product-features-list {
    list-style: none;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.product-features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.product-features-list li i {
    color: #10b981;
}

/* Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

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

.feature-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    margin-bottom: -2rem;
}

.feature-item h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Stats */
.stats-section {
    background: var(--bg-card);
    padding: 6rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
}

/* CTA Section */
.cta-box {
    background: var(--grad-primary);
    border-radius: 40px;
    padding: 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.cta-box p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
}

/* Hero Section Optimization */
.hero {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
    overflow: hidden;
}

/* Contact Section Optimization */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
}

/* Premium Form Elements */
.contact-form-input {
    padding: 1.1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.contact-form-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.contact-form-input:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(59, 130, 246, 0.3);
}

.contact-form-input:focus {
    background: rgba(15, 23, 42, 0.6);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Custom styled select indicator */
select.contact-form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.hero-title {
    font-size: var(--fs-hero);
    margin-bottom: var(--space-sm);
    line-height: 1;
}

.hero-description {
    font-size: var(--fs-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    max-width: 600px;
}

@media (max-width: 1024px) {
    .hero-description { margin-left: auto; margin-right: auto; }
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 1024px) {
    .hero-actions { justify-content: center; }
}

/* Footer Optimization */
footer {
    padding: var(--space-xl) 0 var(--space-sm);
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1fr;
    gap: var(--space-md);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.footer-logo {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.footer-description {
    color: var(--text-secondary);
    max-width: 320px;
}

.footer-links h4 {
    margin-bottom: 2rem;
}

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

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 3rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-trust { justify-content: center; }
    .product-item { grid-template-columns: 1fr; gap: 4rem; }
    .product-item.reverse { grid-template-columns: 1fr; }
    .product-item.reverse .product-content { order: 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 1.5rem; }
}

@media (max-width: 768px) {
    section {
        padding: 5rem 0; /* Compact spacing on mobile to reduce excessive empty spaces */
    }

    .nav-links {
        display: none;
    }
    
    /* Premium Full-Screen Glassmorphic Menu Overlay for Mobile */
    .nav-links.mobile-active {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(2, 6, 23, 0.98); /* Deep slate matching background */
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        z-index: 1000;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        padding: 2rem;
        margin: 0;
    }

    .nav-links.mobile-active a {
        font-size: 1.5rem; /* Highly readable mobile size */
        color: white;
        padding: 0.8rem 2rem; /* Large 48px+ mobile tap targets to satisfy SEO guidelines */
        display: block;
        transition: var(--transition-smooth);
        font-family: 'Outfit', sans-serif;
    }

    .nav-links.mobile-active a:hover {
        color: var(--primary);
        transform: scale(1.05);
    }

    .nav-cta {
        display: none !important; /* Hide the CTA container on mobile to prevent overlap */
    }

    .menu-toggle {
        display: block;
        z-index: 1001; /* Layer over full screen menu */
        font-size: 1.5rem;
        padding: 0.5rem;
    }
    
    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3rem); /* Fluid mobile typography */
        line-height: 1.2;
    }

    .hero-description {
        font-size: 1rem;
    }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .cta-box { padding: 3rem 1.5rem; }
    .cta-box h2 { font-size: 2rem; }

    /* Stack product items vertically */
    .product-item, .product-item.reverse {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .product-features-list {
        display: inline-block;
        text-align: left;
    }

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

    /* Contact info mobile fix */
    .contact-info h2 {
        font-size: 2.2rem;
    }
    
    .contact-info div > div:last-child {
        word-break: break-word;
        font-size: 0.95rem;
    }

    .contact-grid .service-card {
        padding: 2rem 1rem;
    }
}

/* Mobile Menu Active State Animation */
.nav-links.mobile-active li {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlide 0.4s ease forwards;
}

.nav-links.mobile-active li:nth-child(1) { animation-delay: 0.1s; }
.nav-links.mobile-active li:nth-child(2) { animation-delay: 0.2s; }
.nav-links.mobile-active li:nth-child(3) { animation-delay: 0.3s; }
.nav-links.mobile-active li:nth-child(4) { animation-delay: 0.4s; }

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

/* Entry Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Animated Logo */
.logo-icon.logo-animate {
    animation: logoFloat 4s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.05); }
}

.logo-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}
