@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  outline: none;
  border: none;
  text-transform: capitalize;
  transition: all 0.2s linear;
}
html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  background: #f7f7f7;
  font-family: "Poppins", sans-serif;
}

*::selection {
  background: #2b3dda;
  color: #fff;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}
html::-webkit-scrollbar {
  width: 0.8rem;
}
html::-webkit-scrollbar-track {
  background: rgb(235, 202, 245);
}
html::-webkit-scrollbar-thumb {
  background: #420177;
}

/* pre loader start */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  background: #e6eff1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}
.loader-container.fade-out {
  top: -120%;
}
/* pre loader end */
/* navbar starts */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5%; /* Adjusted padding for better responsiveness */
  height: 6.5rem;
  background: #ffffff2e;
  box-shadow: 0 8px 32px 0 #1f26872e;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: 0 0 1.5rem 1.5rem;
  border: 1px solid #ffffff3d;
}

section {
  min-height: 100vh;
  padding: 2rem 5%; /* Adjusted padding */
}

.heading {
  font-size: 3.5rem;
  color: rgb(32, 32, 32);
  font-weight: 800;
  text-align: center;
}

.heading span {
  color: rgb(115, 3, 167);
}

header .logo {
  font-size: 2.1rem;
  font-weight: 800;
  text-decoration: none;
  color: #0e2431;
  letter-spacing: 0.05em;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
}

header .logo i {
  font-size: 2.4rem;
}

header .logo:hover {
  color: #fc8c05;
  -webkit-text-fill-color: initial;
  background: none;
}

/* Show menu icon only on mobile, hide on desktop */
#menu,
.menu-icon {
  display: none !important;
}

@media (max-width: 900px) {
  /* Smaller screens (tablets and mobiles) */
  #menu,
  .menu-icon {
    display: block !important;
    font-size: 2.8rem;
    color: #0e2431;
    cursor: pointer;
    position: absolute;
    right: 2.5rem;
    top: 1.8rem;
    z-index: 1001;
    background: none;
  }

  header .navbar {
    display: none;
    position: absolute;
    top: 100%;
    right: 2rem;
    left: 2rem;
    background: #ffffffee;
    border-radius: 1rem;
    box-shadow: 0 2px 8px #2c3e5021;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1rem;
    z-index: 999;
    transition: all 0.3s;
  }

  header .navbar.active {
    display: flex;
  }

  header .navbar ul {
    flex-direction: column;
    width: 100%;
    background: transparent;
    box-shadow: none;
    padding: 0;
    backdrop-filter: none;
  }

  header .navbar li {
    margin: 1rem 0;
  }

  header .navbar ul li a,
  header .navbar ul li a.active,
  header .navbar ul li a:hover {
    color: #fc8c05;
    font-size: 2rem;
    padding: 1rem 0.5rem;
    width: 100%;
    display: block;
    border-radius: 0.7rem;
    background: transparent;
    text-align: left;
  }
}

/* Navbar styles for desktop */
@media (min-width: 901px) {
  #menu,
  .menu-icon {
    display: none !important;
  }

  header .navbar {
    display: flex !important;
    position: static;
    background: none;
    box-shadow: none;
    flex-direction: row;
    align-items: center;
    padding: 0;
  }
}

header .navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

header .navbar li {
  margin-left: 2.5rem;
}

header .navbar ul li a {
  font-size: 1.57rem;
  color: #0e2431;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04rem;
  transition: 0.2s;
  padding: 0.7rem 1.2rem;
  border-radius: 1.2rem;
  background: transparent;
  position: relative;
}

header .navbar ul li a.active,
header .navbar ul li a:hover {
  color: #ff7b00;
  background: transparent;
  box-shadow: none;
  border-bottom: none;
  padding: 0.7rem 1.2rem;
  position: relative;
}

header .navbar ul li a.active::after {
  content: "";
  display: block;
  position: absolute;
  left: 30%;
  right: 30%;
  bottom: 0.5rem;
  height: 3px;
  border-radius: 2px;
  background: #ff7b00;
  opacity: 0.85;
}

header .navbar ul li a:hover::after {
  content: "";
  display: none;
}

header .navbar ul li a::after {
  content: "";
  display: none;
}

/* hero section starts*/
.home {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  min-height: 100vh;
  align-items: center;
  justify-content: center; /* Center content on larger screens */
  text-align: left; /* Default text align */
}

.home #particles-js {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.home .content {
  flex: 1 1 40rem;
  padding-top: 1rem;
  z-index: 1;
  max-width: 50rem; /* Add a max-width to content for larger screens */
}

.home .image {
  flex: 1 1 40rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home .image img {
  width: min(100%, 440px); /* Use min() for better flexibility, capping at 440px */
  height: auto; /* Allow height to adjust proportionally */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(44, 62, 80, 0.18),
    0 1.5px 8px rgba(44, 62, 80, 0.1);
  border: 6px solid #fff;
  background: linear-gradient(135deg, #e0e7ff 0%, #f0f4ff 100%);
  transition: box-shadow 0.3s, transform 0.3s;
  display: block;
  margin: 0 auto;
}

.home .image img:hover {
  box-shadow: 0 16px 40px rgba(44, 62, 80, 0.22),
    0 3px 16px rgba(44, 62, 80, 0.13);
  transform: scale(1.04) rotate(-2deg);
}

.home .content h2 {
  font-size: clamp(3rem, 5vw, 5rem); /* Responsive font size using clamp() */
  font-weight: 800;
  color: #002057;
}

.home .content h2 span {
  font-size: inherit; /* Inherit font size from parent h2 */
  font-weight: 800;
  color: #ff7b00;
}

.home .content p {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem); /* Responsive font size */
  color: #000;
  font-weight: 600;
  padding: 1rem 0;
}

.home .content p span {
  font-size: inherit; /* Inherit font size from parent p */
  color: rgb(148, 8, 8);
  font-weight: 600;
  padding: 1rem 0;
}

.home .btn {
  margin-top: 1rem;
  /* Removed position: absolute; to allow it to flow naturally with content */
  line-height: 0;
  padding: 1.6rem 3rem;
  border-radius: 4em;
  transition: 0.5s;
  color: #fff;
  background: #2506ad;
  box-shadow: 0px 5px 18px rgba(48, 68, 247, 0.6);
  font-family: "Nunito", sans-serif;
  display: inline-block; /* Make it inline-block so margin-top works as expected */
}

.home .btn span {
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.1rem;
}

.home .btn i {
  margin-left: 0.3rem;
  font-size: 1.5rem;
  transition: 0.3s;
}

.home .btn:hover {
  background: #1a047e;
}

.home .btn:hover i {
  transform: translateX(5px);
}

/* social icons start */
.socials {
  margin-top: 5rem; /* Adjusted margin for better spacing */
  text-align: center; /* Center social icons on smaller screens */
}

.socials .social-icons {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
  display: flex; /* Use flexbox to align icons */
  justify-content: center; /* Center the icons */
  flex-wrap: wrap; /* Allow icons to wrap if space is limited */
  gap: 0.8rem; /* Add gap between icons */
}

.socials .social-icons li {
  display: inline-block; /* Keep inline-block for consistency */
  margin-bottom: 0; /* Removed margin-bottom as gap handles spacing */
}

.social-icons a {
  font-size: 2rem;
  display: inline-block;
  line-height: 44px;
  color: #00d9ff;
  background-color: #09011b;
  width: 44px;
  height: 44px;
  text-align: center;
  margin-right: 0; /* Removed margin-right as gap handles spacing */
  border-radius: 100%;
  -webkit-transition: all 0.2s linear;
  -o-transition: all 0.2s linear;
  transition: all 0.2s linear;
}

.social-icons a:active,
.social-icons a:focus,
.social-icons a:hover {
  color: #fff;
  background-color: #0685da;
}

.social-icons a.github:hover {
  background-color: #0e0e0e;
}

.social-icons a.twitter:hover {
  background-color: #00aced;
}

.social-icons a.linkedin:hover {
  background-color: #007bb6;
}

.social-icons a.dev:hover {
  background-color: #070707;
}

.social-icons a.instagram:hover {
  background-color: #ee00da;
}

/* social icons end */

/* hero media queries starts*/
@media (max-width: 768px) {
  /* Added a new breakpoint for medium-sized screens */
  .home .content h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
  }
  .home .content p {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  }
}

@media (max-width: 600px) {
  .home {
    flex-direction: column; /* Stack items vertically */
    text-align: center; /* Center text on small screens */
    gap: 2rem;
    padding-top: 8rem; /* Adjust padding for fixed header */
  }

  .home .image {
    order: -1; /* Move image above content on small screens */
  }

  .home .image img {
    width: 90vw;
    max-width: 360px;
    height: auto;
    margin-top: 0;
  }

  .home .content {
    padding-top: 0;
    text-align: center;
  }

  .home .btn {
    margin: 2rem auto; /* Center button on small screens */
    position: static; /* Ensure button flows with content */
  }

  .socials {
    margin-top: 3rem; /* Further adjust margin for small screens */
  }
}

@media (max-width: 450px) {
  header {
    padding: 1rem 3%; /* Further reduce padding for very small screens */
    height: 5.5rem; /* Slightly smaller header on very small screens */
  }

  .heading {
    font-size: 2.8rem; /* Smaller heading on very small screens */
  }

  header .logo {
    font-size: 1.8rem; /* Smaller logo on very small screens */
  }

  header .logo i {
    font-size: 2.1rem;
  }

  .home .btn {
    margin: 3rem auto; /* Adjusted margin */
  }

  .socials {
    margin-top: 2rem; /* Reduced margin */
  }

  .home .image img {
    margin-top: 0; /* Reset margin top for very small screens */
    width: 96vw;
    max-width: 280px; /* Slightly adjusted max-width */
  }

  .home .content h2 {
    font-size: clamp(2rem, 8vw, 3rem); /* Smaller font for smallest screens */
  }

  .home .content p {
    font-size: clamp(1.4rem, 4vw, 1.8rem); /* Smaller font for smallest screens */
  }
}
/* hero media queries ends*/
/* hero section end */

/* about section starts */
.about {
  background: rgb(255, 255, 255);
}
.about .row {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 4rem;
}
.about .row .image {
  text-align: center;
  flex: 1 1 35rem;
}
.about .row .image img {
  margin: 4rem;
  width: 30rem;
  height: auto;
  border-radius: 5%;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.6);
  mix-blend-mode: luminosity;
  transition: 0.3s;
  cursor: pointer;
}
.about .row .image img:hover {
  mix-blend-mode: normal;
}
.about .row .content {
  flex: 1 1 45rem;
  padding: 3rem;
}
.about .row .content h3 {
  color: rgb(27, 27, 27);
  font-size: 2.5rem;
}
.about .row .content .tag {
  font-size: 1.4rem;
  color: #020133;
  font-weight: 600;
  margin-top: 1rem;
}
.about .row .content p {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  font-family: "Nunito";
  font-weight: 600;
  text-transform: none;
}
.about .row .content .box-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-family: "Nunito";
  font-weight: 600;
}
.about .row .content .box-container .box p {
  text-transform: none;
}
.about .row .content .box-container .box p span {
  color: #011aff;
}
.resumebtn {
  margin-top: 6rem;
}
.resumebtn .btn {
  padding: 1.7rem 3rem;
  border-radius: 0.5em;
  transition: 0.3s;
  color: #fff;
  background:rgb(102, 122, 4);
  box-shadow: 0px 5px 10px rgba(123, 203, 103, 0.6);
  font-family: "Nunito", sans-serif;
}
.resumebtn .btn span {
  font-weight: 600;
  font-size: 1.8rem;
  letter-spacing: 0.1rem;
}
.resumebtn .btn i {
  margin-left: 0.3rem;
  font-size: 1.2rem;
  transition: 0.3s;
}
.resumebtn .btn:hover {
  background:rgb(154, 242, 1);
}
.resumebtn .btn:hover i {
  transform: translateX(5px);
}
/* about media queries starts*/
@media screen and (max-width: 600px) {
  .about .row .image {
    margin-top: 2rem;
  }
  .about .row .image img {
    margin: 0 auto;
    width: 80%;
    mix-blend-mode: normal;
  }
  .about .row {
    padding: 0.5rem;
    margin-bottom: 7rem;
  }
  .about .row .content {
    padding: 1rem;
  }
  .about .row .content .box-container {
    gap: 0;
  }
}
/* about media queries ends*/
/* about section ends */

/* SKILLS SECTION - GLASS UI */
.skills {
  min-height: 90vh;
  padding: 6rem 2rem;
  background: linear-gradient(to bottom, #0f0f23, #1a1a40);
  color: #fff;
}

.skills .heading {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
  color: #00ffff; /* Changed heading color */
  transition: color 0.3s;
  cursor: pointer;
}

.skills .heading:hover {
  color: #ff7b00; /* Color on hover */
}

.skills .heading span {
  color: #00ffff;
}

/* Ensure hover works on touch devices */
@media (hover: none) {
  .skills .heading:active {
    color: #ff7b00;
  }
}

/* Grid layout for skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Glass effect skill card */
.skills-grid .bar {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 2rem 1rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.skills-grid .bar:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* Icon and label */
.skills-grid .bar .info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.skills-grid .bar .info img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.skills-grid .bar .info span {
  font-size: 1.4rem;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  color: #e0e0ff;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .skills-grid .bar {
    padding: 1.5rem 0.8rem;
  }

  .skills-grid .bar .info span {
    font-size: 1.2rem;
  }
}
/* skills section ends */
/* education section starts */
.education {
    background: #fdfefe; /* Very light, almost white background */
    min-height: 85vh;
    padding: 6rem 0 8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.education .heading {
    margin-bottom: 2rem;
    color: #34495e; /* Darker heading */
}

.education .qoute {
    font-size: 1.9rem;
    text-align: center;
    font-family: "Nunito", sans-serif;
    font-weight: 500;
    margin-bottom: 5rem;
    color: #6c757d;
    max-width: 85rem;
    line-height: 1.6;
}

.education .box-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.education-hero-card {
    display: flex;
    flex-direction: column; /* Image on top, content below */
    width: 90rem; /* Wide card */
    max-width: 92%; /* Responsive width */
    background: #ffffff;
    border-radius: 1.8rem; /* Soft rounded corners */
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.12); /* Deep, soft shadow */
    overflow: hidden; /* Crucial for rounded corners */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth transition */
}

.education-hero-card:hover {
    transform: translateY(-1rem); /* Subtle lift */
    box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.18); /* Enhanced shadow on hover */
}

.education-hero-card .image-header {
    width: 100%;
    height: 35rem; /* Fixed height for the image header */
    overflow: hidden;
    position: relative;
    background-color: #eef1f5; /* Background if image doesn't fill */
}

.education-hero-card .image-header img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* IMPORTANT: Image covers the header, cropping if needed */
    display: block;
    transition: transform 0.4s ease;
}

.education-hero-card:hover .image-header img {
    transform: scale(1.03); /* Subtle zoom on image hover */
}

.education-hero-card .content-body {
    padding: 4rem; /* Generous padding for content */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
    text-align: center; /* Center text within content body */
    position: relative;
}

/* Logo placement: Slightly overlaps the image header */
.education-hero-card .content-body .logo-area {
    position: absolute;
    top: -6rem; /* Adjust this value to control overlap */
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    width: 12rem; /* Larger logo */
    height: 12rem;
    background: #ffffff;
    border-radius: 50%;
    border: 5px solid #007bff; /* Vibrant blue border */
    box-shadow: 0 0.8rem 1.8rem rgba(0, 0, 0, 0.15); /* Stronger shadow */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 10; /* Ensure logo is on top */
    transition: all 0.3s ease;
}

.education-hero-card:hover .content-body .logo-area {
    transform: translateX(-50%) translateY(-0.5rem); /* Lift logo slightly on hover */
}

.education-hero-card .content-body .logo-area img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.education-hero-card .content-body .university-info-main {
    margin-top: 5rem; /* Space to clear the overlapping logo */
    width: 100%;
}

.education-hero-card .content-body .university-info-main h3 {
    font-size: 3.5rem; /* Bold, clear heading */
    color: #212529;
    margin-bottom: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.education-hero-card .content-body .university-info-main .university-name {
    font-size: 2rem;
    color: #495057;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.education-hero-card .content-body .university-info-main .study-period {
    font-size: 2.2rem;
    color: #28a745;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.education-hero-card .content-body .university-info-main .extra-detail {
    font-size: 1.8rem;
    color: #7f8c8d;
}

.education-hero-card .content-body .modern-vision-highlight {
    margin-top: 4rem;
    border-top: 1px solid #e9ecef;
    padding-top: 3rem;
    text-align: center;
    width: 100%;
}

.education-hero-card .content-body .modern-vision-highlight h3 {
    font-size: 2.3rem;
    color: #343a40;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.education-hero-card .content-body .modern-vision-highlight p {
    font-size: 1.7rem;
    color: #6c757d;
    line-height: 1.7;
}

/* Responsive adjustments */
@media screen and (max-width: 992px) {
    .education-hero-card {
        width: 90%;
        max-width: 65rem;
    }

    .education-hero-card .image-header {
        height: 30rem; /* Adjust image header height for smaller screens */
    }

    .education-hero-card .content-body {
        padding: 3.5rem;
    }

    .education-hero-card .content-body .logo-area {
        top: -5rem; /* Adjust overlap for smaller screens */
        width: 10rem;
        height: 10rem;
    }

    .education-hero-card .content-body .university-info-main {
        margin-top: 4rem;
    }

    .education-hero-card .content-body .university-info-main h3 {
        font-size: 3rem;
    }

    .education-hero-card .content-body .university-info-main .university-name {
        font-size: 1.8rem;
    }

    .education-hero-card .content-body .university-info-main .study-period {
        font-size: 2rem;
    }
}

@media screen and (max-width: 600px) {
    .education .qoute {
        font-size: 1.7rem;
        margin-bottom: 4rem;
    }

    .education-hero-card .image-header {
        height: 25rem; /* Further reduce image header height for mobile */
    }

    .education-hero-card .content-body {
        padding: 2.5rem;
    }

    .education-hero-card .content-body .logo-area {
        top: -4rem; /* Adjust for smaller logo */
        width: 8rem;
        height: 8rem;
        border-width: 4px; /* Thinner border */
    }

    .education-hero-card .content-body .university-info-main {
        margin-top: 3.5rem;
    }

    .education-hero-card .content-body .university-info-main h3 {
        font-size: 2.6rem;
    }

    .education-hero-card .content-body .university-info-main .university-name {
        font-size: 1.6rem;
    }

    .education-hero-card .content-body .university-info-main .study-period {
        font-size: 1.8rem;
    }

    .education-hero-card .content-body .university-info-main .extra-detail {
        font-size: 1.6rem;
    }

    .education-hero-card .content-body .modern-vision-highlight {
        margin-top: 3rem;
        padding-top: 2rem;
    }

    .education-hero-card .content-body .modern-vision-highlight h3 {
        font-size: 2rem;
    }

    .education-hero-card .content-body .modern-vision-highlight p {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 400px) {
    .education .qoute {
        font-size: 1.5rem;
        margin-bottom: 3rem;
    }
    .education-hero-card .image-header {
        height: 20rem;
    }
    .education-hero-card .content-body {
        padding: 2rem;
    }
    .education-hero-card .content-body .logo-area {
        top: -3.5rem;
        width: 7rem;
        height: 7rem;
    }
    .education-hero-card .content-body .university-info-main {
        margin-top: 3rem;
    }
    .education-hero-card .content-body .university-info-main h3 {
        font-size: 2.2rem;
    }
    .education-hero-card .content-body .university-info-main .university-name {
        font-size: 1.5rem;
    }
    .education-hero-card .content-body .university-info-main .study-period {
        font-size: 1.7rem;
    }
}
/* WORK SECTION MODERN DESIGN */
.work {
  background: linear-gradient(to bottom, #0f0f23, #1a1a40);
  padding: 6rem 2rem;
  color: #fff;
  font-family: "Poppins", sans-serif;
}

/* GLASS UI - Improved contrast for readability */
.work .heading {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
  font-weight: 700;
  color: #e9e9eeff; /* Much darker for contrast */
  text-shadow: 0 2px 12px rgba(60,60,120,0.18);
}

.work .heading span {
  color: #f18e02ff; /* Darker accent */
  text-shadow: 0 1px 8px rgba(60,60,120,0.25);
}

/* Force 2-column Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Project Card */
.project-card {
  background: rgba(30, 30, 46, 0.85); /* Dark glass for contrast */
  backdrop-filter: blur(15px);
  border: 1px solid rgba(60, 60, 120, 0.18);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.8);
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid rgba(60,60,120,0.1);
  transition: transform 0.3s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card .content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-grow: 1;
}

.project-card .tag {
  background: rgba(60, 60, 120, 0.22);
  padding: 0.6rem 1.2rem;
  border-radius: 0.75rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
  user-select: none;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(60,60,120,0.08);
}

/* Description */
.project-card .desc p {
  font-size: 1.18rem;
  color: #f8f8ff; /* Very light but readable on dark */
  line-height: 1.7;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 6px rgba(60,60,120,0.13);
}

/* Show full description on card hover */
.project-card:hover .desc p {
  max-height: 100vh;
  overflow: visible;
}

/* Technology Tags */
.technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  background: rgba(60, 60, 120, 0.18);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 0.5rem;
  white-space: nowrap;
  user-select: none;
  transition: background 0.3s ease, color 0.3s;
  text-shadow: 0 1px 6px rgba(60,60,120,0.10);
}

.tech-tag:hover {
  background: rgba(60, 60, 120, 0.3);
  color: #ffe600;
}

/* Buttons */
.btns {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
}

.btns .btn {
  flex: 1;
  background: rgba(60, 60, 120, 0.7);
  color: #fff;
  padding: 0.8rem 1.2rem;
  font-size: 1.2rem;
  border-radius: 0.75rem;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s;
  user-select: none;
  box-shadow: 0 2px 8px rgba(60,60,120,0.10);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.btns .btn:hover {
  background: rgba(255, 230, 0, 0.8);
  color: #23235b;
  box-shadow: 0 4px 16px rgba(60,60,120,0.18);
}

/* Responsive for mobile */
@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .project-card img {
    height: 160px;
  }
}


/* experience section starts */
.experience {
    background: #f8fafd; /* Consistent background with education section */
    min-height: 85vh;
    padding: 6rem 0 8rem; /* Consistent padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.experience .heading {
    margin-bottom: 3rem; /* Space below heading */
    color: #34495e;
}

/* Remove traditional timeline styles */
.experience .timeline {
    position: initial; /* Reset position */
    max-width: initial; /* Reset max-width */
    margin: initial; /* Reset margin */
}

.experience .timeline::after { /* Remove the main timeline line */
    display: none;
}

.experience .container { /* Reset container styles */
    padding: initial;
    position: initial;
    background-color: initial;
    width: initial;
}

.experience .container::after, /* Remove circles on timeline */
.experience .container::before { /* Remove arrows */
    display: none;
}

/* New Grid for Experience Cards */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(40rem, 1fr)); /* Two columns, responsive */
    gap: 3.5rem; /* Space between cards */
    max-width: 120rem; /* Max width for the grid */
    width: 92%; /* Responsive width */
    margin-bottom: 6rem; /* Space before the view all button */
    padding: 0 2rem; /* Inner padding for grid */
}

.experience-card {
    background: #ffffff;
    border-radius: 1.5rem; /* Rounded corners */
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1); /* Soft shadow */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth transition */
    display: flex; /* Flexbox for internal content */
    flex-direction: column; /* Stack header and body */
    padding: 3rem; /* Internal padding */
}

.experience-card:hover {
    transform: translateY(-0.8rem); /* Lift effect on hover */
    box-shadow: 0 1.5rem 4.5rem rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

.experience-card .card-header {
    display: flex;
    justify-content: space-between; /* Company name left, duration right */
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef; /* Separator line */
}

.experience-card .card-header h3 {
    font-size: 2.8rem; /* Company name size */
    color: #2c3e50; /* Darker color */
    font-weight: 700;
}

.experience-card .card-header .job-duration {
    font-size: 1.6rem;
    color: #6c757d;
    font-weight: 500;
}

.experience-card .card-body {
    flex-grow: 1; /* Allows body to take remaining height */
}

.experience-card .card-body h4 {
    font-size: 2.2rem; /* Job title size */
    color: #007bff; /* Accent color for job title */
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.experience-card .card-body ul {
    list-style: none; /* Remove default bullet points */
    padding: 0;
    margin: 0;
}

.experience-card .card-body ul li {
    font-size: 1.7rem; /* List item text size */
    color: #495057;
    line-height: 1.8;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2.5rem; /* Space for custom bullet */
}

.experience-card .card-body ul li::before {
    content: "\2022"; /* Unicode bullet point */
    color: #28a745; /* Green accent color */
    font-size: 2rem;
    position: absolute;
    left: 0;
    top: 0.1rem;
    font-weight: bold;
}

/* View All Button Styling (Updated) */
.morebtn {
    margin-top: 4rem; /* Adjust margin to separate from grid */
}

.morebtn .btn {
    line-height: 1; /* Adjust line height for better button text centering */
    padding: 1.8rem 3.5rem; /* Larger button padding */
    border-radius: 0.8em; /* More rounded button */
    color: #fff;
    background: #007bff; /* Consistent blue accent */
    box-shadow: 0px 8px 15px rgba(0, 123, 255, 0.4); /* Softer, blue-tinted shadow */
    transition: all 0.3s ease-in-out;
    font-family: "Nunito", sans-serif; /* Ensure consistent font */
    display: inline-flex; /* Use flex to align icon and text */
    align-items: center;
    justify-content: center;
}

.morebtn .btn span {
    font-weight: 600;
    font-size: 1.8rem; /* Slightly larger text */
    margin-right: 0.8rem; /* Space between text and icon */
}

.morebtn .btn i {
    font-size: 1.6rem; /* Adjust icon size */
    transition: transform 0.3s ease-in-out;
}

.morebtn .btn:hover {
    background: #0056b3; /* Darker blue on hover */
    box-shadow: 0px 10px 20px rgba(0, 123, 255, 0.6); /* Stronger shadow on hover */
}

.morebtn .btn:hover i {
    transform: translateX(0.5rem); /* Move icon slightly on hover */
}

/* Media Queries for Experience Grid */
@media screen and (max-width: 992px) {
    .experience-grid {
        grid-template-columns: 1fr; /* Single column layout on tablets/mobiles */
        gap: 3rem; /* Slightly less gap when stacked */
        width: 90%; /* Adjust width */
        max-width: 60rem; /* Max width for single column */
    }

    .experience-card {
        padding: 2.5rem;
    }

    .experience-card .card-header h3 {
        font-size: 2.6rem;
    }

    .experience-card .card-header .job-duration {
        font-size: 1.5rem;
    }

    .experience-card .card-body h4 {
        font-size: 2rem;
    }

    .experience-card .card-body ul li {
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 600px) {
    .experience .heading {
        margin-bottom: 2.5rem;
    }

    .experience-grid {
        padding: 0 1.5rem; /* Smaller padding */
        gap: 2.5rem;
    }

    .experience-card {
        padding: 2rem;
    }

    .experience-card .card-header {
        flex-direction: column; /* Stack company name and duration */
        align-items: flex-start;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .experience-card .card-header .job-duration {
        margin-top: 0.5rem; /* Space below company name */
        font-size: 1.4rem;
    }

    .experience-card .card-header h3 {
        font-size: 2.4rem;
    }

    .experience-card .card-body h4 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .experience-card .card-body ul li {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
        padding-left: 2rem;
    }

    .experience-card .card-body ul li::before {
        font-size: 1.8rem;
        top: 0;
    }

    .morebtn .btn {
        padding: 1.5rem 3rem;
    }

    .morebtn .btn span {
        font-size: 1.6rem;
    }
}

/* contact section starts */
.contact {
  background: linear-gradient(120deg, #e5ecfb 0%, #c2e9fb 100%);
  min-height: 60vh;
  padding: 5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column; /* Add column direction for heading above */
}
.contact .heading {
  font-size: 3rem;
  color: #23235b;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  letter-spacing: 0.04em;
}
.contact .container {
  max-width: 900px;
  width: 96%;
  background: rgba(255,255,255,0.22);
  border-radius: 2rem;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(30, 60, 120, 0.18);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1.5px solid rgba(255,255,255,0.28);
  overflow: hidden;
  position: relative;
}
.contact .container .content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3.5rem 3rem;
  gap: 2rem;
}
.contact .content .image-box {
  max-width: 44%;
  margin-left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact .content .image-box img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 1.2rem;
  box-shadow: 0 4px 24px rgba(30,60,120,0.10);
  object-fit: cover;
  opacity: 0.92;
}
.contact .content form {
  width: 54%;
  margin-right: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
form .form-group {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.form-group .field {
  height: 50px;
  display: flex;
  position: relative;
  width: 100%;
}
form i {
  position: absolute;
  top: 50%;
  left: 18px;
  color: #2506ad;
  font-size: 18px;
  pointer-events: none;
  transform: translateY(-50%);
  opacity: 0.7;
}
form .field input,
form .message textarea {
  width: 100%;
  height: 100%;
  outline: none;
  padding: 0 16px 0 48px;
  font-size: 1.6rem;
  font-family: "Poppins", sans-serif;
  border-radius: 0.7rem;
  border: 1.5px solid rgba(60,60,120,0.18);
  background: rgba(255,255,255,0.55);
  color: #23235b;
  transition: border 0.2s, background 0.2s;
  box-shadow: 0 2px 8px rgba(60,60,120,0.08);
}
.field input::placeholder,
.message textarea::placeholder {
  color: #6c757d;
  opacity: 0.8;
}
.field input:focus,
.message textarea:focus {
  border: 2px solid #2506ad;
  background: rgba(255,255,255,0.85);
}
.field input:focus ~ i,
.message textarea:focus ~ i {
  color: #007bff;
  opacity: 1;
}
form .message {
  position: relative;
  width: 100%;
}
form .message i {
  top: 25px;
  font-size: 20px;
  left: 15px;
}
form .message textarea {
  min-height: 120px;
  max-height: 220px;
  max-width: 100%;
  min-width: 100%;
  padding: 12px 20px 0 48px;
  resize: vertical;
}
form .message textarea::-webkit-scrollbar {
  width: 0px;
}
form .button-area {
  display: flex;
  justify-content: flex-end;
  gap: 1.2rem;
  margin-top: 1rem;
}
.button-area button {
  color: #fff;
  border: none;
  outline: none;
  font-size: 1.7rem;
  cursor: pointer;
  border-radius: 0.7rem;
  padding: 1.2rem 2.8rem;
  background: linear-gradient(90deg,#2506ad 60%,#007bff 100%);
  box-shadow: 0px 5px 18px rgba(48, 68, 247, 0.18);
  transition: background 0.3s, box-shadow 0.3s;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.button-area button:hover {
  background: linear-gradient(90deg,#007bff 60%,#2506ad 100%);
  box-shadow: 0px 8px 24px rgba(48, 68, 247, 0.28);
}
.button-area span {
  font-size: 1.5rem;
  padding: 1rem;
  display: none;
}
.button-area button i {
  font-size: 1.4rem;
  transition: transform 0.3s;
  color: #fff;
}
.button-area button:hover i {
  transform: translateX(6px);
}
/* contact section media queries starts */
@media (max-width: 900px) {
  .contact {
    min-height: 70vh;
    padding: 3rem 0;
  }
  .contact .container {
    margin: 0;
    width: 98%;
  }
  .contact .container .content {
    flex-direction: column;
    padding: 2rem 1.2rem;
    gap: 0;
  }
  .contact .content .image-box {
    display: none;
  }
  .contact .content form {
    width: 100%;
    margin-right: 0;
  }
}
/* Loading Spinner Overlay */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Spinner Animation */
.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #2506ad;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Modal styles */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.98);
  width: 90%;
  max-width: 400px;
  border-radius: 1.2rem;
  box-shadow: 0 8px 32px rgba(30,60,120,0.18);
  z-index: 10000;
  padding: 2.5rem 2rem;
  text-align: center;
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(60,60,120,0.18);
}
.modal[style*="display: none"] {
  display: none !important;
}
.modal-content {
  position: relative;
}
.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #2506ad;
  font-weight: bold;
}
.modal-icon i {
  font-size: 50px;
  color: #28a745;
  margin-bottom: 1rem;
}
.modal h3 {
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #2506ad;
  font-size: 2rem;
}
.modal p {
  font-size: 1.3rem;
  color: #444;
  margin-bottom: 0.5rem;
}
/* contact section media queries ends */
/* contact section ends */

/* footer section starts */
.footer {
  min-height: auto;
  padding-top: 0;
  background: rgb(0, 1, 43);
}
.footer .box-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.footer .box-container .box {
  flex: 1 1 25rem;
  margin: 2.5rem;
}
.footer .box-container .box h3 {
  font-size: 2.5rem;
  color: #fff;
  padding-bottom: 1rem;
  font-weight: normal;
}
.footer .box-container .box p {
  font-size: 1.5rem;
  color: #ccc;
  padding: 0.7rem 0;
  text-transform: none;
}
.footer .box-container .box p i {
  padding-right: 1rem;
  color: #ffae00;
}
.footer .box-container .box a {
  font-size: 1.5rem;
  color: rgb(238, 238, 238);
  padding: 0.3rem 0;
  display: block;
}
.footer .box-container .box a:hover {
  color: #ffae00;
}
.footer .box-container .box .share {
  display: flex;
  flex-wrap: wrap;
  padding: 1rem 0;
}
.footer .box-container .box .share a {
  height: 4rem;
  width: 4rem;
  padding: 1rem;
  text-align: center;
  border-radius: 5rem;
  font-size: 1.7rem;
  margin-right: 1rem;
  transition: 0.2s;
  background: rgb(230, 230, 230);
  color: #02094b;
  border: none;
}
.footer .box-container .box .share a:hover {
  background: transparent;
  transform: scale(0.98);
  border: 0.1rem solid rgb(180, 178, 178);
  color: #ffae00;
}
.footer .credit {
  padding: 1rem 0 0 0;
  text-align: center;
  font-size: 1.5rem;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  color: #fff;
  border-top: 0.1rem solid #fff3;
}
.footer .credit a {
  color: #ffae00;
}
.footer .fa {
  color: #e90606;
  margin: 0 0.3rem;
  font-size: 1.5rem;
  animation: pound 0.35s infinite alternate;
}
@-webkit-keyframes pound {
  to {
    transform: scale(1.1);
  }
}
@keyframes pound {
  to {
    transform: scale(1.1);
  }
}
@media (max-width: 450px) {
  .footer .box-container .box {
    margin: 1.5rem;
  }
  .footer .box-container .box p {
    padding: 0.7rem;
  }
  .footer .box-container .box .share a {
    padding: 1.2rem;
  }
}
/* footer section ends */

/* common media queries starts*/
@media (max-width: 450px) {
  html {
    font-size: 55%;
  }
  body {
    padding-right: 0;
  }
  section {
    padding: 2rem;
  }
}
/* common media queries ends*/

/* scroll top starts */
#scroll-top {
  position: fixed;
  top: -140%;
  right: 2rem;
  padding: 1rem 1.5rem;
  font-size: 2rem;
  background: #ffae00;
  color: rgb(13, 0, 44);
  border-radius: 50%;
  transition: 1s linear;
  z-index: 1000;
}
#scroll-top.active {
  top: calc(100% - 12rem);
}
/* scroll top ends */
