:root {
  --bg-overlay: rgba(255, 255, 255, 0.7);
  --text-color: #222;
  --heading-color: #0a192f;
  --accent: #64ffda;
  --card-bg: #ffffff;
}


body.dark-mode {
  --bg-overlay: rgba(10, 25, 47, 0.85);
  --text-color: #e6e6e6;
  --heading-color: #ffffff;
  --accent: #64ffda;
  --card-bg: #0f172a;
}

/* ====== HERO SECTION ====== */
.hero {
  position: relative;
  padding: 4rem 1rem 5rem;
  overflow: hidden;
  background: linear-gradient(135deg, #0a192f, #020c1b);
}

.hero::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(100,255,218,0.25), transparent 70%);
  top: -150px;
  right: -150px;
  animation: floatGlow 8s infinite alternate ease-in-out;
}

@keyframes floatGlow {
  from { transform: translateY(0); }
  to { transform: translateY(40px); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-name {
  font-size: 3rem;
  letter-spacing: 1px;
  animation: fadeDown 1s ease forwards;
}

.hero-role {
  font-size: 1.3rem;
  color: var(--accent);
  margin-top: 0.5rem;
  min-height: 1.6em;
}

.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;               
  justify-content: center;
  gap: clamp(0.6rem, 2vw, 1.2rem); 
  max-width: 900px;
  margin-inline: auto;
}


.hero-cta a {
  flex: 1 1 auto;               
  min-width: 140px;               
  max-width: 220px;

  text-align: center;
  white-space: nowrap;

  padding: clamp(0.55rem, 1.5vw, 0.8rem)
           clamp(1rem, 3vw, 1.6rem);

  font-size: clamp(0.85rem, 2.2vw, 1rem);

  border-radius: 30px;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;

  transition: all 0.3s ease;
}


.hero-cta a:hover {
  background: var(--accent);
  color: #0a192f;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 22px rgba(100,255,218,0.4);
}

/* ====== PRIMARY CTA (Download CV) ====== */
.hero-cta .cta-primary {
  background: var(--accent);
  color: #0a192f !important;

  font-weight: 600;
  letter-spacing: 0.3px;

  border: none;
  position: relative;
  overflow: hidden;

  box-shadow: 0 10px 30px rgba(100, 255, 218, 0.45);
}

.hero-cta .cta-primary i {
  margin-right: 0.45rem;
}

.hero-cta .cta-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left,
      rgba(255,255,255,0.45),
      transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-cta .cta-primary:hover::before {
  opacity: 1;
}

.hero-cta .cta-primary:hover {
  transform: translateY(-3px) scale(1.07);
  box-shadow: 0 18px 40px rgba(100, 255, 218, 0.6);
}


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

@media (max-width: 600px) {
  .hero-cta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.7rem;
  }

  .hero-cta a {
    max-width: 100%;
  }
}


/* ====== GLOBAL STYLES ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* color: #222; */
  color: var(--text-color);
  line-height: 1.6;
  background-size: cover;
  z-index: 0;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-overlay);
  z-index: -1; 
}


/* ====== HEADER ====== */
header {
  background: rgba(10, 25, 47, 0.9);
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

header h1 {
  font-size: 2.4rem;
  margin-bottom: 0.3rem;
}

header p {
  font-size: 1.1rem;
  color: #a8b2d1;
}

nav {
  margin-top: 1.5rem;
}

nav a {
  color: #64ffda;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
  color: #fff;
  border-bottom: 2px solid #64ffda;
}

/* ====== MAIN CONTENT ====== */
main {
  flex: 1; 
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}


/* ====== ABOUT SECTION ====== */

.about-container {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.personal-image {
  flex: 1 1 250px;
  text-align: center;
  perspective: 1000px; /* for 3D tilt */
  margin-bottom: 2rem;
}

.image-wrapper {
  display: inline-block;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.image-wrapper img {
  display: block;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: floatImage 6s ease-in-out infinite;
}

.image-wrapper:hover img {
  transform: scale(1.08) rotateY(10deg) rotateX(5deg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

/* Fancy Numbers */

.stats-section {
  padding: 80px 20px;
  text-align: center;
}

.stats-title {
  font-size: 2.4rem;
  margin-bottom: 50px;
  color: var(--accent);
}
.stats-grid a.stat-card {
  text-decoration: none;
  color: inherit;
}


.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

.stat-card {
  background: var(--card-bg);
  border-radius: 18px;
  padding: 35px 20px;
  transition: all 0.35s ease;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, var(--accent), transparent 70%);
  opacity: 0;
  transition: 0.4s;
}

.stat-card:hover::before {
  opacity: 0.12;
}

.stat-card:hover {
  transform: translateY(-10px) scale(1.03);
}

.stat-card i {
  font-size: 2.8rem;
  color: var(--accent);
  margin-bottom: 15px;
}

.stat-number {
  font-size: 2.6rem;
  font-weight: bold;
  color: var(--heading-color);
  display: block;
}

.stat-card p {
  margin-top: 8px;
  font-weight: 600;
}

.stat-card small {
  opacity: 0.7;
}


/* Glowing animated ring behind image */
.glow-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(100,255,218,0.4), transparent 70%);
  animation: ringPulse 2.5s infinite alternate;
  z-index: -1;
}

@keyframes floatImage {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

@keyframes ringPulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
}

/* Optional: 3D tilt effect based on mouse movement */
.personal-image .image-wrapper {
  transform-style: preserve-3d;
  will-change: transform;
}
.personal-image:hover .image-wrapper {
  transition: transform 0.2s ease-out;
}


.about-text {
  flex: 2 1 500px;
}

.about-text h2 {
  color: #0a192f;
  border-left: 4px solid #64ffda;
  padding-left: 0.5rem;
  margin-bottom: 0.8rem;
  margin-top: 1rem;
}

.about-text p {
  font-size: 1rem;
  /* color: #222; */
  color: var(--text-color);
  margin-bottom: 1rem;
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.skill-badges span {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;

  font-size: 0.85rem;
  font-weight: 500;

  background: rgba(10, 25, 47, 0.08);  
  color: #0a192f;                

  border: 1px solid rgba(10, 25, 47, 0.15);

  transition: 
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

body.dark-mode .skill-badges span {
  background: rgba(100, 255, 218, 0.15);
  color: var(--accent);
  border: 1px solid rgba(100, 255, 218, 0.25);
}

.skill-badges span:hover {
  transform: translateY(-2px) scale(1.05);
  color: #0a192f;

  box-shadow: 0 6px 14px rgba(10, 25, 47, 0.12);
}

.footer-links a {
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}


.about-text p {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.about-text p:hover {
  transform: translateY(-4px);
  background-color: rgba(129, 129, 142, 0.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

ul {
  list-style: none;
  padding-left: 1rem;
}

ul li::before {
  content: "▹";
  color: #64ffda;
  margin-right: 8px;
}

.section-divider {
  height: 1px;
  width: 100%;
  margin: 2.2rem 0;

  background: linear-gradient(
    to right,
    transparent,
    var(--accent),
    transparent
  );

  opacity: 0.6;
}



.footer-links a, 
.footer-links a.svg-icon img {
  transition: all 0.3s ease;
}

.footer-links a i,
.footer-links a.svg-icon img {
  color: #64ffda; 
}

.footer-links a:hover i,
.footer-links a:hover.svg-icon img {
  color: inherit;
  filter: none;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(10, 25, 47, 0.95);
  color: #a8b2d1;
  font-size: 0.9rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: #64ffda;
  font-size: 1.5rem;
  transition: color 0.3s, transform 0.3s;
}

.footer-links a:hover {
  color: #fff;
  transform: scale(1.3) rotate(-5deg);
}

.footer-links .svg-icon img {
  width: 22px;
  height: 22px;
  display: block;
  filter: brightness(0) saturate(100%) invert(100%) sepia(50%) saturate(4589%) hue-rotate(154deg) brightness(100%) contrast(100%);
  transition: transform 0.3s ease, filter 0.3s ease;
}


.footer-links .svg-icon:hover img {
  transform: scale(1.15);
  filter: none;
}

body.dark .footer-links .svg-icon img {
  filter: invert(1);
}
 /* body.dark-mode .footer-links .svg-icon img {
  filter: invert(1);
} */



.vol-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.vol-gallery img {
  width: calc(33% - 0.66rem);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vol-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .vol-gallery img {
    width: calc(50% - 0.5rem); 
  }
}

@media (max-width: 480px) {
  .vol-gallery img {
    width: 100%; 
  }
}

.icpc-gallery {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.icpc-gallery img:first-child {
  flex: 1; 
  min-width: 100px;
}

.icpc-gallery img:last-child {
  flex: 2; 
  min-width: 200px;
}

.icpc-gallery img {
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: cover;
}

.icpc-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .icpc-gallery img {
    flex: 1 1 100%; 
  }
}

.cert-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}

.cert-img,
.cert-img-small {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.cert-img {
  width: 100%;
  max-width: 700px;
  display: block;
  margin: 1rem auto;
}

.cert-img-small {
  width: 30%;
  min-width: 180px;
}

.cert-img-small:hover {
  transform: scale(1.05);
}

article {
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

article:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

h2 a i.fab.fa-github {
  color: #333; 
  margin-left: 0.5rem;
  font-size: 1.2rem;
  transition: color 0.3s, transform 0.3s;
  vertical-align: middle;
}

body.dark-mode h2 a i.fab.fa-github {
  color: #ffffff;
}


h2 a i.fab.fa-github:hover,
body.dark-mode h2 a i.fab.fa-github:hover {
  color: #64ffda;
  transform: scale(1.3);
}

@media (max-width: 992px) {
  .about-container {
    flex-direction: column;
    align-items: center;
  }
  .about-text {
    text-align: center;
  }
  nav a {
    margin: 0.5rem;
  }
}

@media (max-width: 576px) {
  header h1 {
    font-size: 2rem;
  }
  .about-text h2 {
    font-size: 1.1rem;
  }
  .cert-img-small {
    width: 45%;
  }
}

.activity {
  margin-bottom: 3rem;
  text-align: center;
}

.activity h2 {
  color: #0a192f;
  margin-bottom: 1rem;
  border-left: 4px solid #64ffda;
  display: inline-block;
  padding-left: 0.5rem;
}

.about-text h2,
.activity h2 {
  color: var(--heading-color);
  border-left: 4px solid var(--accent);
}

.slider {
  position: relative;
  width: 100%;
  max-width: 700px;    
  aspect-ratio: 16 / 9;
  margin: 1rem auto;
  overflow: hidden;
  border-radius: 12px;
  background: #0a192f;
}



.slider img {
  width: 100%;
  height: auto;         
  aspect-ratio: inherit;
  object-fit: cover;
  display: block;
  transition: opacity 0.4s ease;
}

.slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  color: #64ffda;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.slider button:hover {
  background: #64ffda;
  color: #0a192f;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(100, 255, 218, 0.5);
}

.slider .prev { left: 16px; }
.slider .next { right: 16px; }

.slider-icpc {
  width: 100%;
  max-width: 900px;
  height: 500px;
}

.slider-nasa {
  width: 100%;
  max-width: 700px;
  height: 400px;
}


.slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;

  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  color: #64ffda;

  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.3s ease;
}

.slider button:hover {
  background: #64ffda;
  color: #0a192f;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(100, 255, 218, 0.5);
}

.slider .prev {
  left: 16px;
}

.slider .next {
  right: 16px;
}

#theme-toggle {
  position: absolute;
  top: 20px;
  right: 20px;

  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 1.4rem;
  cursor: pointer;

  transition: transform 0.3s ease, color 0.3s ease;
}

#theme-toggle:hover {
  transform: scale(1.2);
  color: #fff;
}

@media (max-width: 600px) {
  .footer-links {
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
    gap: 1.2rem 1.6rem;                  
    justify-items: center;
  }

  .footer-links a {
    font-size: 1.6rem;
  }

  .footer-links .svg-icon img {
    width: 26px;
    height: 26px;
  }
}

/* ===== Mini AI Chatbot ===== */
.chatbot-toggle {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: var(--accent);
  color: #0a192f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.6rem;
  box-shadow: 0 12px 30px rgba(100,255,218,0.45);
  z-index: 999;
  transition: transform 0.3s ease;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
}

.chatbot {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 320px;
  max-height: 420px;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
}

.chatbot-header {
  background: #0a192f;
  color: var(--accent);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.chatbot-header button {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1.4rem;
  cursor: pointer;
}

.chatbot-messages {
  padding: 14px;
  flex: 1;
  overflow-y: auto;
  font-size: 0.9rem;
}

.bot-message,
.user-message {
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
  max-width: 85%;
}

.bot-message {
  background: rgba(100,255,218,0.15);
  align-self: flex-start;
}

.bot-message a {
  color: #64ffda;
  text-decoration: none;
  font-weight: 500;
}

.bot-message a:hover {
  text-decoration: underline;
  color: #4be3c1;
}


.user-message {
  background: #0a192f;
  color: #fff;
  align-self: flex-end;
  margin-left: auto;
}

.chatbot-input {
  display: flex;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.chatbot-input input {
  flex: 1;
  border: none;
  padding: 12px;
  outline: none;
  font-size: 0.9rem;
}

.chatbot-input button {
  background: var(--accent);
  border: none;
  padding: 0 16px;
  cursor: pointer;
  color: #0a192f;
  font-size: 1rem;
}


