:root {
  --nav-bg: #fff;
  --nav-fg: #000;
  --nav-border: rgba(0,0,0,0.1);
  --page-bg: #f5f5f5;
}

/* Dark mode variables */
body.dark {
  --nav-bg: #000;
  --nav-fg: #fff;
  --nav-border: rgba(255,255,255,0.1);
  --page-bg: #121212;
}

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

body {
  font-family: "Poppins", sans-serif;
  color: var(--nav-fg);
  background: var(--page-bg);
  transition: background 0.4s ease, color 0.4s ease;
}

/* Navbar */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  transition: background 0.4s ease, border-color 0.4s ease;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  min-height: 64px;
  width: 100%;
}

/* Brand */
.nav__brand {
  color: var(--nav-fg);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.8rem;
  transition: color 0.4s ease;
}

/* Menu */
.nav__menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__menu a {
  color: var(--nav-fg);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  position: relative;
  transition: color 0.4s ease;
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--nav-fg);
  transition: width 0.2s ease, background 0.4s ease;
}
.nav__menu a:hover::after {
  width: 100%;
}

/* Dark mode button */
.dark-toggle {
  background: var(--nav-fg);
  color: var(--nav-bg);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s ease, color 0.4s ease, opacity 0.3s ease;
}
.dark-toggle:hover {
  opacity: 0.8;
}

/* Hamburger toggle */
.nav__toggle {
  display: none;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--nav-fg);
  border-radius: 8px;
  padding: 8px;
  transition: border-color 0.4s ease;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--nav-fg);
  margin: 4px 0;
  transition: transform .2s, opacity .2s, background 0.4s ease;
}

/* Responsive (≤ 768px) */
@media (max-width: 768px) {
  .nav__toggle {
    display: block;
  }

  .nav__menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 0.3s ease;
  }
  .nav__menu[data-open="true"] {
    transform: scaleY(1);
    padding: 12px 0;
  }
  .nav__menu li {
    width: 100%;
    text-align: center;
  }
  .nav__menu a {
    display: inline-block;
    padding: 8px 0;
    font-size: 1rem;
  }
  .dark-toggle {
    margin: 6px auto;
  }
}

/* HERO SECTION */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
  padding: 120px 10% 80px; 
  background: var(--page-bg);
  color: var(--nav-fg);
  position: relative;
  overflow: hidden;
}

.hero__container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* Background dots */
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(#00000040 2px, transparent 2px);
  background-size: 30px 30px;
  animation: moveDots 10s ease-in-out infinite alternate;
  z-index: 0;
}
body.dark .hero::before {
  background-image: radial-gradient(#ffffff33 2px, transparent 2px);
}
@keyframes moveDots {
  from { background-position: 0 0; }
  to   { background-position: 60px 60px; }
}

/* Profile Image */
.hero__image {
  flex: 0 0 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--nav-fg);
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

/* Text Content */
.hero__text {
  flex: 1;
  max-width: 600px;
}
.hero__text h1 {
  font-size: 2.8rem;
  font-weight: 700;
}
.hero__text h1 span { color: #4CAF50; }
.hero__text h2 {
  font-size: 1.8rem;
  margin: 12px 0;
  min-height: 40px; 
}
.hero__text p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 18px 0 26px;
}

/* Social Icons */
.hero__socials {
  display: flex;
  gap: 20px;
}
.hero__socials a img {
  width: 32px;
  height: 32px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  filter: invert(0);
}
body.dark .hero__socials a img {
  filter: invert(1);
}
.hero__socials a:hover img {
  transform: scale(1.12);
  opacity: .85;
}

/* Responsive Hero (≤ 768px) */
@media (max-width: 768px) {
  .hero__container {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  .hero__image {
    width: 220px;
    height: 220px;
    flex: 0 0 auto;   /* ✅ keeps it perfectly circular */
  }
  .hero__text h1 {
    font-size: 1.8rem;
  }
  .hero__text h2 {
    font-size: 1.2rem;
    min-height: 28px;
  }
  .hero__text p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  .hero__socials {
    justify-content: center;
    gap: 16px;
  }
  .hero__socials a img {
    width: 26px;
    height: 26px;
  }
}

/* About Section */
.about {
  padding: 4rem 1rem;
  text-align: center; /* ✅ Everything center aligned */
}

.section__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--nav-fg);
}

.about__content {
  max-width: 800px;
  margin: 0 auto;
}

.about__content p {
  line-height: 1.6;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.about__content a {
  color: #4CAF50;
  text-decoration: none;
}
.about__content a:hover {
  text-decoration: underline;
}

/* Resume Button */
.about__content .btn {
  margin-top: 0.6rem;      /* ⬅️ reduced (was 1rem) */
}

/* Resume Button */
.btn {
  display: inline-block;
  background: #4CAF50;
  color: #fff !important;
  padding: 0.7rem 1.2rem;
  border-radius: 0.5rem;
  text-decoration: none !important;   /* ✅ force remove underline */
  font-weight: 600;
  transition: 0.3s;
  margin-top: 1rem;
}

.btn:hover {
  opacity: 0.9;
  text-decoration: none !important;   /* ✅ ensure no underline on hover */
}

body.dark .btn {
  color: #fff !important;
}

.email-icon {
  width: 22px;
  height: 22px;
  vertical-align: middle;  /* align with text */
  margin-right: 8px;
  filter: invert(30%) sepia(90%) saturate(7500%) hue-rotate(0deg) brightness(95%) contrast(100%);
  /* makes it appear Gmail red */
}

/* @media (max-width: 768px) {
  .about__content p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0.6rem;  /* ⬅️ smaller gap on mobile }
  .about__content .btn {
    margin-top: 0.5rem;
  }
} */

/* Skills Section */
.skills {
  padding: 4rem 1rem;
  text-align: center;
}

.skills__layout {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.skills__column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.skill__card {
  background: var(--nav-bg);
  color: var(--nav-fg);
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  width: 380px;      /* wider */
  min-height: 160px; /* shorter */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.skill__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.skill__card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #4CAF50;
}

/* Logo grid inside card */
.skills__icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  font-size: 2.2rem; /* devicon size */
}

/* For image-based logos (Node.js, IntelliJ) */
.skill-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* ✅ Responsive: stack all 4 on small screens */
@media (max-width: 768px) {
  /* About Me */
  .about__content p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.6rem;
  }
  .about__content .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  /* Skills Section */
  .skills__layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* ✅ 2 per row */
    gap: 1rem;
    justify-items: center;
  }

  .skill__card {
    width: 100%;
    max-width: 160px;   /* ✅ smaller width so 2 fit in a row */
    padding: 1rem;
    height: 160px;      /* ✅ equal height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .skill__card h3 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .skills__icons {
    gap: 0.5rem;
    font-size: 1.4rem; /* ✅ smaller icons for mobile */
    flex-wrap: wrap;
    justify-content: center;
  }

  .skill-logo {
    width: 28px;
    height: 28px;
  }
}

/* Experience Section */
.experience {
  padding: 80px 10%;
  text-align: center;
  background: var(--page-bg);
  color: var(--nav-fg);
}

.experience .section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #000;  /* ✅ Black heading */
}

/* Layout */
.experience__layout {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Cards */
.experience__card {
  background: var(--nav-bg);
  color: var(--nav-fg);
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 2rem;                 /* ✅ more padding */
  flex: 1;
  min-width: 320px;
  max-width: 480px;
  height: 350px;                 /* ✅ bigger box height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* Headings & Text */
.experience__card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #4CAF50;
}

.experience__card .company {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.experience__card .duration {
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  color: gray;
}

/* Bullet Points */
.experience__card .desc {
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: left;
  padding-left: 1.2rem;
}

.experience__card .desc li {
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .experience__layout {
    flex-direction: column;
    align-items: center;
  }

  .experience__card {
    max-width: 100%;
    height: auto;   /* let content grow naturally */
  }
}

.experience .section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--nav-fg);  /* ✅ adapts to light/dark mode */
}

/* Projects Section */
.projects {
  padding: 80px 10%;
  text-align: center;
  background: var(--page-bg);
  color: var(--nav-fg);
}

.projects .section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--nav-fg); /* adapts to dark mode */
}

/* Layout */
.projects__layout {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Cards */
/* Cards */
.project__card {
  background: var(--nav-bg);
  color: var(--nav-fg);
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 1.5rem;
  flex: 1;
  min-width: 400px;
  max-width: 600px;   /* ✅ wider cards */
  height: 500px;      /* ✅ taller cards */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project__image {
  width: 100%;
  height: 300px;      /* ✅ bigger image */
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  border: 2px solid var(--nav-border);
}


.project__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* Title & Description */
.project__card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: #4CAF50;
  text-align: center;
}

.project__card .desc {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  text-align: center;
  flex-grow: 1;
}

/* Button */
.project-btn {
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  background: #4CAF50;
  color: #fff;
  font-weight: 600;
  transition: background 0.3s ease;
}

.project-btn:hover {
  background: #43a047;
}

/* Responsive */
@media (max-width: 768px) {
  .projects__layout {
    flex-direction: column;
    align-items: center;
  }

  .project__card {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .projects__layout {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem; /* balanced spacing */
  }

  .project__card {
    width: 50%;        /* ✅ thinner */
    max-width: 100px;  /* ✅ slim width */
    min-height: 350px; /* ✅ taller cards */
    padding: 0.8rem;
    border-radius: 0.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }

  .project__image {
    height: 150px;     /* ✅ decent image */
    border-radius: 0.4rem;
    margin-bottom: 0.6rem;
  }

  .project__card h3 {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
    text-align: center;
  }

  .project__card .desc {
    font-size: 0.7rem;
    line-height: 1.3;
    margin-bottom: 0.6rem;
    text-align: center;
  }

  .project-btn {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
  }
}

/* Certifications Section */
/* Certificates Section */
.certificates {
  padding: 4rem 2rem;
  text-align: center;
}

.certificates .section-title {
  font-size: 2rem;          /* ✅ same as other headings */
  font-weight: 700;
  margin-bottom: 2rem;      /* ✅ space between heading & cards */
  color: var(--nav-fg);
}

.certificates__list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}


.certificates__list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.certificate__card {
  background: var(--nav-bg);
  color: var(--nav-fg);
  border: 1px solid var(--nav-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  width: 100%;
  max-width: 600px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.certificate__card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.cert-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.cert-btn {
  display: inline-block;
  background: #4CAF50;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.4rem;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.cert-btn:hover {
  background: #45a049;
  transform: scale(1.05);
}

/* Contact Section */
.contact {
  padding: 4rem 2rem;
  text-align: center;
}

.contact .section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--nav-fg);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.contact__form input,
.contact__form textarea {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid var(--nav-border);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  background: var(--nav-bg);
  color: var(--nav-fg);
  transition: border-color 0.3s ease;
}

.contact__form input:focus,
.contact__form textarea:focus {
  border-color: #4CAF50;
  outline: none;
}

.contact-btn {
  background: #4CAF50;
  color: #fff;
  font-size: 1rem;
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.contact-btn:hover {
  background: #45a049;
  transform: scale(1.05);
}

/* Social Icons in Contact Section */
/* Social Icons in Contact Section */
.contact-links {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  filter: invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

.contact-icon:hover {
  transform: scale(1.2);
  opacity: 0.7;
}

.footer {
  text-align: center;
  padding: 1.5rem;
  background: beige; /* Keeps it consistent with your theme */
  color: black;  /* Off-white color */
  font-size: 0.95rem;
  font-weight: bold;
  margin-top: 3rem;
}


