@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --primary: #050810;
    --secondary: #0f172a;
    --accent: #6366f1; /* Indigo */
    --accent-alt: #00f2ff; /* Cyan */
    --accent-glow: rgba(99, 102, 241, 0.4);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --glass: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --pattern: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.03) 1px, transparent 0);
    --hex-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cpath fill-rule='evenodd' d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9L13.99 11.55l11 6.35v12.7l-11 6.35L3 30.6V17.9z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary);
    background-image: var(--pattern), var(--hex-pattern);
    background-size: 40px 40px, 56px 98px;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Glows */
.bg-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    filter: blur(80px);
    z-index: -1;
    animation: glowMove 15s infinite alternate ease-in-out;
    opacity: 0.3;
}

.bg-glow-alt {
    position: fixed;
    top: 20%;
    right: 10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    animation: glowMove 10s infinite alternate-reverse ease-in-out;
    opacity: 0.2;
}

@keyframes glowMove {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-30%, -40%) scale(1.2); }
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.section {
    padding: 100px 0;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 0.5rem 0;
}

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

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: transparent;
    padding-top: 80px; /* account for fixed header */
}

.hero-split {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: 100%;
}

.hero-content {
    flex: 1;
    text-align: left;
    max-width: 560px;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 1px solid var(--accent);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    background: rgba(99, 102, 241, 0.08);
}

.hero-image-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-img {
    width: 100%;
    max-width: 560px;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(99, 102, 241, 0.2);
    border: 1px solid var(--glass-border);
    animation: floatImg 5s ease-in-out infinite;
}

@keyframes floatImg {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* Secondary button */
.btn-outline {
    border: 1px solid var(--accent-alt);
    color: var(--accent-alt);
    margin-left: 1rem;
}

.btn-outline:hover {
    background: rgba(0, 242, 255, 0.1);
    transform: translateY(-3px);
}

/* Mobile Hero fallback — already handled in hero-split */
@media (max-width: 768px) {
    .hero-split { flex-direction: column-reverse; gap: 2rem; }
    .hero-content { text-align: center; max-width: 100%; }
    .hero-img { max-width: 90vw; animation: none; }
    .hero { padding-top: 80px; padding-bottom: 3rem; min-height: auto; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .hero-btns { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
    .btn-outline { margin-left: 0; }
}

.hero h1 {
    font-size: 3.6rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--accent), var(--accent-alt));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.15;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--accent-glow);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: var(--secondary);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at var(--mouseX, 50%) var(--mouseY, 50%), rgba(255,255,255,0.05) 0%, transparent 80%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-alt);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(0,242,255,0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* About Section */
.about-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Footer */
footer {
    background: var(--secondary);
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    list-style: none;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

/* Workflow Steps */
.workflow-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 4rem;
}

.workflow-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--glass-border);
    z-index: 1;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--secondary);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
    margin-top: 5rem;
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-alt);
    display: block;
}

.stat-label {
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

/* Accordion */
.accordion {
    max-width: 800px;
    margin: 4rem auto 0;
}

.accordion-item {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: var(--transition);
}

.accordion-header:hover {
    background: rgba(255,255,255,0.02);
}

.accordion-content {
    max-height: 0;
    padding: 0 1.5rem;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
    color: var(--text-dim);
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    padding-bottom: 1.5rem;
}

.accordion-icon {
    transition: var(--transition);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* =================== RESPONSIVE =================== */

@media (max-width: 768px) {
    /* Nav */
    .hamburger { display: flex; }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(5, 8, 16, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 0;
        z-index: 999;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .nav-links.open { display: flex; }
    .nav-links li { width: 100%; text-align: center; }
    .nav-links a { display: block; padding: 1.2rem 0; font-size: 1.1rem; }
    .nav-links a:active { background: rgba(255,255,255,0.04); }

    /* Layout */
    .container { padding: 0 1.2rem; }
    .section { padding: 60px 0; }

    /* Services Grid */
    .services-grid { grid-template-columns: 1fr; gap: 1.2rem; margin-top: 2rem; }
    .service-card { padding: 2rem 1.5rem; }

    /* Workflow */
    .workflow-steps { flex-direction: column; gap: 2.5rem; }
    .workflow-steps::before { display: none; }
    .step-number { width: 64px; height: 64px; font-size: 1.2rem; }

    /* Stats */
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 3rem; }
    .stat-value { font-size: 2.2rem; }

    /* FAQ */
    .accordion-header { padding: 1.2rem; font-size: 0.9rem; }
    .accordion { margin-top: 2rem; }

    /* Footer */
    footer { padding: 3rem 0; }
    .footer-links { flex-wrap: wrap; gap: 1rem; justify-content: center; }

    /* Typography */
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.1rem; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .hero h1 { font-size: 1.75rem; }
    .logo { font-size: 1.2rem; }
    h2 { font-size: 1.5rem; }
    .btn { padding: 0.85rem 1.8rem; font-size: 0.9rem; }
}

/* Workflow steps responsive updates */
@media (max-width: 768px) {
    .workflow-steps { flex-direction: column; gap: 3rem; }
    .workflow-steps::before { display: none; }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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