:root {
  --bg: #050712;
  --card: rgba(14, 18, 34, 0.92);
  --card-soft: rgba(18, 22, 40, 0.6);
  --border: rgba(255,255,255,0.06);

  --text: #f5f5f7;
  --muted: #a0a4b4;
  --accent: #a5b4fc;

  --radius: 18px;
  --ease: 500ms cubic-bezier(.22,.61,.36,1);
}

::-webkit-scrollbar{
  display: none;
  scroll-behavior: smooth;
}


* {
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(900px 600px at 0% 0%, rgba(129,140,248,0.12), transparent),
    radial-gradient(900px 600px at 100% 100%, rgba(56,189,248,0.12), transparent),
    var(--bg);
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

section {
  padding: 120px 8%;
}

a {
  text-decoration:none;
  color:inherit;
}

/* GLASS HEADER */
.glass {
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to right,
    rgba(8,10,26,0.85),
    rgba(8,10,26,0.6)
  );
}

.header {
  position: sticky;
  top: 0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 18px 8%;
  border-bottom: 1px solid var(--border);
  z-index:100;
}

.logo {
  font-size:20px;
  font-weight:600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.logo span {
  color:var(--accent);
}

/* NAV */
.navbar {
  position:relative;
  display:flex;
  align-items:center;
  gap: 26px;
}
.navbar a {
  font-size:13px;
  color:#8b9099;
  text-transform: uppercase;
  letter-spacing: .16em;
  position:relative;
  padding-bottom: 6px;
}
.navbar a.active,
.navbar a:hover {
  color:var(--text);
}
.navbar a::after {
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:0;
  height:2px;
  background: linear-gradient(90deg,#6366f1,#22d3ee);
  transition: width .3s ease;
}
.navbar a:hover::after,
.navbar a.active::after {
  width:100%;
}

/* Mobile menu */
.menu-toggle {
  display:none;
  font-size: 24px;
  cursor: pointer;
}

/* BUTTONS */
.btn {
  padding:12px 26px;
  border-radius:999px;
  background: rgba(255,255,255,0.04);
  border:1px solid var(--border);
  transition: var(--ease);
  font-size: 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 6px;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 18px 50px rgba(0,0,0,0.7),
    0 0 30px rgba(129,140,248,0.35);
  border-color: rgba(148,163,255,0.7);
}

.glow-btn {
  background: radial-gradient(circle at 0 0, rgba(129,140,248,0.3), transparent),
              rgba(18,22,40,0.9);
}

.glow-btn:hover {
  box-shadow:
    0 0 40px rgba(129,140,248,0.65),
    0 18px 50px rgba(0,0,0,0.8);
}

.btn.secondary {
  background: transparent;
}
.btn.small {
  padding:9px 18px;
  font-size:12px;
}

/* HOME */
.home {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:70px;
}

.home-content h1 {
  font-size: clamp(2.6rem, 4vw, 3.3rem);
}
.home-content span {
  color:var(--accent);
}
.home-content p {
  max-width:520px;
  color:var(--muted);
  margin-top: 14px;
}

.chip {
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding:6px 14px;
  border-radius:999px;
  background:rgba(15,23,42,0.9);
  border:1px solid rgba(148,163,255,0.4);
  color:var(--muted);
  font-size: 12px;
  margin-bottom: 14px;
}
.chip::before {
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34,197,94,0.8);
}

.gradient-text {
  background: linear-gradient(90deg, #a5b4fc, #38bdf8);
  background-clip: text;
  color: transparent;
  margin-top: 6px;
}


/* social */
.social-icons {
  display:flex;
  gap:14px;
  margin:16px 0 20px;
}
.social-icons a {
  width:34px;
  height:34px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(15,23,42,0.9);
  border:1px solid rgba(148,163,255,0.25);
  color:var(--muted);
  transition: var(--ease);
}
.social-icons a:hover {
  color: #e5e7eb;
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(15,23,42,1);
}

/* GLOW CARD WRAPPER */
.glow-card {
  position: relative;
  overflow: visible;
}

/* avatar soft radial glow */
.home-img.glow-card::after {
  content:"";
  position:absolute;
  inset:-25px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(129,140,248,0.6) 0%, transparent 65%);
  opacity:0;
  filter: blur(18px);
  transform: scale(0.9);
  transition:
    opacity 0.8s ease-in-out,
    transform 0.8s ease-in-out;
  z-index:-1;
}
.home-img.glow-card:hover::after {
  opacity:1;
  transform: scale(1);
}

.parallax img {
  position:relative;
  width:320px;
  border-radius: 26px;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.9),
    0 0 40px rgba(129,140,248,0.45);
  transition:
    transform 0.8s ease-in-out,
    box-shadow 0.8s ease-in-out;
  transform-origin: center;
}
.parallax:hover img {
  box-shadow:
    0 40px 110px rgba(0,0,0,1),
    0 0 60px rgba(129,140,248,0.9);
}

/* orbs behind image */
.orb {
  position:absolute;
  border-radius:999px;
  filter: blur(28px);
  opacity:0.8;
}
.orb-1 {
  width:180px;
  height:180px;
  background: radial-gradient(circle, rgba(129,140,248,0.9), transparent);
  top:-40px;
  right:-30px;
}
.orb-2 {
  width:140px;
  height:140px;
  background: radial-gradient(circle, rgba(56,189,248,0.8), transparent);
  bottom:-20px;
  left:-30px;
}
.orb-3 {
  width:200px;
  height:200px;
  background: radial-gradient(circle, rgba(129,140,248,0.85), transparent);
  top:-30px;
  left:-10px;
}

/* ABOUT */
.about {
  display:flex;
  align-items:center;
  gap:80px;
}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}
.about-content span {
  color: var(--accent);
}
.about-content p {
  max-width: 520px;
  color: var(--muted);
  margin-bottom: 24px;
}

.about-img img {
  width:280px;
  border-radius: 24px;
}

/* about soft glow */
.about-img.glow-card::after {
  content:"";
  position:absolute;
  inset:-22px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(129,140,248,0.45) 0%, transparent 70%);
  opacity:0;
  filter: blur(16px);
  transform: scale(0.9);
  transition:
    opacity 0.8s ease-in-out,
    transform 0.8s ease-in-out;
  z-index:-1;
}
.about-img.glow-card:hover::after {
  opacity:1;
  transform: scale(1);
}

.about-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit,minmax(190px,1fr));
  gap:18px;
  margin-bottom: 26px;
}
.about-item {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--card-soft);
  border:1px solid rgba(148,163,255,0.18);
}
.about-item h4 {
  font-size: 14px;
  margin-bottom:6px;
}
.about-item p {
  font-size: 13px;
  color: var(--muted);
}

/* HEADINGS */
.heading {
  font-size: 2rem;
  text-align:center;
  margin-bottom: 40px;
}

/* SERVICES + PROJECTS GRID */
.services-container,
.projects-container {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap:32px;
}

.service-card,
.project-card {
  background: var(--card);
  border:1px solid var(--border);
  border-radius: 22px;
  padding:26px;
  transition: var(--ease);
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
  position:relative;
}
.service-card:hover,
.project-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow:
    0 55px 160px rgba(0,0,0,1),
    0 0 60px rgba(129,140,248,0.4);
  border-color: rgba(148,163,255,0.6);
}
.service-card i {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 14px;
}
.service-card h4 {
  margin-bottom: 6px;
}
.service-card p {
  font-size: 14px;
  color: var(--muted);
}

/* PROJECT */
.project-image {
  border-radius: 18px;
  overflow:hidden;
  margin-bottom: 16px;
  position:relative;
}
.project-image::after {
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    135deg,
    rgba(15,23,42,0.9) 0%,
    transparent 40%,
    rgba(129,140,248,0.4) 100%
  );
  mix-blend-mode: screen;
  opacity:0;
  transition: opacity .4s ease;
}
.project-card:hover .project-image::after {
  opacity:1;
}
.project-card img {
  width:100%;
  display:block;
  border-radius:18px;
  transform: scale(1.02);
  transition: transform .6s var(--ease);
}
.project-card:hover img {
  transform: scale(1.08);
}

.project-body p {
  color: var(--muted);
  font-size: 14px;
  margin: 6px 0 12px;
}
.project-tags {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom: 12px;
}
.project-tags span {
  font-size:11px;
  padding:4px 10px;
  border-radius:999px;
  background: rgba(15,23,42,0.9);
  border:1px solid rgba(148,163,255,0.3);
}

/* CONTACT */
.contact {
  text-align:center;
}
.contact p {
  color: var(--muted);
  margin-bottom: 6px;
}

.contact-form {
  max-width: 560px;
  margin: 26px auto 0;
  padding: 22px;
  border-radius: 20px;
  background: var(--card);
  border:1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}
.field-row {
  display:flex;
  gap:14px;
  margin-bottom: 14px;
}
.contact-form input,
.contact-form textarea {
  width:100%;
  padding: 10px 12px;
  border-radius: 12px;
  border:1px solid rgba(148,163,255,0.25);
  background: rgba(15,23,42,0.95);
  color: var(--text);
  font-size: 14px;
  outline:none;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(129,140,248,0.8);
  box-shadow: 0 0 0 1px rgba(129,140,248,0.7);
}

/* REVEAL ANIMATION */
.reveal {
  opacity:0;
  transform: translateY(40px);
}

/* FOOTER */
.footer {
  text-align:center;
  padding:30px 8%;
  border-top:1px solid var(--border);
  color:#7b808a;
  font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  section {
    padding: 90px 6%;
  }
  .home,
  .about {
    flex-direction: column;
  }
  .home-img,
  .about-img {
    order:-1;
    display:flex;
    justify-content:center;
  }
}

@media (max-width: 768px) {
  .header {
    padding-inline: 6%;
  }
  .navbar {
    position: fixed;
    inset: 60px 6% auto;
    background: rgba(7,10,22,0.98);
    border-radius: 18px;
    border:1px solid var(--border);
    padding: 14px 18px;
    flex-direction: column;
    gap: 10px;
    transform-origin: top;
    transform: scaleY(0.7);
    opacity: 0;
    pointer-events: none;
    transition: .3s ease;
  }
  .navbar.open {
    opacity:1;
    pointer-events:auto;
    transform: scaleY(1);
  }
  .navbar a {
    margin-left:0;
  }
  .menu-toggle {
    display:block;
  }
  .btn.glow-btn {
    display:none;
  }
  .metrics {
    gap: 12px;
  }
  .field-row {
    flex-direction: column;
  }
  .parallax img {
    width: 260px;
  }
  .about-img img {
    width: 240px;
  }
}

@media (max-width: 540px) {
  section {
    padding-inline: 5%;
  }
  .home {
    gap: 40px;
  }
}
