/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #e6e6e6;
    background-color: #0a192f;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Color Variables */
:root {
    --primary: #0a192f;
    --secondary: #64ffda;
    --accent: #8892b0;
    --light: #e6f1ff;
    --text: #e6e6e6;
    --transition: 0.3s ease;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* Hero Container - establishes stacking context */
.hero-container {
    position: relative;
    height: 100vh;
    width: 100%;
}

/* Bottom Layer: Video Background */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Middle Layer: Animated SVG Stock Path */
.stock-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-color: transparent;
}

.stock-animation svg {
    width: 100%;
    height: 100%;
    display: block;
}

.stock-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawPath 8s ease-out forwards;
    /* Ensure the path is always visible */
    stroke-width: 4;
}

.data-points circle {
    fill: #64ffda;
    /* Always visible data points */
    opacity: 1;
    stroke: #4ce0ff;
    stroke-width: 1;
}

.data-points circle:hover {
    transform: scale(1.5);
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

/* Top Layer: Hero Text and Buttons */
.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    z-index: 3;
    color: white;
}

.hero-content h1 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 3.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    color: var(--text);
    font-size: 1.8rem;
    margin-bottom: 40px;
    font-weight: 300;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--primary);
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(100, 255, 218, 0.3);
}

.btn-primary:hover {
    background-color: #4ce0ff;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(100, 255, 218, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary);
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    border: 1px solid var(--secondary);
    cursor: pointer;
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    background-color: rgba(100, 255, 218, 0.1);
    transform: translateY(-3px);
}

/* Remove old animations */
.data-grid, .particles {
    display: none;
}

/* Services Section */
.services {
    padding: 120px 0;
    background-color: #0a192f;
}

.services h2 {
    color: var(--secondary);
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.services h2:after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 60px;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 25px;
    padding: 50px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-15px);
    background-color: rgba(100, 255, 218, 0.05);
    border-color: rgba(100, 255, 218, 0.4);
    box-shadow: 0 25px 60px rgba(100, 255, 218, 0.3);
}

.service-icon {
    margin-bottom: 30px;
    display: inline-block;
}

.service-icon svg {
    fill: var(--secondary);
    transition: all var(--transition);
}

.service-card:hover .service-icon svg {
    transform: scale(1.2) rotate(5deg);
}

.service-card h3 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-weight: 600;
}

.service-card p {
    color: var(--text);
    margin-bottom: 30px;
    font-weight: 300;
}

.service-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition);
}

.service-link:hover {
    color: #4ce0ff;
    transform: translateX(10px);
}

/* Technology Section */
.technology {
    padding: 120px 0;
    background-color: #0a192f;
}

.technology h2 {
    color: var(--secondary);
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.technology h2:after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 10px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 60px;
}

.tech-item {
    text-align: center;
    padding: 50px;
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all var(--transition);
}

.tech-item:hover {
    transform: translateY(-15px);
    background-color: rgba(100, 255, 218, 0.05);
    border-color: rgba(100, 255, 218, 0.4);
    box-shadow: 0 25px 60px rgba(100, 255, 218, 0.3);
}

.tech-item h3 {
    color: var(--secondary);
    margin-bottom: 30px;
    font-weight: 600;
}

.tech-visualization {
    margin-bottom: 30px;
}

.tech-item p {
    color: var(--text);
    font-weight: 300;
}

/* Testimonials Section */
.testimonials {
    padding: 120px 0;
    background-color: #0a192f;
}

.testimonials h2 {
    color: var(--secondary);
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.testimonials h2:after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 10px;
}

.testimonials-grid {
    display: flex;
    justify-content: center;
}

.testimonial {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 25px;
    padding: 50px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    max-width: 800px;
    text-align: center;
}

.testimonial p {
    color: var(--text);
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 20px;
}

.testimonial strong {
    color: var(--secondary);
    font-weight: 500;
}

/* Footer */
footer {
    background-color: #0a192f;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p {
    color: var(--text);
    margin-bottom: 15px;
    font-weight: 300;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    color: var(--text);
    transition: all var(--transition);
}

.social-links a:hover {
    color: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    padding-top: 30px;
    margin-top: 30px;
}

.footer-bottom p {
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 300;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.footer-links a {
    color: var(--accent);
    text-decoration: none;
    transition: all var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.3rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 280px;
    }

    .services, .technology, .testimonials {
        padding: 80px 0;
    }

    .service-card, .tech-item, .testimonial {
        padding: 30px;
    }

    .footer-content {
        gap: 40px;
    }

    .footer-section h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.6rem;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero-cta {
        gap: 15px;
    }

    .btn-primary, .btn-secondary {
        padding: 14px 30px;
        font-size: 1rem;
    }

    .services-grid, .tech-grid {
        gap: 40px;
    }

    .service-card, .tech-item, .testimonial {
        padding: 25px;
    }

    .footer-content {
        gap: 30px;
    }

    .footer-section p {
        font-size: 0.9rem;
    }

    .footer-bottom p {
        font-size: 0.9rem;
    }
}