/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&display=swap");

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 12vh;
}

p {
  color: rgb(85, 85, 85);
}

/* TRANSITION */

a,
.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

nav,
.nav-links {
  display: flex;
}

nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
  height: 11vh;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
nav {
  background: linear-gradient(120deg, #2c8ae9, rgb(119, 206, 233), #2c78c5);
  background-size: 200% 200%;
  animation: gradientMove 15s ease infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

nav a {
  color: white; /* Initial color of links */
  text-decoration: none;
  transition: color 300ms ease;
}
nav a.active {
  color: #ffcc00;
  font-weight: 600;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
  position: relative;
  overflow: hidden;
}

.nav-links a {
  position: relative;
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 5px;
  display: inline-block;
  transition: all 0.3s ease;
  perspective: 1000px;
}
.nav-links a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ffcc00;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nav-links a:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* 3D Hover Effect */
.nav-links a:hover {
  transform: translateZ(50px) scale(1.05);
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Active State */
.nav-links a.active {
  color: #ffcc00;
  font-weight: 700;
}

a {
  color: white;
  text-decoration: none;
  text-decoration-color: white;
}

a:hover {
  color: #ffcc00;
  text-decoration: none;
}

.logo {
  font-size: 2.5rem;
  font-family: "Cinzel", serif;
  font-weight: 600;
  color: #25476a;
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 24px;
  width: 30px;
  cursor: pointer;
  gap: 5px;
}

.hamburger-icon span {
  width: 28px;
  height: 3px;
  background-color: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 2px;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  width: 200px;
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  transition: all 0.3s ease-in-out;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.menu-links.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: black;
  text-decoration: none;
  transition: all 0.3 ease-in-out;
}
.menu-links a:hover {
  background-color: #f2f2f2;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 430px;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}

/* SECTIONS */

section {
  padding-top: 4vh;
  /* height: 96vh; */
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
}
/* transition and effect */
.typing-line {
  font-size: 1.25rem;
  color: #444;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

#greeting-loop {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
  transition: opacity 0.5s ease-in-out;
}

/* PROFILE SECTION */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

.floating-image {
  animation: float 4s ease-in-out infinite;
}
/* Hover tilt effect */
.floating-image:hover {
  transform: translateY(-10px) rotateY(8deg) rotateX(4deg);
}

#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: 80vh;
}
#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: 80vh;
  margin: 0;
  background-image: url("./assets/background.png"); /* Change this path to the correct path of your image */
  background-size: cover;
  background-position: center;
  position: relative; /* Required for the ::before overlay to work */
  z-index: 0;
}
#profile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(
    255,
    255,
    255,
    0.7
  ); /* Adjust the opacity (0.0 to 1.0) as needed */
  z-index: 1; /* Layer the overlay above the background */
}
#profile > * {
  position: relative;
  z-index: 2; /* Layer the content above the overlay */
}

.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
}

.section__text {
  align-self: center;
  text-align: center;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.title {
  font-size: 3rem;
  text-align: center;
  color: #246eb9;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
}

/* BUTTONS */
.btn-primary {
  border-radius: 3rem !important;
  padding: 0.6rem 1.2rem !important;
  min-width: 160px; /* or use width: 100% for full-width buttons */
  text-align: center;
}
.btn-secondary {
  padding: 0.6rem 1.2rem !important;
  border-radius: 3rem !important;
  min-width: 160px;
  text-align: center;
}
.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
}
.btn-color-1,
.btn-color-2 {
  /* padding: 0.6rem 2rem !important; */
  /* wider horizontally */
  border-radius: 3rem !important; /* pill shape */
  font-weight: 600;
  min-width: 160px; /* consistent width */
  text-align: center;
}
.btn-color-1:hover,
.btn-color-2:hover {
  box-shadow: 0 8px 20px rgba(36, 110, 185, 0.2);
  transform: scale(1.02);
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
  background: rgb(36, 110, 185);
  color: white;
}

.btn-color-1:hover {
  background: rgb(18, 49, 98);
  color: white;
}

.btn-color-2 {
  background: white;
  padding: 3px;
}

.btn-color-2:hover {
  border: rgb(255, 255, 255) 0.1rem solid;
}

.btn-container {
  gap: 1rem;
}
#socials-container a .fa-brands {
  font-size: 38px;
  color: #246eb9;
}
#socials-container a .fa-brands:hover {
  font-size: 38px;
  color: #0c3f72;
}

/* ABOUT SECTION */
#about {
  margin-bottom: 4rem;
}

.about-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 2rem;
}

.about-image img {
  border-radius: 1.5rem;
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
}

.about-content {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 60px;
}

.about-description {
  max-width: 700px;
  margin: 1.5rem auto 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #444;
}

.about-info-cards {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 30px;
}

.about-card i {
  background-color: #e6f0fb;
  color: #246eb9;
  border-radius: 50%;
  padding: 0.8rem;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.about-card:hover {
  transform: translateY(-5px);
}
.about-card:hover i {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.about-card i {
  font-size: 1.8rem;
  color: #246eb9;
  margin-bottom: 0.5rem;
}
.about-facts-card {
  background-color: #f7fafd;
  border: 1px solid #dceaf7;
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  margin-top: 1.5rem;
  text-align: left;
  max-width: 650px;
  width: 100%;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.03);
}

.about-facts-card h4 {
  text-align: center;
  margin-bottom: 1rem;
  color: #246eb9;
  font-size: 1.2rem;
  font-weight: 600;
}

.about-facts-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-facts-card li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: #333;
  line-height: 1.5;
}

.about-facts-card i {
  font-size: 1.25rem;
  color: #246eb9;
  width: 24px;
  text-align: center;
}
.btn-toggle-facts {
  background: none;
  border: none;
  color: #246eb9;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  margin: 1.5rem auto 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.btn-toggle-facts:hover {
  color: #174a8c;
}

.about-facts-card {
  background-color: #f7fafd;
  border: 1px solid #dceaf7;
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  margin-top: 1.25rem;
  text-align: left;
  max-width: 650px;
  width: 100%;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.03);
  animation: fadeSlide 0.4s ease;
}

.about-facts-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-facts-card li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: #333;
  line-height: 1.5;
}

.about-facts-card i {
  font-size: 1.25rem;
  color: #246eb9;
  width: 24px;
  text-align: center;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 768px) {
  .about-layout {
    flex-direction: column;
    align-items: center;
    padding: 0 1.5rem;
  }

  .about-description {
    font-size: 1rem;
    margin-bottom: 2rem;
    text-align: center;
  }

  .about-info-cards {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    width: 100%;
  }

  .about-card {
    width: 100%;
    max-width: 320px;
    padding: 1.5rem;
  }

  .about-card i {
    font-size: 1.5rem;
    padding: 0.6rem;
    margin-bottom: 0.6rem;
  }
}

#experience {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.experience-sub-title {
  color: #374151;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.experience-details-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.experience-category {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease forwards;
}

.experience-category::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--category-color, #667eea) 0%,
    var(--category-color-light, #764ba2) 100%
  );
}

.experience-category:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Category Color Variables */
.experience-category:nth-child(1) {
  --category-color: #3b82f6;
  --category-color-light: #60a5fa;
}
.experience-category:nth-child(2) {
  --category-color: #8b5cf6;
  --category-color-light: #a78bfa;
}
.experience-category:nth-child(3) {
  --category-color: #ec4899;
  --category-color-light: #f472b6;
}
.experience-category:nth-child(4) {
  --category-color: #06b6d4;
  --category-color-light: #22d3ee;
}
.experience-category:nth-child(5) {
  --category-color: #f59e0b;
  --category-color-light: #fbbf24;
}

.experience-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.25rem;
  color: #111827;
  margin-bottom: 1.5rem;
}

.experience-title i {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--category-color),
    var(--category-color-light)
  );
  color: white;
  border-radius: 8px;
  font-size: 14px;
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Modern Skill Badge Design */
.skill-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-size: 17px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #374151;
  transition: all 0.2s ease;
  cursor: default;
  position: relative;
}

.skill-badge:hover {
  background: var(--category-color);
  color: white;
  border-color: var(--category-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.skill-badge i {
  font-size: 16px;
  opacity: 0.8;
}

/* Remove old badge-specific colors */
.frontend-badge,
.backend-badge,
.programming-badge,
.ai-badge,
.data-badge {
  /* Colors now handled by CSS variables above */
}

/* Animation delays for staggered entrance */
.experience-category:nth-child(1) {
  animation-delay: 0.1s;
}
.experience-category:nth-child(2) {
  animation-delay: 0.2s;
}
.experience-category:nth-child(3) {
  animation-delay: 0.3s;
}
.experience-category:nth-child(4) {
  animation-delay: 0.4s;
}
.experience-category:nth-child(5) {
  animation-delay: 0.5s;
}

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

/* Remove old styles */
.article-container,
article {
  display: none; /* Hide if you have these elements */
}

/* Responsive Design */
@media (max-width: 768px) {
  .experience-sub-title {
    font-size: 2rem;
  }

  .experience-details-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .experience-category {
    padding: 1.5rem;
  }

  .experience-title {
    font-size: 1.1rem;
  }

  .skill-badge {
    font-size: 17px;
    padding: 0.4rem 0.8rem;
  }
}
/* PROJECTS SECTION */

#projects {
  position: relative;
  margin-bottom: 4rem;
}
.view-more-btn {
  background-color: #246eb9;
  color: white;
  border: none;
  border-radius: 12px; /* More square */
  padding: 1rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Darker shadow */
}

.view-more-btn:hover {
  background-color: #1d5fa0;
  transform: translateY(-2px);
}

.view-more-btn i {
  transition: transform 0.3s ease;
}

.view-more-btn.rotated i {
  transform: rotate(180deg);
}

.color-container {
  border-color: rgb(163, 163, 163);
  background: rgb(250, 250, 250);
}

.project-img {
  border-radius: 2rem;
  width: 90%;
  height: 90%;
}

.project-title {
  margin: 1rem;
  color: black;
}

.project-btn {
  color: black;
  border-color: rgb(163, 163, 163);
}
.project-description {
  margin: 10px 0;
  font-size: 1.2rem;
  color: #333;
  text-align: left;
}

.project-objectives,
.project-team-members {
  list-style-type: none;
  padding-left: 20px;
  text-align: left;
  font-size: 1.1rem;
}

.project-objectives li:before,
.project-team-members li:before {
  content: "•";
  color: #246eb9;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}
/* Project Cards 3D Hover Effect */
.project-card {
  perspective: 1000px;
  transition: all 0.5s ease;
}

.project-card .card {
  position: relative;
  transition: all 0.5s ease;
  transform-style: preserve-3d;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.project-card:hover .card {
  transform: rotateX(5deg) rotateY(-5deg) translateZ(30px) scale(1.03);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-card .card-img-top {
  transition: transform 0.5s ease;
}

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

.project-card .card-body {
  transition: all 0.5s ease;
}

.project-card:hover .card-body {
  transform: translateZ(20px);
}

.project-card .btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.project-card .btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: all 0.5s ease;
}

.project-card:hover .btn::before {
  left: 100%;
}

/* Subtle Glow Effect */
.project-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .project-card:hover .card {
    transform: none;
  }
  .project-card:hover .card {
    transform: none;
    box-shadow: none;
  }
  .project-card:hover .card-body {
    transform: none;
  }
}
/*ESN */
#esn {
  margin-top: 4rem;
  padding: 4vh 10rem; /* Adjust padding as needed */
  background-color: #f2f2f2;
  border: 2px solid rgba(0, 0, 0, 0.096);
  border-radius: 1rem;
  /* Change the background color as per your design */
  /* Other styles */
}

.esn-logo {
  border-radius: 2rem;
  width: 50%;
  height: 90%;
  margin: 0 auto;
  display: block;
  margin-bottom: 20px;
}
.esn-evolution {
  margin-top: 2em; /* Add space above the evolution section */
}

.subtitle {
  font-size: 2.2rem; /* Adjust font size as needed */
  color: #246eb9; /* ESN theme color or other color of your choice */
  margin-bottom: 1rem; /* Space below the subtitle */
}

.evolution-description {
  font-size: 1.2rem; /* Adjust font size as needed */
  line-height: 1.6; /* Adjust line height for readability */
  color: #333; /* Dark color for text for readability */
  /* Add other styles as needed */
}
/* Internship */
.kpmg-logo {
  max-width: 180px;
  margin: 1rem auto;
  display: block;
}
.internship-kpmg {
  padding: 4rem 2rem;
  background: #fff;
}

.internship-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
  justify-content: space-between;
}

.internship-text {
  flex: 1;
  min-width: 300px;
  max-width: 700px;
}

.internship-text h3,
.internship-text h4 {
  margin-top: 1.5rem;
  color: #111;
}

.internship-text p {
  margin: 1rem 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
}

.internship-docs {
  list-style: none;
  padding: 0;
}

.internship-docs li {
  margin-bottom: 0.5rem;
}

.internship-docs a {
  text-decoration: none;
  color: #1a73e8;
  font-weight: 500;
}

.internship-logo {
  flex: 1;
  text-align: center;
}

.internship-logo img {
  max-width: 360px;
  width: 100%;
  height: auto;
}

.details-container-profile {
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}
.document-section {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem auto; /* centers the whole block */
  text-align: center;
  max-width: 1100px; /* prevent it from stretching too far */
  padding: 0 1rem; /* nice spacing on mobile */
}

.document-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background-color: #f9f9f9;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.document-card:hover {
  transform: translateY(-8px) scale(1.02);
  background-color: #eef6ff;
  box-shadow: 0 12px 28px rgba(36, 110, 185, 0.15);
}

.document-card img {
  width: 80px;
  height: auto;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

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

.document-card h4 {
  font-size: 1.1rem;
  color: #1f2d3d;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.document-card p {
  color: #555;
  font-size: 0.95rem;
}

@media screen and (max-width: 768px) {
  .document-section {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }

  .document-card {
    width: 100%;
    max-width: 320px;
    padding: 1.2rem;
  }

  .document-card img {
    width: 70px;
    margin-bottom: 0.8rem;
  }

  .document-card h4 {
    font-size: 1rem;
  }

  .document-card p {
    font-size: 0.9rem;
  }
  .internship-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .internship-logo {
    order: -1; /* logo appears above text */
    margin-bottom: 1rem;
  }

  .internship-logo img {
    max-width: 180px;
    margin: 0 auto;
  }

  .internship-text {
    padding: 0 1rem;
  }

  .internship-docs {
    padding-left: 0;
    text-align: center;
  }

  .internship-docs li {
    margin-bottom: 0.75rem;
  }
}

/* Internship and Achievements Section Styling */
.details-container {
  display: flex;
  position: relative;
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 4px 15px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.details-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1), 0 5px 20px rgba(0, 0, 0, 0.05);
}

.details-content {
  flex-grow: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #e6f0fb;
}
.project-description {
  max-width: 800px;
}

.highlight-title {
  color: #2c8ae9;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 33px;
  position: relative;
}

.document-cards {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.document-card {
  background-color: #e6f0fb;
  border: 1px solid #2c8ae9;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  cursor: pointer;
  text-align: center;
  flex: 1;
  min-width: 150px;
  transition: all 0.3s ease;
}

.document-card:hover {
  background-color: #3e90d8;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.document-card h5 {
  margin: 0;
  color: #2c8ae9;
  font-weight: 600;
}

@keyframes docFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Under Construction Section */
.certificate-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #0072bb;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  width: fit-content;
}

.certificate-btn:hover {
  background-color: #005fa3;
  transform: translateY(-2px);
  text-decoration: none;
}

.certificate-btn i {
  font-size: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .details-container {
    flex-direction: column;
  }

  .icon-box {
    width: 100%;
    padding: 1rem;
    justify-content: center;
  }
}
.carousel-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-top: 2rem;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  width: 100%;
}

.carousel-slide {
  flex: 0 0 100vw;
  box-sizing: border-box;
  padding: 0 1rem; /* simulate gap */
}
.carousel-dots {
  text-align: center;
  margin-top: 1rem;
}

.carousel-dots .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-dots .dot.active {
  background-color: #2c8ae9;
}

.logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  height: auto;
  min-height: 250px; /* ✅ Ensure space is large enough */
  padding: 2rem;
  flex: 0 0 280px; /* ✅ Force logo column to be wide enough */
}

.logo-box img {
  max-width: 80%;
  max-height: 150px; /* ✅ Boost logo height cap */
  width: auto;
  height: auto;
  object-fit: contain;
}
@media (max-width: 768px) {
  .carousel-track {
    flex-direction: column;
    transform: none !important; /* prevent transform issues */
  }
  .carousel-slide {
    flex: 0 0 auto;
  }
}
@keyframes slideCarousel {
  0%,
  20% {
    transform: translateX(0%);
  }
  30%,
  50% {
    transform: translateX(-100%);
  }
  60%,
  100% {
    transform: translateX(0%);
  }
}

/* Adjust on small screens */
@media (max-width: 768px) {
  .carousel-track {
    flex-direction: column;
    animation: none;
  }
  .carousel-slide {
    flex: 0 0 auto;
  }
}

/* CONTACT */
#contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6rem 1rem;
}

.section__text__p1 {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.title {
  font-size: 2.5rem;
  color: #246eb9;
  margin-bottom: 2rem;
}

.contact-card {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 90%;
  max-width: 500px;
}

.contact-button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.2rem;
  border-radius: 0.8rem;
  font-size: 1rem;
  text-decoration: none;
  color: #fff;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-button i {
  font-size: 1.3rem;
}

.contact-button.email {
  background-color: #246eb9;
}

.contact-button.linkedin {
  background-color: #0077b5;
}

.contact-button:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

@media screen and (max-width: 600px) {
  .title {
    font-size: 2rem;
  }
  .contact-button {
    width: 100%;
    justify-content: center;
  }
}

/* project  */
.project-card {
  margin-bottom: 20px;
}
.project-card img {
  height: 250px;
  object-fit: cover;
}
.project-modal-image {
  max-height: 350px;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.project-description {
  font-size: 20px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 15px;
}

.project-meta h6 {
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

.project-goals {
  padding-left: 20px;
  font-size: 20px;
}

.modal-body {
  padding: 20px;
}
#esn ul {
  padding-left: 1.2rem;
  list-style-type: disc;
  color: #444;
}

#esn li {
  margin-bottom: 8px;
}

#esn img.shadow {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
/* Timeline Adjustments */
.timeline {
  position: relative;
  margin: 2rem auto;
  padding-left: 30px;
  max-width: 700px;
  border-left: 3px solid #246eb9;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-dot {
  position: absolute;
  top: 0;
  left: -43px;
  width: 20px;
  height: 20px;
  background-color: #246eb9;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 3px #246eb9;
}

.timeline-content {
  background: #f9f9f9;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .project-modal-image {
    max-height: 250px;
    margin-bottom: 15px;
  }
}
/* FOOTER SECTION */

footer {
  height: 11vh;
  margin: 0 1rem;
}

footer p {
  text-align: center;
}
