@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
/* Base */
* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 3rem 0 0 0;
  font-family: "Poppins", sans-serif;
  font-size: 0.938rem;
  font-weight: 500;
  color: #a2acbd;
  background-color: #F9F9F9;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,h2,h3,ul,p {
  margin: 0;
}
h2,h3 {
  font-weight: 600;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

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

/* Class CSS */
.section {
  padding: 3rem 0 2rem;
}

.section-title, .section-subtitle {
  text-align: center;
}

.section-title {
  position: relative;
  font-size: 1.5rem;
  padding: 2rem 0 0 0;
  text-align: center;
  letter-spacing: 0.1rem;
  color: #2a3749;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 56px;
  height: 0.15rem;
  bottom: -0.25rem;
  left: 0;
  right: 0;
  margin: auto;
  background-color: #e4a109;
}

.section-subtitle {
  display: block;
  font-size: 0.75rem;
  color: #2a3749;
  margin: 1.8rem 3rem;
}

/* Layout */
.bd-container {
  max-width: 1024px;
  width: calc(100% - 2rem);
  margin-left: 1rem;
  margin-right: 1rem;
}

.bd-grid {
  display: grid;
  gap: 1.5rem;
}

.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: #2a3749;
}

.nav {
  height: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    padding-top: 1.5rem;
    text-align: center;
    background-color: #2a3749;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(165, 146, 146, 0.1);
    border-radius: 0 0 1rem 1rem;
  }
}

.nav__item {
  margin-bottom: 1.5rem;
}

.nav__link {
  color: #F9F9F9;
  transition: 0.3s;
}

.nav__link:hover {
  color: #e4a109;
}

.nav__logo, .nav__toggle {
  color: #F9F9F9;
  font-size: 1.2rem;
  cursor: pointer;
  font-weight: 900;
}

.nav__logo:hover, .nav__toggle:hover {
  color: #e4a109;
  transition: 0.3s ease;
}

.show-menu {
  top: 3rem;
}

.active-link {
  position: relative;
}

.active-link:after {
  content: "";
  position: absolute;
  bottom: -0.4rem;
  left: 0;
  width: 70%;
  height: 3px;
  background-color: #e4a109;
}

/* Change background header */
.scroll-header {
  background-color: #F9F9F9;
  box-shadow: 0 2px 5px rgba(24, 22, 22, 0.301);
}

.scroll-header .nav__logo,
.scroll-header .nav__toggle,
.scroll-header .nav__link {
  color: #2a3749;
}

.scroll-header .nav__link:hover {
  color: #a2acbd;
}

.scroll-header .nav__menu {
  background-color: #F9F9F9;
}

.home {
  background-color: #2a3749;
  margin-bottom: 4rem;
}

.home__container {
  position: relative;
  height: calc(100vh - ($header-height));
  grid-template-rows: repeat(2, max-content);
  align-content: space-around;
}

.home__data {
  color: #F9F9F9;
  padding: 1rem 0.35rem;
  z-index: 10;
}

.home__greeting {
  display: block;
  font-weight: 700;
  color: #a2acbd;
}

.home__title {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: #e4a109;
  line-height: 2rem;
  padding-bottom: 1rem;
  padding-top: .5rem;
}

.home__career {
  display: block;
  color: #e4a109;
  line-height: 0.1rem;
  margin-bottom: 2rem;
}

.home__description {
  color: #a2acbd;
}

.home button {
  margin-top: 1.5rem;
}

.home-btn {
  color: #F9F9F9;
  background-color: black;
  border: 0;
  margin: 0.1rem;
}

.home__hire {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  background-color: #e4a109;
  color: #2a3749;
  padding: 0.5rem 2rem;
  border: 1px #e4a109 solid;
  border-radius: 10px;
  cursor: pointer;
}

.home__hire:hover {
  background-color: #2a3749;
  color: #e4a109;
  border: 1px #e4a109 solid;
  transition: 0.3s ease-in;
}

.home__hire:focus {
  outline: 0;
}

.home__download {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  background-color: #2a3749;
  color: #e4a109;
  padding: 0.5rem 0.65rem;
  border: 1px #e4a109 solid;
  border-radius: 10px;
  cursor: pointer;
}

.home__download:hover {
  background-color: #e4a109;
  color: #2a3749;
  transition: 0.3s;
}

.home__download:focus {
  outline: 0;
}

.home__social {
  display: flex;
  flex-direction: column;
  width: max-content;
  font-size: 1.3rem;
  margin-top: 6rem;
}

.home__icon {
  cursor: pointer;
  margin: 0.5rem;
  color: #F9F9F9;
}

.home__icon:hover {
  color: #e4a109;
  transition: 0.3s;
}

.home__icon:focus {
  outline: 0;
}

.home__img {
  position: absolute;
  right: 0;
  bottom: 0;
}

.home__img img {
  width: 240px;
  max-height: 390px;      /* ✅ height reduced */
  object-fit: contain;   /* ✅ keeps proportions */
  filter: drop-shadow(1rem 0.8rem 2rem rgba(7, 7, 7, 0.76));
}


.contact__inputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 1rem;
}

.contact__input,
.contact__button {
  outline: none;
  font-family: #a2acbd;
  font-size: 0.938rem;
}

.contact__input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #2a3749;
  color: #2a3749;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  resize: none;
}

.contact::placeholder {
  color: #a2acbd;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

.contact__button {
  cursor: pointer;
  border: none;
}

.modal__container.show {
  pointer-events: auto;
  opacity: 1;
}

    /* since no service section is needed  */


.portfolio {
  background-color: #F9F9F9;
  padding-bottom: 4rem;
}

.portfolio__section {
  display: flex;
  justify-content: center;
  text-align: center;
  color: #2a3749;
  letter-spacing: 0.25rem;
}

.portfolio__container {
  display: flex;
  row-gap: 1.5rem;
}

.portfolio__data {
  display: grid;
  padding: 1.5rem 1rem;
  border-radius: 0.5rem;
  text-align: center;
  transition: 0.4s;
  box-shadow: 0 2px 5px rgba(199, 195, 195, 0.3);
  background: #2a3749;
}

.portfolio__img {
  width: 300px;
  height: auto;
  margin-bottom: 1.5rem;
  justify-self: center;
}

.portfolio__img img {
  border-radius: 8px;
  box-shadow: 0 1px 2.2px rgba(0, 0, 0, 0.076), 0 2.3px 5.3px rgba(0, 0, 0, 0.109), 0 4.4px 10px rgba(0, 0, 0, 0.135), 0 7.8px 17.9px rgba(0, 0, 0, 0.161), 0 14.6px 33.4px rgba(0, 0, 0, 0.194), 0 35px 80px rgba(0, 0, 0, 0.27);
}

.portfolio__title {
  color: #e4a109;
  margin-bottom: 1rem;
}

.portfolio__description {
  color: #F9F9F9;
  margin-bottom: 1.5rem;
}

.portfolio__link {
  margin-bottom: 3rem;
}

.portfolio__link span {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  background-color: #2a3749;
  color: #e4a109;
  padding: 0.5rem 1rem;
  border: 1px #e4a109 solid;
  cursor: pointer;
  border-radius: 8px;
}

.portfolio__link span:hover {
  background-color: #e4a109;
  color: #2a3749;
  transition: 0.3s;
}

.swiper-pagination {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-bottom: 1rem;
}

.swiper-pagination .swiper-pagination-bullet {
  background-color: #a2acbd;
}

.swiper-pagination .swiper-pagination-bullet-active {
  background-color: #e4a109;
}

.footer {
  background-color: #2a3749;
}

.footer__container {
  display: grid;
  text-align: center;
}

.footer__copy {
  text-align: center;
  font-weight: 100;
  color: #e4a109;
}

.footer__copy-link {
  color: #e4a109;
  text-decoration: underline;
}

.footer__box {
  display: flex;
  flex-direction: column;
}

.footer__box p {
  padding-bottom: 0.3rem;
  color: #F9F9F9;
}

.footer__box a {
  color: #a2acbd;
}

@media (min-width: 506px) {
  .home__img img {
    width: 300px;
    height: 400px;
  }
  .home__container,
  .services__container {
    grid-template-columns: repeat(1, 1fr);
  }
  .services__container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
  }
}

@media (min-width: 768px) {
  body {
    margin: 0;
  }
  .section {
    padding-top: 2rem;
  }
  .section-title {
    margin-bottom: 1.5rem;
    font-size: 2rem;
  }
  .section-subtitle {
    font-size: 1rem;
  }
  .nav {
    height: calc($header-height + 1.5rem);
  }
  .nav__list {
    display: flex;
  }
  .nav__item {
    margin-right: 1.5rem;
    margin-bottom: 0;
  }
  .nav__toggle {
    display: none;
  }
  .home__container {
    height: 100vh;
    grid-template-rows: max-content 0.5fr;
    grid-template-columns: repeat(2, 1fr);
    align-content: flex-end;
  }
  .home__greeting {
    font-size: 1.25rem;
    margin-bottom: 0.3rem;
  }
  .home__title {
    font-size: 2.1rem;
  }
  .home__career {
    font-size: 1.2rem;
    margin-top: 0.5rem;
  }
  .home__description {
    font-size: 1rem;
  }
  .home__social {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 1.8rem;
  }
  .home__social a {
    margin-right: 1.5rem;
  }
  .home__img {
    width: max-content;
    top: 100px;
  }

  .home__img img {
  width: 380px;
  max-height: 600px;     /* ✅ controlled height */
  object-fit: contain;
}

  
  .portfolio__title {
    font-size: 1.5rem;
  }
  .portfolio__img {
    width: max-content;
  }
  .portfolio__img img {
    width: 550px;
  }
  .portfolio__description {
    margin: 2rem 5rem;
  }
  .portfolio__link span {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .bd-container {
    margin-left: auto;
    margin-right: auto;
  }
  .home__data {
    padding-top: 2rem;
  }
  .home__img {
    height: 670px;
  }
}



/* for Home descriptions */
/* Tech stack pills */
.tech-line {
  color: #e5e7eb;
  font-size: 1.1rem;
  line-height: 1.9;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  margin: 0 4px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  background: #111;
  border: 1px solid #222;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

/* Hover */
.tech-pill:hover {
  background: #1f2937;
  transform: translateY(-2px);
}

/* Individual colors */
.react { color: #61dafb; }
.ts { color: #3178c6; }
.tailwind { color: #38bdf8; }
.js { color: #f7df1e; }
.mongo { color: #4db33d; }



/* ===== Navbar responsiveness ===== */

/* Mobile view */
@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    background-color: #2a3749;
    padding: 1.5rem 0;
    text-align: center;
    transition: 0.3s ease;
    z-index: 99;
  }

  .nav__list {
    flex-direction: column;
  }

  .nav__item {
    margin: 1rem 0;
  }

  .nav__toggle {
    display: block;
  }
}

/* Desktop view */
@media screen and (min-width: 768px) {
  .nav__toggle {
    display: none;
  }

  .nav__menu {
    position: static;
  }

  .nav__list {
    display: flex;
  }
}

/* Menu visible state (used by JS) */
.show-menu {
  top: 3rem;
}

/* ===============================
   PROJECT CARDS (FINAL & CLEAN)
   =============================== */

.projects__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
  justify-items: center;
}

.project-card {
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.45);
}

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

.project-content {
  padding: 1.2rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-content h3 {
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.project-icons a {
  color: #9ca3af;
  margin-left: 0.8rem;
  font-size: 1.1rem;
  transition: color 0.25s ease;
}

.project-icons a:hover {
  color: #3b82f6;
}

/* ===== FINAL LAYOUT CONTINUITY FIX ===== */

/* Prevent white background bleed */
body {
  margin: 0;
  background-color: #2a3749;
}

/* Home section should end smoothly */
.home {
  margin-bottom: 0;        /* remove gap */
  padding-bottom: 4rem;   /* controlled spacing */
}

/* Projects section starts clean */


/* ===== FORCE SAME BACKGROUND BEHIND PROJECTS ===== */


/* =====================================
   PROJECTS SECTION – FINAL RESPONSIVE FIX
   ===================================== */

/* Ensure section background matches hero */
.services {
  background-color: #2a3749;   /* same as home */
  padding: 5rem 0;
}

/* Title & subtitle color correction */
.services .section-title,
.services .section-subtitle {
  color: #ffffff;
}

.services .section-title::after {
  background-color: #e4a109;
}

/* Filter buttons alignment */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2.5rem 0 3.5rem;
  flex-wrap: wrap;
}

/* Filter button styling */
.filter-btn {
  background: #1f2937;
  color: #ffffff;
  border: none;
  padding: 0.7rem 1.6rem;
  border-radius: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: #2563eb;
}

/* Project cards container */
.projects__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  justify-items: center;
}

/* Individual project card */
.project-card {
  width: 100%;
  max-width: 340px;
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

/* Card image */
.project-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

/* Card content */
.project-content {
  padding: 1.4rem 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Project title */
.project-content h3 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
}

/* Action icons */
.project-icons a {
  color: #9ca3af;
  margin-left: 0.8rem;
  font-size: 1.15rem;
  transition: color 0.25s ease;
}

.project-icons a:hover {
  color: #3b82f6;
}

/* =====================
   RESPONSIVE BEHAVIOR
   ===================== */

/* Tablets */
@media (max-width: 768px) {
  .projects__container {
    gap: 2.5rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  
  .project-filters {
    gap: 0.8rem;
  }

  .filter-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .project-card {
    max-width: 100%;
  }
}


.project-card {
  animation: fadeIn 0.4s ease;
}

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


.nav__logo-img {
  height: 48px;     /* adjust as needed */
  width: auto;
  display: block;
}

@media (min-width: 1024px) {
  .home__img img {
    max-height: 500px;
  }
}



/* =================================================
   TECHNICAL SKILLS – FINAL (MATCH ORIGINAL BG)
   ================================================= */

/* =================================================
   TECHNICAL SKILLS – FINAL COMPLETE VERSION
   ================================================= */

/* ===============================
   SKILLS BACKGROUND (DARK, SMOOTH)
   =============================== */

/* ===============================
   SKILLS – SEAMLESS CONTINUATION
   =============================== */

.skills {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;

  /* EXACT SAME DARK SHADE AS PREVIOUS SECTION */
  background: linear-gradient(
    to bottom,
    #243246 0%,     /* matches section above */
    #2a3749 35%,
    #2a3749 100%
  );
}

/* REMOVE glow at top – apply only center softening */
.skills::before {
  content: "";
  position: absolute;
  top: 30%;
  left: 0;
  width: 100%;
  height: 70%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0) 65%
  );
  pointer-events: none;
}

/* ===============================
   HEADING
   =============================== */

.skills .section-title {
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;

  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.03em;
  margin-bottom: 3.5rem;
  z-index: 2;
}

/* yellow underline – JUST BELOW TEXT */
.skills .section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  margin-top: 6px;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  border-radius: 2px;
  background-color: #e4a109;
}

/* ===============================
   LAYOUT
   =============================== */

.skills-container {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .skills-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===============================
   SKILL CARDS
   =============================== */

.skill-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.09);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.14);
}

/* ===============================
   HEADER ROW
   =============================== */

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1f2937;
}

.skill-header span {
  font-size: 0.95rem;
  font-weight: 700;
  color: #64748b;
}

/* ===============================
   DESCRIPTION
   =============================== */

.skill-card p {
  margin: 0.6rem 0 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 500;
  color: #6b7280;
}

/* ===============================
   PROGRESS BAR
   =============================== */

.skill-bar {
  height: 10px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  border-radius: inherit;
  transition: width 0.6s ease;
}

/* ===============================
   PROGRESS COLORS
   =============================== */

.skill-progress.blue {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.skill-progress.purple {
  background: linear-gradient(90deg, #7c3aed, #a855f7);
}

.skill-progress.orange {
  background: linear-gradient(90deg, #fb923c, #f97316);
}

.skill-progress.yellow {
  background: linear-gradient(90deg, #e4a109, #facc15);
}

.skill-progress.red {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.skill-progress.dark {
  background: linear-gradient(90deg, #2a3749, #111827);
}


/* ===============================
   CONTACT SECTION
   =============================== */

/* ===============================
   CONTACT SECTION
   =============================== */

.contact {
  background: linear-gradient(180deg, #020617, #020617);
  padding: 6rem 0;
}

.contact-container {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr 1.3fr;
  }
}

/* ===============================
   CONTACT CARD
   =============================== *//* ===============================
   CONTACT SECTION
   =============================== */

.contact {
  background: linear-gradient(180deg, #020617, #020617);
  padding: 4.5rem 1rem;
}

.contact-container {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr 1.25fr;
    align-items: start;
  }
}

/* ===============================
   CARD BASE
   =============================== */

.contact-card {
  background: linear-gradient(180deg, #0f172a, #020617);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

/* ===============================
   LEFT CARD
   =============================== */

.contact-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.2rem;
}

/* Email inline */
.contact-email {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.contact-email strong {
  color: #ffffff;
}

.contact-email a {
  color: #38bdf8;
  font-weight: 600;
  text-decoration: none;
}

.contact-email a:hover {
  text-decoration: underline;
}

/* ===============================
   PROFILE GROUPS
   =============================== */

.profile-group {
  margin-bottom: 2.2rem;
}

.profile-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.1rem;
  text-align: center;
}

/* Grid */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

/* Pills */
.profile-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;

  padding: 0.7rem 0.9rem;
  border-radius: 14px;

  background: #020617;
  border: 1.5px solid #1e293b;

  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;

  transition: all 0.25s ease;
}

.profile-pill i {
  font-size: 1.35rem;
  color: #38bdf8;
}

.profile-pill:hover {
  border-color: #38bdf8;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.25);
}

/* ===============================
   RIGHT CARD (FORM)
   =============================== */

.contact-form {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-bottom: 1.2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: #ffffff;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #94a3b8;
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Button */
.contact-btn {
  margin-top: 0.4rem;
  align-self: flex-start;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  border: none;
  color: #020617;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.4);
}

/* ===============================
   MOBILE
   =============================== */

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


/* Experience section */

/* ===============================
   EDUCATION CARD
   =============================== */
/* ===============================
   EXPERIENCE & EDUCATION SECTION
   =============================== */
   /* ===============================
   EXPERIENCE & EDUCATION SECTION
   =============================== */

.exp-edu {
  background: linear-gradient(180deg, #020617, #020617);
  padding: 5rem 1rem;
}

/* ===============================
   SECTION TITLE
   =============================== */

.exp-edu-title {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 3.5rem;
  position: relative;
}

.exp-edu-title::after {
  content: "";
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, #8b5cf6, #6366f1);
  display: block;
  margin: 0.6rem auto 0;
  border-radius: 2px;
}

/* ===============================
   CONTAINER
   =============================== */

.exp-edu-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .exp-edu-container {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

/* ===============================
   CARD BASE
   =============================== */

.exp-edu-card {
  background: linear-gradient(180deg, #0f172a, #020617);
  border-radius: 20px;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

/* ===============================
   CARD HEADING
   =============================== */

.card-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.2rem;
}

/* ===============================
   TITLE + TIMELINE (KEY FIX)
   =============================== */

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.item-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #e5e7eb;
  line-height: 1.4;
}

/* TIMELINE (DATE / LOCATION) */
.item-meta {
  font-size: 0.85rem;
  color: #94a3b8;
  white-space: nowrap;
  text-align: right;
}

/* ===============================
   SUBTITLE (ROLE / DEGREE)
   =============================== */

.item-subtitle {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: #38bdf8;
  font-weight: 500;
}

/* ===============================
   DESCRIPTION
   =============================== */

.item-desc {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: #cbd5f5;
  line-height: 1.45;
}

/* ===============================
   MOBILE FIX
   =============================== */

@media (max-width: 768px) {
  .item-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .item-meta {
    margin-top: 0.25rem;
    text-align: left;
  }
}



/* =========================================
   GLOBAL BACKGROUND OVERRIDE (NO OTHER CHANGE)
   ========================================= */

/* Force same background as Home section */
html,
body {
  background-color: #2a3749;
}

/* Neutralize section-specific backgrounds */
.section,
.services,
.portfolio,
.skills,
.contact,
.exp-edu,
.footer {
  background: transparent !important;
}

/* =========================================
   RESTORE FOOTER BACKGROUND (NO OTHER CHANGE)
   ========================================= */

.footer {
  background-color: #2a3749 !important;
}


/* =========================================
   REMOVE GAP BETWEEN HOME & PROJECTS ONLY
   ========================================= */

/* First section after home (Projects / Services) */
.home + .services {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* =========================================
   REMOVE PREVIOUS FOOTER STYLES (DO NOT TOUCH ANYTHING ELSE)
   ========================================= */

.footer,
.footer__container,
.footer__copy,
.footer__copy-link,
.footer__box {
  display: none !important;
}
/* =========================================
   NEW MODERN FOOTER (ACTIVE)
   ========================================= */

.modern-footer {
  width: 100%;
  background: linear-gradient(
    to top,
    #0b1220 0%,
    #111827 60%,
    #0b1220 100%
  );
  padding: 1.6rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-left {
  font-size: 1rem;
  font-weight: 500;
  color: #cbd5f5;
}

.footer-left .heart {
  color: #ef4444;
}

.footer-right {
  display: flex;
  gap: 0.8rem;
}

.footer-icon {
  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #e5e7eb;

  transition: all 0.25s ease;
}

.footer-icon:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* =========================================
   CENTER FOOTER CONTENT ONLY
   ========================================= */

.modern-footer {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-inner {
  width: 100%;
  max-width: 1200px;

  display: flex;
  justify-content: center;   /* center horizontally */
  align-items: center;       /* center vertically */
  text-align: center;
}

/* Optional: hide right icons if you want pure center text */
.footer-right {
  display: none;
}


/* Navbar logo alignment */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;              /* space between logo & text */
  font-weight: 700;
  font-size: 1.1rem;       /* reduce text size slightly */
  white-space: nowrap;     /* force single line */
}

/* Logo image size */
.nav__logo-img {
  height: 32px;            /* reduced size */
  width: auto;
  display: block;
}


/* =================================================
   FINAL MOBILE HOME FIX (DO NOT MODIFY)
   ================================================= */

/* Fix broken height calculation */
.home__container {
  min-height: 100vh;
}

/* Mobile layout correction */
@media (max-width: 767px) {

  /* Stack hero content properly */
  .home__container {
    grid-template-columns: 1fr;
    align-content: start;
    padding-top: 4rem;
  }

  /* Prevent image overlap */
  .home__img {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
  }

  .home__img img {
    width: 220px;
    max-height: 300px;
  }

  /* Prevent social icons pushing layout */
  .home__social {
    margin-top: 2rem;
    flex-direction: row;
  }
}
