*, *::before, *::after { box-sizing: border-box; }

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: #1d1c23;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #232323;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

/* Hero Background */
.hero-bg {
  position: fixed;
  top: 0;
  left: 50%;
  width: 100vw;
  min-width: 100%;
  height: 110vh;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg svg { position: absolute; opacity: 0.32; will-change: d,transform,opacity; filter: blur(1px); z-index: 0; }
#blob1 { width: 700px; left: -180px; top: -100px; }
#blob2 { width: 600px; right: -180px; top: 50px; }
.hero-bg .dots {
  position: absolute;
  left: 0; top: 0;
  width: 100vw;
  min-width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}
.hero-bg .dot { position: absolute; width: 30px; height: 30px; border-radius: 50%; pointer-events: none; filter: blur(2px); }

/* Hamburger Navigation */
nav {
  width: 100%;
  max-width: 100vw;
  position: sticky;
  top: 0; left: 0;
  background: rgba(36,36,62,0.92);
  box-shadow: 0 2px 24px rgba(44,62,80,0.12);
  z-index: 20;
  backdrop-filter: blur(8px);
  border-bottom: 2.5px solid #f4a26131;
}
.nav-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  height: 56px;
  position: relative;
}
.nav-brand {
  font-weight: 900;
  font-size: 1.04rem;
  color: #ff9966;
  letter-spacing: 2px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 3.5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 22;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}
nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  transition: right 0.27s cubic-bezier(.63,.19,.45,.96);
}
nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.01rem;
  padding: 9px 14px;
  border-radius: 7px;
  transition: background 0.25s, color 0.18s, transform 0.18s;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 1.1px;
  position: relative;
}
nav a.active, nav a:hover {
  color: #fff;
  background: linear-gradient(90deg, #ff5e62 0%, #8f5cf7 100%);
  box-shadow: 0 4px 18px #ff996622;
  transform: translateY(-2px) scale(1.12);
}

/* Mobile Nav */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  nav ul {
    position: fixed;
    top: 0;
    right: -100vw;
    height: 100vh;
    width: 74vw;
    max-width: 260px;
    background: rgba(36,36,62, 0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 60px 0 0 18px;
    gap: 16px;
    z-index: 21;
    box-shadow: -2px 0 25px #0008;
    font-size: 0.97rem;
    overflow-y: auto;
  }
  nav ul.open { right: 0; }
  .nav-toggle.open span:nth-child(1) { transform: rotate(41deg) translateY(6px);}
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-41deg) translateY(-6px);}
}

@media (max-width: 700px) {
  .main-container { padding: 0 4px; }
  .nav-container { padding: 0 4px; height: 50px; }
  nav ul {
    width: 96vw;
    max-width: 99vw;
    font-size: 0.93rem;
    padding: 46px 0 0 10px;
  }
}

/* HERO, Section, Cards, Carousel -- as in previous code, unchanged but responsive! */
.hero { background: transparent; color: #fff; min-height: 470px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 120px 10px 60px; border-radius: 0 0 40px 40px; width: 100%; position: relative; z-index: 2;}
.hero-content { max-width: 900px; margin: 0 auto; z-index: 2; }
.hero h1 { font-size: 2.7rem; letter-spacing: 2px; font-weight: 900; margin-bottom: 20px; word-break: break-word; color: #fff;
  background: linear-gradient(90deg,#8f5cf7 20%,#e056fd 55%,#f4a261 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: fadeInDown 1.6s cubic-bezier(0.55,0,0.1,1) 0.2s both;}
.hero h1 span { color: #ff9966; letter-spacing: 4px;}
.hero p { font-size: 1.15rem; opacity: 0.98; margin-top: 12px; color: #fff7; font-weight: 500; text-shadow: 0 2px 12px #4526a888; animation: fadeInUp 1.7s both; }
@keyframes fadeInDown { 0%{opacity:0;transform:translateY(-60px);} 100%{opacity:1;transform:translateY(0);} }
@keyframes fadeInUp { 0%{opacity:0;transform:translateY(50px);} 100%{opacity:1;transform:translateY(0);} }
.scroll-down { width: 28px; height: 36px; margin: 0 auto; margin-top: 60px; border-radius: 40px; border: 2.5px solid #fff; position: relative; animation: scrollDownAnim 1.1s infinite alternate;}
.scroll-down::after { content: ""; display: block; width: 9px; height: 9px; border-radius: 50%; background: #ff9966; position: absolute; left: 50%; top: 8px; transform: translateX(-50%); animation: scrollDotAnim 1.5s infinite alternate;}
@keyframes scrollDownAnim { 100% {transform: translateY(13px);} }
@keyframes scrollDotAnim { 100% {top: 22px;} }

.section { max-width: 1100px; width: 100%; margin: 54px auto; padding: 36px 0; border-radius: 24px; background: #fff; box-shadow: 0 2px 28px #8f5cf733, 0 2px 12px #0002; box-sizing: border-box; overflow-wrap: break-word; opacity: 0; transform: translateY(60px) scale(0.99); transition: opacity 0.85s cubic-bezier(0.6,0.1,0.2,1), transform 0.85s cubic-bezier(0.6,0.1,0.2,1); position: relative; z-index: 1;}
.section.visible { opacity: 1; transform: none; }
.section-title { font-size: 2.2rem; letter-spacing: 2px; color: #8f5cf7; text-transform: uppercase; margin-bottom: 30px; font-weight: 800; text-align: center; padding: 0 10px; position: relative; z-index: 1;}
.underline-animate::after { content: ""; display: block; width: 70px; height: 4px; background: linear-gradient(90deg, #f4a261 0%, #8f5cf7 100%); margin: 13px auto 0; border-radius: 3px; animation: underlineGrow 1.2s cubic-bezier(.8,0,.2,1);}
@keyframes underlineGrow { from {width: 0;} to {width: 70px;} }
.section-color1 { background: linear-gradient(120deg, #f4a26111 60%, #ff996623 100%);}
.section-color2 { background: linear-gradient(120deg, #8f5cf7 0%, #43e6fc 100%); color: #fff; box-shadow: 0 2px 48px #8f5cf733;}
.section-color3 { background: linear-gradient(120deg, #ff9966 0%, #f4a261 100%); color: #4526a8; }
.section-color4 { background: linear-gradient(120deg, #e056fd 0%, #8f5cf7 100%); color: #fff; }
.section-color5 { background: linear-gradient(120deg, #43e6fc 0%, #f4a261 100%); color: #fff; }
.section-white { background: #fff; color: #232323; }

.about-container { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; justify-content: center; padding: 0 8px;}
.profile-img { width: 124px; height: 124px; border-radius: 50%; object-fit: cover; box-shadow: 0 10px 36px #f4a26199, 0 2px 12px #0002; border: 5px solid #8f5cf7; margin-bottom: 18px; background: #fff; transition: transform .18s;}
.float-hover { transition: transform .17s, box-shadow .17s; }
.float-hover:hover { transform: translateY(-8px) scale(1.08) rotate(-2deg); box-shadow: 0 18px 36px #8f5cf755, 0 6px 18px #f4a26144;}
.about-content { max-width: 650px; }

/* Make About section text colorful and readable */
#about .about-content {
  color: #4526a8;
  background: linear-gradient(90deg, #8f5cf7 10%, #43e6fc 40%, #f4a261 75%, #ff9966 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(1px 1px 0 #fff9);
  font-weight: 600;
}

/* About section headings more bold and visible */
#about .about-content h3 {
  color: #e056fd;
  background: linear-gradient(90deg, #8f5cf7 30%, #f4a261 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  margin: 12px 0 5px;
  filter: drop-shadow(1px 1px 0 #fff7);
}

/* About section lists even more vibrant */
#about .about-content ul li {
  background: linear-gradient(90deg, #ff9966 0%, #8f5cf7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  margin-bottom: 2px;
  filter: drop-shadow(0 1px 0 #fff6);
}

.about-content ul { margin-left: 18px; margin-bottom: 7px;}
.about-content li { font-size: 1.06rem; margin-bottom: 2px;}

.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 18px; padding: 0 8px;}
.project-card { background: rgba(255,255,255,0.09); border-radius: 21px; box-shadow: 0 2px 32px #4526a833, 0 2px 12px #0002; padding: 23px 12px 13px 12px; display: flex; flex-direction: column; align-items: center; transition: transform .17s, box-shadow .17s; will-change: transform; perspective: 600px;}
.project-card h3 { color: #fff; margin-bottom: 7px; font-size: 1.25rem; font-weight: 700;}
.project-card img { width: 100%; max-width: 240px; margin-top: 12px; border-radius: 13px; box-shadow: 0 4px 20px #fff2, 0 2px 10px #0003;}
.project-card.tilt-hover:hover { transform: perspective(600px) rotateY(8deg) scale(1.08); box-shadow: 0 16px 48px #e056fd44, 0 8px 22px #43e6fc33;}

/* CERTIFICATE CAROUSEL */
.carousel-certificates-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 8px;
  gap: 0;
}

.carousel-cert-btn {
  background: #fff;
  border: none;
  font-size: 2.1rem;
  color: #f4a261;
  box-shadow: 0 2px 12px #f4a26133;
  border-radius: 50%;
  margin: 0 4px;
  cursor: pointer;
  padding: 2px 12px;
  transition: background 0.13s, color 0.13s;
  z-index: 5;
}

.carousel-cert-btn:focus,
.carousel-cert-btn:hover {
  background: #f4a261;
  color: #fff;
}

/* ✅ Fixed Carousel CSS */
.carousel-certificates {
  position: relative;
  width: 100%;
  max-width: 320px;
  min-height: 240px; /* Adjust this height as needed */
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 12px #8f5cf733;
}

.carousel-certificates img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease-in-out;
  object-fit: cover;
  border-radius: 10px;
  background: #fff;
}

.carousel-cert-indicators {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 11px;
}

.carousel-cert-indicators .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f4a26144;
  cursor: pointer;
  transition: background 0.17s;
}

.carousel-cert-indicators .dot.active {
  background: #f4a261;
}

/* Responsive adjustments */
@media (max-width: 700px) {
  .carousel-certificates {
    max-width: 98vw;
    min-height: 180px;
  }
  .carousel-cert-btn {
    font-size: 1.6rem;
    padding: 1px 8px;
  }
}

.organization-list { text-align: left; max-width: 700px; margin: 0 auto; padding: 0 8px;}
.organization-list ul { margin-bottom: 10px; margin-left: 18px;}
.organization-list p { color: #4526a8; margin-bottom: 3px; font-weight: 600; font-size: 1.11rem;}
.achievement-gallery { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; padding: 0 8px;}
.achievement-slot { text-align: center; background: rgba(255,255,255,0.11); padding: 20px 9px 10px 9px; border-radius: 18px; box-shadow: 0 4px 26px #fff2, 0 2px 10px #0002; min-width: 180px; max-width: 230px; flex: 1 1 180px; transition: transform .15s, box-shadow .15s; will-change: transform; perspective: 400px;}
.achievement-slot img { width: 100%; border-radius: 12px; margin-bottom: 8px; background: #fff;}
.achievement-slot p { font-size: 1.09rem; margin-top: 7px; color: #fff; text-shadow: 0 2px 14px #8f5cf777;}
.achievement-slot.tilt-hover:hover { transform: perspective(400px) rotateX(8deg) scale(1.09); box-shadow: 0 14px 36px #f4a26166, 0 8px 22px #e056fd33;}

.blog-container { max-width: 700px; margin: 0 auto; padding: 0 8px;}
.blog-post { background: rgba(255,255,255,0.77); border-radius: 18px; box-shadow: 0 6px 24px #8f5cf733, 0 2px 8px #0001; padding: 22px 17px 15px 17px;}
.blog-post h3 { font-size: 1.19rem; color: #8f5cf7; margin-bottom: 8px; font-weight: 700;}
.blog-post h4 { font-size: 1.09rem; margin: 14px 0 5px 0; color: #f4a261;}
.blog-post ul { margin-left: 18px; color: #4526a8;}
.blog-post img { width: 100%; max-width: 250px; border-radius: 11px; margin: 12px 0 0; box-shadow: 0 2px 12px #8f5cf733; display: block; margin-left: auto; margin-right: auto; background: #fff; transition: transform .15s;}
.blog-post img:hover { transform: scale(1.08) rotate(2deg);}

.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-top: 14px; padding: 0 8px;}
.contact-links a { display: inline-block; border-radius: 50%; background: linear-gradient(145deg,#8f5cf7 40%,#43e6fc 100%); padding: 9px; box-shadow: 0 2px 12px #8f5cf733, 0 1px 6px #f4a26144; transition: transform .15s, box-shadow .15s, background .19s;}
.contact-links a:hover { transform: scale(1.22) rotate(-5deg); background: linear-gradient(145deg,#f4a261 60%,#e056fd 100%); box-shadow: 0 8px 26px #ff996644, 0 0 0 4px #f4a26118;}
.contact-links img.float-hover:hover { transform: scale(1.11) translateY(-2px);}

.visitor-counter { text-align: center; margin: 13px 0 8px 0;}
.visitor-counter img { width: 110px; height: auto;}

footer { text-align: center; padding: 21px 0 10px 0; background: linear-gradient(90deg, #8f5cf7 0%, #f4a261 100%); color: #fff; font-size: 1.08rem; letter-spacing: 1.2px; margin-top: 40px; border-radius: 0 0 24px 24px; box-shadow: 0 -2px 16px #f4a26123; position: relative;}
footer .to-top { position: absolute; right: 32px; bottom: 22px; color: #fff; font-size: 2.1rem; opacity: 0.7; background: #8f5cf7; border-radius: 50%; padding: 8px 17px; text-decoration: none; transition: background .17s, color .17s, opacity .17s; z-index: 10;}
footer .to-top:hover { color: #f4a261; background: #fff; opacity: 1;}

.glass { background: rgba(255,255,255,0.18) !important; box-shadow: 0 4px 24px #fff4, 0 2px 12px #8f5cf755 !important; backdrop-filter: blur(6px); border: 1.5px solid #fff4;}
.reveal { opacity: 0; transform: translateY(64px) scale(.97); transition: opacity 1.15s, transform 1.15s; }
.reveal.visible { opacity: 1; transform: none; }
