:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --secondary: #a855f7;
    --accent: #06b6d4;
    --bg-dark: #0a0e1a;
    --bg-dark-2: #111827;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #94a3b8;
    --text-light: rgba(255,255,255,0.7);
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-border: rgba(99, 102, 241, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-lg: 0 25px 60px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
}

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

html { scroll-behavior: smooth; }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 120px 0; }

/* ===== HEADER ===== */
.header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: transparent;
    transition: var(--transition);
    padding: 1.2rem 0;
}
.header.scrolled {
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--glass-border);
}
.nav { display: flex; justify-content: space-between; align-items: center; }

.logo {
    font-size: 1.6rem; font-weight: 800; color: var(--white);
    letter-spacing: -0.5px; display: flex; align-items: center; gap: 0.15rem;
}
.logo span { color: var(--primary); font-size: 2rem; }

.nav-links {
    display: flex; list-style: none; align-items: center; gap: 2rem;
}
.nav-links a {
    text-decoration: none; color: var(--text-light);
    font-weight: 500; font-size: 0.95rem;
    transition: var(--transition); position: relative;
}
.nav-links a:not(.btn-primary)::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}
.nav-links a:not(.btn-primary):hover { color: var(--white); }
.nav-links a:not(.btn-primary):hover::after { width: 100%; }

/* Hamburger */
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; z-index: 1001; background: none; border: none; padding: 4px;
}
.hamburger span {
    width: 24px; height: 2px; background: var(--white);
    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 ===== */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    position: relative; color: var(--white);
    background: var(--bg-dark);
    overflow: hidden;
}
#hero-canvas {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}
.hero-gradient {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(99,102,241,0.15), transparent),
        radial-gradient(ellipse 60% 50% at 80% 60%, rgba(168,85,247,0.1), transparent);
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.25);
    border-radius: 50px; padding: 0.4rem 1.2rem; margin-bottom: 2rem;
    font-size: 0.85rem; color: var(--primary-light); font-weight: 500;
    backdrop-filter: blur(10px);
}
.hero-badge .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent); animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(6,182,212,0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(6,182,212,0); }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 800; line-height: 1.15;
    margin-bottom: 1.5rem; letter-spacing: -1px;
}
.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}
@keyframes gradient-shift {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.hero p {
    font-size: 1.15rem; max-width: 560px;
    margin-bottom: 2.5rem; color: var(--text-muted);
    line-height: 1.8;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white) !important;
    padding: 0.85rem 2rem; border-radius: 12px;
    text-decoration: none; font-weight: 600; font-size: 0.95rem;
    transition: var(--transition); border: none; cursor: pointer;
    position: relative; overflow: hidden;
}
.btn-primary::before {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -6px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: var(--white); padding: 0.85rem 2rem;
    border-radius: 12px; text-decoration: none;
    font-weight: 600; font-size: 0.95rem;
    border: 1px solid rgba(255,255,255,0.12);
    transition: var(--transition); cursor: pointer;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* ===== STATS BAR ===== */
.stats-bar {
    background: var(--bg-dark-2);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 60px 0;
}
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
    text-align: center;
}
.stat-item h3 {
    font-size: 2.8rem; font-weight: 800; color: var(--white);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-item p {
    color: var(--text-muted); font-size: 0.9rem;
    font-weight: 500; text-transform: uppercase; letter-spacing: 1px;
}

/* ===== SERVICES ===== */
.services { background: var(--bg-dark); }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-label {
    display: inline-block; font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 3px;
    color: var(--primary-light); margin-bottom: 1rem;
}
.section-header h2 {
    font-size: 2.8rem; font-weight: 800; color: var(--white);
    margin-bottom: 1rem; letter-spacing: -0.5px;
}
.section-header p { color: var(--text-muted); font-size: 1.1rem; max-width: 500px; margin: 0 auto; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    padding: 2.5rem 2rem;
    background: rgba(255,255,255,0.02);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    opacity: 0; transition: opacity 0.4s ease;
}
.service-card:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--card-border);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(168,85,247,0.1));
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem; font-size: 1.5rem;
    border: 1px solid rgba(99,102,241,0.2);
}
.service-icon svg {
    width: 26px; height: 26px; stroke: var(--primary-light);
    fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

.service-card h3 {
    font-size: 1.25rem; margin-bottom: 0.75rem;
    color: var(--white); font-weight: 700;
}
.service-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* ===== ABOUT ===== */
.about { background: var(--bg-dark-2); color: var(--white); }

.about-flex { display: flex; align-items: center; gap: 5rem; }
.about-text { flex: 1; }
.about-text .section-label { text-align: left; }
.about-text h2 {
    font-size: 2.8rem; margin-bottom: 1.5rem;
    font-weight: 800; letter-spacing: -0.5px;
}
.about-text > p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.8; }

.check-list { list-style: none; margin-top: 2rem; }
.check-list li {
    margin-bottom: 1rem; display: flex; align-items: center;
    gap: 1rem; color: var(--text-light); font-size: 1rem;
}
.check-list li::before {
    content: "✓"; color: var(--accent); font-weight: 800;
    width: 28px; height: 28px; border-radius: 8px;
    background: rgba(6,182,212,0.1); display: flex;
    align-items: center; justify-content: center; flex-shrink: 0;
    font-size: 0.85rem;
}

.about-image {
    flex: 1; height: 480px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 24px; position: relative;
    overflow: hidden; display: flex;
    align-items: center; justify-content: center;
}
.about-image::before {
    content: ''; position: absolute; width: 200%; height: 200%;
    background: repeating-linear-gradient(
        45deg, transparent, transparent 20px,
        rgba(255,255,255,0.03) 20px, rgba(255,255,255,0.03) 40px
    );
    animation: pattern-move 20s linear infinite;
}
@keyframes pattern-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-40px, -40px); }
}

.glass-box {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px); padding: 3rem 4rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.15);
    text-align: center; position: relative; z-index: 1;
}
.glass-box h3 {
    font-size: 3.5rem; font-weight: 800; margin-bottom: 0.5rem;
}
.glass-box p { font-size: 1rem; color: rgba(255,255,255,0.8); font-weight: 500; }

/* ===== PROCESS ===== */
.process { background: var(--bg-dark); }
.process-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
    position: relative;
}
.process-grid::before {
    content: ''; position: absolute; top: 40px;
    left: 12.5%; right: 12.5%; height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary), var(--accent));
    opacity: 0.3;
}
.process-step { text-align: center; position: relative; }
.step-number {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white); display: flex; align-items: center;
    justify-content: center; margin: 0 auto 1.5rem;
    font-weight: 800; font-size: 1.2rem;
    position: relative; z-index: 1;
    box-shadow: 0 0 20px rgba(99,102,241,0.3);
}
.process-step h3 {
    font-size: 1.15rem; color: var(--white); margin-bottom: 0.5rem; font-weight: 700;
}
.process-step p { color: var(--text-muted); font-size: 0.9rem; padding: 0 1rem; }

/* ===== CONTACT ===== */
.contact { background: var(--bg-dark-2); }
.contact-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    padding: 4rem 3rem; border-radius: 24px;
    text-align: center; max-width: 800px; margin: 0 auto;
}
.contact-card h2 {
    font-size: 2.5rem; margin-bottom: 1rem;
    font-weight: 800; color: var(--white);
}
.contact-card > p { color: var(--text-muted); font-size: 1.05rem; }
.contact-card > p strong { color: var(--primary-light); }

.contact-form { margin-top: 2.5rem; text-align: left; }
.form-group { display: flex; gap: 1rem; margin-bottom: 1rem; }

input, textarea {
    width: 100%; padding: 1rem 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    font-family: inherit; font-size: 0.95rem;
    transition: var(--transition);
    background: rgba(255,255,255,0.04);
    color: var(--white);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    background: rgba(255,255,255,0.06);
}
textarea { height: 160px; margin-bottom: 1.5rem; resize: none; }

.contact-form .btn-primary {
    width: 100%; padding: 1rem; font-size: 1rem;
}

/* ===== FOOTER ===== */
.footer {
    background: #060911; color: var(--white);
    padding: 80px 0 30px;
    border-top: 1px solid var(--glass-border);
}
.footer-content {
    display: flex; justify-content: space-between;
    margin-bottom: 60px;
}
.footer-info p { color: var(--text-muted); margin-top: 1rem; max-width: 300px; font-size: 0.95rem; }

.footer-links h4 {
    margin-bottom: 1.5rem; font-size: 1rem;
    color: var(--text-light); font-weight: 600;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a {
    color: var(--text-muted); text-decoration: none;
    transition: var(--transition); font-size: 0.95rem;
}
.footer-links a:hover { color: var(--primary-light); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px; text-align: center;
    color: var(--text-muted); font-size: 0.85rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.8s ease forwards; }
.fade-in-delay { animation: fadeIn 0.8s ease 0.2s forwards; opacity: 0; }
.fade-in-delay-2 { animation: fadeIn 0.8s ease 0.4s forwards; opacity: 0; }

.reveal {
    opacity: 0; transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
    .process-grid::before { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
}

@media (max-width: 768px) {
    .section { padding: 80px 0; }
    .hamburger { display: flex; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 75%; height: 100vh;
        background: rgba(10,14,26,0.98); backdrop-filter: blur(20px);
        flex-direction: column; justify-content: center;
        gap: 2rem; padding: 2rem;
        transition: right 0.4s ease;
    }
    .nav-links.open { right: 0; }
    .nav-links a { font-size: 1.1rem; color: var(--white); }

    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .services-grid { grid-template-columns: 1fr; }
    .about-flex { flex-direction: column; gap: 3rem; }
    .about-text { text-align: center; }
    .check-list li { justify-content: center; }
    .about-image { width: 100%; height: 300px; }
    .process-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .form-group { flex-direction: column; }
    .footer-content { flex-direction: column; gap: 2.5rem; text-align: center; align-items: center; }
    .contact-card { padding: 3rem 1.5rem; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .stat-item h3 { font-size: 2.2rem; }
}
