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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top, rgba(34, 197, 94, 0.08), transparent 22%),
    linear-gradient(180deg, #040817 0%, #050b1f 45%, #081126 100%);
  color: #ffffff;
  line-height: 1.6;
}

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

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

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

.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: #22c55e;
  color: #081126;
  padding: 12px 16px;
  border-radius: 8px;
  z-index: 3000;
  font-weight: 700;
  transition: top 0.25s ease;
}

.skip-link:focus {
  top: 20px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #22c55e;
  outline-offset: 3px;
  border-radius: 8px;
}

header {
  width: min(1100px, 92%);
  margin: 20px auto 0;
  padding: 20px 30px;
  background: rgba(13, 18, 35, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 0 0 18px 18px;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.logo {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

nav {
  margin-left: auto;
}

.menu {
  display: flex;
  align-items: center;
  gap: 34px;
}

.menu a {
  color: #c9d2e6;
  font-size: 0.95rem;
  font-weight: 500;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.menu a:hover {
  color: #22c55e;
  transform: translateY(-1px);
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 28px;
}

.social-icons a {
  color: #d9dfec;
  font-size: 0.95rem;
  font-weight: 500;
  transition:
    color 0.25s ease,
    opacity 0.25s ease;
}

.social-icons a:hover {
  color: #22c55e;
  opacity: 1;
}

.hero {
  padding: 88px 0 54px;
}

.hero .container {
  max-width: 940px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 360px;
  align-items: center;
  gap: 88px;
}

.hero-text {
  max-width: 470px;
}

.hero-tagline {
  color: #22c55e;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-text h1 {
  font-size: clamp(3rem, 6vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin-bottom: 20px;
}

.hero-text p:not(.hero-tagline) {
  color: #b8c0d4;
  font-size: 1.06rem;
  max-width: 440px;
  margin-bottom: 32px;
}

.hero-text,
.hero-image,
.project-card,
.highlight-card {
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
}

@keyframes fadeUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #081126;
  padding: 15px 28px;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.28);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(34, 197, 94, 0.34);
  opacity: 0.98;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 360px;
  height: 360px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 10%;
  border: 4px solid #22c55e;
  box-shadow:
    0 0 0 10px rgba(34, 197, 94, 0.08),
    0 24px 50px rgba(0, 0, 0, 0.34);
}

.tools {
  margin-top: 24px;
}

.tools p {
  text-align: center;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 1rem;
}

.tool-list {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.tool-list span {
  background: rgba(16, 27, 58, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #eef2ff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
}

.projects,
.about,
.contact {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 42px;
}

.section-label {
  color: #22c55e;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-header h2,
.about-text h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.section-description {
  color: #b8c0d4;
  max-width: 640px;
  margin: 0 auto;
  font-size: 1rem;
}

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

.project-card,
.highlight-card,
.contact-card {
  background: linear-gradient(
    180deg,
    rgba(16, 27, 58, 0.95),
    rgba(11, 20, 48, 0.95)
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.project-card {
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
  border-color: rgba(34, 197, 94, 0.24);
}

.project-image img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.project-content {
  padding: 22px;
}

.project-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.project-content p {
  color: #b8c0d4;
  margin-bottom: 16px;
}

.project-tech {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.project-tech span {
  background: #050b1f;
  color: #22c55e;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.project-link {
  color: #22c55e;
  font-weight: 700;
}

.project-link:hover {
  text-decoration: underline;
}

.about-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 42px;
  align-items: start;
}

.about-text p {
  color: #b8c0d4;
  margin-bottom: 14px;
  max-width: 640px;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.highlight-card {
  padding: 24px 20px;
  text-align: center;
}

.highlight-card h3 {
  color: #22c55e;
  font-size: 1.15rem;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.highlight-card p {
  color: #c9d2e6;
}

.contact-grid {
  display: grid;
  gap: 22px;
  justify-items: center;
}

.contact-card {
  padding: 24px;
  text-align: center;
  width: 100%;
  max-width: 420px;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, 0.24);
}

.contact-card h3 {
  color: #22c55e;
  margin-bottom: 10px;
}

.contact-card p {
  color: #c9d2e6;
}

.contact-socials {
  display: flex;
  gap: 16px;
}

.contact-socials a {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    180deg,
    rgba(16, 27, 58, 0.95),
    rgba(11, 20, 48, 0.95)
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.1rem;
  transition:
    transform 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.contact-socials a:hover {
  transform: translateY(-4px);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.24);
}

.footer {
  padding: 40px 0;
  text-align: center;
  background: rgba(8, 17, 38, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 40px;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  flex-direction: column;
}

.footer p {
  color: #b8c0d4;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #b8c0d4;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: #22c55e;
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-text {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-text p:not(.hero-tagline) {
    margin-left: auto;
    margin-right: auto;
  }

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

  .about-highlights {
    grid-template-columns: repeat(2, 1fr);
  }

  header {
    width: min(94%, 1220px);
    flex-wrap: wrap;
    gap: 16px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  nav {
    width: 100%;
    order: 3;
    margin-left: 0;
  }

  .menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 6px;
  }

  .menu.active {
    display: flex;
  }

  .social-icons {
    width: 100%;
    order: 4;
    margin-left: 0;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 64px 0 38px;
  }

  .hero-image img {
    width: 280px;
    height: 280px;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .menu {
    gap: 12px;
  }

  .social-icons {
    gap: 14px;
    flex-wrap: wrap;
  }
}

/* Hero: dual CTA buttons */
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-outline {
  background: transparent;
  color: #22c55e;
  border: 2px solid #22c55e;
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(34, 197, 94, 0.08);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.15);
}

/* Projects: 3-column grid on desktop */
.projects-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Project banner (for projects without screenshots) */
.project-banner {
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.project-banner span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
}

.banner-react {
  background: linear-gradient(135deg, #0d2137 0%, #0a3d5c 100%);
  color: #61dafb;
}

.banner-python {
  background: linear-gradient(135deg, #0d2415 0%, #1a4a2a 100%);
  color: #22c55e;
}

.banner-cli {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 100%);
  color: #a78bfa;
}

/* About: certifications list */
.cert-list {
  margin-top: 28px;
}

.cert-title {
  color: #22c55e;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cert-list ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cert-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b8c0d4;
  font-size: 0.95rem;
}

.cert-list li i {
  color: #22c55e;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Responsive: collapse projects to 2-col then 1-col */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    justify-content: center;
  }
}
