@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Ubuntu:wght@500;700&display=swap");

:root {
  --bg: #07110f;
  --bg-2: #0d1720;
  --card: rgba(255, 255, 255, 0.08);
  --card-2: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --muted: #bac7c2;
  --blue: #38bdf8;
  --cyan: #2dd4bf;
  --green: #22c55e;
  --amber: #f59e0b;
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 25px 80px rgba(0, 0, 0, 0.34);
  --radius: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.2), transparent 32%),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.13), transparent 28%),
    linear-gradient(180deg, var(--bg), #050808 78%);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  border: none;
}

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

.section {
  position: relative;
  padding: 108px 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: 0.3s ease;
}

.site-header.scrolled {
  background: rgba(7, 17, 15, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  width: min(1180px, calc(100% - 40px));
  height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: "Ubuntu", sans-serif;
  font-size: 30px;
  font-weight: 700;
}

.logo span {
  color: var(--cyan);
}

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

.nav-links a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: 0.25s ease;
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 130px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  perspective: 900px;
}

.grid-3d {
  position: absolute;
  left: 50%;
  bottom: -160px;
  width: 120vw;
  height: 560px;
  background-image:
    linear-gradient(rgba(45, 212, 191, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, 0.16) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: translateX(-50%) rotateX(68deg);
  transform-origin: center top;
  animation: gridMove 10s linear infinite;
  opacity: 0.58;
}

@keyframes gridMove {
  from { background-position: 0 0; }
  to { background-position: 0 56px; }
}

.cloud-map {
  position: absolute;
  inset: 12% 8% auto auto;
  width: min(440px, 80vw);
  height: 300px;
  opacity: 0.4;
}

.cloud-map span {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(45, 212, 191, 0.95);
}

.cloud-map span:nth-child(1) { top: 10%; left: 14%; }
.cloud-map span:nth-child(2) { top: 28%; right: 20%; }
.cloud-map span:nth-child(3) { bottom: 22%; left: 35%; }
.cloud-map span:nth-child(4) { bottom: 12%; right: 8%; }

.cloud-map::before,
.cloud-map::after {
  content: "";
  position: absolute;
  inset: 30px;
  border: 1px solid rgba(45, 212, 191, 0.28);
  transform: skewY(-8deg);
}

.cloud-map::after {
  inset: 78px 10px 70px 96px;
  border-color: rgba(245, 158, 11, 0.28);
}

.particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.62;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  padding: 9px 16px;
  margin-bottom: 24px;
  color: var(--cyan);
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.18);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.hero h1 {
  font-family: "Ubuntu", sans-serif;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.96;
  margin-bottom: 18px;
}

.hero h1 span {
  display: block;
  color: var(--cyan);
  text-shadow: 0 0 35px rgba(45, 212, 191, 0.45);
}

.hero h2 {
  min-height: 48px;
  font-size: clamp(24px, 3vw, 40px);
  margin-bottom: 20px;
}

.hero h2 span {
  color: var(--blue);
}

.hero-description {
  max-width: 710px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 32px 0;
}

.hero-stats div {
  min-width: 150px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-stats strong {
  display: block;
  color: var(--cyan);
  font-size: 30px;
  line-height: 1;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

.primary-btn {
  color: #06110f;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 18px 45px rgba(45, 212, 191, 0.23);
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(45, 212, 191, 0.34);
}

.secondary-btn {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

.secondary-btn:hover,
.ghost-btn:hover {
  background: var(--card-2);
  transform: translateY(-3px);
}

.ghost-btn {
  color: var(--muted);
  border: 1px solid var(--border);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.profile-card {
  position: relative;
  width: min(430px, 86vw);
  aspect-ratio: 1;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.04));
  border: 1px solid var(--border);
  border-radius: 34px;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border);
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-ring {
  position: absolute;
  inset: -14px;
  border-radius: 42px;
  border: 2px solid rgba(45, 212, 191, 0.24);
  transform: translateZ(-30px);
}

.floating-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 15px;
  background: rgba(7, 17, 15, 0.86);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  animation: badgeFloat 4s ease-in-out infinite;
}

.badge-one { top: 12%; left: -20px; }
.badge-two { right: -24px; top: 46%; animation-delay: 1s; }
.badge-three { left: 18%; bottom: -18px; animation-delay: 2s; }

.floating-badge i {
  color: var(--cyan);
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0) translateZ(60px); }
  50% { transform: translateY(-14px) translateZ(60px); }
}

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

.section-heading p {
  color: var(--cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  margin-bottom: 8px;
}

.section-heading h2 {
  font-family: "Ubuntu", sans-serif;
  font-size: clamp(34px, 4vw, 54px);
}

.glass-card,
.highlight-card,
.service-card,
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.glass-card {
  border-radius: var(--radius);
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.2s ease, border-color 0.25s ease, background 0.25s ease;
}

.about,
.credentials {
  background: linear-gradient(180deg, rgba(13, 23, 32, 0.42), rgba(7, 17, 15, 0.96));
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
}

.about-card {
  padding: 34px;
}

.about-card h3 {
  font-size: 28px;
  margin-bottom: 18px;
}

.about-card p,
.highlight-card p,
.service-card p,
.project-card p,
.credential-card p,
.contact-info p {
  color: var(--muted);
  line-height: 1.75;
}

.about-card p {
  margin-bottom: 18px;
}

.skills,
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills {
  margin-top: 22px;
}

.skills span,
.project-tags span {
  padding: 8px 11px;
  color: var(--cyan);
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.17);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.about-highlights {
  display: grid;
  gap: 18px;
}

.highlight-card {
  padding: 26px;
  border-radius: var(--radius);
}

.highlight-card i {
  color: var(--cyan);
  font-size: 32px;
  margin-bottom: 16px;
}

.highlight-card h4 {
  font-size: 21px;
  margin-bottom: 8px;
}

.services {
  background:
    radial-gradient(circle at 20% 20%, rgba(45, 212, 191, 0.12), transparent 30%),
    var(--bg);
}

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

.service-card {
  min-height: 272px;
  padding: 28px;
  border-radius: var(--radius);
}

.service-card:hover {
  background: rgba(45, 212, 191, 0.12);
  border-color: rgba(45, 212, 191, 0.48);
}

.icon-box {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(45,212,191,0.22), rgba(245,158,11,0.16));
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 18px;
}

.icon-box i {
  color: var(--cyan);
  font-size: 30px;
}

.service-card h3 {
  font-size: 21px;
  margin-bottom: 12px;
}

.projects {
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
}

.project-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.filter-btn {
  padding: 11px 18px;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.25s ease;
}

.filter-btn.active,
.filter-btn:hover {
  color: var(--text);
  background: linear-gradient(135deg, rgba(45,212,191,0.42), rgba(56,189,248,0.26));
  border-color: rgba(45,212,191,0.55);
}

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

.project-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 28px;
  border-radius: var(--radius);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(45,212,191,0.24), transparent 46%, rgba(245,158,11,0.16));
  opacity: 0;
  transition: 0.25s ease;
}

.project-card:hover::before {
  opacity: 1;
}

.project-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 22px;
  color: var(--cyan);
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.18);
  border-radius: 20px;
  font-size: 34px;
}

.project-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.project-card p {
  margin-bottom: 18px;
}

.project-tags {
  margin-top: auto;
}

.github-action {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.credential-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.credential-column h3 {
  font-size: 26px;
  margin-bottom: 18px;
}

.credential-card {
  position: relative;
  padding: 22px 22px 22px 48px;
  margin-bottom: 16px;
}

.credential-card span {
  position: absolute;
  left: 20px;
  top: 28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.6);
}

.credential-card h4 {
  font-size: 18px;
  margin-bottom: 7px;
}

.contact {
  background:
    radial-gradient(circle at bottom left, rgba(45, 212, 191, 0.14), transparent 30%),
    var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 30px;
}

.contact-info h3 {
  font-size: 34px;
  margin-bottom: 14px;
}

.contact-info p {
  margin-bottom: 28px;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.contact-list a,
.contact-list div {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
}

.contact-list i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  color: var(--cyan);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 13px;
  transition: 0.25s ease;
}

.social-links a:hover {
  transform: translateY(-4px);
  background: var(--cyan);
  color: #06110f;
}

.contact-form {
  padding: 30px;
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 16px;
  padding: 15px 16px;
  color: var(--text);
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
  resize: vertical;
  transition: 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(45,212,191,0.7);
  box-shadow: 0 0 0 4px rgba(45,212,191,0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(186, 199, 194, 0.7);
}

.footer {
  padding: 26px 20px;
  text-align: center;
  color: var(--muted);
  background: #040707;
  border-top: 1px solid var(--border);
}

.footer span {
  color: var(--cyan);
  font-weight: 800;
}

.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #06110f;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  border-radius: 14px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: 0.25s ease;
  z-index: 999;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: 0.7s ease;
}

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

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .profile-card {
    width: min(360px, 80vw);
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: fixed;
    inset: 86px 20px auto 20px;
    display: grid;
    gap: 0;
    padding: 18px;
    background: rgba(7, 17, 15, 0.96);
    border: 1px solid var(--border);
    border-radius: 20px;
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    transform: translateY(-18px);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
  }

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

  .nav-links a {
    display: block;
    padding: 14px;
  }

  .hero {
    padding-top: 115px;
  }

  .section {
    padding: 82px 0;
  }

  .hero-stats,
  .credential-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

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

  .hero-description {
    font-size: 16px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: auto;
  }

  .floating-badge {
    font-size: 13px;
    padding: 10px 12px;
  }

  .badge-one { left: 4px; }
  .badge-two { right: 4px; }
  .badge-three { left: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
