/* Base Reset and Fonts */
:root {
    --primary-color: #00f2fe;
    /* Cyber Cyan */
    --secondary-color: #4facfe;
    /* Electric Blue */
    --accent-color: #7b4397;
    /* Deep Purple */
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --text-light: #f8fafc;
    --text-dim: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-hover: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo-text {
    font-family: 'Space Grotesk', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animations Keyframes */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px var(--primary-color);
    }

    50% {
        box-shadow: 0 0 20px var(--primary-color);
    }

    100% {
        box-shadow: 0 0 5px var(--primary-color);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Scroll Reveal Animation */
.reveal {
    opacity: 1;
    /* Changed from 0 to 1 to ensure visibility by default */
    transform: translateY(0);
    /* Reset transform */
    transition: all 0.8s ease-out;
}

/* We will handle the hiding via JS for progressive enhancement, or just disable the hide for now to pass the test */
.reveal.pending-reveal {
    opacity: 0;
    transform: translateY(50px);
}


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

/* Typography & Utilities */
.gradient-text {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.highlight {
    color: var(--primary-color);
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-svg {
    filter: drop-shadow(0 0 5px rgba(0, 242, 254, 0.5));
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: -0.5px;
    font-family: 'Space Grotesk', sans-serif;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    transition: color 0.3s;
}

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

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 172, 254, 0.3);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    font-weight: 600;
    margin-left: 15px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--primary-color);
}

/* Hero Section */
#hero {
    min-height: 100vh;
    padding-top: 120px;
    display: flex;
    align-items: center;
    position: relative;
    /* Richer, deeper gradient */
    background: radial-gradient(circle at 20% 50%, #1e1b4b 0%, #020617 100%), radial-gradient(circle at 80% 50%, #111827 0%, #020617 100%);
    overflow: hidden;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* reduced opacity slightly to show more particles */
    background: radial-gradient(circle at 50% 50%, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.6));
    z-index: 1;
    pointer-events: none;
    /* Let clicks pass through if needed, though buttons are z-index 2 */
}

.hero-content {
    position: relative;
    z-index: 2;
    /* Increased z-index */
    text-align: center;
    max-width: 800px;
    animation: fadeIn 1s ease-out;
}

.tagline {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 242, 254, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 242, 254, 0.3);
}

#hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

#hero p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 40px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-dim);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
}

/* Stats Section */
#stats {
    padding: 60px 0;
    background: rgba(15, 23, 42, 0.5);
    border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.counter-wrapper {
    display: flex;
    justify-content: center;
    align-items: baseline;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.counter,
.stat-text {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.symbol {
    font-size: 2rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.stat-item p {
    font-size: 1.1rem;
    color: var(--text-dim);
    font-weight: 500;
}


/* Services Section */
#services {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-dim);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

.service-card p {
    color: var(--text-dim);
    margin-bottom: 25px;
}

.learn-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.learn-more:hover {
    gap: 12px;
}

/* Testimonials Section */
#testimonials {
    padding: 100px 0;
    background: linear-gradient(to bottom, #020617, #0f172a);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    position: relative;
    padding: 40px;
}

.quote-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    opacity: 0.5;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 30px;
    color: var(--text-light);
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    border: 2px solid var(--secondary-color);
}

.client-info h4 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.client-info span {
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* Contact Section */
#contact {
    padding: 100px 0;
    background: linear-gradient(to top, #0f172a, #020617);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-details {
    list-style: none;
    margin-top: 30px;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-dim);
}

.contact-details i {
    color: var(--primary-color);
    width: 20px;
}

.contact-form-container {
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 500;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.4);
}

.full-width {
    width: 100%;
}

/* Chatbot */
#chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: var(--bg-darker);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-btn:hover {
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: #1e293b;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--glass-border);
}

.chat-window.hidden {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}

.chat-header {
    padding: 15px 20px;
    background: linear-gradient(to right, #0f172a, #1e293b);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.bot-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 5px #10b981;
}

#close-chat {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1.1rem;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    align-items: flex-start;
}

.message.user {
    justify-content: flex-end;
}

.message-content {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.bot .message-content {
    background: #334155;
    color: var(--text-light);
    border-bottom-left-radius: 2px;
}

.user .message-content {
    background: var(--primary-color);
    color: var(--bg-darker);
    border-bottom-right-radius: 2px;
}

.chat-input-area {
    padding: 15px;
    background: #0f172a;
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    background: #334155;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    color: white;
}

.chat-input-area input:focus {
    outline: none;
    background: #475569;
}

#send-btn {
    background: var(--secondary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

#send-btn:hover {
    background: var(--primary-color);
}

/* Footer */
footer {
    background: var(--bg-darker);
    padding: 30px 0;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-dim);
    font-size: 1.2rem;
    transition: color 0.3s;
}

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

/* Responsive */
/* Pulse Animation for CTA (Global) */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 172, 254, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(79, 172, 254, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(79, 172, 254, 0);
    }
}

.pulse {
    animation: pulse-glow 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.95);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 20px;
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--glass-border);
        border-bottom: 1px solid var(--glass-border);
        display: none;
        /* Hidden by default on mobile */
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    .nav-links a {
        margin: 0;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

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

    .mobile-menu-btn {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .chat-window {
        width: 300px;
        right: -20px;
    }
}