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

/* CSS Variables */
You said:
:root {
  --primary-color: #0077B5;
  --dark-bg: #121212;
  --dark-text: #f1f1f1;
  --light-bg: #ffffff;
  --light-text: #333;
  --card-bg-light: #f9f9f9;
  --card-bg-dark: #1e1e1e;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-dark: rgba(255, 255, 255, 0.05);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(-45deg, #00bcd4, #0077B5, #00bcd4, #f0f4f8);
  background-size: 400% 400%;
  animation: gradientFlow 15s ease infinite;
  color: #fff;
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

body.light-mode {
  background: linear-gradient(-45deg, #e3f2fd, #ffffff, #f3f8ff, #e0f7fa);
  color: #333;
}

body.dark-mode {
  background: linear-gradient(-45deg, #0f2027, #203a43, #2c5364, #1e3c72);
  color: #f1f1f1;
}
html, body {
  transition: background 1s ease, color 1s ease;
}



ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}
/* === NAVIGATION === */
#desktop-nav {
  position: sticky;
  top: 0;
  background-color: var(--light-bg);
  z-index: 999;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px var(--shadow-light);
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

body.dark-mode #desktop-nav {
  background-color: var(--dark-bg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-weight: 600;
  color: inherit;
  transition: color 0.3s ease;
}

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

/* === HAMBURGER NAV === */
#hamburger-nav {
  display: none;
}

@media (max-width: 768px) {
  #desktop-nav {
    display: none;
  }

  #hamburger-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--light-bg);
    position: fixed; /* Changed from sticky to fixed */
    top: 0;
    width: 100%;
    z-index: 1000;
  }
  body.dark-mode #hamburger-nav {
    background: var(--dark-bg); /* ✔️ Switches in dark mode */
  }
  .logo {
  display: none !important;
  font-weight: 600;
  font-size: 1.2rem;
  }
 

  .hamburger-menu {
    cursor: pointer;
  }

  .hamburger-icon span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
    transition: all 0.3s ease;
  }

  .hamburger-icon.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger-icon.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-icon.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}


.menu-links {
  position: fixed; /* Changed from absolute */
  top: 64px; /* Height of navbar */
  right: 0;
  background-color: transparent;
  width: 100vw;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
  box-shadow: none;
  z-index: 999; /* Make sure it's above hero and content */
}

body.dark-mode .menu-links {
  background-color: transparent;
} 

.menu-links.open {
  max-height: 170px; /* Adjust as needed to fit all menu items */
}

.menu-links ul {
  list-style: none;
  padding: 1rem;
  margin: 0;
}

.menu-links ul li {
  margin-bottom: 1rem;
  text-align: right;
}

.menu-links ul li a {
  font-weight: 500;
  color: #0077B5;
  font-size: 1rem;
  text-decoration: none;
}

.dark-toggle {
  display: block;
  margin: 1rem auto;
  font-size: 1.3rem;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border: none;
  border-radius: 50%;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

body.dark-mode .dark-toggle {
  background: rgba(0, 0, 0, 0.6);
  color: #ffdd57;
}
body.dark-mode #hamburger-nav {
  background-color: #111;
}

body.dark-mode .hamburger-icon span {
  background-color: #fff;
}

body.dark-mode .menu-links ul li a {
  color: #0077B5;
}



/* === DARK TOGGLE === */
.dark-toggle {
  position: fixed;
  top: 12px;
  right: 20px;
  z-index: 800; /* Behind hamburger menu */
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
  color: #333;
}

.dark-toggle:hover {
  transform: scale(1.2);
}

body.dark-mode .dark-toggle {
  color: #ffdd57;
}



/* HERO SECTION */
/* === HERO SECTION === */
.hero {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 85vh; /* 🔽 Reduced from 100vh */
  padding: 0 5%;
  position: relative;
  color: white;
  background:
    linear-gradient(
      rgba(0, 0, 0, 0.6),
      rgba(0, 0, 0, 0.6)
    ),
    url('./assets/p.jpg') center/cover no-repeat;
}

/* Responsive for mobile view */
@media (max-width: 768px) {
  .hero {
    min-height: 60vh; /* 🔽 Reduced from 100vh or 50vh if previously set */
    padding: 2rem 1.5rem;
    background-position: top center;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 600px;
}

.hero h1,
.hero .hero-name,
.hero p,
.hero .btn-container {
  opacity: 0;
  transform: translateY(30px);
  animation: slideFadeUp 0.8s ease-out forwards;
}

.hero h1 { animation-delay: 0.2s; }
.hero .hero-name { animation-delay: 0.4s; }
.hero p { animation-delay: 0.6s; }
.hero .btn-container { animation-delay: 0.8s; }

@keyframes slideFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.hero-name {
  font-size: 3.2rem;
  font-weight: 800;
  margin: 0.2rem 0 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.btn-container {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-color-2 {
  background-color: #333;
  color: white;
}

.btn-color-2:hover {
  background-color: #222;
}


/* ABOUT SECTION */
.about-section {
  padding: 4rem 2rem;
}

.about-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.about-img img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.about-text {
  flex: 1;
  min-width: 280px;m
  max-width: 600px;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
body.light-mode .about-section {
  background: linear-gradient(135deg, #f0f4f8, #dceefb); /* Smooth gradient */
  color: #333;
}



.about-img {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float 4s ease-in-out infinite;
}

.about-img::before {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  background: linear-gradient(45deg, #00bcd4, #0077B5);
  border-radius: 50%;
  z-index: 0;
  animation: spin 8s linear infinite;
  filter: blur(10px);
  opacity: 0.6;
}

.about-img img {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 25px rgba(0,0,0,0.2);
  z-index: 1;
  transition: transform 0.3s ease;
}

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


/* ====== My Expertise Section ====== */
.expertise-section {
  padding: 4rem 2rem;
  background: linear-gradient(to bottom, #f0f9ff, #e6f7fc);
  text-align: center;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 2.5rem;
}

.expertise-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.expertise-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  padding: 2rem;
  width: 300px;
  transition: all 0.3s ease;
  text-align: center;
}

.expertise-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.1);
}

.expertise-icon {
  font-size: 2.5rem;
  color: var(--primary-color, #0077cc);
  margin-bottom: 1rem;
}

/* Dark Mode Support */
body.dark-mode .expertise-card {
  background-color: #1f1f1f;
  color: #f0f0f0;
  border: 1px solid #333;
}

body.dark-mode .expertise-icon {
  color: #4da6ff;
}



/* PROJECTS */
#projects {
  background: linear-gradient(135deg, #f0f4f8, #dfe9f3);
  padding: 4rem 2rem;
  text-align: center;
}

/* Projects Section Title */
#projects .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--light-text); /* default light mode */
}

/* Dark Mode Fix */
body.dark-mode #projects .section-title {
  color: #ffffff;
}

/* Container Layout */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-items: center;
}

/* Project Cards */
.project-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Staggered Animation */
.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover Animation */
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* GitHub Link */
.project-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: underline;
}

/* DARK MODE STYLES */
body.dark-mode #projects {
  background: linear-gradient(135deg, #1e1e1e, #2c2c2c);
  color: white;
}

body.dark-mode .project-card {
  background-color: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f1f1;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.05);
}

body.dark-mode .project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(100, 181, 246, 0.2);
}

body.dark-mode .project-link {
  color: #64b5f6;
}
/* 💻 Emoji style + hover animation */
.project-card h3 {
  font-size: 1.25rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.project-card h3 .emoji {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

/* 👾 Emoji bounce effect on hover */
.project-card:hover h3 .emoji {
  transform: translateY(-3px) scale(1.2);
}

/* 🌟 Glow effect on title hover */
.project-card:hover h3 {
  color: var(--primary-color);
  text-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}



/* === SHINE BOARD SECTION === */
#shine-board {
  padding: 4rem 2rem;
  text-align: center;
  background-color: var(--dark-bg);
  color: white;
}

body.light-mode #shine-board {
  background: linear-gradient(135deg, #f3f8ff, #e0f7fa);
  color: var(--light-text);
}

#shine-board .section-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #ff5e78;
  margin-bottom: 3rem;
}

.shine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center;
}

.shine-item {
  width: 100%;
  max-width: 300px;
  min-height: 280px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  color: var(--light-text);
  padding: 1.5rem 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: all 0.3s ease;
  text-align: center;
}

body.dark-mode .shine-item {
  background-color: var(--card-bg-dark);
  color: white;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.shine-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
}

.shine-description {
  max-width: 800px;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--light-text);
}

body.dark-mode .shine-description {
  color: white;
}

.shine-item p,
.shine-item a {
  color: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  margin-top: 0.5rem;
}

.shine-item a {
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.3s ease;
}

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

.shine-item img {
  width: 100%;
  max-width: 180px;
  height: auto;
  background: white;
  padding: 0.5rem;
  border-radius: 10px;
  object-fit: contain;
  display: block;
  margin: 0.5rem auto;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  cursor: pointer;
}

.shine-item::before {
  content: '📌';
  position: absolute;
  top: -15px;
  left: -10px;
  font-size: 1.5rem;
  transform: rotate(-20deg);
}

@media (max-width: 1024px) {
  .shine-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .shine-grid {
    grid-template-columns: 1fr;
  }
}

.shine-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shine-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.4);
}

/* === MODAL (Fullscreen Preview) === */

.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.modal .close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* === SKILLS SECTION === */
#skills {
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(-45deg, #e0f7fa, #e3f2fd, #f3f8ff, #e0f2f1);
  background-size: 400% 400%;
  animation: skillsGradientFlow 20s ease infinite;
  color: var(--light-text);
}

#skills .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: #333;
}

/* Dark Mode Theme */
body.dark-mode #skills {
  background: linear-gradient(-45deg, #1e1e1e, #2a2a2a, #1e1e1e, #2a2a2a);
}

body.dark-mode #skills .section-title {
  color: #ffffff;
}

/* === Circular Skills Layout === */
.circular-skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
  animation: fadeInSkill 1s ease-in-out forwards;
  opacity: 0;
}

.circle.show {
  opacity: 1;
}

/* === Circular Chart === */

.circular-chart {
  width: 100px;
  height: 100px;
  transform: rotate(-90deg);
}

.circle-bg {
  fill: none;
  stroke: #eee;
  stroke-width: 3.8;
}

.circle-progress {
  fill: none;
  stroke-width: 3.8;
  stroke-linecap: round;
  transition: stroke-dasharray 0.6s ease;
}

body.dark-mode .circle p {
  color: #fff;
}
.circle p {
  margin-top: 0.5rem;
  font-weight: 500;
  color: #333;
}

/* === Text Percentage === */
.percentage {
  fill: #333;
  font-size: 0.5em;
  text-anchor: middle;
  font-family: 'Poppins', sans-serif;
  animation: pulseText 2s infinite;
}

body.dark-mode .percentage {
  fill: #fff;
}

/* === Stroke Colors === */
.green .circle-progress { stroke: #4caf50; }
.orange .circle-progress { stroke: #ff9800; }
.red .circle-progress { stroke: #f44336; }
.blue .circle-progress { stroke: #2196f3; }
.purple .circle-progress { stroke: #9c27b0; }
.teal .circle-progress { stroke: #009688; }
.cyan .circle-progress { stroke: #00bcd4; }

/* === Animations === */
@keyframes skillsGradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeInSkill {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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


/* === CONTACT SECTION === */
#contact {
  padding: 4rem 2rem;
  background: linear-gradient(to right, #e0f7fa, #f3f8ff);
  color: var(--light-text);
}

body.dark-mode #contact {
  background-color: #121212;
  color: #f1f1f1;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* === Contact Form === */
.contact-form {
  flex: 1.6;
  min-width: 360px;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.contact-form h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #ff5e78;
  display: inline-block;
  padding-bottom: 0.4rem;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fff;
  color: #333;
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  background-color: #2a2a2a;
  color: #f1f1f1;
  border: 1px solid #555;
}

.contact-form button {
  margin-top: auto;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color, #0077B5); 
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  position: relative;
  z-index: 1; 
}

.contact-form button:hover {
  background-color: #005f9e; /* darker shade for hover */
}


/* === Contact Box (Get in Touch) === */
.contact-box {
  flex: 0.7;
  min-width: 280px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

body.dark-mode .contact-form,
body.dark-mode .contact-box {
  background-color: #1e1e1e;
  color: #f1f1f1;
}

.contact-box h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #ff5e78;
  display: inline-block;
  padding-bottom: 0.4rem;
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-item-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-item p {
  margin: 0;
}

.contact-socials {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-icon-img {
  width: 30px;
  height: 30px;
}

.contact-box a {
  color: inherit;
  text-decoration: none;
}

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

/* === Responsive === */
@media (max-width: 768px) {
  .contact-grid {
    flex-direction: column;
    align-items: stretch;
  }

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


/* Background Animation */
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* FOOTER */
footer.footer {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 0.6rem 0.5rem;       
  text-align: center;
  font-size: 0.8rem;           
  margin-top: 4rem;            
}

/* 🌙 Dark Mode Footer Text Color */
body.dark-mode footer.footer {
  color: var(--dark-text);
}

/* 📱 Mobile tweak */
@media (max-width: 768px) {
  footer.footer {
    padding: 0.4rem 0.5rem;   
    font-size: 0.7rem;
  }
}
* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-container {
    flex-direction: column;
  }

  .theme-toggle {
    margin-top: 1rem;
  }
}
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Let animated body gradient show through all major sections */
#expertise,
#skills,
#projects,
#shine-board,
#contact {
  background-color: transparent !important;
  backdrop-filter: none;
  box-shadow: none;
}

/* === DARK MODE TOGGLE BUTTON FLOATING === */
.dark-toggle {
  position: fixed;
  top: 12px;
  right: 20px;
  z-index: 1001;
  font-size: 1.6rem;
  background: rgba(255, 255, 255, 0.8);
  color: #333;
  border: none;
  border-radius: 50%;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease, transform 0.2s, box-shadow 0.2s ease;
}

.dark-toggle:hover {
  transform: scale(1.1);
  background: #f0f0f0;
  box-shadow: 0 0 0 6px rgba(255, 221, 87, 0.3); /* ✨ Bonus UX effect */
}

body.dark-mode .dark-toggle {
  background: rgba(0, 0, 0, 0.6);
  color: #ffdd57;
}

/* 📱 Mobile Optimization */
@media (max-width: 768px) {
  .dark-toggle {
    top: 0px; /* 👈 Push it below hamburger */
    right: 66px;
    font-size: 1.3rem;
    padding: 0.3rem 0.5rem;
    z-index: 1100; /* Make sure it layers above menu */
  }
}

/* === HERO Responsive Tweak === */
@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
    padding: 1.5rem 1rem;
    background-position: top center;
    background-size: cover;
    display: flex;
    align-items: center;
  }

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

  .hero h1 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
  }

  .hero-name {
    font-size: 1.8rem;
    margin: 0.2rem 0 0.8rem;
  }

  .hero p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .btn-container {
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
    font-size: 0.95rem;
    justify-content: center;
    padding: 0.6rem 1rem;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.modal.show {
  display: flex;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.modal .close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

