/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

p {
  color: rgb(85, 85, 85);
}

section{
  transition: all 0.4s ease;
}

section:hover{
  transform: translateY(-4px);
}
/* Focus effect only for content divs */

section div:not(.container):not(.row):not(.grid) {

  transition: 
  transform .35s ease,
  box-shadow .35s ease;

}

section div:not(.container):not(.row):not(.grid):hover {

  transform: translateY(-3px);

}
.card,
.project-card,
.box,
div{
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover,
.project-card:hover,
.box:hover{
  transform: translateY(-8px) scale(1.02);

  box-shadow:
  0 10px 30px rgba(0,0,0,0.25);
}
button,
.btn{
  transition: all 0.3s ease;
}

button:hover,
.btn:hover{
  transform: translateY(-2px);
  box-shadow:0 8px 20px rgba(0,0,0,0.25);
}
img{
  transition: transform 0.4s ease;
}

img:hover{
  transform: scale(1.04);
}
body{
  cursor: default;
}

a,button{
  cursor: pointer;
}


/* TRANSITION */

a,
.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 11vh;
  background-color:#ddd;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

a {
  color: black;
  text-decoration: none;
  text-decoration-color: white;
   font-weight: bold;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgb(181, 181, 181);

  background: linear-gradient(
    270deg,
    #00c6ff,
    #7f00ff
  );

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
}


.logo {
  display: inline-block;           /* ✅ MOST IMPORTANT FIX */
  cursor: pointer;

  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 2rem;
  font-weight: 700;

  background: linear-gradient(
    270deg,
  #ff0400,
  #2bff0f,
  #fe1bfa,
  #4315fb
  );
  background-size: 600% 600%;

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;

  animation: autoGradient 5s linear infinite;
}

/* Only glow on hover (NO animation change) */
.logo:hover {
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.6))
          drop-shadow(0 0 22px rgba(255,78,205,0.8));
}

@keyframes autoGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* =========================
   HAMBURGER NAV (SMALL SCREEN ONLY)
========================= */

/* Hide by default (desktop & laptop) */
#hamburger-nav {
  display: none;
}

/* ===== Mobile View ===== */
@media screen and (max-width: 700px) {

  #hamburger-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
  }

  /* Hamburger container */
  .hamburger-menu {
    position: relative;
  }

  /* Icon */
  .hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
  }

  /* Lines with animated gradient */
  .hamburger-icon span {
    width: 100%;
    height: 3px;
    border-radius: 3px;

    background: linear-gradient(
      270deg,
      #00c6ff,
      #0072ff,
      #7f00ff,
      #00c6ff
    );
    background-size: 600% 600%;
    animation: burgerGradient 6s linear infinite;

    transition: transform 0.4s ease, opacity 0.3s ease;
  }

  /* Open animation */
  .hamburger-icon.open span:first-child {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .hamburger-icon.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Dropdown menu */
  .menu-links {
    position: absolute;
    top: 130%;
    right: 0;

    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);

    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);

    padding: 0.5rem 0;
    min-width: 180px;

    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    pointer-events: none;

    transition:
      opacity 0.35s ease,
      transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Open state */
  .menu-links.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  /* Menu items */
  .menu-links li {
    list-style: none;
  }

  .menu-links a {
    display: block;
    padding: 12px 26px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #222;
    text-decoration: none;

    transition: all 0.3s ease;
  }

  /* Hover effect */
  .menu-links a:hover {
    background: linear-gradient(
      270deg,
      #00c6ff,
      #7f00ff
    );
    color: white;
    transform: translateX(4px);
  }

  /* Optional: smoother tap on mobile */
  .hamburger-icon,
  .menu-links a {
    -webkit-tap-highlight-color: transparent;
  }
}

/* Gradient animation (global, safe to keep outside) */
@keyframes burgerGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* SECTIONS */

section {
  padding-top: 4vh;
  height: 90vh;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
}

/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: 80vh;
}

.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;
}

.typing-holder {
  height: 3.5rem;        /* 🔒 LOCKS HEIGHT */
  align-items: center;   /* vertically center text */
}

#typing-name {
  white-space: nowrap;
}


.title {
  font-size: 3rem;
  text-align: center;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}


/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.icon.linkedin:hover {
  box-shadow: 0 0 35px rgba(0,119,181,.9);
  background-color: rgba(0,119,181,.9);
}

.icon.github:hover {
  box-shadow: 0 0 35px black;
  background-color: black;
}
.icon.twitter:hover {
  box-shadow: 0 0 35px rgb(0, 255, 255);
  background-color: rgb(0, 255, 255);
}

.icon.instagram:hover {
  box-shadow: 0 0 35px rgb(255, 0, 0);
  background-color: rgb(255, 0, 0);
}


/* BUTTONS */

.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 {
  border: rgb(58, 4, 253) 0.1rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
  
}

.btn-color-1{
  background: black;
  color: white;
}



.btn-color-2:hover,.btn-color-1:hover {
  background: linear-gradient(
   45deg,
  #ff7a18,
  #ffb347,
  #8e2de2,
  #4a00e0,
  #f46e0e
  );
}

.btn-color-2 {
  background: black;
  color: white;
}

.btn-color-2:hover {
  border: rgb(255, 255, 255) 0.1rem solid;
}

.btn-container {
  gap: 1rem;
}
/* Required */
.btn {
  position: relative;
  z-index: 0;
}

/* Glowing animated border */
.btn::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;

  width: calc(100% + 4px);
  height: calc(100% + 4px);

  border-radius: 2rem;
  z-index: -1;

  background: linear-gradient(
    45deg,
    #00c6ff,
    #7f00ff,
    #00ffd5,
    #002bff,
    #7a00ff,
    #00c6ff
  );

  background-size: 400%;
  filter: blur(8px);
  animation: btn-glow 22s linear infinite;
}

/* Inner background layer (keeps button clean) */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  border-radius: 2rem;
  z-index: -1;
}

/* Animation */
@keyframes btn-glow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 400% 50%; }
  100% { background-position: 0% 50%; }
}


/* ABOUT SECTION */

#about {
  position: relative;
}

.about-containers {
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
}

.about-containers,
.about-details-container {
  display: flex;
}

.about-pic {
  border-radius: 2rem;
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
}

.details-container {
  padding: 1.2rem;
  flex: 1;
  background: white;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border: rgb(58, 4, 253) 0.1rem solid;
  text-align: center;
}

.details-container button {
  margin-top: 1rem;
}

.section-container {
  gap: 4rem;
  height: 80%;
}

.section__pic-container {
  height: 400px;
  width: 400px;
  margin: auto 0;
}

/* EDUCATION CARD STYLES */
/* ────────────────────────────────────────────────
   EDUCATION DETAILS – Fully responsive horizontal scroll
   Safe – only targets education section
───────────────────────────────────────────────── */

#education-details .experience-details-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;

  padding: 1.5rem 0 1rem 0;   /* reduced from 2.8rem */

  scrollbar-width: thin;
  scrollbar-color: #999 #e5e5e5;
}

#education-details .experience-details-container::-webkit-scrollbar {
  height: 7px;
}

#education-details .experience-details-container::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}

#education-details .experience-details-container::-webkit-scrollbar-thumb {
  background: #aaa;
  border-radius: 10px;
}

#education-details .experience-details-container::-webkit-scrollbar-thumb:hover {
  background: #888;
}

/* Card container – force horizontal always */
#education-details .education-cards {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 1.6rem;
  min-width: max-content;
  padding: 0 1.6rem 0.8rem 1.6rem;
}

/* Card width – responsive steps */
#education-details .education-cards .details-container.color-container {
  flex: 0 0 380px;              /* desktop default */
  min-width: 340px;
  max-width: 420px;
  box-sizing: border-box;
  padding: 1rem;
}

/* ───── Tablet ───── */
@media (max-width: 1024px) {
  #education-details .education-cards .details-container.color-container {
    flex: 0 0 340px;
    min-width: 320px;
  }
}


.edu-logo {
  width: 260px;
  height: 170px;
  object-fit: contain;
  margin-bottom: 0.6rem;
}
.edu-line {
  margin: 0.25rem 0;
  font-size: .95rem;
}
.edu-btns { margin-top: 1rem; }

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
}
.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background: #fff;
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
}
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;

  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.5rem;
  font-weight: bold;

  color: #fff;
  background: linear-gradient(135deg, #ff4d4d, #d90429);
  border-radius: 50%;

  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.modal-close:hover {
  transform: scale(1.1) rotate(90deg);
  background: linear-gradient(135deg, #ff6b6b, #ef233c);
}

.modal-close:active {
  transform: scale(0.95);
}

#cert-image {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 0.5rem;
}

/* RESPONSIVE */
@media screen and (max-width: 1200px) {

  #education-details .education-cards{
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  #education-details .education-cards .details-container{
    width: 95%;
    max-width: 95%;
  }

}
@media screen and (max-width: 600px) {
  .edu-logo { width: 320px; height: 180px; }
  .edu-line { font-size: 0.9rem; }
}
@media screen and (max-width: 600px) {

  /* remove horizontal scroll */
  #education-details .experience-details-container{
    overflow-x: hidden;
  }

  /* stack cards vertically */
  #education-details .education-cards{
    flex-direction: column !important;
    flex-wrap: wrap !important;
    align-items: center;
    padding: 0 10px;        /* reduce side padding */
    min-width: 100%;        /* prevent overflow */
  }

  /* make card fit screen */
  #education-details .education-cards .details-container.color-container{
    width: 100%;
    max-width: 90%;
    min-width: auto;
    box-sizing: border-box;
  }

  /* smaller logo for mobile */
  .edu-logo{
    width: 220px;
    height: 150px;
  }

}
/*
 EXPERIENCE SECTION */

#experience {
  position: relative;
  
}

.experience-sub-title {
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
  
}

.experience-details-container {
  position: relative;
  overflow-x: auto;               /* ← enables horizontal scroll */
  -webkit-overflow-scrolling: touch;   /* smooth on iOS */
  padding-bottom: 1rem;           /* space for scrollbar */
  scrollbar-width: thin;          /* firefox */
  scrollbar-color: #888 #f1f1f1;
}

/* Hide scrollbar in WebKit browsers but keep functionality */
.experience-details-container::-webkit-scrollbar {
  height: 8px;
}

.experience-details-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.experience-details-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.experience-details-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}
/* Make sure cards stay in one row */
.experience-cards {
  display: flex;
  flex-wrap: nowrap;           /* ← very important! */
  gap: 2rem;
  min-width: max-content;      /* prevents shrinking below natural width */
  padding: 0 1rem 1rem 1rem;   /* breathing room inside scroller */
}


.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2.5rem;
  justify-content: space-around;
  
}
/* new code expeience in mobile screen boarder start*/ 
/* ─────────────────────────
   LARGE SCREEN
───────────────────────── */

@media (min-width:1800px){

.cert-slider-modal{
max-width:1100px;
}

.cert-slider-container{
height:72vh;
}

}

@media screen and (max-width: 700px) {
  /* Allow wrapping vertically */
  .experience-cards {
    flex-direction: column !important;
    flex-wrap: wrap !important;
    align-items: center;
    min-width: 100%;
    gap: 1rem;
  }

  /* Make each experience card fit mobile width */
  .experience-cards .details-container {
    width: 87%;
    max-width: 87%;
    box-sizing: border-box;
  }

  /* Stack the logo and info */
  .exp-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .exp-logo {
    width: 200px;
    height: auto;
  }

  .exp-info {
    width: 100%;
  }
}
@media screen and (max-width: 700px) {
  .experience-details-container {
    overflow-x: hidden;
  }
}


/* end */
article {
  display: flex;
  width: 10rem;
  justify-content: space-around;
  gap: 0.5rem;
}

article .icon {
  cursor: default;
}

/* Center the star section and make it clean */
.article-container article div {
  text-align: center;
}

/* Star base style */
.stars {
  position: relative;
  display: inline-block;
  font-size: 1.5rem; /* adjust star size */
  color: #ccc;       /* gray for unfilled stars */
  letter-spacing: 2px;
  margin-top: 5px;
}

/* 5 background gray stars */
.stars::before {
  content: "★★★★★";
  color: #ccc;
}

/* Overlay golden stars according to rating */
.stars::after {
  content: "★★★★★";
  position: absolute;
  top: 0;
  left: 0;
  width: calc(var(--rating, 0) * 20%);
  overflow: hidden;
  color: gold;
}

/* Rating values (1–5 stars) */
.stars[data-rating="1"] { --rating: 1; }
.stars[data-rating="2"] { --rating: 2; }
.stars[data-rating="3"] { --rating: 3; }
.stars[data-rating="4"] { --rating: 4; }
.stars[data-rating="5"] { --rating: 5; }

/* Give the parent a 3D perspective */
.article-container {
  perspective: 1000px;
}

/* Make all icons rotate like a globe */
.article-container .icon {
  width: 50px; /* adjust as needed */
  height: 50px;
  transform-style: preserve-3d;
  animation: earthRotate 6s linear infinite;
}
/* Stop rotation on hover */
.article-container .icon:hover {
  cursor: pointer;
  animation-play-state: paused;
}

/* Keyframes: smooth 360° rotation on Y-axis */
@keyframes earthRotate {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}



/* PROJECTS SECTION */

#projects {
  position: relative;
}

.color-container {
  border: rgb(58, 4, 253) 0.1rem solid;
  background: rgb(250, 250, 250);
}

.project-img {
  border-radius: 2rem;
  width: 90%;
  height: 90%;
}

.project-title {
  margin: 1rem;
  color: black;
}

.project-btn {
  color: white;
  border: rgb(58, 4, 253) 0.1rem solid;
}



/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  background: (250, 250, 250);
  margin: 2rem auto;
  padding: 0.5rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
}

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

/* ===== EXPERIENCE DETAILS CARD ===== */
.exp-card {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.exp-logo {
  width: 250px;
  height: 200px;
  object-fit: contain;
  border-radius: 1rem;
}
.exp-info { flex: 1; }
.experience-sub-title{
    color: black; font-size: bold;
}
.exp-company { margin: 0.4rem 0; font-size: 1.1rem; }
.exp-timeline { color: #555; font-style: italic; }


/* ===== SKILL BAR MODAL ===== */
.skill-modal-content {
  width: 92%;
  max-width: 520px;
  padding: 2rem;
  border-radius: 1.2rem;
  background: white;
  /* IMPORTANT */
  max-height: 80vh;
  overflow-y: auto;
  /* Smooth scrolling */
  scroll-behavior: smooth;
  /* Nice scrollbar */
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
}
/* PROFILE IMAGE */
.skill-modal-content::before{
  content:"";
  position:absolute;
  top:18px;
  right:18px;

  width:42px;
  height:42px;

  border-radius:50%;

  background-image:url("assets/p2.png");
  background-size:cover;
  background-position:center;

  border:2px solid white;

  box-shadow:0 4px 12px rgba(0,0,0,0.25);
}

/* GREEN ACTIVE DOT */
.skill-modal-content::after{
  content:"";

  position:absolute;

  top:46px;
  right:16px;

  width:12px;
  height:12px;

  background:#00ff5a;

  border-radius:50%;

  border:2px solid white;

  box-shadow:0 0 8px rgba(0,255,90,0.9);

  animation:activePulse 1.8s infinite;
}

/* PULSE ANIMATION */
@keyframes activePulse{

0%{box-shadow:0 0 0 0 rgba(0,255,90,0.8);}
70%{box-shadow:0 0 0 8px rgba(0,255,90,0);}
100%{box-shadow:0 0 0 0 rgba(0,255,90,0);}

}

/* Chrome / Edge scrollbar */

.skill-modal-content::-webkit-scrollbar {
  width: 8px;
}

.skill-modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.skill-modal-content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.skill-modal-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* FIX HEADER */

.skill-modal-content h3 {

  position: sticky;

  top: 0;

  background: white;

  z-index: 10;

  padding-bottom: 10px;

  border-bottom: 1px solid #eee;

}

/* SCROLLABLE SKILL AREA */

#skill-bars {

  overflow-y: auto;

  max-height: 60vh;

  padding-right: 6px;

  scroll-behavior: smooth;

}

/* Nice scrollbar */

#skill-bars::-webkit-scrollbar{
  width:8px;
}

#skill-bars::-webkit-scrollbar-track{
  background:#f1f1f1;
  border-radius:10px;
}

#skill-bars::-webkit-scrollbar-thumb{
  background:#888;
  border-radius:10px;
}

#skill-bars::-webkit-scrollbar-thumb:hover{
  background:#555;
}
.skill-bar span {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.skill-fill {
  height: 20px;
  background: linear-gradient(90deg, #3e3efa, #00c6ff);
  border-radius: 10px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.65, 0, 0.35, 1);
  position: relative;
  overflow: hidden;
}
.skill-fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Responsive */
@media screen and (max-width: 600px) {
  .exp-card { flex-direction: column; text-align: center; }
  .exp-logo { width: 320px; height: 150px; }
}
/* ---- Skill list with right arrow ---- */
.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 0.5rem;
}
.skill-item > div { flex: 1; }               /* bar container */
.skill-arrow {
  font-size: 1.4rem;
  color: var(--first-color);
  cursor: pointer;
  transition: transform .2s;
}
.skill-arrow:hover { transform: translateX(5px); }

/* ---- Certificate‑skill modal ---- */
#cert-skill-modal .modal-content {
  max-width: 90%;
  max-height: 90vh;
  padding: 1.5rem;
  text-align: center;
}
#cert-skill-modal img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: .6rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* Mobile – stack bar + arrow */
@media (max-width: 500px) {
  .skill-item { flex-direction: column; align-items: flex-start; }
  .skill-arrow { align-self: flex-end; }
}

/* ===== CONTACT FORM (TRULY RESPONSIVE) ===== */
.contact-form-container {
  width: 100%;
  max-width: 640px;

  margin-inline: auto;
  margin-top: clamp(1.5rem, 4vw, 3rem);

  padding: clamp(1.2rem, 4vw, 2.5rem);

  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-radius: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: clamp(0.8rem, 2.5vw, 1.3rem);
}

.form-group input,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;

  padding: clamp(0.75rem, 2.5vw, 1rem)
           clamp(1rem, 3vw, 1.3rem);

  border-radius: 0.8rem;
  border: 1px solid #ccc;

  font-family: "Poppins", sans-serif;
  font-size: clamp(0.9rem, 2.8vw, 1rem);

  background: rgba(255, 255, 255, 0.9);
}

.form-group textarea {
  resize: vertical;
}

#contact-form button {
  width: 100%;
  padding: clamp(0.85rem, 3vw, 1.05rem);
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
}

/* Mobile */
@media screen and (max-width: 600px) {
  #contact-form {
    gap: 1rem;
  }
}
/* ====================== SKILL PROGRESS BAR ====================== */
.skill-bar-track {
  width: 100%;
  height: 22px;
  background: #e0e0e0;
  border-radius: 11px;
  margin-top: 8px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skill-fill {
  height: 100% !important;        /* changed from fixed 20px */
  background: linear-gradient(90deg, #3e3efa, #00c6ff);
  border-radius: 11px;
  transition: width 1.2s cubic-bezier(0.65, 0, 0.35, 1);
  position: relative;
}

/* Name styling */
.skill-item > div span {
  display: block;
  font-weight: 600;
  color: #222;
  font-size: 1.05rem;
}

/* Make modal nicer on mobile */
@media screen and (max-width: 600px) {
  .skill-modal-content {
    width: 95% !important;
    max-width: none !important;
    padding: 1.5rem 1rem !important;
    margin: 10px;
  }

  .skill-bar-track {
    height: 18px;
  }
}
/* Mobile – stack bar + arrow */
@media (max-width: 600px) {
  .skill-item {
    flex-direction: column;
    align-items: stretch;     /* full width */
    gap: 0.8rem;
  }
  .skill-arrow {
    align-self: flex-end;
    font-size: 1.6rem;
  }
}

/* external certificates section */
/* ===== EXTERNAL CERTIFICATIONS CAROUSEL ===== */
.carousel-container {
  position: relative;
  max-width: 100%;
  margin: 2rem auto;
  overflow: hidden;
}

.carousel-wrapper {
  overflow: hidden;
  border-radius: 1rem;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 2rem;
  padding: 1rem 0;
}
/* Desktop - 3 items */
.carousel-item {
  flex: 0 0 calc(33.333% - 1.33rem);   /* ← CHANGED: flex instead of min-width */
  box-sizing: border-box;
}

/* Tablet - 2 items */
@media screen and (max-width: 1024px) {
  .carousel-item {
    flex: 0 0 calc(50% - 1rem);        /* ← CHANGED */
  }
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(62, 62, 250, 0.9);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.carousel-arrow:hover {
  background: #0c0cff;
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

/* Mobile - 1 item */
@media screen and (max-width: 600px) {
  .carousel-item {
    flex: 0 0 90%;                      /* ← CHANGED */
  }
  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  .carousel-prev { left: 5px; }
  .carousel-next { right: 5px; }
}


/* ===== REALISTIC BOOK POPUP ===== */
.book-modal-content {
  display: flex;
  flex-direction: column;
  max-width: 98vw;
  max-height: 95vh;
  background: #f0f0f0;
  border-radius: 1.5rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  overflow: hidden;
}

.certs-fixed-header {
  background: white;
  padding: 2rem;
  text-align: center;
  border-bottom: 2px solid #ddd;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.certs-book-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  width: 52px;
  height: 52px;
  font-size: 2.2rem;
  background: linear-gradient(135deg, #ff4d4d, #d90429);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.st-book-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background: linear-gradient(to bottom, #e0e0e0, #f8f8f8);
}

.st-book {
  width: 90%;
  max-width: 900px;
  height: 80vh;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

/* Page Number Style (Library adds it, we style) */
.st-page-number {
  position: absolute;
  bottom: 20px;
  font-size: 1rem;
  color: #555;
}

.st-page-number-left {
  left: 30px;
}

.st-page-number-right {
  right: 30px;
}

/* Mobile */
@media screen and (max-width: 600px) {
  .st-book {
    height: 70vh;
  }
  
  .st-book-container {
    padding: 1rem;
  }
}
/* ────────────────────────────────────────
   CERTIFICATE IMAGE SLIDER MODAL
   Ultra Stylish + Fully Responsive
───────────────────────────────────────── */

.cert-slider-modal {
  width: 92vw;
  max-width: 720px;
  max-height: 92vh;
  padding: 1.8rem 2rem 2rem;
  background: white;
  backdrop-filter: blur(14px);
  border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow:
  0 25px 60px rgba(0,0,0,0.45),
  0 0 30px rgba(0,140,255,0.25);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  animation: modalFade 0.5s ease;
}

/* MODAL FADE */

@keyframes modalFade{
  from{
    opacity:0;
    transform:translateY(30px) scale(.96);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}
/* Profile Image */

.cert-slider-modal::before{

  content:"";

  position:absolute;

  top:18px;
  left:18px;

  width:42px;
  height:42px;

  border-radius:50%;

  background-image:url("assets/p2.png");

  background-size:cover;
  background-position:center;

  border:2px solid white;

  box-shadow:0 4px 12px rgba(0,0,0,0.25);

}

/* Green Active Dot */

.cert-slider-modal::after{

  content:"";

  position:absolute;

  top:46px;
  left:44px;

  width:12px;
  height:12px;

  background:#00ff5a;

  border-radius:50%;

  border:2px solid white;

  box-shadow:0 0 8px rgba(0,255,90,0.9);

  animation:activePulse 1.8s infinite;

}

/* Pulse Animation */

@keyframes activePulse{

0%{box-shadow:0 0 0 0 rgba(0,255,90,0.8);}
70%{box-shadow:0 0 0 8px rgba(0,255,90,0);}
100%{box-shadow:0 0 0 0 rgba(0,255,90,0);}

}

/* CLOSE BUTTON */

.cert-slider-modal .btn-close,
.modal-close {

  position: sticky;
  top: 10px;
  right: 10px;

  align-self: flex-end;

  z-index: 100;

  background: linear-gradient(135deg,#ff4d4d,#f61212);

  color:white;

  border-radius: 50%;

  padding: 8px;

  width:30px;
  height:30px;

  display:flex;
  align-items:center;
  justify-content:center;

  cursor:pointer;

  transition: all .3s ease;

  box-shadow:0 5px 15px rgba(0,0,0,.4);
}

.modal-close:hover{
  transform:scale(1.15) rotate(90deg);
  background:linear-gradient(135deg,#ff0000,#f6f5f5);
}

/* IMAGE SLIDER CONTAINER */

.cert-slider-container {

  position: relative;

  width: 100%;
  height: 70vh;

  overflow: hidden;

  border-radius: 1.8rem;

  background: linear-gradient(145deg,#0a0a0a,#1a1a1a);

  box-shadow:
  inset 0 0 30px rgba(0,0,0,0.8),
  0 10px 40px rgba(0,0,0,0.5);

}

/* SLIDER TRACK */

.cert-slider-track {

  display: flex;
  height: 100%;

  transition: transform .65s cubic-bezier(.25,.8,.25,1);
}

/* IMAGES */

.cert-slider-track img {

  flex: 0 0 100%;

  width:100%;
  height:100%;

  object-fit:contain;

  background:#000;

  pointer-events:none;
  user-select:none;

  transition: transform .6s ease;
}

/* IMAGE ZOOM EFFECT */

.cert-slider-container:hover img{
  transform: scale(1.05);
}

/* ARROW BUTTONS */

.slider-arrow{

  position:absolute;
  top:50%;

  transform:translateY(-50%);

  width:64px;
  height:64px;

  background:linear-gradient(135deg,#0f2027,#203a43,#2c5364);

  color:white;

  border:none;

  border-radius:50%;

  font-size:2.3rem;

  cursor:pointer;

  z-index:10;

  display:flex;
  align-items:center;
  justify-content:center;

  backdrop-filter:blur(6px);

  box-shadow:
  0 8px 25px rgba(0,0,0,.45),
  inset 0 0 12px rgba(255,255,255,.15);

  transition:all .3s ease;
}

/* ARROW HOVER */

.slider-arrow:hover{

  transform:translateY(-50%) scale(1.18);

  background:linear-gradient(135deg,#00c6ff,#0072ff);

  box-shadow:
  0 10px 30px rgba(0,120,255,.6);
}

.slider-prev{
  left:14px;
}

.slider-next{
  right:14px;
}

/* DISABLED */

.slider-arrow:disabled{
  opacity:.35;
  cursor:not-allowed;
  transform:translateY(-50%) scale(1);
}

/* ─────────────────────────
   TABLET
───────────────────────── */

@media (max-width:992px){

.cert-slider-container{
height:60vh;
}

.slider-arrow{
width:55px;
height:55px;
font-size:2rem;
}

}

/* ─────────────────────────
   MOBILE
───────────────────────── */

@media (max-width:768px){

.cert-slider-modal{
padding:1rem 1.2rem 1.5rem;
width:95vw;
}

.cert-slider-container{
height:50vh;
}

.slider-arrow{
width:46px;
height:46px;
font-size:1.7rem;
}

.slider-prev{
left:6px;
}

.slider-next{
right:6px;
}

}

/* ─────────────────────────
   SMALL MOBILE
───────────────────────── */

@media (max-width:480px){

.cert-slider-container{
height:42vh;
}

.slider-arrow{
width:40px;
height:40px;
font-size:1.5rem;
}

}

/* ─────────────────────────
   LARGE SCREEN
───────────────────────── */

@media (min-width:1800px){

.cert-slider-modal{
max-width:1100px;
}

.cert-slider-container{
height:72vh;
}

}


