/* ═══════════════════════════════════════ */
/* CSS VARIABLES & RESET                   */
/* ═══════════════════════════════════════ */
:root {
  --bg: #0a0a0b;
  --bg-card: #111113;
  --bg-card-hover: #18181b;
  --border: #1e1e22;
  --border-hover: #2a2a30;
  --text: #e4e4e7;
  --text-muted: #71717a;
  --text-dim: #52525b;
  --accent: #6d5cff;
  --accent-light: #8b7dff;
  --accent-glow: rgba(109, 92, 255, 0.15);
  --accent2: #00d4aa;
  --accent2-glow: rgba(0, 212, 170, 0.15);
  --gradient: linear-gradient(135deg, #6d5cff 0%, #00d4aa 100%);
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Outfit', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ═══════════════════════════════════════ */
/* ANIMATIONS                              */
/* ═══════════════════════════════════════ */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════ */
/* NAVIGATION                              */
/* ═══════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 8px;
  letter-spacing: -0.5px;
}
.logo-text {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: all var(--transition) !important;
}
.nav-cta:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  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;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(109, 92, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 92, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 720px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent2);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
#hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
}
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
}
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.stat { text-align: center; }
.stat-value {
  display: block;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ═══════════════════════════════════════ */
/* SECTION STYLES                          */
/* ═══════════════════════════════════════ */
section {
  padding: 100px 0;
}
.section-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 56px;
  line-height: 1.2;
}

/* ═══════════════════════════════════════ */
/* ABOUT                                   */
/* ═══════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
  line-height: 1.2;
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 15px;
}
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.tag {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Code Window */
.code-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.code-title {
  margin-left: 12px;
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--mono);
}
.code-body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  overflow-x: auto;
}
.code-body .kw { color: #c792ea; }
.code-body .fn { color: #82aaff; }
.code-body .key { color: var(--accent2); }
.code-body .str { color: #c3e88d; }
.code-body .cmt { color: var(--text-dim); }

/* ═══════════════════════════════════════ */
/* SERVICES                                */
/* ═══════════════════════════════════════ */
#services {
  text-align: center;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: left;
  transition: all var(--transition);
  position: relative;
}
.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.service-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(109, 92, 255, 0.06) 0%, var(--bg-card) 100%);
}
.service-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.service-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.7;
}
.service-features {
  list-style: none;
}
.service-features li {
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-features li::before {
  content: "✓";
  color: var(--accent2);
  font-weight: 700;
  font-size: 12px;
}

/* ═══════════════════════════════════════ */
/* PORTFOLIO                               */
/* ═══════════════════════════════════════ */
#portfolio {
  text-align: center;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  text-align: left;
}
.portfolio-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.portfolio-preview {
  height: 200px;
  background: linear-gradient(135deg, rgba(109, 92, 255, 0.1) 0%, rgba(0, 212, 170, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.portfolio-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.portfolio-placeholder.accent {
  background: var(--accent2-glow);
  color: var(--accent2);
}
.portfolio-placeholder.secondary {
  background: rgba(255, 200, 50, 0.1);
  color: #ffc832;
}
.portfolio-info {
  padding: 24px;
}
.portfolio-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
}
.portfolio-info h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 8px 0;
  letter-spacing: -0.5px;
}
.portfolio-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}
.portfolio-tech {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.portfolio-tech span {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--mono);
}

/* ═══════════════════════════════════════ */
/* TESTIMONIALS                            */
/* ═══════════════════════════════════════ */
#testimonials {
  text-align: center;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: left;
  transition: all var(--transition);
}
.testimonial-card:hover {
  border-color: var(--border-hover);
}
.testimonial-stars {
  color: #fbbf24;
  font-size: 16px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.testimonial-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
.testimonial-author strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.testimonial-author span {
  font-size: 12px;
  color: var(--text-dim);
}

/* ═══════════════════════════════════════ */
/* CTA                                     */
/* ═══════════════════════════════════════ */
#cta {
  padding: 60px 0;
}
.cta-box {
  background: linear-gradient(135deg, rgba(109, 92, 255, 0.12) 0%, rgba(0, 212, 170, 0.08) 100%);
  border: 1px solid rgba(109, 92, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
}
.cta-box h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.cta-box p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 32px;
}

/* ═══════════════════════════════════════ */
/* CONTACT                                 */
/* ═══════════════════════════════════════ */
#contact {
  text-align: center;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
  display: block;
}
.contact-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.contact-icon.whatsapp { background: rgba(37, 211, 102, 0.12); color: #25d366; }
.contact-icon.email { background: var(--accent-glow); color: var(--accent); }
.contact-icon.linkedin { background: rgba(0, 119, 181, 0.12); color: #0077b5; }
.contact-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.contact-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.contact-action {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

/* ═══════════════════════════════════════ */
/* FOOTER                                  */
/* ═══════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.footer-inner {
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.footer-tagline {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
}

/* ═══════════════════════════════════════ */
/* RESPONSIVE                              */
/* ═══════════════════════════════════════ */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 20px; color: var(--text); }
  .nav-cta { padding: 12px 28px; font-size: 18px; }

  #hero { padding: 100px 20px 60px; min-height: auto; }
  #hero h1 { letter-spacing: -1px; }
  .hero-stats { gap: 20px; }
  .stat-value { font-size: 22px; }
  .stat-label { font-size: 10px; }

  section { padding: 64px 0; }
  .section-title { margin-bottom: 36px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .cta-box { padding: 40px 24px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
