/* --- CSS VARIABLES & THEME --- */
:root {
    --bg-color-dark: #0f172a; /* depth */
    --bg-color-deep: #020617; /* even deeper core */
    
    --primary-red: #ff0033;
    --primary-red-glow: rgba(255, 0, 51, 0.5);
    --secondary-red: #cc0029;
    
    --text-pure: #ffffff;
    --text-muted: #94a3b8;
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(12px);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color-deep);
    background-image: radial-gradient(circle at 50% 0%, var(--bg-color-dark) 0%, var(--bg-color-deep) 70%);
    color: var(--text-pure);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Base Typo */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }

.section {
    padding: 6rem 0;
}

.highlight {
    color: var(--primary-red);
    text-shadow: 0 0 10px var(--primary-red-glow), 0 0 20px var(--primary-red-glow);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255,0,51,0.1);
    color: var(--primary-red);
    border: 1px solid var(--primary-red-glow);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Blobs for background glowing effect mimicking the logo red neon */
.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--primary-red);
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}
.blob-1 {
    top: -100px;
    left: -200px;
    animation: drift 15s infinite alternate ease-in-out;
}
.blob-2 {
    bottom: 20%;
    right: -100px;
    animation: drift 20s infinite alternate-reverse ease-in-out;
}

@keyframes drift {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(50px) scale(1.1); }
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-body);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-red);
    color: #fff;
    box-shadow: 0 4px 14px 0 var(--primary-red-glow);
    border: 1px solid transparent;
}
.btn-primary:hover {
    background-color: var(--secondary-red);
    box-shadow: 0 6px 20px rgba(255, 0, 51, 0.8);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-pure);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
}
.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: rgba(255,255,255,0.3);
}

/* --- GLASSMORPHISM --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(15, 23, 42, 0.7);
    border-bottom: 1px solid var(--glass-border);
    transition: padding 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
}

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

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-pure);
}
.brand-logo span {
    color: var(--primary-red);
    /* For exact match to logo's solid white text, you can keep it white. 
       But a red 'DB' gives that neon tech feel. Let's make it pure white then add red glow */
    text-shadow: 0 0 10px var(--primary-red-glow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn) {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:not(.btn):hover, .nav-links a:not(.btn).active {
    color: var(--text-pure);
    text-shadow: 0 0 8px rgba(255,255,255,0.4);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-pure);
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px; /* Offset for navbar */
    position: relative;
}

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

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

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

/* Floating visuals to emulate the glass structure in logo */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-orb {
    position: absolute;
    border-radius: 30px; /* Instead of circle, pill shaped closely resembling the image capsules */
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.orb-large {
    width: 200px;
    height: 400px;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
    flex-direction: column;
}

.orb-small {
    width: 100px;
    height: 200px;
    border-radius: 20px;
    z-index: 1;
}

.orb-analytics {
    top: 20%;
    left: 10%;
    animation: float 8s ease-in-out infinite alternate-reverse;
}

.orb-integration {
    bottom: 20%;
    right: 10%;
    animation: float 7s ease-in-out infinite 1s;
}

/* Central glowing core inside large pill */
.orb-core {
    width: 4px;
    height: 60%;
    background: var(--primary-red);
    box-shadow: 0 0 20px var(--primary-red), 0 0 50px var(--primary-red);
    border-radius: 4px;
    position: relative;
}

.orb-scanline {
    position: absolute;
    width: 80%;
    height: 2px;
    background: #fff;
    top: 0;
    box-shadow: 0 0 10px #fff;
    animation: scan 3s linear infinite;
}

.orb-icon {
    position: absolute;
    color: white;
    bottom: 10%;
    width: 32px;
    height: 32px;
}
.orb-icon-small {
    color: var(--primary-red);
    width: 24px;
    height: 24px;
}

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

@keyframes scan {
    0% { top: 10%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 90%; opacity: 0; }
}

/* --- SERVICES --- */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

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

.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: var(--primary-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
    border-color: rgba(255,0,51,0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.card-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255,0,51,0.1);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,0,51,0.2);
}

.card-icon {
    color: var(--primary-red);
    width: 28px;
    height: 28px;
}

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

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- ABOUT --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-visual {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
}

.about-visual::after {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    right: -5%;
    bottom: -5%;
    background: radial-gradient(circle at center, var(--primary-red-glow) 0%, transparent 60%);
    opacity: 0.2;
    z-index: -1;
}

.metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

.metric-value {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary-red);
    text-shadow: 0 0 15px var(--primary-red-glow);
    margin-bottom: 0.5rem;
}

.metric-label {
    color: var(--text-pure);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.about-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.feature-list i {
    color: var(--primary-red);
    width: 20px;
    height: 20px;
}

/* --- CONTACT --- */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 4rem !important;
}

.contact-info .section-title {
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2.rem;
}

.contact-details {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail-item i {
    color: var(--primary-red);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-pure);
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(255,0,51,0.2);
}

/* --- FOOTER --- */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem 0;
    background: rgba(0,0,0,0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
    font-size: 0.9rem;
}

.footer-heading {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

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

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

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

.social-icons a:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
}

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

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 992px) {
    .hero-content, .about-grid, .contact-content {
        grid-template-columns: 1fr;
    }
    .hero-visual {
        order: -1; /* Display image first on mobile */
        height: 350px;
        margin-bottom: 2rem;
    }
    .orb-large {
        width: 150px; height: 300px;
    }
    .orb-small {
        width: 80px; height: 160px;
    }
    .hero-title {
        font-size: 3rem;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple hidden state for mobile, could be expanded */
    }
    .mobile-menu-toggle {
        display: block;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-actions {
        flex-direction: column;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .contact-content {
        padding: 2rem !important;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* --- ANIMATIONS (Scroll Reveal Classes appended via JS) --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- WHATSAPP BUTTON --- */
.btn-whatsapp {
    background-color: #25D366;
    color: #ffffff;
    box-shadow: 0 4px 14px 0 rgba(37, 211, 102, 0.4);
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    transform: translateY(-2px);
}
