/* ==================== MAIN CSS INDEX ==================== */
/* 
 * This file imports all modular CSS files for the portfolio.
 * Organized by: Base → Components → Sections → Utilities
 * Total modules: 15+ files for better maintainability
 */

/* ==================== BASE ==================== */
@import url("./base/variables.css");
@import url("./base/reset.css");
@import url("./base/animations.css?v=4.1");

/* ==================== COMPONENTS ==================== */
@import url("./components/navigation.css?v=3.3");
@import url("./components/lightbox.css?v=4.0");
@import url("./components/theme-toggle.css?v=3.3");
@import url("./components/cursor.css");
@import url("./components/buttons.css");
@import url("./components/toast.css");

/* ==================== UTILITIES ==================== */
@import url("./utilities/loader.css");
@import url("./utilities/scrollbar.css");
@import url("./utilities/transitions.css?v=4.0");
@import url("./utilities/dark-theme.css");

/* ==================== MODULES ==================== */
@import url("./modules/skeleton.css");

/* ==================== SECTIONS ==================== */
@import url("./sections/hero.css?v=4.0");
@import url("./sections/about.css");
@import url("./sections/skills.css");
@import url("./sections/education.css");
@import url("./sections/publications.css?v=4.0");
@import url("./sections/projects.css");
@import url("./sections/testimonials.css");
@import url("./sections/awards.css?v=4.0");
@import url("./sections/experience.css");
@import url("./sections/video.css");
@import url("./sections/contact.css");
@import url("./sections/footer.css");

/* ==================== ADDITIONAL GLOBAL STYLES ==================== */

/* Section defaults - Flexible heights based on content */
section {
  /* Removed min-height: 100vh to prevent extra space */
  padding: 4rem 9%;
  scroll-margin-top: 6rem;
  /* Offset for fixed header when scrolling to anchors */
}

/* Section headings with proper spacing */
.heading {
  font-size: 3.5rem;
  color: var(--text-heading, rgb(32, 32, 32));
  font-weight: 800;
  text-align: center;
  padding-top: 2rem;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease-out;
  position: relative;
  display: inline-block;
  width: 100%;
}

/* Animated underline for headings */
.heading::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, #7303a7, #ff7b00);
  border-radius: 2px;
  animation: expandWidth 0.8s ease-out 0.3s forwards;
}

@keyframes expandWidth {
  to {
    width: 80px;
  }
}

/* Icon animation in headings */
.heading i {
  margin-right: 1rem;
  animation: iconBounce 2s ease-in-out infinite;
  display: inline-block;
}

@keyframes iconBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.heading span {
  background: linear-gradient(135deg, #7303a7, #ff7b00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Prevent text animation jitter */
.heading span[data-hacker-text],
.heading span[data-text] {
  display: inline-block;
  vertical-align: baseline;
  /* Prevent layout shift during text replacement */
  white-space: nowrap;
  /* Use fixed font properties to prevent size changes */
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

/* Make card images clickable */
.work .box-container .box .image,
.work .box-container .box .image-slider,
.award .box-container .box .image,
.award .box-container .box .image-slider,
.publications .box-container .box .image,
.publications .box-container .box .image-slider {
  cursor: pointer;
  position: relative;
}

.work .box-container .box .image::after,
.work .box-container .box .image-slider::after,
.award .box-container .box .image::after,
.award .box-container .box .image-slider::after {
  content: "\f065";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.work .box-container .box:hover .image::after,
.work .box-container .box:hover .image-slider::after,
.award .box-container .box:hover .image::after,
.award .box-container .box:hover .image-slider::after {
  opacity: 1;
}

/* View More 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);
}

/* ==================== GLOBAL MEDIA QUERIES ==================== */

/* Large tablets and small laptops */
@media (max-width: 1200px) {
  section {
    padding: 4rem 6%;
  }

  .heading {
    font-size: 3rem;
  }
}

/* Tablets */
@media (max-width: 991px) {
  html {
    font-size: 58%;
  }

  section {
    padding: 3rem 5%;
  }

  .heading {
    font-size: 2.8rem;
    padding-top: 1.5rem;
    margin-bottom: 2.5rem;
  }
}

/* Small tablets and large phones */
@media (max-width: 768px) {
  html {
    font-size: 56%;
  }

  section {
    padding: 3rem 4%;
  }

  .heading {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }
}

/* Mobile phones */
@media (max-width: 450px) {
  html {
    font-size: 52%;
  }

  body {
    padding-right: 0;
  }

  section {
    padding: 2.5rem 3%;
  }

  .heading {
    font-size: 2.2rem;
    padding-top: 1rem;
    margin-bottom: 1.5rem;
  }
}

/* Very small screens */
@media (max-width: 320px) {
  html {
    font-size: 48%;
  }

  section {
    padding: 2rem;
  }
}