* {
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}
body {
  font-family: 'Poppins', sans-serif;
  background: #f9f9f9;
  color: #333;
  scroll-behavior: smooth;
}

/* Navbar */
.navbar {
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%;
  background: white; 
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  padding: 15px 40px; 
  z-index: 1000;
}
.logo { 
  font-size: 1.5rem; 
  font-weight: 700; 
  color: #0E5484; 
}
.nav-links { 
  list-style: none; 
  display: flex; 
  gap: 20px; 
}
.nav-links a { 
  text-decoration: none; 
  color: #333; 
  font-weight: 500; 
  transition: color .3s; 
}
.nav-links a:hover { 
  color: #0E5484; 
}
.logo {
  color: #0E5484 !important;
  font-weight: 700;
  z-index: 1010;
}

body:not(.dark-mode) .navbar.scrolled .logo,
body:not(.dark-mode) .navbar .logo {
  color: #b48df9 !important;
}











body.dark-mode .logo {
  color: #fff !important;
}
body:not(.dark-mode) .logo {
  text-shadow: 0 1px 4px rgba(220,220,220,0.16);
}

/* Sections */
.section {
  padding: 80px 20px; 
  max-width: 1100px; 
  margin: 0 auto;
}
.section-title {
  text-align: center; 
  font-size: 2rem; 
  margin-bottom: 40px; 
  color: #0E5484;
}

/* Hero */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: none; /* Remove all backgrounds */
  color: #222;
  text-align: center;
  box-shadow: none; /* Remove any shadows */
}
.hero-content {
  max-width: 600px;
  margin: auto;
  padding: 60px 0;
}
.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.hero-content .hero-name {
  font-size: 2.6rem;
  color: #0057b8;
  margin-bottom: 25px;
  font-weight: 800;
}
.hero-content p {
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 35px;
}
.social-links a { 
  color: white; 
  margin: 0 10px; 
  font-size: 1.5rem; 
}

/* Education */
.timeline { 
  list-style: none; 
  padding: 0; 
}
.timeline li { 
  margin: 15px 0; 
  padding: 15px; 
  background: white; 
  border-radius: 8px; 
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); 
}

/* Skills Grid Cards */
.skills-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 40px;
}

.skill-card {
  background: #f6f7f9;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 38px 20px 28px 20px;
  transition: box-shadow 0.23s, transform 0.2s;
  font-size: 1.1rem;
  font-weight: 500;
}
.skill-card i {
  font-size: 2.8rem;
  margin-bottom: 9px;
}
.skill-card span {
  margin-top: 4px;
  font-size: 1.18rem;
  letter-spacing: 0.5px;
  color: #23394d;
}

/* Vibrant unique icon colors for each tech */
.skill-card.python i { color: #ffb000; }
.skill-card.c i { color: #ffc300; }
.skill-card.js i { color: #e1ad01; }
.skill-card.html5 i { color: #ee7540; }
.skill-card.css3 i { color: #24a5e6; }
.skill-card.java i { color: #3776ab; }
.skill-card.ml i,
.skill-card.ai i,
.skill-card.genai i { color: #ab47bc; }
.skill-card.agentic i { color: #607d8b; }
.skill-card.streamlit i { color: #e20546; }
.skill-card.fastapi i { color: #0fa36b; }
.skill-card.langchain i,
.skill-card.rag i { color: #0061ff; }
.skill-card.faiss i,
.skill-card.mysql i { color: #689f38; }
.skill-card.llms i { color: #0f5887; }
.skill-card.gans i { color: #ffa000; }
.skill-card.linux i { color: #48a14d; }
.skill-card.windows i { color: #1473e6; }

.skill-card:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 32px rgba(30,50,150,0.14);
}

/* Horizontal scroll projects container with arrows */
.projects-wrapper {
  position: relative;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
}

.scroll-btn {
  background-color: #0E5484;
  color: white;
  border: none;
  font-size: 1.5rem;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 5px;
  user-select: none;
  transition: background-color 0.3s;
  flex-shrink: 0;
}
.scroll-btn:hover {
  background-color: #084270;
}
.scroll-btn:disabled {
  background-color: #666;
  cursor: default;
}

.projects-container {
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE 10+ */
  flex-grow: 1;
}
.projects-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.projects-grid {
  display: flex;
  gap: 20px;
  scroll-behavior: smooth;
}

.project-card {
  min-width: 280px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  flex-shrink: 0;
  position: relative;
}
.project-card:hover {
  transform: translateY(-5px);
}
.project-card h3 {
  margin-bottom: 10px;
}
.github-link {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #0E5484;
  font-size: 1.5rem;
  transition: color 0.3s;
}
.github-link:hover {
  color: #084270;
}

/* Volunteering */
.achievement-list { 
  list-style: none; 
  padding: 0; 
  max-width: 800px; 
  margin: auto; 
}
.achievement-list li {
  background: white; 
  padding: 15px; 
  margin: 10px 0;
  border-radius: 8px; 
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Contact */
.contact p { 
  text-align: center; 
  margin-bottom: 20px; 
}
.contact-links { 
  display: flex; 
  justify-content: center; 
  flex-wrap: wrap; 
  gap: 20px; 
}
.contact-links a {
  background: #0E5484; 
  color: white; 
  padding: 10px 20px;
  border-radius: 20px; 
  transition: background .3s;
}
.contact-links a:hover { 
  background: #084270; 
}

/* Buttons */
.btn-download {
  display: inline-block;
  background-color: #0E5484;
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 1rem;
  text-decoration: none;
  font-weight: 600;
  margin-top: 20px;
  transition: background-color 0.3s;
}
.btn-download:hover {
  background-color: #084270;
}

/* Footer */
.footer { 
  background: #0E5484; 
  color: white; 
  text-align: center; 
  padding: 15px; 
}

/* Navbar Scroll Effect */
.navbar.scrolled {
  background: #0E5484;
  transition: background 0.3s;
}
.navbar.scrolled .nav-links a {
  color: white;
}
body, html {
  height: 100%;
  margin: 0;
  padding: 0;
}

#root, .app, main {
  height: 100%;
}

.footer {
  margin: 0 !important;
  padding: 25px 0;
  box-sizing: border-box;
  position: relative;
  width: 100%;
}

/* Active Link Highlight */
.nav-links a.active {
  color: #084270;
  font-weight: 600;
}

/* Dark mode styles */
body.dark-mode {
  background: #121212;
  color: #e0e0e0;
}

body.dark-mode .navbar {
  background: #084270;
  box-shadow: none;
}
body.dark-mode .nav-links a {
  color: #ccc;
}
body.dark-mode .nav-links a:hover,
body.dark-mode .nav-links a.active {
  color: #84aaff;
}

body.dark-mode .section {
  background: #1e1e1e;
}
body.dark-mode {
  background: #181A1B;
  color: #f3f6fa;
}

body.dark-mode .section-title,
body.dark-mode .hero-content h1,
body.dark-mode .hero-content .hero-name,
body.dark-mode h2,
body.dark-mode h3 {
  color: #ffffff !important;
}

body.dark-mode .hero-content p,
body.dark-mode .hero-content,
body.dark-mode .skills-grid span {
  color: #e2e8f0 !important;
}

body.dark-mode .btn-download,
body.dark-mode .contact-links a {
  background: #1570EF;
  color: #fff !important;
}

body.dark-mode .btn-download:hover,
body.dark-mode .contact-links a:hover {
  background: #539cff;
}

body.dark-mode .project-card {
  color: #f3f6fa;
  border-color: #288dff;
}

body.dark-mode .timeline li,
body.dark-mode .achievement-list li {
  color: #f3f6fa;
  background: #212327;
}

/* Ensure high contrast for other sections if needed */
body.dark-mode .external-link {
  color: #95cfff;
}

body.dark-mode .navbar {
  background: #183060;
  color: #fff;
}

body.dark-mode .timeline li,
body.dark-mode .project-card,
body.dark-mode .achievement-list li {
  background: #292929;
  box-shadow: none;
}

body.dark-mode .skills-grid span {
  background: #084270;
  color: white;
}
body.dark-mode .skills-grid span:hover {
  background: #032c52;
}

body.dark-mode .btn-download {
  background-color: #084270;
  color: white;
}
body.dark-mode .btn-download:hover {
  background-color: #032c52;
}

body.dark-mode .footer {
  background: #063353;
  color: #ccc;
}
body.dark-mode .github-link {
  color: #84aaff;
}
body.dark-mode .github-link:hover {
  color: #aaccff;
}
body.dark-mode .scroll-btn {
  background-color: #084270;
}
body.dark-mode .scroll-btn:hover {
  background-color: #032c52;
}
.edu-logo {
  height: 30px;
  width: auto;
  vertical-align: middle;
  margin-right: 10px;
  border-radius: 4px; /* subtle rounding */
}
.timeline li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
  padding: 15px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.external-link {
  color: #0057b8;
  margin-left: 10px;
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 600;
}
.external-link:hover,
.external-link:focus {
  text-decoration: underline;
  color: #003a66;
}
body.dark-mode .logo {
  color: transparent !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  background-image: linear-gradient(90deg,#a3d1ff,#ffffff);
  font-weight: 700;
}

#theme-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: 20px;
  outline: none;
  padding: 3px 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s, filter 0.3s;
  color: #222; /* default light mode icon color */
}
#theme-toggle:hover,
#theme-toggle:focus {
  filter: drop-shadow(0 0 3px currentColor);
}

/* Dark mode: icon color change */
body.dark-mode #theme-toggle {
  color: #ffd600; /* bright yellow in dark mode */
}

/* Universal box-sizing and spacing handled by your existing * selector */

/* Responsive navbar */
.navbar {
  flex-wrap: wrap;
  padding: 15px 20px;
}
.nav-links {
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

/* Stack nav-links vertically and center logo on small screens */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: center;
  }
  .nav-links {
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 10px;
  }
  .nav-links a {
    padding: 8px 10px;
    font-size: 1.1rem;
  }
  .logo {
    margin-bottom: 12px;
  }
}

/* Hero section text resizing and padding */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content .hero-name {
    font-size: 1.8rem;
  }
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 25px;
  }
}

/* Skills grid responsiveness */
.skills-grid-cards {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  padding: 0 10px;
}

/* Project cards container scroll optimized */
.projects-container {
  padding-bottom: 15px; /* to give some space below scroll */
}

/* Projects grid on small screens: stack vertically */
@media (max-width: 600px) {
  .projects-grid {
    flex-direction: column;
  }
  .projects-wrapper {
    flex-direction: column;
  }
  .scroll-btn {
    display: none;
  }
}

/* Smaller skill card adjustments */
@media (max-width: 480px) {
  .skill-card {
    padding: 28px 15px 20px 15px;
  }
  .skill-card i {
    font-size: 2rem;
  }
  .skill-card span {
    font-size: 1rem;
  }
}


















@media (max-width: 600px) {
  .navbar {
    flex-direction: row;
    align-items: center;
    padding: 8px 12px;
    min-height: 54px;
    position: relative;
  }
  .nav-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 56px;
    max-height: 320px;           /* Set maximum height */
    overflow-y: auto;            /* Enable vertical scrolling if needed */
    width: 92vw;                 /* Not covering full screen */
    max-width: 340px;            /* Max width for appearance */
    background: white;
    flex-direction: column;
    align-items: flex-start;
    z-index: 1500;
    box-shadow: 0 4px 16px rgba(30,50,150,0.14);
    border-radius: 0 0 18px 18px;
    padding: 8px 0;
  }
  .nav-links.show {
    display: flex;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    padding: 13px 22px;
    font-size: 1.1rem;
    display: block;
    border-bottom: 1px solid #eee;
    width: 100%;
  }
}
.timeline, .achievement-list {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}



@media (max-width: 600px) {
  /* Ensure timeline and achievement lists fill container */
  .timeline, .achievement-list {
    width: 100%;
    max-width: 100vw;
    padding: 0 12px;
    box-sizing: border-box;
  }

  /* Cards stacked vertically, full width, with padding */
  .timeline li, .achievement-list li {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 15px 10px !important;
    margin: 10px 0 !important;
    box-sizing: border-box !important;
    background: white !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.11) !important;
    word-break: break-word !important; /* Allows breaking long words */
    overflow-wrap: anywhere !important; /* Allows wrapping anywhere */
  }

  /* Inner elements fill width and wrap */
  .timeline li > *, .achievement-list li > * {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }
}

.edu-logo {
  display: block;
  height: 32px;
  width: auto;
  max-width: 100%;
  margin: 0 auto 8px auto;
  border-radius: 4px;
  object-fit: contain;
}

@media (max-width: 600px) {
  .edu-logo {
    height: 24px;      /* Smaller icons on mobile */
    max-width: 80px;   /* Limit max width */
    margin-bottom: 8px;
  }
  /* If your card structure needs images centered */
  .timeline li, .timeline li > * {
    text-align: center;
  }
}




.edu-logo {
  display: inline-block;
  height: 38px;           /* Default desktop/laptop height */
  width: auto;
  max-width: 120px;       /* Prevents too wide on large screens */
  vertical-align: middle;
  margin-right: 14px;
  margin-bottom: 0;
  border-radius: 4px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}



/* Mobile: smaller and still left-aligned */
@media (max-width: 600px) {
  .timeline li {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 11px 6px;
  }
  .edu-logo {
    height: 24px;
    max-width: 60px;
    margin-right: 10px;
    margin-left: 0;
  }
}
/* Card background and text for dark mode on mobile */
body.dark-mode .timeline li {
  background: #23272a !important;
  color: #f9f9f9 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.41);
}

/* Make sure timeline card contents are visible */
body.dark-mode .timeline li * {
  color: #f9f9f9 !important;
}











