html, body {
  overflow-x: hidden; /* Prevent horizontal scrolling */
  width: 100%;
}


/* By default, dark mode is applied using the variables and base styles. */
/* Now, use .light-mode for light theme overrides only. */

/* === CYBERPUNK NEON PALETTE === */
:root {
  --bg-main: #0a0f2c;                /* deep navy */
  --bg-secondary: #1a1f4a;           /* slightly lighter navy */
  --accent: #2de2e6;                 /* bright aqua */
  --accent-light: #9a7dff;           /* gentle violet */
  --text-main: #f5f5f5;              /* soft white */
  --text-secondary: #b3b8e7;         /* light blueish */
  --card-bg: #181c3a;                /* card background, between main and secondary */
  --blue: #3c91e6;  
  --bg-tertiary: #1f2459;            /* optional soft blue */
}

/* General Styles */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-main);
  color: var(--text-main);
  transition: background-color 0.3s, color 0.3s;
}

/* Remove .dark-mode usage, always dark */
body.dark-mode {
  background-color: var(--bg-main);
  color: var(--text-main);
}

/* Update body and general styles */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-main);
  color: var(--text-main);
  transition: background-color 0.3s, color 0.3s;
}

/* Loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #6a11cb;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Hero Section */
#hero {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-main));
  color: var(--text-main);
  padding: 100px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 10%, transparent 10%);
  background-size: 20px 20px;
  animation: moveBackground 10s linear infinite;
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #6a11cb;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes moveBackground {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}

#hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

#hero .highlight {
  color: var(--accent);
}

#hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

#hero .btn {
  background: var(--accent);
  color: var(--bg-main);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}

#hero .btn:hover {
  background: var(--accent-light);
  color: var(--bg-main);
}

/* Sections */
section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.skill-card {
  background: var(--card-bg);
  color: var(--text-main);
  box-shadow: 0 4px 16px rgba(44,226,230,0.08);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: 
    transform 0.3s cubic-bezier(0.4,0.2,0.2,1),
    box-shadow 0.3s cubic-bezier(0.4,0.2,0.2,1),
    background 0.3s cubic-bezier(0.4,0.2,0.2,1),
    color 0.3s cubic-bezier(0.4,0.2,0.2,1);
}

.skill-card:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 8px 24px var(--accent);
  background: var(--accent-light);
  color: var(--bg-main);
}

/* Skill Logo */
.skill-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Project Card Hover */
.project-card:hover,
.testimonial-card:hover,
.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 24px var(--accent);
}

/* Update other color overrides */
.skill-card i {
  font-size: 3rem;
  margin-bottom: 10px;
  color: var(--accent-light);
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

.project-card {
  background: var(--card-bg);
  color: var(--text-main);
  box-shadow: 0 4px 16px rgba(44,226,230,0.08);
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
  
}

.project-image{
  width: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 24px var(--accent);
}
body.light-mode .project-card:hover,
body.light-mode .testimonial-card:hover,
body.light-mode .blog-card:hover {
  box-shadow: 0 8px 24px #6a11cb;
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.project-card p {
  font-size: 1rem;
  margin-bottom: 20px;
}

.project-card .btn {
  background: var(--accent);
  color: var(--bg-main);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}

.project-card .btn:hover {
  background: var(--accent-light);
  color: var(--bg-main);
}

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: var(--card-bg);
  color: var(--text-main);
  box-shadow: 0 4px 16px rgba(44,226,230,0.08);
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 24px var(--accent);
}

/* Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.blog-card {
  background: var(--card-bg);
  color: var(--text-main);
  box-shadow: 0 4px 16px rgba(44,226,230,0.08);
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 24px var(--accent);
}

.blog-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.blog-card p {
  font-size: 1rem;
  margin-bottom: 20px;
}

.blog-card .btn {
  background: var(--accent);
  color: var(--bg-main);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}

.blog-card .btn:hover {
  background: var(--accent-light);
  color: var(--bg-main);
}

/* Contact Section */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  background: var(--bg-main);
  color: var(--text-main);
  border: 1px solid var(--accent);
  padding: 10px;
  border-radius: 5px;
  font-size: 1rem;
}

.contact-form button {
  background: var(--accent);
  color: var(--bg-main);
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: var(--accent-light);
  color: var(--bg-main);
}

/* From Uiverse.io by Allyhere */ 
.btn-donate {
  --clr-font-main: hsla(0 0% 20% / 100);
  --btn-bg-1: hsla(194 100% 69% / 1);
  --btn-bg-2: hsla(217 100% 56% / 1);
  --btn-bg-color: hsla(360 100% 100% / 1);
  --radii: 0.5em;
  cursor: pointer;
  padding: 0.9em 1.4em;
  min-width: 120px;
  min-height: 44px;
  font-size: var(--size, 1rem);
  font-weight: 500;
  transition: 0.8s;
  background-size: 280% auto;
  background-image: linear-gradient(
    325deg,
    var(--btn-bg-2) 0%,
    var(--btn-bg-1) 55%,
    var(--btn-bg-2) 90%
  );
  border: none;
  border-radius: var(--radii);
  color: var(--btn-bg-color);
  box-shadow:
    0px 0px 20px rgba(71, 184, 255, 0.5),
    0px 5px 5px -1px rgba(58, 125, 233, 0.25),
    inset 4px 4px 8px rgba(175, 230, 255, 0.5),
    inset -4px -4px 8px rgba(19, 95, 216, 0.35);
}

.btn-donate:hover {
  background-position: right top;
}

.btn-donate:is(:focus, :focus-visible, :active) {
  outline: none;
  box-shadow:
    0 0 0 3px var(--btn-bg-color),
    0 0 0 6px var(--btn-bg-2);
}

@media (prefers-reduced-motion: reduce) {
  .btn-donate {
    transition: linear;
  }
}

.education,.work{
  margin-top: 50px;
}
.education-heading,.work-heading,.skills-heading{
  font-size:20px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;

}
.university{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
}

.icon{
  width: 100px;
}
.university p{
  margin: 0;
  margin-top: 5px;
  padding-left: 15px;
  font-size: 16px;
  color: lightslategray;
  
}
.postion{
  margin: 0;

  font-size: 16px;
  color: lightslategray;
}
.uni-name{
  flex:1;
  font-size: 16px;
  font-weight: 500;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: justify;
}

/* Footer */
footer {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  text-align: center;
  padding: 20px;
}

footer .social-links {
  margin-bottom: 10px;
}

footer .social-links a {
  color: var(--accent);
  font-size: 1.5rem;
  margin: 0 10px;
  transition: color 0.3s;
}

footer .social-links a:hover {
  color: var(--accent-light);
}

/* General Styles */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f9;
  color: #333;
  transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
  background-color: #1a1a1a;
  color: #f4f4f9;
}

/* Card Styles - always dark */
.skill-card,
.project-card,
.testimonial-card,
.blog-card {
  background: var(--card-bg);
  color: var(--text-main);
  box-shadow: 0 4px 16px rgba(44,226,230,0.08);
  border-radius: 10px;
  padding: 20px;
  transition: 
    transform 0.3s cubic-bezier(0.4,0.2,0.2,1),
    box-shadow 0.3s cubic-bezier(0.4,0.2,0.2,1),
    background 0.3s cubic-bezier(0.4,0.2,0.2,1),
    color 0.3s cubic-bezier(0.4,0.2,0.2,1);
}

/* Skill Card Hover */
.skill-card:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 8px 24px var(--accent);
  background: var(--bg-main);
  color: var(--text-secondary);
}

/* Skill Logo */
.skill-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Project Card Hover */
.project-card:hover,
.testimonial-card:hover,
.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 24px var(--accent);
}

/* Update other color overrides */
.skill-card i {
  font-size: 3rem;
  margin-bottom: 10px;
  color: var(--accent-light);
}

/* Navbar Styles - Default (Dark Mode) */
nav {
  background: var(--bg-secondary);
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(44,226,230,0.08);
  padding: 12px 0;
  position: sticky;
}

nav .logo {
  color: var(--accent);
  font-weight: bold;
  font-size: 1.5rem;
  letter-spacing: 1px;
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--accent);
}

/* Navbar Styles - Light Mode */
body.light-mode nav {
  background: #fff;
  color: var(--bg-secondary);
  box-shadow: 0 2px 8px rgba(44, 44, 44, 0.08);
}

body.light-mode nav .logo {
  color: var(--accent-light);
}

body.light-mode nav ul li a {
  color: #222;
}

body.light-mode nav ul li a:hover,
body.light-mode nav ul li a.active {
  color: var(--accent-light);
}

.hero-image {
  flex-shrink: 0;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  background: var(--bg-secondary);
  box-shadow: 0 4px 24px rgba(44, 226, 230, 0.15);
  display: block;
}

#hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
  gap: 25px;
  flex-direction: row-reverse;
  flex-wrap: wrap;
}

#profile-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content {
  flex: 1;
  max-width: 500px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero-content .highlight {
  color: #24feee;
}

.hero-content p {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 25px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  padding: 12px 25px;
  background-color: #171c48;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.hero-buttons .btn:hover {
  background-color: #000430;
}

@media (max-width: 900px) {
  #hero {
    gap: 24px;
    padding: 40px 10px;
  }

  .hero-content {
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  #hero {
    flex-direction: column;
    text-align: center;
    gap: 24px;
    padding: 30px 5vw;
  }

  #profile-image {
    order: -1; /* ensure the image appears on top */
  }

  .hero-image {
    margin-bottom: 20px;
    width: 180px;
    height: 180px;
  }

  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-content h1,
  .hero-content p {
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    margin-top: 20px;
  }
}

.custom-navbar {
  background-color: var(--bg-main); /* deep indigo */
  box-shadow: var(--bg-secondary);
  transition: background-color 0.3s ease;
}

.custom-navbar .navbar-brand {
  color: var(--accent);
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}

.custom-navbar .navbar-brand:hover {
  color: #ffffff;
}

.custom-navbar .nav-link {
  color: #ffffff;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.custom-navbar .nav-link:hover {
  color: #24feee;
}

.custom-navbar .btn-outline-light {
  border-color: #24feee;
  color: #24feee;
}

.custom-navbar .btn-outline-light:hover {
  background-color: #24feee;
  color: var(--bg-secondary);
}

