/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
  --accent-color: #00ffc3;       
  --primary-color: #64ffda;     
  --bg-dark: #0a0a0a;            
  --section-bg: #112240;      
  --card-bg: #233554;         
  --text-color: #ccd6f6;      
  --secondary-text: #8892b0;    
  --text-light: rgba(255, 255, 255, 0.8); 
}

/* Global */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-dark);
  animation: gradientFlow 12s ease infinite;
  color: var(--text-color);
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

button, a, .project-btn, .skill-item {
  transition: all 0.3s ease;
}

button:hover, a:hover, .project-btn:hover, .skill-item:hover {
  transform: scale(1.05);
}


a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover {
  color: var(--primary-color);
}

/* Container */

.container {
  margin: auto;
  max-width: 1100px;
  padding: 0 20px;
}


/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 0.5rem 0;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: background 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.9);
}

.nav-container {
  display: flex;
  justify-content: space-between;  
  align-items: center;
  width: 100%;
  max-width: 1500px;               
  margin: 0 auto;
  padding: 0 1rem;                
}

/* Logo - stays on the left */
.logo {
  font-size: 1.9rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.3s;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.logo span {
  color: var(--accent-color);
}

.logo:hover {
  color: var(--accent-color);
}

/* Navigation area (links + theme button aligned together) */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0rem; /* controls spacing between links and toggle */
}

/* Navigation links */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;                        /* spacing between Home, About, etc. */
  margin-right: 1.5rem;             /* small gap before ☀️ icon */
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent-color);
}

.nav-links a.active {
  color: var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
}

/* Theme Toggle Button (same spacing as nav links) */
#theme-toggle {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--accent-color);
  font-size: 1.3rem;
  transition: transform 0.3s ease, color 0.3s ease;
  
}

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

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--accent-color);
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.menu-toggle:hover {
  color: var(--primary-color);
}

/* Responsive Navbar */
@media (max-width: 900px) {
  .nav-right {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.95);
    position: absolute;
    top: 70px;
    right: 20px;
    width: 220px;
    padding: 20px;
    border-radius: 10px;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
}

/* Light mode menu */
body.light-mode .nav-links {
  background: rgba(255, 255, 255, 0.95);
}

body.light-mode .nav-links a {
  color: #1a1a1a;
}


/* Hero Section */
#hero {
  position: relative;
  isolation: isolate; 
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: radial-gradient(circle at 20% 20%, #0b132b 0%, #1a1f3a 100%);
  overflow: hidden;
  background-size: 300% 300%;
  animation: gradientFlow 12s ease infinite;
  color: var(--text-color);
}

/* Particles.js Background Layer */
#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  /* opacity: 0.65; */
  transition: opacity 0.6s ease-in-out;
}

body.light-mode #particles-js {
  filter: brightness(1.2) contrast(1.4) saturate(1.5);
}

#hero .container {
  position: relative;
  z-index: 2;
}

/* Smooth animated gradient flow */
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ✨ Aurora Glow Effect Overlay */
#hero::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: radial-gradient(circle at 50% 50%, rgba(69, 85, 81, 0.25), transparent 70%);
  animation: aurora 10s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes aurora {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.4; }
  50% { transform: translate(25%, 25%) rotate(45deg); opacity: 0.8; }
}

/* Ensure content appears above animation */
#hero > *:not(#particles-js) {
  position: relative;
  z-index: 2;
}

/* 🌤 Light Mode Version */
body.light-mode #hero {
  background: linear-gradient(120deg, #eaf6ff, #f5faff, #d8ecff);
  background-size: 300% 300%;
  animation: gradientFlow 15s ease infinite;
}

body.light-mode #hero::before {
  background: radial-gradient(circle at 50% 50%, rgba(0, 120, 255, 0.15), transparent 70%);
}

/* Optional: smooth transition between modes */
body, #hero {
  transition: background 0.8s ease, color 0.5s ease;
}


#hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 0.8rem;
  animation: fadeInUp 1.2s ease-in-out;
}

#hero p {
  color: var(--secondary-text);
  font-size: 1.2rem;
  margin-top: 0.5rem;
  line-height: 1.6;
}

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

/* Social Icons */
.social-links a {
  color: var(--accent-color);
  font-size: 1.8rem;
  margin: 0 10px;
  transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-color);
  transform: scale(1.2);
  text-shadow: 0 0 10px var(--accent-color);
}

/* Light Mode – icon color */
body.light-mode .social-links a {
  color: #00bfff; /* sky blue for light mode */
}

body.light-mode .social-links a:hover {
  color: #0078ff;
  text-shadow: 0 0 8px rgba(0, 120, 255, 0.5);
}

@keyframes iconPulse {
  0%, 100% { text-shadow: 0 0 10px rgba(0, 255, 195, 0.4); }
  50% { text-shadow: 0 0 20px rgba(0, 255, 195, 0.7); }
}

.social-links a {
  animation: iconPulse 3s infinite ease-in-out;
}

body.light-mode .social-links a {
  animation: none; /* disable glow in light mode */
}

.auto-type {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 1.4rem;
  transition: color 0.5s ease, text-shadow 0.5s ease;
}

/* Light mode version */
body.light-mode .auto-type {
  color: #00bfff;
  text-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
}


/* About Section */
section {
  scroll-margin-top: 80px; /* avoids navbar overlap when clicking About */
}

#about {
  padding: 80px 20px;
  background-color: var(--section-bg);
  text-align: center;
}

#about h2 {
  font-size: 36px;
  margin-bottom: 30px;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-box {
  flex: 2;
  background-color: var(--bg-dark);
  border: 1px solid var(--primary-color);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 0 20px rgba(0, 255, 195, 0.13);
  text-align: left;
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Light Mode Fix */
body.light-mode .about-box {
  background-color: #ffffff; 
  border: 1px solid rgba(0, 0, 0, 0.08); 
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-intro {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 30px;
}

.about-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-section {
  background-color: var(--card-bg);
  border: 1px solid var(--primary-color, 0.13);
  border-radius: 10px;
  padding: 15px 20px;
  color: var(--secondary-text);
}

.about-section h3 {
  color: var(--primary-color);
  margin-bottom: 8px;
  font-size: 20px;
}

.about-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(0, 255, 195, 0.25);
}

body.light-mode .about-box:hover {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

body.light-mode #about {
  background-color: #f5f9ff; /* soft bluish tone for contrast */
}

/* Light Mode fix for About section heading */
body.light-mode #about h2 {
  color: #0078ff; /* sky blue heading in light mode */
}

.about-highlights {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  color: var(--secondary-text);
}

.about-highlights li {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.5;
} 


/* About Layout with Photo on Left */
.about-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: auto;
}

.about-photo {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-photo img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  box-shadow: 0 0 40px rgba(0, 255, 195, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-photo img:hover {
  transform: scale(1.08);
  box-shadow: 0 0 60px var(--primary-color);
}

.about-box {
  flex: 2;
  background-color: var(--bg-dark);
  border: 1px solid var(--primary-color);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0, 255, 195, 0.13);
  text-align: left;
}

.about-intro {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 900px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-box {
    text-align: center;
  }

  .about-photo img {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
  }
}

/* Skills Section */
#skills {
  text-align: center;
  background: linear-gradient(135deg, #0a0a0a, #112240);
  padding: 80px 20px;
}

#skills h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

/* 🌤 Light Mode Fix for Section Headings */
body.light-mode h2,
body.light-mode .section-title {
  color: #0078ff; /* sky blue tone for all section titles in light mode */
}

h2, .section-title {
  transition: color 0.3s ease;
}

#skills p {
  font-size: 18px;
  color: var(--secondary-text);
  max-width: 700px;
  margin: auto;
  margin-bottom: 40px;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.skill-list span {
  background-color: rgba(35, 53, 84, 0.8);
  color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid rgba(100, 255, 218, 0.27);
  box-shadow: 0 0 8px rgba(100, 255, 218, 0.27);
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--card-bg);
  color: var(--primary-color);
  padding: 15px;
  border-radius: 12px;
  width: 120px;
  border: 1px solid rgba(100, 255, 218, 0.13);
  box-shadow: 0 0 10px rgba(100, 255, 218, 0.27);
}

.skill-item img {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  filter: brightness(1.2);
}

.skill-item span {
  font-size: 14px;
}

#skills::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,255,195,0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

/* 🔧 Light Mode Fix — Only Change Heading Color in Skills Section */
body.light-mode #skills h2 {
  color: #0078ff !important; /* sky blue heading in light mode */
  transition: color 0.3s ease;
}


/* Projects Section */
#projects {
  background-color: var(--section-bg);
  padding: 100px 20px;
  text-align: center;
}

.section-title {
  font-size: 36px;
  color: var(--primary-color);
  text-transform: uppercase;
  margin-bottom: 50px;
  letter-spacing: 1px;
}

/* Grid Layout */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  justify-items: center;
}

/* Project Card */
.project-card {
  background-color: var(--card-bg);
  border: 1px solid rgba(100, 255, 218, 0.15);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 0 20px rgba(0, 255, 195, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  text-align: left;
  max-width: 350px;
}

/* Hover Effect */
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px rgba(0, 255, 195, 0.25);
}

/* Project Thumbnail */
.project-thumb {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
  transition: transform 0.4s ease;
}

.project-card:hover .project-thumb {
  transform: scale(1.05);
}

/* Project Text */
.project-card h3 {
  color: var(--accent-color);
  font-size: 22px;
  margin-bottom: 10px;
}

.project-card p {
  color: var(--secondary-text);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 15px;
}

/* Tech Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.tags span {
  background-color: rgba(35, 53, 84, 0.6);
  color: var(--primary-color);
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 13px;
  border: 1px solid rgba(100, 255, 218, 0.25);
}

/* Buttons */
.project-card .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-btn {
  flex: 1;
  text-align: center;
  background-color: transparent;
  color: var(--primary-color);
  padding: 10px 15px;
  border-radius: 30px;
  border: 1px solid var(--primary-color);
  font-weight: 600;
  transition: all 0.3s ease;
}

.project-btn:hover {
  background-color: var(--primary-color);
  color: var(--bg-dark);
  transform: scale(1.05);
}

.project-btn.live-demo {
  background-color: #28a745;
  color: white;
  border: none;
}

.project-btn.live-demo:hover {
  box-shadow: 0 0 15px rgba(40, 167, 69, 0.5);
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* 🌤 Light Mode Fix — Project Buttons */
body.light-mode .project-btn {
  color: #0078ff !important;              /* visible sky blue text */
  border: 1px solid #0078ff !important;   /* matching border */
}

body.light-mode .project-btn:hover {
  background-color: #0078ff !important;   /* filled blue on hover */
  color: #ffffff !important;              /* white text when hovered */
}

/* Keep green live-demo button readable */
body.light-mode .project-btn.live-demo {
  background-color: #28a745 !important;   /* keep green consistent */
  color: #ffffff !important;
}

body.light-mode .project-btn.live-demo:hover {
  box-shadow: 0 0 15px rgba(40, 167, 69, 0.4);
  transform: scale(1.05);
}


/* Contact Section */
#contact {
  background: linear-gradient(135deg, #0a0a0a, #112240);
  padding: 100px 20px;
  text-align: center;
}

#contact h2 {
  font-size: 36px;
  color: var(--primary-color);
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.contact-intro {
  font-size: 18px;
  color: var(--secondary-text);
  max-width: 700px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

/* Layout */
.contact-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
}

/* Contact Info */
.contact-info {
  text-align: left;
}

.contact-info p {
  color: var(--text-color);
  font-size: 16px;
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info i {
  color: var(--accent-color);
  font-size: 18px;
}

.contact-info a {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
  color: var(--accent-color);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
  background: var(--card-bg);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 255, 195, 0.13);
  border: 1px solid rgba(100, 255, 218, 0.13);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(100, 255, 218, 0.15);
  background: var(--bg-dark);
  color: var(--text-color);
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(0, 255, 195, 0.25);
}

/* Submit Button */
.contact-form button {
  background: var(--accent-color);
  border: none;
  color: #000;
  padding: 0.9rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-options {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .contact-form {
    max-width: 100%;
  }

  .contact-info {
    text-align: center;
  }
}

#contact::before {
  content: "";
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0,255,195,0.1) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* 🌤 Light Mode Fix — Contact Section */
body.light-mode #contact {
  background: linear-gradient(135deg, #f5f9ff, #eaf3ff); /* soft light blue gradient */
}

body.light-mode #contact h2 {
  color: #0078ff !important; /* sky blue heading */
  transition: color 0.3s ease;
}

body.light-mode .contact-intro {
  color: #333333 !important; /* readable dark text */
}

body.light-mode .contact-info p {
  color: #1a1a1a !important; /* dark gray text */
}

body.light-mode .contact-info i {
  color: #0078ff !important; /* blue icons */
}

body.light-mode .contact-info a {
  color: #0078ff !important; /* link color */
}

body.light-mode .contact-info a:hover {
  color: #0056b3 !important;
  text-decoration: underline;
}

body.light-mode .contact-form {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .contact-form input,
body.light-mode .contact-form textarea {
  background: #f9f9f9 !important;
  color: #000 !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-mode .contact-form input:focus,
body.light-mode .contact-form textarea:focus {
  border-color: #0078ff !important;
  box-shadow: 0 0 10px rgba(0, 120, 255, 0.2);
}

body.light-mode .contact-form button {
  background: #0078ff !important;
  color: #ffffff !important;
}

body.light-mode .contact-form button:hover {
  background: #0056b3 !important;
  box-shadow: 0 0 15px rgba(0, 120, 255, 0.4);
}

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

/* Back to Top Button */
#backToTop {
  display: none;
  position: fixed;
  bottom: 40px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  background-color: var(--primary-color);
  color: var(--bg-dark);
  border: none;
  outline: none;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 255, 179, 0.3);
}

#backToTop:hover {
  background-color: #52e0c4;
}

/*  Tagline & Animation  */
.tagline {
  font-family: 'Orbitron', sans-serif;
  color: var(--primary-color);
  font-size: 20px;
  margin-top: 10px;
  letter-spacing: 1px;
  animation: fadeInUp 1s ease-in-out 0.5s forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.auto-type {
  color: var(--primary-color);
  font-size: 24px;
  font-weight: 600;
  min-height: 28px;
  display: inline-block;
  margin-top: 10px;
}

.social-links {
  margin-top: 20px;
}

.social-links a {
  color: var(--primary-color);
  font-size: 28px;
  margin: 0 15px;
}

.social-links a:hover {
  color: #ffffff;
  transform: scale(1.2);
}

.find-me {
  margin-top: 25px;
  font-size: 20px;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 1px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .nav-links {
    display: block;
    text-align: center;
    gap: 10px;
  }

  .about-categories,
  .skill-list,
  .projects-grid {
    flex-direction: column;
    align-items: center;
  }

  #hero {
    padding: 50px 20px;
  }

  #skills, #projects, #about, #contact {
    padding: 50px 15px;
  }
}

@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.2rem;
  }
  #hero p {
    font-size: 1rem;
  }
  .nav-links {
    display: none; /* later replaced by mobile menu */
  }
}


/* 🌗 Light Theme Variables */
body.light-mode {
  --accent-color: #00bfff;        /* sky blue instead of teal */
  --primary-color: #ffffff;       /* pure white for headings */
  --bg-dark: #f0f4f8;             /* shaded white background */
  --section-bg: #e8f0f7;          /* soft blue-white for sections */
  --card-bg: #ffffff;             /* white cards */
  --text-color: #1a1a1a;          /* dark text */
  --secondary-text: #4a4a4a;      /* gray text */
  --text-light: rgba(0, 0, 0, 0.7); 
}

body.light-mode .navbar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

body.light-mode .nav-links a {
  color: #1a1a1a;
}

body.light-mode .nav-links a:hover {
  color: var(--accent-color);
}

body.light-mode .logo {
  color: #1a1a1a;
}

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

/* Smooth transition between themes */
body, .project-card, .navbar, .about-box, .contact-form {
  transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

/* Dark Mode (default) */
#hero, #skills, #contact {
  background: linear-gradient(135deg, #0a0a0a, #112240);
}

#about, #projects {
  background-color: #112240;
}

/* Light Mode (soft smooth blend) */
body.light-mode #hero, 
body.light-mode #skills,
body.light-mode #contact {
  background: linear-gradient(135deg, #eaf3ff, #f5faff);
}

body.light-mode #about,
body.light-mode #projects {
  background-color: #f0f6fc;
}

/* 🌤 Light Mode - Section Backgrounds (Distinct Shades for Each Section) */
body.light-mode #hero {
  background: linear-gradient(135deg, #eaf3ff, #f5faff);
}

body.light-mode #about {
  background: linear-gradient(135deg, #fdfdff, #e7f0ff);
}

body.light-mode #skills {
  background: linear-gradient(135deg, #f4f9ff, #e8f4ff);
}

body.light-mode #projects {
  background: linear-gradient(135deg, #f9fbff, #eef5ff);
}

body.light-mode #contact {
  background: linear-gradient(135deg, #eef6ff, #fdfdff);
}

#theme-toggle i {
  transition: color 0.3s ease;
}

body.light-mode #theme-toggle i {
  color: #0078ff;  /* visible sky blue in light mode */
}


/* Style for toggle button */
#theme-toggle {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--accent-color);
  font-size: 1.3rem;
  margin-left: 1rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

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

/* 🌤 Light Mode Fix — Back to Top Button */
body.light-mode #backToTop {
  background-color: #0078ff !important; /* sky blue button */
  color: #ffffff !important;            /* white arrow text */
  box-shadow: 0 4px 15px rgba(0, 120, 255, 0.4);
}

body.light-mode #backToTop:hover {
  background-color: #0056b3 !important; /* deeper blue on hover */
  box-shadow: 0 6px 18px rgba(0, 120, 255, 0.5);
}

/* ✨ Section Separator Shadow for Depth */
section {
  position: relative;
  z-index: 1;
}

section::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05), transparent);
  z-index: -1;
}

/* ===== Footer Section ===== */
footer {
  background: var(--section-bg);
  color: var(--secondary-text);
  text-align: center;
  padding: 25px 15px;
  font-size: 15px;
  border-top: 1px solid rgba(100, 255, 218, 0.1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 5;
  transition: background 0.3s ease, color 0.3s ease;
}

footer span {
  color: var(--accent-color);
  font-weight: 600;
  transition: color 0.3s ease;
}

footer span:hover {
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--accent-color);
}

/* 🌤 Light Mode Footer Fix */
body.light-mode footer {
  background: linear-gradient(135deg, #f7faff, #eaf3ff);
  color: #333;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode footer span {
  color: #0078ff;
}

@media (max-width: 900px) {
  .container {
    padding: 0 16px;
  }

  section {
    padding: 60px 16px;
  }
}


@media (max-width: 900px) {
  .nav-right {
    position: relative;
    display: flex;
    align-items: center;
  }

  .menu-toggle {
    display: block;
    z-index: 1001;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 0;
    top: 60px;
    background: rgba(10, 10, 10, 0.95);
    width: 70vw;
    max-width: 320px;
    padding: 20px;
    border-radius: 12px;
    text-align: left;
    gap: 1rem;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 8px 0;
    color: var(--text-color);
  }
}


@media (max-width: 768px) {
  #hero {
    min-height: auto;
    padding: 100px 20px 80px;
    overflow: hidden;
  }

  #hero h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  #hero p, .auto-type {
    font-size: 1rem;
  }

  .tagline {
    font-size: 0.95rem;
  }
}

@media (max-width: 900px) {
  #about .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  #about .about-photo img {
    max-width: 200px;
    margin: 0 auto 20px;
  }

  #about .about-box {
    text-align: center;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .skill-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .skill-item {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .project-card {
    max-width: 100%;
  }

  .project-card p {
    font-size: 0.95rem;
  }
}

@media (max-width: 900px) {
  .contact-options {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-info {
    text-align: center;
  }

  .contact-form {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
  p, li { font-size: 0.9rem; }
  .social-links a { font-size: 1.5rem; margin: 0 8px; }
}
