:root {
    --bg: #030712;
    --bg-card: #0a0f1a;
    --bg-card-hover: #111827;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --text: #f1f5f9;
    --text-muted: #64748b;
    --text-dim: #475569;
    --accent: #10b981;
    --accent-glow: rgba(16,185,129,0.4);
    --blue: #3b82f6;
    --blue-glow: rgba(59,130,246,0.4);
    --purple: #8b5cf6;
    --cyan: #06b6d4;
    --gradient: linear-gradient(135deg, #10b981, #3b82f6, #8b5cf6);
    --gradient-text: linear-gradient(135deg, #10b981, #3b82f6);
    --font: 'Inter', sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

::selection { background: var(--accent); color: var(--bg); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* CURSOR GLOW */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

/* GRID BG */
.grid-bg {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(3,7,18,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

.navbar.scrolled { background: rgba(3,7,18,0.95); box-shadow: 0 4px 30px rgba(0,0,0,0.3); }

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    font-family: var(--mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.logo-bracket { color: var(--text-muted); }
.logo-slash { color: var(--accent); }
.logo-accent { color: var(--accent); }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-link:hover, .nav-link.active { color: var(--text); background: rgba(255,255,255,0.05); }

.nav-cta {
    background: var(--accent) !important;
    color: var(--bg) !important;
    font-weight: 700 !important;
}

.nav-cta:hover { box-shadow: 0 0 20px var(--accent-glow); transform: translateY(-1px); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 70px;
}

#heroCanvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 24px;
    padding: 6px 14px;
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: 4px;
}

.tag-dot {
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-title .line-1, .hero-title .line-2, .hero-title .line-3 {
    display: block;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-strike {
    position: relative;
    color: var(--text-muted);
    -webkit-text-fill-color: var(--text-muted);
}

.text-strike::after {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 100%; height: 3px;
    background: var(--accent);
    transform: rotate(-2deg);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 50px;
}

.btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-family: var(--font);
}

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

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--accent-glow), 0 10px 30px rgba(0,0,0,0.3);
}

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

.btn-outline:hover {
    border-color: var(--accent);
    background: rgba(16,185,129,0.05);
}

.hero-metrics {
    display: flex;
    align-items: center;
    gap: 30px;
}

.metric { text-align: center; }

.metric-value {
    font-family: var(--mono);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
}

.metric-plus, .metric-percent, .metric-unit {
    font-family: var(--mono);
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 700;
}

.metric-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 4px;
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* CODE EDITOR */
.code-editor {
    background: #0d1117;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(16,185,129,0.05);
}

.editor-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #161b22;
    border-bottom: 1px solid var(--border);
}

.editor-dots {
    display: flex;
    gap: 6px;
}

.editor-dots span {
    width: 10px; height: 10px;
    border-radius: 50%;
}

.editor-dots span:nth-child(1) { background: #ff5f57; }
.editor-dots span:nth-child(2) { background: #febc2e; }
.editor-dots span:nth-child(3) { background: #28c840; }

.editor-tab {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.editor-body {
    padding: 20px;
    font-family: var(--mono);
    font-size: 0.8rem;
    line-height: 1.8;
}

.editor-line {
    display: flex;
    gap: 16px;
    white-space: nowrap;
}

.line-num {
    color: var(--text-dim);
    user-select: none;
    min-width: 20px;
}

.code-keyword { color: #ff7b72; }
.code-var { color: #79c0ff; }
.code-string { color: #a5d6ff; }
.code-func { color: #d2a8ff; }
.code-param { color: #ffa657; }
.code-cursor { color: var(--accent); animation: blink 1s infinite; }

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.editor-status {
    display: flex;
    gap: 20px;
    padding: 8px 16px;
    background: #161b22;
    border-top: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-dim);
}

/* SCROLL INDICATOR */
.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
}

.hero-scroll span {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 3px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* SECTIONS */
section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* SERVICES */
.services { background: rgba(16,185,129,0.02); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.service-card {
    position: relative;
    padding: 36px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.service-glow {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(59,130,246,0.06) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.glow-green {
    background: radial-gradient(circle at center, rgba(16,185,129,0.08) 0%, transparent 50%);
}

.service-badge {
    position: absolute;
    top: 16px; right: 16px;
    background: var(--accent);
    color: var(--bg);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.service-number {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.service-icon {
    color: var(--blue);
    margin-bottom: 20px;
}

.icon-green { color: var(--accent); }

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-price {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 20px;
    padding: 8px 12px;
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.15);
    border-radius: 6px;
    display: inline-block;
}

.service-price span { font-weight: 800; }

.service-features {
    list-style: none;
    margin-bottom: 16px;
}

.service-features li {
    padding: 4px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-left: 18px;
    position: relative;
}

.service-features li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.service-arrow {
    position: absolute;
    bottom: 24px; right: 24px;
    color: var(--text-dim);
    font-size: 1.2rem;
    transition: all 0.3s;
}

.service-card:hover .service-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

/* PORTFOLIO */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.portfolio-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    padding: 32px;
}

.portfolio-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.portfolio-card.large {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.portfolio-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.portfolio-content {
    position: relative;
    z-index: 1;
}

.portfolio-tag {
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.portfolio-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.portfolio-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.portfolio-tech {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.portfolio-tech span {
    font-family: var(--mono);
    font-size: 0.7rem;
    padding: 4px 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-muted);
}

.portfolio-visual {
    position: relative;
    z-index: 1;
}

.mockup-browser {
    background: #0d1117;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.mockup-header {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    background: #161b22;
    border-bottom: 1px solid var(--border);
}

.mockup-header span {
    width: 8px; height: 8px;
    border-radius: 50%;
}

.mockup-header span:nth-child(1) { background: #ff5f57; }
.mockup-header span:nth-child(2) { background: #febc2e; }
.mockup-header span:nth-child(3) { background: #28c840; }

.mockup-body {
    padding: 20px;
    min-height: 180px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.mockup-line {
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    margin-bottom: 10px;
}

.w60 { width: 60%; }
.w40 { width: 40%; }

.mockup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.mockup-box {
    height: 60px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
}

/* PROCESS */
.process { background: rgba(59,130,246,0.02); }

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.process-card {
    position: relative;
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s;
}

.process-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.process-line {
    display: none;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.process-num {
    font-family: var(--mono);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.3;
}

.process-dot {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow);
}

.process-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.process-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* TECH STACK */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.tech-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s;
}

.tech-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(16,185,129,0.1);
}

.tech-icon {
    font-size: 2rem;
}

.tech-card span {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* CONTACT */
.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 50px;
}

.contact-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.contact-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.whatsapp-card:hover {
    border-color: #25d366;
    box-shadow: 0 0 30px rgba(37,211,102,0.15);
}

.email-card:hover {
    border-color: var(--blue);
    box-shadow: 0 0 30px rgba(59,130,246,0.15);
}

.contact-card-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.contact-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.contact-card-arrow {
    position: absolute;
    bottom: 24px; right: 24px;
    color: var(--text-dim);
    font-size: 1.2rem;
    transition: all 0.3s;
}

.contact-card:hover .contact-card-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

.faq-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.faq-item {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.faq-item strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text);
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* FOOTER */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--mono);
    font-size: 1rem;
    font-weight: 700;
}

.footer-copy {
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-desc { margin: 0 auto 36px; }
    .hero-actions { justify-content: center; }
    .hero-metrics { justify-content: center; }
    .hero-visual { display: none; }
    .services-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-card.large { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-grid { grid-template-columns: repeat(3, 1fr); }
    .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 70px; left: 0; right: 0;
        background: rgba(3,7,18,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px 24px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-150%);
        transition: all 0.3s;
    }
    .nav-menu.active { transform: translateY(0); }
    .nav-link { width: 100%; text-align: center; padding: 12px; }
    .hero-title { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }
    .hero-metrics { flex-direction: column; gap: 16px; }
    .metric-divider { width: 40px; height: 1px; }
    .process-grid { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 12px; text-align: center; }
}

/* ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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