/* Custom properties */
:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --primary: #0ea5e9;
    --primary-glow: rgba(14, 165, 233, 0.4);
    --secondary: #94a3b8;
    --accent: #38bdf8;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-height: 80px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and smooth scrolling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-main);
    font-weight: 300;
}

.text-accent {
    color: var(--accent);
}

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

.text-secondary {
    color: var(--secondary);
}

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

/* Utilities */
.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.dark-bg {
    background-color: var(--bg-darker);
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.6);
}

.btn-primary-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-primary-outline:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(40, 50, 70, 0.9);
    border-color: var(--primary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
}

.logo img {
    height: 48px;
    width: auto;
    border-radius: 8px;
    /* Slightly rounded if it's square */
    background: white;
    /* Since it has a white background generated, maybe match it */
}

.logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

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

.nav-links a:not(.btn) {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

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

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Background Particle Container */
#particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 0%, #1e293b 0%, #0f172a 60%);
}

.particle {
    position: absolute;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-graphic {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

.hero-graphic::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    z-index: -1;
    filter: blur(40px);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    transition: var(--transition);
    transform: translateX(0);
}

.stat-card:hover {
    transform: translateX(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-card:nth-child(2) {
    margin-left: 2rem;
}

.stat-card:nth-child(3) {
    margin-left: 4rem;
}

.stat-card i {
    font-size: 2.5rem;
}

.stat-info h3 {
    margin: 0;
    font-size: 1.25rem;
}

.stat-info span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* About Section */
.about-section {
    padding: 8rem 0;
}

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

.accent-line {
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

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

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

.feature-list i {
    color: var(--primary);
    font-size: 1.5rem;
}

.glass-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.abstract-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: rgba(14, 165, 233, 0.4);
    top: -50px;
    left: -50px;
    animation: drift 10s infinite alternate ease-in-out;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: rgba(56, 189, 248, 0.3);
    bottom: -50px;
    right: -50px;
    animation: drift 12s infinite alternate-reverse ease-in-out;
}

@keyframes drift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 30px);
    }
}

.floating-img {
    position: relative;
    z-index: 1;
    width: 200px;
    height: 200px;
    object-fit: contain;
    animation: hover-float 4s ease-in-out infinite;
    mix-blend-mode: normal;
    /* Logo already has white bg so let it show or border radius */
    border-radius: 12px;
}

@keyframes hover-float {

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

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

/* Products Section */
.products-section {
    padding: 8rem 0;
}

.section-subtitle {
    font-size: 1.25rem;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

.card-icon {
    width: 70px;
    height: 70px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: var(--primary);
    font-size: 2rem;
    transition: var(--transition);
}

.glass-card:hover .card-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.glass-card h3 {
    margin-bottom: 1rem;
}

.glass-card p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Services Timeline */
.services-section {
    padding: 8rem 0;
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-darker));
}

.services-timeline {
    max-width: 800px;
    margin: 4rem auto 0;
    position: relative;
}

.services-timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(14, 165, 233, 0.2);
}

.service-item {
    position: relative;
    padding-left: 100px;
    margin-bottom: 3rem;
}

.service-item:last-child {
    margin-bottom: 0;
}

.service-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 80px;
    background: var(--bg-darker);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.2);
    z-index: 1;
}

.service-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
}

.service-item:hover .service-content {
    border-color: var(--primary);
    transform: translateX(10px);
}

/* CTA Section */
.cta-section {
    padding: 6rem 2rem;
    display: flex;
    justify-content: center;
}

.cta-container {
    width: 100%;
    max-width: 1000px;
    padding: 4rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(30, 41, 59, 0.8) 100%);
    border: 1px solid rgba(14, 165, 233, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.cta-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 50%);
    z-index: -1;
    animation: slow-spin 15s linear infinite;
}

@keyframes slow-spin {
    100% {
        transform: rotate(360deg);
    }
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.cta-content p {
    font-size: 1.25rem;
}

/* Footer */
footer {
    background: #020617;
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    color: var(--text-main);
}

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

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1280px;
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
        gap: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .stat-card {
        transform: none !important;
        margin: 0 !important;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .accent-line {
        margin-inline: auto;
    }

    .feature-list li {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        gap: 2rem;
    }

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

    .mobile-menu-btn {
        display: block;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-timeline::before {
        left: 30px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .service-item {
        padding-left: 80px;
    }
}