/* Base Reset & Obsidian Foundation */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
body {
    background-color: #050508; /* Deep Obsidian */
    color: #ffffff;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Header Navigation */
header {
    display: flex;
    justify-content: space-between;
    padding: 2rem 5%;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 8, 0.8);
    -webkit-backdrop-filter: blur(10px); /* FIX: Added Safari prefix */
    backdrop-filter: blur(10px);
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Electric Blue Signature Branding Class */
.brand-blue {
    color: #00f0ff;
}

nav a {
    color: #a3a3a3;
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    transition: color 0.3s;
}
nav a:hover {
    color: #00f0ff;
}

/* Sections Layout */
.hero-section, .service-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 5% 4rem;
}
.container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Typography & Pulsating Text Animation */
h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
h2 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.pulsate {
    background: linear-gradient(270deg, #00f0ff, #8a2be2, #00f0ff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;           /* FIX: Added standard property for Firefox */
    -webkit-text-fill-color: transparent;
    color: transparent;              /* FIX: Added fallback for non-webkit browsers */
    animation: moveGradient 4s ease infinite;
}
@keyframes moveGradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.subtitle {
    font-size: 1.25rem;
    color: #a3a3a3;
    max-width: 750px;
    margin: 0 auto 3rem auto;
}

/* Buttons & Interactions */
.cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.btn-primary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background: #ffffff;
    color: #050508;
}
.btn-secondary {
    background: #8a2be2;
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-secondary:hover {
    background: #7022b8;
}

/* Section Divider Line */
.minimal-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #222530, transparent);
    margin: 0;
}

/* Active Audio Bars Special Effects Container */
.voice-demo-container {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}
.audio-wave {
    display: flex;
    align-items: center; /* FIX: Changed from center to flex-end so bars sit on a baseline */
    gap: 6px;
    height: 40px;
}
.bar {
    width: 4px;
    height: 15px;
    background: #00f0ff;
    border-radius: 2px;
    transform-origin: bottom;        /* FIX: Anchor scaleY to bottom so bars grow upward */
    animation: bounce 1s ease-in-out infinite alternate;
}
.bar:nth-child(2) { animation-delay: 0.2s; height: 25px; background: #8a2be2; }
.bar:nth-child(3) { animation-delay: 0.4s; height: 35px; background: #00f0ff; }
.bar:nth-child(4) { animation-delay: 0.6s; height: 20px; background: #8a2be2; }
.bar:nth-child(5) { animation-delay: 0.1s; height: 30px; background: #00f0ff; }

@keyframes bounce {
    0%   { transform: scaleY(0.4); }
    100% { transform: scaleY(1.3); }
}
.demo-text {
    color: #8a2be2;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: bold;
}

/* Visual Connector Line */
.visual-connector {
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, #8a2be2, #00f0ff, transparent);
    margin: 2rem auto 0 auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 2rem 5% 6rem;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 30px;
    border-radius: 8px;
    cursor: pointer;
    /* FIX: Replaced 'transition: all' with specific properties for better performance */
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    border-color: #00f0ff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.1);
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0;
    color: #ffffff;
}

/* Pop-up Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 5, 8, 0.9);
    -webkit-backdrop-filter: blur(8px); /* FIX: Added Safari prefix */
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    /* NOTE: JS must toggle this with display: 'flex', not 'block' */
}
.modal-content {
    background: #0a0a0f;
    padding: 40px;
    border: 1px solid #00f0ff;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
}
.close-modal {
    color: #a3a3a3;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s;
}
.close-modal:hover {
    color: #00f0ff;
}

/* ============================================
   RESPONSIVE — Mobile / Tablet
   FIX: Added missing media queries
   ============================================ */
@media (max-width: 768px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 2rem; }

    nav {
        display: none; /* Replace with hamburger menu if needed */
    }

    .cta-group {
        flex-direction: column;
        align-items: center;
    }

    .hero-section, .service-section {
        padding: 6rem 5% 3rem;
    }

    .subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.6rem; }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .modal-content {
        padding: 24px;
    }
}