:root {
  --bg-main: #020617;
  --bg-elevated: #020617;
  --bg-card: #020617;
  --bg-soft: #020617;
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.18);
  --accent-strong: #4ade80;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.2);
  --danger: #ef4444;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.9);
  --transition-fast: 0.2s ease;
}

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

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #0f172a 0, #020617 45%);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Containers & Layout */

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}

.section-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  border-radius: 999px;
  margin: 0.4rem auto 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

/* Navbar */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(2, 6, 23, 0.8);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  font-weight: 700;
  color: #022c22;
}

.logo-text {
  font-weight: 600;
  font-size: 1rem;
}

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

.nav-list {
  display: flex;
  gap: 1.4rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link:hover::after,
.nav-link.active-link::after {
  width: 70%;
}

.nav-btn {
  font-size: 0.85rem;
  padding-inline: 1.4rem;
}

/* Mobile Nav Toggle */

.nav-toggle {
  display: none;
  width: 28px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
}

/* Buttons */

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #022c22;
  box-shadow: 0 16px 40px rgba(34, 197, 94, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(34, 197, 94, 0.38);
}

.btn-outline {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(22, 101, 52, 0.35);
}

/* HERO */

.hero {
  padding-top: 5rem;
}

.hero-container {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 3rem;
}

.hero-intro {
  font-size: 0.95rem;
  color: var(--accent-strong);
  margin-bottom: 0.6rem;
}

.hero-intro span {
  color: #e5e7eb;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(2.2rem, 3vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-title span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 1.2rem;
}

.hero-subtitle span {
  color: #bbf7d0;
  font-weight: 500;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.7rem;
}

.hero-tags span {
  font-size: 0.75rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.22), rgba(15, 23, 42, 0.9));
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.stat-card {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.8);
}

.stat-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.1rem;
  color: var(--accent-strong);
}

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

/* Hero Image */

.hero-image-wrapper {
  position: relative;
  justify-self: center;
}

.hero-glow {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at top, rgba(74, 222, 128, 0.8), transparent 60%),
    radial-gradient(circle at bottom, rgba(5, 150, 105, 0.7), transparent 70%);
  filter: blur(18px);
  opacity: 0.9;
}

.hero-image {
  position: relative;
  z-index: 1;
  width: 270px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
}

/* ABOUT */

.about-grid {
  display: grid;
  gap: 1.4rem;
  margin-bottom: 2.1rem;
}

.about-text {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.highlight-card {
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.1), rgba(15, 23, 42, 0.97));
}

.highlight-icon {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.highlight-card h3 {
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}

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

/* SKILLS */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}

.skills-card {
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.98));
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.skills-card h3 {
  margin-bottom: 0.7rem;
  font-size: 1rem;
}

.skills-card ul {
  list-style: none;
  display: grid;
  gap: 0.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* SERVICES */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}

.service-card {
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top, rgba(22, 101, 52, 0.18), rgba(15, 23, 42, 0.98));
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.service-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.service-link {
  font-size: 0.85rem;
  color: var(--accent-strong);
  text-decoration: none;
}

/* PROJECTS */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.project-card {
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top, rgba(34, 197, 94, 0.12), rgba(15, 23, 42, 0.98));
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.project-tag {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.22);
  font-size: 0.7rem;
  color: #bbf7d0;
}

.project-card h3 {
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.project-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.project-tech {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.75rem;
  margin-bottom: 0.9rem;
}

.project-tech li {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.5);
  color: var(--text-muted);
}

/* TESTIMONIALS */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.testimonial-card {
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), rgba(15, 23, 42, 0.98));
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.testimonial-name {
  font-size: 0.95rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* CONTACT */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 1.8rem;
}

.contact-info {
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.14), rgba(15, 23, 42, 0.98));
  border: 1px solid var(--border-subtle);
}

.contact-info h3 {
  margin-bottom: 0.7rem;
}

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

.contact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.contact-tags span {
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(15, 23, 42, 0.9);
}

.contact-form {
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
  border: 1px solid var(--border-subtle);
}

.form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-main);
  font-size: 0.86rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.4);
}

.w-100 {
  width: 100%;
}

.form-note {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* FOOTER */

.footer {
  padding: 1.6rem 0 1.9rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(2, 6, 23, 0.98);
}

.footer-container {
  text-align: center;
}

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

.footer-tagline {
  margin-top: 0.15rem;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-image-wrapper {
    order: -1;
  }

  .hero {
    padding-top: 5.2rem;
  }

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

@media (max-width: 768px) {
  .nav-btn {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    inset: 70px 0 auto;
    background: rgba(2, 6, 23, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    transform: translateY(-110%);
    transition: transform 0.22s ease;
  }

  .nav.open {
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    padding: 0.8rem 1.4rem 1.1rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .section {
    padding: 4rem 0;
  }

  .hero-image {
    width: 220px;
  }

  .nav-container {
    height: 64px;
  }
}
