:root {
  --bg: #020814;
  --bg2: #06142a;
  --panel: rgba(7, 23, 48, 0.72);
  --panel2: rgba(10, 38, 75, 0.56);
  --text: #f4f8ff;
  --muted: #a9b9d6;
  --primary: #00d7ff;
  --primary2: #1479ff;
  --accent: #7c5cff;
  --line: rgba(0, 215, 255, 0.28);
  --shadow: 0 24px 80px rgba(0, 140, 255, 0.22);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(0, 124, 255, 0.24), transparent 28%),
    radial-gradient(circle at 80% 30%, rgba(0, 215, 255, 0.14), transparent 25%),
    linear-gradient(140deg, #010511 0%, #061125 48%, #020916 100%);
  color: var(--text);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 78%);
  z-index: -2;
}

.aurora {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
  pointer-events: none;
  z-index: -3;
}

.aurora-1 {
  background: var(--primary2);
  top: 8%;
  left: -120px;
}

.aurora-2 {
  background: var(--primary);
  bottom: 8%;
  right: -160px;
}

.page-loader {
  position: fixed;
  inset: 0;
  background: #020814;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  z-index: 9999;
  transition: opacity .5s ease, visibility .5s ease;
}

.page-loader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-mark {
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 26px;
  color: var(--primary);
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 0 40px rgba(0, 215, 255, 0.25);
  position: relative;
}

.loader-mark::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 30px;
  border: 2px solid transparent;
  border-top-color: var(--primary);
  border-bottom-color: var(--primary2);
  animation: spin 1.4s linear infinite;
}

.page-loader p {
  margin: 0;
  color: var(--muted);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 8, 20, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0, 215, 255, 0.12);
}

.navbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .3px;
  margin-inline-end: auto;
}

.brand b {
  color: var(--primary);
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 215, 255, .18), rgba(20, 121, 255, .08));
  border: 1px solid var(--line);
  color: var(--primary);
  box-shadow: 0 0 28px rgba(0, 215, 255, .2);
  direction: ltr;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
}

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

.nav-cta,
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  border: 1px solid var(--line);
}

.nav-cta,
.btn-primary {
  background: linear-gradient(135deg, var(--primary2), var(--primary));
  color: #001226;
  box-shadow: 0 12px 34px rgba(0, 148, 255, .28);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255,255,255,.04);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: 14px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
}

.section {
  padding: 96px 0;
}

.hero {
  padding-top: 86px;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 52px;
  align-items: center;
}

.eyebrow,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 900;
  direction: ltr;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 18px var(--primary);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.08;
  letter-spacing: -1.8px;
}

.hero h1 span {
  display: block;
  color: var(--primary);
  text-shadow: 0 0 34px rgba(0, 215, 255, .28);
}

.hero-text,
.section-heading p,
.about-panel p,
.cta-card p {
  color: var(--muted);
  line-height: 1.9;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.stats div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.04);
}

.stats strong {
  display: block;
  font-size: 22px;
  color: var(--text);
  direction: ltr;
}

.stats span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  direction: ltr;
}

.hero-visual {
  position: relative;
  min-height: 590px;
}

.orbit {
  position: absolute;
  inset: 40px 10px auto auto;
  width: 390px;
  height: 390px;
  display: grid;
  place-items: center;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 50px rgba(0, 215, 255, .12), 0 0 80px rgba(0, 140, 255, .15);
  animation: slowRotate 14s linear infinite;
}

.orbit-ring::before,
.orbit-ring::after {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  border: 8px solid transparent;
  border-top-color: var(--primary);
  border-bottom-color: var(--primary2);
  filter: drop-shadow(0 0 18px var(--primary));
}

.orbit-ring::after {
  inset: 62px;
  border-width: 2px;
  animation: slowRotate 9s linear infinite reverse;
}

.code-core {
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 215, 255, .22), rgba(0, 19, 44, .78));
  border: 1px solid var(--line);
  font-size: 56px;
  font-weight: 900;
  color: #fff;
  direction: ltr;
  text-shadow: 0 0 24px var(--primary);
}

@keyframes slowRotate {
  to { transform: rotate(360deg); }
}

.profile-card {
  position: absolute;
  bottom: 0;
  left: 0;
  width: min(430px, 88%);
  padding: 18px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.profile-card img,
.avatar-fallback {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 26px;
  background: var(--bg2);
}

.avatar-fallback {
  display: grid;
  place-items: center;
  font-size: 86px;
  font-weight: 900;
  color: var(--primary);
}

.profile-info {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(2,8,20,.78), rgba(0,112,255,.22));
  border: 1px solid rgba(255,255,255,.1);
}

.profile-info h2,
.profile-info p {
  margin: 0;
  direction: ltr;
  text-align: left;
}

.profile-info h2 {
  font-size: 26px;
}

.profile-info p {
  color: var(--primary);
  margin-top: 4px;
  letter-spacing: 2px;
}

.floating-card {
  position: absolute;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(5, 20, 42, .76);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
  backdrop-filter: blur(12px);
  direction: ltr;
}

.floating-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.floating-card b {
  display: block;
  color: var(--primary);
  margin-top: 6px;
}

.card-code {
  top: 80px;
  left: 50px;
}

.card-db {
  right: 10px;
  bottom: 150px;
}

.cover-showcase {
  margin-top: -42px;
}

.cover-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--panel);
}

.cover-frame img {
  width: 100%;
  aspect-ratio: 16 / 7.2;
  object-fit: cover;
}

.section-heading {
  text-align: center;
  margin-bottom: 44px;
}

.section-heading h2,
.about-panel h2,
.cta-card h2 {
  margin: 14px 0 12px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.25;
}

.services-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-card,
.project-card,
.about-panel,
.terminal,
.timeline-item,
.cta-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)),
    rgba(3, 14, 31, .62);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

.service-card,
.project-card {
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.service-card::before,
.project-card::before,
.about-panel::before,
.terminal::before,
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 215, 255, .16), transparent 42%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.service-card:hover::before,
.project-card:hover::before,
.about-panel:hover::before,
.terminal:hover::before,
.cta-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(0, 215, 255, .08);
  font-size: 26px;
  margin-bottom: 18px;
}

.service-card h3,
.project-card h3,
.timeline-item h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.service-card p,
.project-card p,
.timeline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.about-section {
  background: linear-gradient(180deg, transparent, rgba(0, 120, 255, .06), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: stretch;
}

.about-panel,
.terminal {
  padding: 34px;
  position: relative;
  overflow: hidden;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tech-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--primary);
  direction: ltr;
}

.terminal {
  direction: ltr;
  text-align: left;
  font-family: Consolas, Monaco, monospace;
}

.terminal-top {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.terminal-top span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  opacity: .8;
}

.terminal pre {
  white-space: pre-wrap;
  margin: 0;
  color: #bdeaff;
  line-height: 1.8;
  font-size: 15px;
}

.project-card span {
  display: inline-block;
  margin-top: 22px;
  color: var(--primary);
  direction: ltr;
  letter-spacing: 1px;
}

.process-section {
  padding-top: 40px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.timeline-item {
  padding: 26px;
}

.timeline-item span {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: rgba(0, 215, 255, .09);
  border: 1px solid var(--line);
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 18px;
}

.cta-card {
  position: relative;
  overflow: hidden;
  padding: 38px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.contact-box {
  display: grid;
  gap: 12px;
  min-width: 310px;
}

.whatsapp-number,
.phone-number {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  direction: ltr;
}

.whatsapp-number {
  background: linear-gradient(135deg, #00e676, #00d7ff);
  color: #001226;
  font-weight: 900;
}

.phone-number {
  color: var(--text);
  background: rgba(255,255,255,.04);
}

.floating-whatsapp {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 80;
  padding: 14px 20px;
  border-radius: 999px;
  color: #001226;
  background: linear-gradient(135deg, #00e676, #00d7ff);
  font-weight: 900;
  box-shadow: 0 14px 40px rgba(0, 230, 118, .25);
}

.footer {
  border-top: 1px solid rgba(0, 215, 255, .12);
  padding: 24px 0;
  color: var(--muted);
}

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

.footer p {
  margin: 0;
  direction: ltr;
}

.footer a {
  color: var(--primary);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

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

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    left: 16px;
    right: 16px;
    display: grid;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(2, 8, 20, .94);
    transform: translateY(-18px);
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    padding: 14px;
    border-radius: 14px;
  }

  .nav-links a:hover {
    background: rgba(255,255,255,.04);
  }

  .nav-cta {
    display: none;
  }

  .hero-grid,
  .about-grid,
  .cta-card {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .services-grid,
  .projects-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-box {
    min-width: auto;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .section {
    padding: 70px 0;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-visual {
    min-height: 480px;
  }

  .orbit {
    width: 280px;
    height: 280px;
    right: 50%;
    transform: translateX(50%);
  }

  .code-core {
    width: 140px;
    height: 140px;
    font-size: 42px;
  }

  .profile-card {
    width: 100%;
  }

  .floating-card {
    display: none;
  }

  .stats,
  .services-grid,
  .projects-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }

  .cover-frame img {
    aspect-ratio: 1.9/1;
  }
}
