/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg:       #020812;
    --bg2:      #060f1e;
    --card:     #0a1628;
    --border:   rgba(0, 212, 255, 0.15);
    --accent:   #00d4ff;
    --accent2:  #7b2fff;
    --accent3:  #00ff88;
    --text:     #e2e8f0;
    --muted:    #64748b;
    --glow:     0 0 30px rgba(0, 212, 255, 0.25);
    --glow2:    0 0 30px rgba(123, 47, 255, 0.3);
    --radius:   14px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

canvas#particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 60px;
    background: rgba(2, 8, 18, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: padding 0.3s;
}
.navbar.scrolled { padding: 12px 60px; }

.nav-logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--accent);
    text-shadow: var(--glow);
}

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width 0.3s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s;
}
.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }

/* ── Sections common ── */
section {
    position: relative;
    z-index: 1;
    padding: 120px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 56px;
}

.glow-text {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    color: #fff;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 0 20px rgba(0,212,255,0.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(0,212,255,0.4); }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--accent);
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid var(--accent);
    transition: background 0.3s, transform 0.2s;
}
.btn-outline:hover { background: rgba(0,212,255,0.08); transform: translateY(-2px); }

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding-top: 140px;
}

.hero-content { flex: 1; max-width: 580px; }

.badge {
    display: inline-block;
    background: rgba(0,212,255,0.1);
    border: 1px solid rgba(0,212,255,0.3);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: clamp(42px, 5vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats { display: flex; align-items: center; gap: 32px; }
.stat { text-align: center; }
.stat-num {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
    text-shadow: var(--glow);
}
.stat span { font-size: 24px; font-weight: 700; color: var(--accent); }
.stat p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.stat-divider { width: 1px; height: 48px; background: var(--border); }

/* Hero visual */
.hero-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 400px;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: pulse 4s ease-in-out infinite;
}
.orb1 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(0,212,255,0.3), transparent);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.orb2 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(123,47,255,0.4), transparent);
    top: 30%; left: 60%;
    animation-delay: 2s;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
    50%       { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.hex-grid {
    display: grid;
    grid-template-columns: repeat(3, 80px);
    gap: 12px;
    position: relative;
    z-index: 1;
}

.hex {
    width: 80px; height: 90px;
    background: var(--card);
    border: 1px solid var(--border);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: all 0.4s;
    animation: hexFloat 3s ease-in-out infinite;
}
.hex:nth-child(2) { animation-delay: 0.3s; }
.hex:nth-child(3) { animation-delay: 0.6s; }
.hex:nth-child(4) { animation-delay: 0.9s; }
.hex:nth-child(5) { animation-delay: 1.2s; }
.hex:nth-child(6) { animation-delay: 1.5s; }
.hex:nth-child(7) { animation-delay: 1.8s; }
.hex:nth-child(8) { animation-delay: 2.1s; }
.hex:nth-child(9) { animation-delay: 2.4s; }

.hex.active {
    background: linear-gradient(135deg, rgba(0,212,255,0.3), rgba(123,47,255,0.3));
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(0,212,255,0.4);
}

@keyframes hexFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

/* ── About ── */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.about-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.about-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--glow);
    border-color: rgba(0,212,255,0.4);
}

.card-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(123,47,255,0.15));
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--accent);
    margin-bottom: 20px;
}

.about-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.about-card p  { color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ── Services ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent2), var(--accent));
    opacity: 0;
    transition: opacity 0.3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--glow2); }
.service-card:hover::before { opacity: 1; }

.service-card.featured {
    border-color: rgba(0,212,255,0.4);
    box-shadow: var(--glow);
}
.service-card.featured::before { opacity: 1; }

.service-num {
    font-size: 48px;
    font-weight: 900;
    color: rgba(0,212,255,0.06);
    position: absolute;
    top: 16px; right: 20px;
    line-height: 1;
}

.service-icon {
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 16px;
    display: block;
}

.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.service-card p  { color: var(--muted); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }

.service-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}
.service-link:hover { gap: 10px; }

/* ── Contact ── */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 20px; }

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-size: 15px;
}
.contact-item i {
    width: 40px; height: 40px;
    background: rgba(0,212,255,0.1);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 16px;
    flex-shrink: 0;
}

.social-links { display: flex; gap: 12px; margin-top: 8px; }
.social-links a {
    width: 40px; height: 40px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.social-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: var(--glow);
}

.contact-form { display: flex; flex-direction: column; gap: 16px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contact-form input,
.contact-form textarea {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 18px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}
.contact-form textarea { resize: vertical; }

/* ── Footer ── */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 60px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
}
.footer-logo {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 10px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .navbar { padding: 16px 24px; }
    .nav-links { display: none; }
    section { padding: 80px 24px; }
    .hero { flex-direction: column; padding-top: 120px; text-align: center; }
    .hero-btns { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { display: none; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}
