@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&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: #fdfdfd;
  font-family: "Outfit", sans-serif;
  color: #1e293b;
  overflow-x: hidden;
}

:root {
  --primary: #6366f1;
  --secondary: #a855f7;
  --accent: #fbbf24;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
}


*::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: 1.7rem 10%;
  height: 6.5rem;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(146, 161, 176, 0.3);
}

section {
  min-height: 100vh;
  padding: 2rem 9%;
}

.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.2rem;
  font-weight: 800;
  text-decoration: none;
  color: #0e2431;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
  transition: 0.3s ease;
}

header .logo:hover .nav-avatar {
  transform: scale(1.1) rotate(5deg);
}

header .logo:hover {
  color: var(--primary);
}


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;
}

header .navbar ul li a.active,
header .navbar ul li a:hover {
  color: #011aff;
  border-bottom: 0.2rem solid #011aff;
  padding: 0.5rem 0;
}

/* navbar ends */

/* hamburger icon starts*/
#menu {
  font-size: 3rem;
  cursor: pointer;
  color: rgb(24, 2, 63);
  display: none;
}

@media (max-width: 768px) {
  #menu {
    display: block;
  }

  header .navbar {
    position: fixed;
    top: 6.5rem;
    right: -120%;
    width: 75%;
    height: 100%;
    text-align: left;
    align-items: flex-start;
    background-color: #0e0f31;
  }

  header .navbar ul {
    flex-flow: column;
    padding: 1rem;
  }

  header .navbar ul li {
    text-align: center;
    margin: 1rem 0;
    border-radius: 0.5rem;
    width: 100%;
  }

  header .navbar ul li a {
    display: block;
    padding: 1rem;
    text-align: left;
    color: #fff;
    font-size: 2rem;
  }

  header .navbar ul li a.active,
  header .navbar ul li a:hover {
    padding: 1rem;
    color: #fff;
    border-radius: 0.5rem;
    border-bottom: 0.5rem solid #011aff;
  }

  .fa-times {
    transform: rotate(180deg);
  }

  header .navbar.nav-toggle {
    right: 0;
  }
}

/* hamburger icon ends */

/* hero section starts*/
.home {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 10rem 9% 2rem 9%;
  background: radial-gradient(circle at 0% 0%, #fefeff 0%, #f5f3ff 100%);
  text-align: center;
  overflow: hidden;
}

.glow-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  opacity: 0.4;
  animation: float 10s infinite alternate ease-in-out;
}

.sphere-1 {
  width: 400px;
  height: 400px;
  background: #6366f1;
  top: -100px;
  right: -100px;
}

.sphere-2 {
  width: 300px;
  height: 300px;
  background: #a855f7;
  bottom: -50px;
  left: -50px;
  animation-delay: -3s;
}

.sphere-3 {
  width: 250px;
  height: 250px;
  background: #fbbf24;
  top: 40%;
  left: 20%;
  opacity: 0.2;
  animation-delay: -5s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(30px, 50px) scale(1.1);
  }
}


.home .content {
  flex: 1 1 50rem;
  z-index: 5;
}

.home .content h2 {
  font-size: 5rem;
  font-weight: 800;
  color: #0f172a;
}

.home .content h2 span {
  color: #6366f1;
}

.home .content p {
  font-size: 2.5rem;
  color: #475569;
  font-weight: 500;
  margin: 1.5rem 0;
}

.home .content p span {
  color: #6366f1;
}

.about-brief {
  margin: 3rem auto;
  max-width: 80rem;
  padding: 4rem;
  background: var(--glass);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 3rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
  transform: translateY(0);
  transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.about-brief:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(99, 102, 241, 0.1);
  background: rgba(255, 255, 255, 0.8);
}


.about-brief p {
  font-size: 1.6rem !important;
  color: #475569 !important;
  line-height: 1.8 !important;
  margin: 0 !important;
  font-weight: 400 !important;
  text-transform: none !important;
}

.bio-details {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 3rem;
}


.bio-details p {
  font-size: 1.4rem !important;
  color: #64748b !important;
  text-transform: none !important;
}

.bio-details span {
  color: #6366f1;
  margin-right: 1rem;
}

.home .image {
  flex: 1 1 40rem;
  text-align: center;
  z-index: 5;
}

.home .image img {
  width: 90%;
  border-radius: 3rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.home .image img:hover {
  transform: translateY(-1rem);
}

.home .content h2 {
  font-size: 6rem;
  font-weight: 800;
  color: #002057;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.home .content h2 span {
  font-size: 6rem;
  font-weight: 800;
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home .content p {
  font-size: 2.8rem;
  color: #1e293b;
  font-weight: 600;
  padding: 1rem 0;
}

.home .content p span {
  font-size: 2.8rem;
  color: var(--secondary);
  font-weight: 700;
}


.home .btn {
  margin: 3rem auto 0;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.8rem 4rem;
  border-radius: 5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
  font-family: "Outfit", sans-serif;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  z-index: 10;
}

.home .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.home .btn:hover::before {
  left: 100%;
}

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

.home .btn i {
  font-size: 1.6rem;
  transition: 0.3s;
}

.home .btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.6);
}

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


/* social icons start */
.socials {
  position: relative;
  margin-top: 5rem;
  display: flex;
  justify-content: center;
}


.socials .social-icons {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.socials .social-icons li {
  display: inline-block;
  margin-bottom: 14px;
}

.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: 8px;
  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) {
  .home {
    padding-top: 15rem;
  }

  .home .content h2 {
    font-size: 4rem;
  }

  .home .content h2 span {
    font-size: 4rem;
  }

  .home .content p {
    font-size: 2.2rem;
  }

  .home .content p span {
    font-size: 2.2rem;
  }

  .about-brief {
    padding: 2.5rem;
    margin: 2rem 1rem;
  }

  .glow-sphere {
    filter: blur(50px);
  }
}


@media (max-width: 450px) {
  .home .image img {
    width: 90%;
  }
}

/* hero media queries ends*/
/* hero section end */

/* skills section starts */
.skills {
  min-height: auto;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 10rem 9%;
  position: relative;
  overflow: hidden;
}

.skills::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.skills h2 {
  color: #ffffff;
  position: relative;
  z-index: 1;
  text-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

.skills .heading span {
  color: #fbbf24;
}

.skills .container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: #1e293b;
  border-radius: 3rem;
  padding: 5rem;
  width: 90%;
  margin: 5rem auto;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 3rem 6rem rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.skills .container .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 3rem;
}

.skills .container .bar {
  margin-bottom: 0;
  padding: 3rem 2rem;
  border-radius: 2rem;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border: 2px solid transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.skills .container .bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(168, 85, 247, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.skills .container .bar:hover::before {
  opacity: 1;
}

.skills .container .bar:hover {
  transform: translateY(-1rem) scale(1.05);
  box-shadow: 0 2rem 4rem rgba(102, 126, 234, 0.4);
  border-color: #667eea;
}

.skills .container .bar .info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.skills .container .bar .info img {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 0.5rem 1rem rgba(0, 0, 0, 0.1));
}

.skills .container .bar:hover .info img {
  transform: scale(1.2) rotateY(360deg);
}

.skills .container .bar .info i {
  font-size: 5rem;
  color: #667eea;
  transition: all 0.4s ease;
}

.skills .container .bar:hover .info i {
  transform: scale(1.2);
  color: #764ba2;
}

.skills .container .bar .info span {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.skills .container .bar:hover .info span {
  color: #667eea;
}

/* skills media queries starts*/
@media screen and (max-width: 768px) {
  .skills {
    padding: 8rem 5%;
  }

  .skills .container {
    padding: 3rem 2rem;
    width: 95%;
    margin: 3rem auto;
  }

  .skills .container .row {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .skills .container .bar {
    padding: 2.5rem 1.5rem;
  }

  .skills .container .bar .info img {
    width: 4rem;
    height: 4rem;
  }

  .skills .container .bar .info span {
    font-size: 1.3rem;
  }
}

@media screen and (max-width: 600px) {
  .skills .container {
    padding: 2rem 1rem;
    margin: 2rem auto;
    border-radius: 2rem;
  }

  .skills .container .row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .skills .container .bar {
    padding: 2rem 1rem;
    border-radius: 1.5rem;
  }

  .skills .container .bar .info img {
    width: 3.5rem;
    height: 3.5rem;
  }

  .skills .container .bar .info span {
    font-size: 1.2rem;
  }

  .skills .container .bar:hover {
    transform: translateY(-0.5rem) scale(1.02);
  }
}

/* skills media queries ends*/
/* skills section ends */

.education {
  background: #f8fafc;
  padding: 8rem 9%;
  border-top: 1px solid #e2e8f0;
}

.education .qoute {
  font-size: 1.6rem;
  color: #64748b;
  text-align: center;
  font-weight: 500;
  margin-bottom: 4rem;
}

.education .box-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  max-width: 100rem;
  margin: 0 auto;
}

.education .box-container .box {
  display: flex;
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 2.5rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
  transition: 0.3s ease;
}

.education .box-container .box:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06);
}

.education .box-container .box .image {
  flex: 0 0 30rem;
}

.education .box-container .box .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.education .box-container .box .content {
  padding: 4rem;
  flex: 1;
}

.education .box-container .box .content h3 {
  font-size: 2.4rem;
  color: #0f172a;
  margin-bottom: 1rem;
}

.education .box-container .box .content p {
  font-size: 1.6rem;
  color: #475569;
  margin-bottom: 1.5rem;
}

.education .box-container .box .content h4 {
  font-size: 1.8rem;
  color: #6366f1;
  font-weight: 700;
}

/* education media queries starts*/
@media screen and (max-width: 600px) {
  .education .box-container .box {
    flex-direction: column;
    width: 100%;
  }

  .education .box-container .box .image {
    width: 100%;
    height: 25rem;
  }

  .education .box-container .box img {
    width: 100%;
  }

  .education .box-container .box .content {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    flex-wrap: wrap;
    flex: 0;
  }

  .education .btns {
    margin-top: 2rem;
    margin-left: 1rem;
    margin-right: 1rem;
    flex-wrap: wrap;
  }
}

/* education media queries ends*/
/* education section ends */

/* work section starts */
.work {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  padding: 10rem 9%;
  position: relative;
  overflow: hidden;
}

.work::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.work .heading {
  color: #ffffff;
  margin-bottom: 6rem;
  position: relative;
  z-index: 1;
  text-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}

.work .heading span {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(45rem, 1fr));
  gap: 5rem;
  max-width: 130rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.project-card {
  position: relative;
  border-radius: 3rem;
  overflow: hidden;
  box-shadow: none;
  cursor: pointer;
  background: #0f172a;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  padding: 0;
  margin: 0;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(168, 85, 247, 0.2));
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-2rem) scale(1.03);
  box-shadow: 0 3rem 6rem rgba(0, 0, 0, 0.6);
}

.card-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: transparent;
  display: block;
  padding: 0;
  margin: 0;
  line-height: 0;
}


.card-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.8s ease, filter 0.5s ease;
  filter: brightness(0.9);
  display: block;
  padding: 0;
  margin: 0;
  border: none;
  vertical-align: middle;
}


.project-card:hover .card-image img {
  transform: scale(1.2) rotate(2deg);
  filter: brightness(1.1);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.3));
  display: flex;
  align-items: flex-end;
  padding: 4rem;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}

.project-card:hover .card-overlay {
  opacity: 1;
}

.overlay-content {
  transform: translateY(3rem);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.project-card:hover .overlay-content {
  transform: translateY(0);
}

.overlay-content h3 {
  color: #fff;
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
}

.overlay-content p {
  color: #cbd5e1;
  font-size: 1.7rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  font-weight: 400;
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 3rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 5rem;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 1rem 3rem rgba(102, 126, 234, 0.5);
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.view-btn:hover {
  transform: translateY(-0.3rem);
  box-shadow: 0 1.5rem 4rem rgba(102, 126, 234, 0.7);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  overflow-y: auto;
}

.modal.active {
  display: block;
  animation: modalFadeIn 0.5s ease backwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.close-modal {
  position: fixed;
  top: 3rem;
  right: 4rem;
  color: #fff;
  font-size: 5rem;
  font-weight: 300;
  cursor: pointer;
  z-index: 2001;
  transition: transform 0.3s ease;
}

.close-modal:hover {
  transform: rotate(90deg) scale(1.2);
  color: #6366f1;
}

.modal-content {
  max-width: 140rem;
  margin: 6rem auto;
  padding: 4rem;
  text-align: center;
}

.modal-header {
  margin-bottom: 6rem;
  animation: slideDown 0.8s ease backwards;
  position: relative;
}

@keyframes slideDown {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header h2 {
  font-size: 5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 3rem rgba(102, 126, 234, 0.3);
  letter-spacing: -0.02em;
}

.modal-header p {
  font-size: 2rem;
  color: #cbd5e1;
  font-weight: 400;
  line-height: 1.6;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(32rem, 1fr));
  gap: 4rem;
  padding: 3rem;
  max-width: 140rem;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  border-radius: 2.5rem;
  overflow: hidden;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.5);
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.gallery-item.show {
  transform: translateY(0);
  opacity: 1;
}

.gallery-item:hover {
  transform: scale(1.08) translateY(-1.5rem) !important;
  box-shadow: 0 3rem 6rem rgba(99, 102, 241, 0.6);
  border-color: rgba(99, 102, 241, 0.8);
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* responsive */
@media (max-width: 768px) {
  .work {
    padding: 8rem 5%;
  }

  .projects-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 0;
  }

  .project-card {
    border-radius: 2.5rem;
  }

  .card-overlay {
    padding: 3rem;
  }

  .overlay-content h3 {
    font-size: 2.8rem;
  }

  .overlay-content p {
    font-size: 1.5rem;
  }

  .view-btn {
    padding: 1.3rem 2.5rem;
    font-size: 1.4rem;
  }

  .card-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.3));
  }

  .overlay-content {
    transform: translateY(0);
  }

  .close-modal {
    top: 2rem;
    right: 2rem;
    font-size: 3.5rem;
  }

  .modal-content {
    padding: 1.5rem;
    margin: 3rem auto;
  }

  .modal-header h2 {
    font-size: 3.5rem;
  }

  .modal-header p {
    font-size: 1.6rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1rem;
  }

  .gallery-item {
    border-radius: 1.5rem;
    height: auto;
  }

  .gallery-item:hover {
    transform: scale(1.02) translateY(-0.5rem) !important;
  }

  .gallery-item img {
    padding: 0.8rem;
    border-radius: 1.5rem;
  }
}

@media (max-width: 450px) {
  .modal-header {
    margin-bottom: 2rem;
  }

  .modal-header h2 {
    font-size: 2.8rem;
  }

  .modal-header p {
    font-size: 1.4rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0.5rem;
  }

  .gallery-item {
    border-radius: 1.2rem;
  }

  .gallery-item img {
    padding: 0.5rem;
  }

  .close-modal {
    top: 1.5rem;
    right: 1.5rem;
    font-size: 3rem;
  }

  .modal-content {
    padding: 1rem;
    margin: 2rem auto;
  }
}

/* experience section starts */
.experience {
  background: #ffffff;
  padding: 8rem 9%;
}

.experience .timeline {
  position: relative;
  max-width: 100rem;
  margin: 4rem auto 0 auto;
  padding-left: 5rem;
}

.experience .timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.5rem;
  height: 100%;
  width: 0.3rem;
  background: #f1f5f9;
  border-radius: 1rem;
}

.experience .container {
  position: relative;
  padding-bottom: 4rem;
  width: 100%;
  text-align: left;
}

.experience .container::after {
  content: "";
  position: absolute;
  left: -4.3rem;
  top: 0.5rem;
  width: 2.2rem;
  height: 2.2rem;
  background: #ffffff;
  border: 4px solid #6366f1;
  border-radius: 50%;
  z-index: 10;
  box-shadow: 0 0 0 5px #f1f5f9;
}

.experience .content {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 3rem;
  border-radius: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
  overflow: hidden;
}

.experience .content:hover {
  transform: translateX(1rem);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.08);
  border-color: #6366f1;
}

.experience .content .tag h2 {
  font-size: 2.2rem;
  color: #0f172a;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.experience .content .desc h3 {
  font-size: 1.6rem;
  color: #6366f1;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.experience .content .desc p {
  font-size: 1.5rem;
  color: #475569;
  line-height: 1.8;
  text-transform: none;
}

/* Premium Experience with Photo */
.exp-with-photo {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 2.5rem !important;
}

.exp-text {
  flex: 1;
}

.exp-photo {
  flex: 0 0 250px;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
  border: 4px solid #fff;
  cursor: zoom-in;
}

.exp-photo img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.exp-with-photo:hover .exp-photo {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
}

.exp-with-photo:hover .exp-photo img {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .exp-with-photo {
    flex-direction: column;
    text-align: center;
  }

  .exp-photo {
    flex: 0 0 auto;
    width: 100%;
    max-width: 300px;
  }
}


/* Cleanup extra spacing */
.experience .heading {
  margin-bottom: 2rem;
}

/* view all button */
.morebtn {
  display: flex;
  justify-content: center;
}

.morebtn .btn {
  position: relative;
  line-height: 0;
  padding: 1.6rem 3rem;
  border-radius: 0.5em;
  transition: 0.5s;
  color: #fff;
  background: #2506ad;
  box-shadow: 0px 5px 10px rgba(48, 68, 247, 0.6);
  text-align: center;
}

.morebtn .btn span {
  font-weight: 600;
  font-size: 1.7rem;
  font-family: "Nunito", sans-serif;
}

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

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

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

/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {
  .experience {
    min-height: 80vh;
  }

  .experience .timeline {
    margin-top: 2rem;
  }

  .experience .timeline::after {
    left: 31px;
  }

  .experience .container {
    width: 100%;
    padding-left: 8rem;
    padding-right: 2rem;
  }

  .experience .container::after {
    font-size: 2.2rem;
  }

  .experience .container::before {
    left: 61px;
    border: medium solid #f68c09;
    border-width: 10px 10px 10px 0;
    border-color: transparent #f68c09 transparent transparent;
  }

  .experience .left::after {
    left: 15px;
  }

  .experience .right::after {
    left: 15px;
  }

  .experience .right {
    left: 0%;
  }

  .morebtn {
    margin-top: 3rem;
  }
}

/* experience media queries ends */
/* experience section ends */

/* contact section starts */
.contact {
  background: #e5ecfb;
  min-height: 60vh;
}

.contact .container {
  max-width: 1050px;
  width: 100%;
  background: #fff;
  border-radius: 1.5rem;
  margin: 2rem 5rem;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.contact .container .content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 2rem;
}

.contact .content .image-box {
  max-width: 60%;
  margin-left: 4rem;
}

.contact .content .image-box img {
  width: 100%;
  height: 40rem;
  position: relative;
}

.contact .content form {
  width: 45%;
  margin-right: 3.5rem;
}

form .form-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-group .field {
  height: 50px;
  display: flex;
  position: relative;
  margin: 1rem;
  width: 100%;
}

form i {
  position: absolute;
  top: 50%;
  left: 18px;
  color: rgb(51, 51, 51);
  font-size: 17px;
  pointer-events: none;
  transform: translateY(-50%);
}

form .field input,
form .message textarea {
  width: 100%;
  height: 100%;
  outline: none;
  padding: 0 16px 0 48px;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
  border-radius: 5px;
  border: 1px solid rgb(51, 51, 51);
  background: #e5ecfb;
}

.field input::placeholder,
.message textarea::placeholder {
  color: rgb(51, 51, 51);
}

.field input:focus,
.message textarea:focus {
  padding-left: 47px;
  border: 2px solid rgb(115, 3, 167);
}

.field input:focus~i,
.message textarea:focus~i {
  color: rgb(115, 3, 167);
}

form .message {
  position: relative;
  margin: 1rem;
  width: 100%;
}

form .message i {
  top: 25px;
  font-size: 20px;
  left: 15px;
}

form .message textarea {
  min-height: 130px;
  max-height: 230px;
  max-width: 100%;
  min-width: 100%;
  padding: 12px 20px 0 48px;
}

form .message textarea::-webkit-scrollbar {
  width: 0px;
}

form .button-area {
  display: flex;
  float: right;
  flex-direction: row-reverse;
}

.button-area button {
  color: #fff;
  border: none;
  outline: none;
  font-size: 1.8rem;
  cursor: pointer;
  border-radius: 5px;
  padding: 13px 25px;
  background: #2506ad;
  box-shadow: 0px 5px 10px rgba(48, 68, 247, 0.6);
  transition: 0.3s ease;
  font-family: "Nunito", sans-serif;
}

.button-area button:hover {
  background: #421cecf5;
}

.button-area span {
  font-size: 17px;
  padding: 1rem;
  display: none;
}

.button-area button i {
  position: relative;
  top: 6px;
  left: 2px;
  font-size: 1.5rem;
  transition: 0.3s;
  color: #fff;
}

.button-area button:hover i {
  left: 8px;
}

/* contact section media queries starts */
@media (max-width: 900px) {
  .contact {
    min-height: 70vh;
  }

  .contact .container {
    margin: 3rem 0 2rem 0;
  }

  .contact .container .content {
    padding: 18px 12px;
  }

  .contact .content .image-box {
    display: none;
  }

  .contact .content form {
    width: 100%;
    margin-right: 2rem;
  }
}

/* contact section media queries ends */
/* contact section ends */

/* footer section starts */
.footer {
  padding: 5rem 9% 2rem 9%;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.footer .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 3rem;
}

.footer .box-container .box h3 {
  font-size: 2.2rem;
  color: #0f172a;
  padding-bottom: 2rem;
  font-weight: 700;
}

.footer .box-container .box p {
  font-size: 1.5rem;
  color: #475569;
  padding: 0.7rem 0;
  text-transform: none;
}

.footer .box-container .box p i {
  margin-right: 1rem;
  color: #6366f1;
}

.footer .box-container .box a {
  font-size: 1.5rem;
  color: #64748b;
  padding: 1rem 0;
  display: block;
  transition: 0.3s;
}

.footer .box-container .box a:hover {
  color: #6366f1;
  padding-left: 0.5rem;
}

.footer .box-container .box .share {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.footer .box-container .box .share a {
  height: 4rem;
  width: 4rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #475569;
  transition: all 0.3s ease;
}

.footer .box-container .box .share a:hover {
  background: #6366f1;
  color: #ffffff;
  border-color: #6366f1;
  transform: translateY(-0.3rem);
}

.footer .credit {
  padding: 3rem 0 1rem 0;
  text-align: center;
  font-size: 1.5rem;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
  margin-top: 5rem;
}

.footer .credit a {
  color: #6366f1;
  font-weight: 700;
}

.footer .fa-heart {
  color: #ef4444;
  margin: 0 0.5rem;
}

/* footer section ends */

/* common media queries starts*/
@media (max-width: 991px) {
  html {
    font-size: 55%;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 50%;
  }
}

@media (max-width: 450px) {
  html {
    font-size: 45%;
  }

  body {
    padding-right: 0;
  }

  section {
    padding: 2rem;
  }
}

/* common media queries ends*/

#scroll-top {
  position: fixed;
  top: -140%;
  right: 2rem;
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: #6366f1;
  color: #fff;
  border-radius: 50%;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

#scroll-top.active {
  top: calc(100% - 9rem);
}

#scroll-top:hover {
  transform: scale(1.1);
  background: #4f46e5;
}

/* scroll top ends */

/* Premium Gallery Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal.active {
  display: block;
  opacity: 1;
}

.modal-content {
  margin: 5% auto;
  padding: 4rem;
  width: 90%;
  max-width: 1200px;
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.close-modal {
  position: fixed;
  top: 3rem;
  right: 4rem;
  color: #fff;
  font-size: 5rem;
  font-weight: 300;
  cursor: pointer;
  z-index: 2100;
  transition: transform 0.3s ease, color 0.3s ease;
}

.close-modal:hover {
  transform: rotate(90deg);
  color: var(--primary);
}

.modal-header {
  text-align: center;
  margin-bottom: 4rem;
}

.modal-header h2 {
  font-size: 4rem;
  color: #fff;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-header p#modal-desc {
  font-size: 1.6rem;
  color: #94a3b8;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}

.modal-project-info {
  margin-top: 3rem;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-project-text {
  font-size: 1.8rem;
  color: #e2e8f0;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.modal-btns {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.modal-btns .github-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 2.5rem;
  background: var(--primary);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: 1.2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
}

.modal-btns .github-link:hover {
  transform: translateY(-3px);
  background: #0891b2;
  box-shadow: 0 15px 30px rgba(6, 182, 212, 0.4);
}

.gallery-grid {
  display: columns;
  columns: 3 300px;
  column-gap: 2.5rem;
  padding: 2rem 0;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 2.5rem;
  border-radius: 2rem;
  overflow: hidden;
  opacity: 0;
  transform: translateY(4rem);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-item.show {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

@media (max-width: 991px) {
  .gallery-grid {
    columns: 2;
  }
}

@media (max-width: 768px) {
  .modal-content {
    padding: 2.5rem;
    margin: 10% auto;
  }

  .gallery-grid {
    columns: 1;
  }

  .modal-header h2 {
    font-size: 3rem;
  }
}