@import url("https://fonts.googleapis.com/css?family=Fira+Sans:400,500,600,700,800");
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap");

html[light-mode="light"] {
  --bg1-color: rgba(0, 0, 0, 0);
  --text-color: #6c757d;
  --shadow-col1: #babdc2;
  --shadow-col2: #ffffff;
  --meta-col: #444;
  --head-col: black;
}

html[light-mode="dark"] {
  --bg1-color: #272727;
  --text-color: #fff;
  --bg-txt-img: linear-gradient(315deg, #d5adc8 0%, #ff8489 74%);
  --txt-fill: transparent;
  --shadow-col1: #191919;
  --shadow-col2: #1d1d1d;
  --meta-col: rgb(155, 149, 149);
  --head-col: #fff;
}

html {
  overflow-x: hidden;
}

/*Main section*/

@media (max-width: 766px) {
  .dropdown {
    position: absolute;
    padding-right: 3.5rem;
  }

  .godown {
    z-index: 1;
    padding-top: 8rem;
    padding-left: 3.3rem;
  }
}

.head-upper {
  background: var(--bg-txt-img);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: var(--txt-fill);
}

section>div {
  padding-top: 7rem !important;
}

@media only screen and (max-width: 991px) {
  section {
    height: 80vh;
  }
}

@media only screen and (max-width: 867px) {
  section {
    height: 70vh;
  }
}

@media only screen and (max-width: 767px) {
  section {
    height: 95vh;
  }
}

@media only screen and (max-width: 550px) {
  section {
    height: 90vh;
  }
}

@media only screen and (max-width: 400px) {
  section {
    height: 85vh;
  }
}

.main,
.main1 {
  width: 100%;
  padding-left: 4rem;
  padding-right: 4rem;
  margin: 0 auto;
}

.section {
  padding: 20px;
  padding-left: 0;
}

.heading {
  font-size: 55px;
  color: var(--bg-txt-img);
}

.experience_head {
  font-weight: bold;
}

/*color of experience page headings*/
.my_experience {
  color: #4e00bb;
}

.sub-heading {
  font-size: 17px;
  margin-top: 20px;
}

@media (max-width: 550px) {
  .main {
    padding-left: 0;
    padding-right: 0;
  }

  .main1 {
    padding-left: 15px;
    padding-right: 15px;
  }
}

.experience-cards {
  margin: 0 auto;
}

@media only screen and (max-width: 550px) {
  .experience-cards {
    overflow: hidden;
    padding-left: 30px;
    padding-right: 30px;
  }
}

.col.gaap {
  padding-left: 0;
  padding-right: 0;
  margin: 0 auto;
}

.card1 {
  background: var(--glass-surface, var(--bg1-color));
  display: flex;
  flex-direction: column;
  /* max-height: 80%; Removed to allow full text visibility */
  border: none;
  border-radius: var(--glass-radius, 18px);
  contain: content;
  margin: 4em auto 36px;
  border: 1px solid var(--glass-border-color, rgba(255, 255, 255, 0.12));
  box-shadow: var(--glass-shadow-soft, 1px 1px 6px rgba(0, 0, 0, 0.15));
  backdrop-filter: blur(var(--glass-blur, 24px));
  -webkit-backdrop-filter: blur(var(--glass-blur, 24px));
  z-index: 1;
  align-items: center;
  /* Center vertically */
}

.card1:hover {
  transform: scale(1.06);
  -webkit-transform: scale(1.06);
  -moz-transform: scale(1.06);
  transition: transform 0.4s, 0.4s box-shadow;
  border-radius: 13px;
  z-index: 0;
  -webkit-transition: transform 0.4s, 0.4s box-shadow;
  -moz-transition: transform 0.4s, 0.4s box-shadow;
  cursor: pointer;
}

@media only screen and (min-width: 551px) {
  .card1:hover {
    box-shadow: 2px 5px 10px rgba(0, 0, 0, 17%), 3px 6px 11px rgba(0, 0, 0, 16%),
      4px 7px 13px rgba(0, 0, 0, 15%), 5px 8px 14px rgba(0, 0, 0, 14%);
  }
}

.card1 .card-body {
  display: flex;
  flex-flow: row wrap;
  padding: 18px;
  padding-bottom: 30px;
  color: var(--head-col);
  border-radius: 0 13px 13px 0;
  gap: 0.75rem;
  justify-content: center;
  /* Center horizontally */
  text-align: center;
  /* Center text */
}

.card1 header {
  flex: 100%;
}

.card1 .meta {
  margin-bottom: 22px;
  margin: 0;
  text-align: center;
}

ul ol {
  list-style: disc;
  padding: 3%;
}

.card1 .featured-image {
  display: block;
  width: 100%;
  max-width: 600px;
  height: 340px;
  object-fit: cover !important;
  object-position: center center !important;
  border-top-left-radius: 13px;
  border-top-right-radius: 13px;
  filter: saturate(1.1) contrast(1.05);
  margin: 0 auto;
}

@media only screen and (min-width: 1280px) {
  .card1 h3 {
    font-size: 32px;
  }
}

@media only screen and (min-width: 768px) {
  .card1 {
    flex-direction: row;
    /* max-height: 70vh; Removed to allow full text visibility */
  }

  .card1 h3 {
    font-size: calc(100% + 1vw);
  }

  .card1 .featured-image {
    border-top-left-radius: 13px;
    border-bottom-left-radius: 13px;
    border-top-right-radius: 13px;
    flex: 0 0 28%;
    max-width: 28%;
    height: 100%;
    min-height: 300px;
    width: 100%;
    object-fit: cover !important;
    object-position: center center !important;
    align-self: center;
    margin-left: auto;
    margin-right: auto;
    transform: translateX(20px);
  }
}

@media only screen and (max-width: 992px) {
  .card1 .featured-image {
    width: 440px;
    height: 340px;
    object-fit: cover;

  }
}

@media only screen and (max-width: 767px) {
  .card1 .featured-image {
    height: 340px;
    width: 100%;
    object-fit: cover;
  }
}

@media only screen and (max-width: 401px) {
  .card1 .featured-image {
    height: 320px;
    object-fit: cover;
  }
}

.about-portrait {
  display: block;
  width: clamp(210px, 30vw, 320px);
  aspect-ratio: 4 / 5;
  height: auto;
  min-height: 280px;
  padding: 10px;
  margin: 10px auto 6px;
  border-radius: 22px;
  object-fit: cover;
  object-position: center 55%;
  background: radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.14) 0 32%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(14, 165, 233, 0.26));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.24), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  -webkit-mask-image: radial-gradient(125% 125% at 50% 45%, #000 74%, rgba(0, 0, 0, 0) 100%);
  mask-image: radial-gradient(125% 125% at 50% 45%, #000 74%, rgba(0, 0, 0, 0) 100%);
  transition: transform 0.45s ease, box-shadow 0.45s ease, background 0.45s ease;
  position: relative;
  overflow: hidden;
}

.card1:hover .about-portrait {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.26), 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
  background: radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.18) 0 34%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(135deg, rgba(124, 58, 237, 0.36), rgba(14, 165, 233, 0.3));
  border-radius: 0 22px 22px 0;
  -webkit-mask-image: none;
  mask-image: none;
}

.about-portrait::before,
.about-portrait::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  height: 16%;
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.22), rgba(14, 165, 233, 0.12) 60%, rgba(255, 255, 255, 0));
  filter: blur(9px);
  opacity: 0.9;
  transition: opacity 0.35s ease, transform 0.35s ease;
  animation: portraitGlow 8s ease-in-out infinite;
  will-change: transform, opacity;
}

.about-portrait::before {
  top: -5%;
  transform: translateY(-6px) scaleX(0.96);
}

.about-portrait::after {
  bottom: -5%;
  transform: translateY(6px) scaleX(0.94);
  background: linear-gradient(0deg, rgba(14, 165, 233, 0.14), rgba(124, 58, 237, 0.12) 60%, rgba(255, 255, 255, 0));
}

.card1:hover .about-portrait::before,
.card1:hover .about-portrait::after {
  opacity: 1;
  transform: translateY(0) scaleX(1);
}

@keyframes portraitGlow {

  0%,
  100% {
    transform: translateY(0) scaleX(1);
    opacity: 0.85;
  }

  50% {
    transform: translateY(-2px) scaleX(1.02);
    opacity: 1;
  }
}

@media (max-width: 992px) {
  .about-portrait {
    width: clamp(200px, 58vw, 300px);
    min-height: 260px;
    padding: 9px;
  }
}

@media (max-width: 575px) {
  .about-portrait {
    width: clamp(180px, 86vw, 280px);
    min-height: 240px;
    padding: 8px;
    border-radius: 18px;
    -webkit-mask-image: radial-gradient(125% 125% at 50% 40%, #000 80%, rgba(0, 0, 0, 0) 100%);
    mask-image: radial-gradient(125% 125% at 50% 40%, #000 80%, rgba(0, 0, 0, 0) 100%);
  }
}

.heading1 {
  font-size: 32px;
  line-height: 1.2;
  font-weight: bold;
  color: #222;
  margin: 0.5em 0;
  margin-top: 5rem;
  color: var(--text);
}

@media (min-width: 675px) {
  .heading1 {
    margin-top: 5em;
  }
}

@media (min-width: 60rem) {
  .exp-head {
    margin-top: 0rem !important;
  }
}

.card-body .pre-heading {
  color: var(--meta-col);
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: uppercase;
}

.card-body .meta {
  color: var(--meta-col);
  font-size: 16px;
}

.card-body .author {
  font-size: 12px;
}

.card-body h3 {
  font-size: 2rem;
  margin-top: 5px;
  margin-bottom: 5px;
  color: var(--head-col);
  text-align: center;
}

.main ul,
.main1 ul {
  display: block;
  margin: 0 auto;
  min-height: 15rem;
  max-width: 1050px;
  padding: 1rem !important;
}

.main a,
.main a {
  text-decoration: none;
}

/*Volunteership card*/

:root {
  --d: 700ms;
  --e: cubic-bezier(0.19, 1, 0.22, 1);
}

.volunteerCard {
  display: block;
  position: relative;
  max-width: 380px;
  border-radius: 4px;
  padding: 32px 24px;
  margin: 12px;
  text-decoration: none;
  z-index: 0;
  overflow: hidden;
}

.volunteerCard:before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -16px;
  right: -16px;
  background: var(--lg-accent-muted, #6d28d9);
  height: 32px;
  width: 32px;
  border-radius: 32px;
  transform: scale(0);
  transform-origin: 50% 50%;
  transition: transform 0.25s ease-out;
}

.volunteerCard:hover:before {
  transform: scale(45);
}

.volunteerCard:hover p {
  transition: all 0.3s ease-out;
  color: rgba(255, 255, 255, 0.8);
}

.volunteerCard:hover h2 {
  transition: all 0.3s ease-out;
  color: #ffffff;
}

@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(0);
  }
}

.volunteerCard {
  border-radius: 10px;
  box-shadow: 0px 8px #093b8f, 0 6px 20px 0 rgba(0, 0, 0, 0.19),
    0 6px 20px 0 rgba(0, 0, 0, 0.19), 0 6px 20px 0 rgba(0, 0, 0, 0.19);

  animation: 0.5s ease-out 0s 1 slideInFromLeft;

  background: #333;
  padding: 10px;
}

.volunteerCard:hover {
  transform: scale(1.1);
}

.page-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  grid-gap: 5rem;
  padding: 2rem;
  max-width: 1124px;
  margin: 0 auto;
}

.page-content .card:hover {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 1rem;
  width: 100%;
  text-align: center;
  color: whitesmoke;
  cursor: pointer;
  border: none;
}

@media (min-width: 600px) {
  .page-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 800px) {
  .page-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

.page-content .card {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 1rem;
  width: 100%;
  text-align: center;
  color: black;
  background-color: var(--bg1-color);
  border: none;
}

@media (max-width: 600px) {
  .page-content .card {
    height: 580px;
  }
}

@media (max-width: 390px) {
  .main1 ul {
    padding: 15px;
  }
}

.card-body p {
  margin: 0px;
  font-size: 14px;
}

.content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 0.1rem;
  transition: transform var(--d) var(--e);
  z-index: -1;
}

.volunteerTitle {
  font-size: 1.5rem;
  line-height: 1.2;
  padding-bottom: 40px;
  transform: translateY(40px);
  transition: all 0.7s;
  font-weight: 900;
  color: var(--lg-accent, #7c3aed);
}

.copy {
  font-size: 1rem;
  font-style: italic;
  line-height: 1.35;
  padding-bottom: 40px;
  color: var(--head-col);
}

/* Resume Button Styles */
.resume-btn {
  background-color: #bb86fc;
  color: white !important;
  padding: 10px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid transparent;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
}

.resume-btn:hover {
  background-color: transparent;
  border-color: #bb86fc;
  color: #bb86fc !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(187, 134, 252, 0.3);
  text-decoration: none;
}

html[light-mode="light"] .resume-btn {
  background-color: #6a00bb;
  color: white !important;
}

html[light-mode="light"] .resume-btn:hover {
  background-color: transparent;
  border-color: #6a00bb;
  color: #6a00bb !important;
  box-shadow: 0 6px 15px rgba(106, 0, 187, 0.3);
}

/*Hackathon Section Starts*/

.blog-slider {
  width: 95%;
  position: relative;
  max-width: 800px;
  margin: auto;
  background: var(--glass-surface, var(--bg1-color));
  box-shadow: var(--glass-shadow, 0px 14px 80px rgba(34, 35, 58, 0.2));
  padding: 25px;
  border-radius: var(--glass-radius, 25px);
  border: 1px solid var(--glass-border-color, rgba(255, 255, 255, 0.12));
  backdrop-filter: blur(var(--glass-blur, 24px));
  -webkit-backdrop-filter: blur(var(--glass-blur, 24px));
  height: 400px;
  transition: all 0.3s;
}

@media screen and (max-width: 992px) {
  .blog-slider {
    max-width: 680px;
    height: 400px;
  }
}

@media screen and (max-width: 768px) {
  .blog-slider {
    min-height: 500px;
    height: auto;
    margin: 180px auto;
  }
}

@media screen and (max-height: 500px) and (min-width: 992px) {
  .blog-slider {
    height: 350px;
  }
}

.blog-slider__item {
  display: flex;
  align-items: center;
}

@media screen and (max-width: 768px) {
  .blog-slider__item {
    flex-direction: column;
  }
}

.blog-slider__item.swiper-slide-active .blog-slider__img img {
  opacity: 1;
  transition-delay: 0.3s;
}

.blog-slider__item.swiper-slide-active .blog-slider__content>* {
  opacity: 1;
  transform: none;
}

.blog-slider__item.swiper-slide-active .blog-slider__content>*:nth-child(1) {
  transition-delay: 0.3s;
}

.blog-slider__item.swiper-slide-active .blog-slider__content>*:nth-child(2) {
  transition-delay: 0.4s;
}

.blog-slider__item.swiper-slide-active .blog-slider__content>*:nth-child(3) {
  transition-delay: 0.5s;
}

.blog-slider__item.swiper-slide-active .blog-slider__content>*:nth-child(4) {
  transition-delay: 0.6s;
}

.blog-slider__item.swiper-slide-active .blog-slider__content>*:nth-child(5) {
  transition-delay: 0.7s;
}

.blog-slider__item.swiper-slide-active .blog-slider__content>*:nth-child(6) {
  transition-delay: 0.8s;
}

.blog-slider__item.swiper-slide-active .blog-slider__content>*:nth-child(7) {
  transition-delay: 0.9s;
}

.blog-slider__item.swiper-slide-active .blog-slider__content>*:nth-child(8) {
  transition-delay: 1s;
}

.blog-slider__item.swiper-slide-active .blog-slider__content>*:nth-child(9) {
  transition-delay: 1.1s;
}

.blog-slider__item.swiper-slide-active .blog-slider__content>*:nth-child(10) {
  transition-delay: 1.2s;
}

.blog-slider__item.swiper-slide-active .blog-slider__content>*:nth-child(11) {
  transition-delay: 1.3s;
}

.blog-slider__item.swiper-slide-active .blog-slider__content>*:nth-child(12) {
  transition-delay: 1.4s;
}

.blog-slider__item.swiper-slide-active .blog-slider__content>*:nth-child(13) {
  transition-delay: 1.5s;
}

.blog-slider__item.swiper-slide-active .blog-slider__content>*:nth-child(14) {
  transition-delay: 1.6s;
}

.blog-slider__item.swiper-slide-active .blog-slider__content>*:nth-child(15) {
  transition-delay: 1.7s;
}

.blog-slider__img {
  width: 300px;
  flex-shrink: 0;
  height: 300px;
  box-shadow: 4px 13px 30px 1px rgba(187, 132, 204, 0.25);
  border-radius: var(--glass-radius, 20px);
  transform: translateX(-80px);
  overflow: hidden;
  background-image: linear-gradient(147deg, rgba(84, 91, 98, 0.45), rgba(0, 0, 0, 0.8));
}

.blog-slider__img:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  opacity: 0.8;
}

.blog-slider__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  border-radius: 20px;
  transition: all 0.3s;
}

@media screen and (max-width: 768px) {
  .blog-slider__img {
    transform: translateY(-50%);
    width: 90%;
  }
}

@media screen and (max-width: 576px) {
  .blog-slider__img {
    width: 95%;
  }
}

@media screen and (max-height: 500px) and (min-width: 992px) {
  .blog-slider__img {
    height: 270px;
  }
}

.blog-slider__content {
  padding-right: 25px;
}

@media screen and (max-width: 768px) {
  .blog-slider__content {
    margin-top: -80px;
    text-align: center;
    padding: 0 30px;
  }
}

@media screen and (max-width: 576px) {
  .blog-slider__content {
    padding: 0;
  }
}

.blog-slider__content>* {
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.4s;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 800px;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {
    transform: scale(0)
  }

  to {
    transform: scale(1)
  }
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

@media only screen and (max-width: 700px) {
  .modal-content {
    width: 100%;
  }
}


/*Hackathon Name */

.blog-slider__title {
  font-size: 24px;
  font-weight: 900;
  color: var(--head-col);
  margin-bottom: 20px;
}

/* Role in Hackathon   */

.blog-slider__code {
  color: var(--meta-col);
  margin-bottom: 20px;
  display: block;
  font-size: 17px;
  font-weight: 700;
}

/* Hackathon Description   */

.blog-slider__text {
  color: (var(--head-col));
  margin-bottom: 30px;
  line-height: 1.5em;
}

.blog-slider__button {
  display: inline-flex;
  background-image: linear-gradient(135deg, var(--accent), var(--accent-strong));
  padding: 15px 35px;
  border-radius: 50px;
  color: #fff;
  box-shadow: 0px 14px 80px rgba(162, 14, 181, 0.4);
  font-weight: 500;
  justify-content: center;
  text-align: center;
  letter-spacing: 1px;
}

.blog-slider__button:hover {
  color: white !important;
}

a:link {
  text-decoration: none !important;
}

@media screen and (max-width: 576px) {
  .blog-slider__button {
    width: 100%;
  }
}

.card2 {
  color: var(--text);
}

@media (max-width: 768px) {
  .mcard {
    margin-bottom: 12rem !important;
  }
}

/*Hackathon Section Ends*/
/*
----------------------------
       SVG ANIMATIONS 
----------------------------
*/
#tie {
  animation: tie 2s infinite ease-in-out;
  transform-origin: 50% 62%;
}

@keyframes tie {

  0%,
  100% {
    transform: rotate(0);
  }

  50% {
    transform: skew(-12deg) rotate(-6deg);
  }
}

/* Resume Modal Styles */
.resume-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.resume-modal .modal-content {
  background-color: var(--glass-surface-strong, #fff);
  margin: 5% auto;
  padding: 30px;
  border: 1px solid var(--glass-border-color, rgba(255, 255, 255, 0.1));
  border-radius: 20px;
  width: 80%;
  max-width: 900px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  animation: modalFadeIn 0.4s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html[data-theme="dark"] .resume-modal .modal-content {
  background-color: #1e1e24;
  /* Darker bg for modal in dark mode */
}

/* Button Resume Hover Effect */
.btn-resume:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
  filter: brightness(1.1);
}

@media (max-width: 768px) {
  .resume-modal .modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 15px;
  }

  .resume-preview {
    height: 400px !important;
  }
}