/* 
 * Design System & Variables 
 * DEEP TECH (Premium Midnight Dark & Robust)
 */
:root {
    /* Colors - Deep Midnight Tech */
    --bg-dark: #0a0f1c;        /* Deep Midnight Blue (Almost black but richer) */
    --bg-card: rgba(16, 24, 40, 0.6); /* Smoked glass */
    --bg-darker: #060913;      /* Core dark */
    
    --primary: #0ea5e9;        /* Bright Sky Blue / Cyan-ish */
    --primary-hover: #38bdf8;  /* Lighter Sky Blue */
    --accent: #3b82f6;         /* Electric Blue */
    
    --ambient-glow-1: rgba(14, 165, 233, 0.15); /* Large ambient cyan */
    --ambient-glow-2: rgba(59, 130, 246, 0.12); /* Large ambient blue */
    
    --card-border-top: rgba(255, 255, 255, 0.12); /* Glossy hardware edge */
    --card-border: rgba(255, 255, 255, 0.05);

    --text-main: #f8fafc;      /* Platinum White */
    --text-muted: #94a3b8;     /* Slate 400 - Technical Grey */
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Metrics */
    --radius-lg: 16px; /* Slightly sharper for a "hardware" feel */
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition-fast: 0.2s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Subtle Data Grid Texture */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
}

/* Ambient Deep Glows (Server Lights) */
body::before, body::after {
    content: '';
    position: fixed;
    width: 60vw;
    height: 60vh;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
}

body::before {
    top: -20%;
    left: -10%;
    background: radial-gradient(circle, var(--ambient-glow-1) 0%, transparent 60%);
}

body::after {
    bottom: -20%;
    right: -10%;
    background: radial-gradient(circle, var(--ambient-glow-2) 0%, transparent 60%);
}

/* Typography elements */
h1, h2, h3, h4, .logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 { 
    font-size: clamp(2.5rem, 5vw, 4.5rem); 
    line-height: 1.1; 
    margin-bottom: 1.5rem; 
    color: #ffffff;
    text-shadow: 0 0 40px rgba(14, 165, 233, 0.3); /* Soft ambient text glow */
}
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; color: #ffffff; }
h3 { font-size: 1.4rem; margin-bottom: 0.75rem; color: #ffffff; }
p { color: var(--text-muted); font-size: 1.125rem; font-weight: 400; }

.highlight {
    color: var(--primary-hover);
    position: relative;
    display: inline-block;
}

/* Utility Classes */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-top: 1px solid var(--card-border-top); /* Technical edge */
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); /* Heavy duty shadow */
}

.section {
    padding: 6rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
    font-family: var(--font-body);
    text-align: center;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    border-top: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 10px 20px -5px rgba(14, 165, 233, 0.4), inset 0 -2px 5px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(14, 165, 233, 0.6), inset 0 -2px 5px rgba(0,0,0,0.2);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border: 1px solid var(--card-border);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
}

.btn-large {
    font-size: 1.125rem;
}

.w-100 {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-fast);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(10, 15, 28, 0.85); /* Deep midnight glass */
    border-bottom: 1px solid var(--card-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.5rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary); /* Site name in brand color */
    letter-spacing: -0.01em;
}

.dot-com { display: none; }

.logo-img {
    height: 120px;
    width: auto;
    display: block;
    transition: var(--transition-fast);
    /* Optimized filters to remove background artifacts on dark theme */
    filter: invert(1) hue-rotate(180deg) brightness(1.1) contrast(300%);
    mix-blend-mode: screen; 
}

.logo:hover .logo-img {
    transform: scale(1.05);
    /* Maintain high contrast on hover to keep background transparent */
    filter: invert(1) hue-rotate(180deg) brightness(1.5) contrast(300%);
}

.logo:hover .logo-text {
    color: #ffffff; /* Turn text white on hover */
}

/* Redundant rules removed */

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

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    opacity: 0.8;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--primary-hover);
    opacity: 1;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    margin: 6px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0; 
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 10;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Shape overlays removed in favor of CSS pseudo ambient glows on body */
.shape { display: none; }

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

.service-card {
    padding: 2.5rem;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    /* Interactive cursor glow inside card */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(14, 165, 233, 0.08), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
    pointer-events: none;
}

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

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(14, 165, 233, 0.3);
    border-top-color: rgba(14, 165, 233, 0.6); /* Highlights top edge */
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7), 0 0 30px rgba(14, 165, 233, 0.05);
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 2rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(14, 165, 233, 0.2);
    color: var(--primary);
    transition: var(--transition-fast);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-hover);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.service-list {
    list-style: none;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1.5rem;
}

.service-list li {
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.service-list li::before {
    content: '\f0da'; /* FontAwesome solid right arrow */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent);
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

/* Contact Section */
.contact-section {
    display: flex;
    justify-content: center;
}

.contact-container {
    max-width: 640px;
    width: 100%;
    padding: 4rem;
    text-align: center;
}

.contact-container p {
    margin-bottom: 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 1.25rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.input-group input:focus, .input-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(14, 165, 233, 0.05);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

.input-group input::placeholder {
    color: #475569;
}

select option {
    background: var(--bg-darker);
    color: white;
}

.form-message {
    text-align: center;
    font-weight: 500;
    margin-top: 1.5rem;
    color: var(--primary);
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 5rem 2rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand .logo-text {
    font-size: 1.25rem;
}

.footer-logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
    /* Preserve colors while hiding background on dark theme */
    filter: invert(1) hue-rotate(180deg) brightness(1.5) contrast(150%);
    mix-blend-mode: screen;
    transition: var(--transition-fast);
}

.footer-brand:hover .footer-logo-img {
    filter: invert(1) hue-rotate(180deg) brightness(2) contrast(150%);
    transform: scale(1.05);
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-size: 1.1rem;
}

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

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #475569;
    font-size: 0.875rem;
}

/* WhatsApp Floating Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3), inset 0 2px 4px rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    z-index: 1000;
    transition: var(--transition-fast);
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4), inset 0 2px 4px rgba(255,255,255,0.3);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 72px; /* Height of navbar */
        flex-direction: column;
        background: rgba(10, 15, 28, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        height: calc(100vh - 72px);
        justify-content: flex-start;
        padding-top: 4rem;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 1px solid var(--card-border);
    }

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

    .hamburger {
        display: block;
    }

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

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    .hero-actions {
        flex-direction: column;
    }

    .contact-container {
        padding: 3rem 1.5rem;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
