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

html {
  scroll-behavior: smooth; 
} 

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
  padding-top: 50px/* Adjust this value based on your navbar height */
}

/* --- FIXED DARK MODE STYLES --- */
body.darkmode {
  background: #121212;
  color: #f6f3f3;
}

body.darkmode .navbar {
  background: rgba(18, 18, 18, 0.95);
  border-bottom: 1px solid #333;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

body.darkmode .nav-link {
  color: #3e3eb3;
}

body.darkmode .nav-link:hover {
  color: #abb0b5;
}

body.darkmode .section-title {
  color: #66b3ff;
}

body.darkmode .achievement-card,
body.darkmode .timeline-content,
body.darkmode .resume-btn .contact-form {
  background: #1e1e1e;
  border: 1px solid #333;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.darkmode input,
body.darkmode textarea {
  background: #1e1e1e;
  color: #e0e0e0;
  border: 1px solid #333;
}

body.darkmode input:focus,
body.darkmode textarea:focus {
  border-color: #66b3ff;
}

body.darkmode .cta-button {
  background: #66b3ff;
  color: #121212;
}

body.darkmode .cta-button:hover {
  background: #3700ce;
}

body.darkmode .hamburger .bar {
  background: #c8b1b1;
}

body.darkmode .nav-menu {
  background: #121212;
}

/* Dark mode specific hover effects */
body.darkmode .detail-item:hover,
body.darkmode .achievement-card:hover,
body.darkmode .social-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

body.darkmode .social-link:hover {
  color: #0c151d;
}

/* --- END DARK MODE FIXES --- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-image: linear-gradient(to right, rgb(151, 232, 162), rgb(151, 108, 238));
  box-shadow: 0 2px 4px rgba(95, 88, 88, 0.1);
  z-index: 1000;
}

.navbar.hide {
  transform: translateY(-100%);
}

.navbar.show {
  transform: translateY(0);
}

.nav-container {
  max-width: 1400x;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-image: linear-gradient(to right, rgb(73, 41, 122), rgba(103, 16, 217, 0.59));
}


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

.nav-logo {
    color: #19a5a3; /* Bright blue for light mode */
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    font-family: "Roboto", sans-serif;
}


/* Dark mode - keep the same blue color */
body.darkmode .nav-logo {
    color: #0066cc !important; /* Using !important to override any other styles */
}

/* Hover effect (optional) */
.nav-logo:hover,
body.darkmode .nav-logo:hover {
    color: #325170 !important; /* Slightly darker blue on hover */
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;

}

.nav-link {
  color: #2d357e;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #0c3156;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #325088;
  transition: width 0.20s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: #3498db;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
 
}

.bar {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* Section Styling */
section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #FFD700; /* golden for headings in light mode */
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(45deg, #3498db, #2ecc71);
  border-radius: 2px;
}

/* Update the dark mode section title style */
body.darkmode .section-title {
  color: #ffd700;
}

/* Home Section */
.home {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #310e54 100%);
  color: white;
  text-align: center;
}

/* Add specific dark mode style for home section if needed */
body.darkmode .home {
  background: linear-gradient(135deg, #434343 0%, #000000 100%);
}

.home-content {
  max-width: 600px;
  padding: 2rem;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 3px solid #0066cc;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.name {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

/* Make sure text is visible in both modes */
.name, .tagline, .intro {
  color: rgba(240, 170, 7, 0.782); /* This will work for both light and dark modes since the background is dark */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.871); /* Optional: adds a slight shadow for better readability */
}

.tagline {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.intro {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.cta-button {
  display: inline-block;
  padding: 12px 30px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  font-weight: 600;
}

.cta-button:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

body.darkmode .cta-button,
body.darkmode .submit-button {
  background: #ffd700;
  color: #181a1b;
}

/* About Section */
.about {
  background: #eff1eb;
background-image: linear-gradient(to right, rgb(151, 232, 162), rgb(159, 115, 248));
}

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

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #2c3e50;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.detail-item {
  background: rgb(174, 194, 191);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.detail-item:hover {
  transform: translateY(-3px);
}

.detail-item strong {
  color: #3498db;
}

.about-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #480101;
  background: rgb(193, 218, 165);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Education Section */
.education {
  /* background: white; */
  background-image: linear-gradient(to right, rgb(151, 232, 162), rgb(159, 115, 248));
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #3498db, #023950);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-date {
  flex: 1;
  text-align: center;
  font-weight: bold;
  color: #023950;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-content {
  flex: 1;
  background: rgb(157, 210, 234);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin: 0 1rem;
  position: relative;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 15px;
  height: 15px;
  background: #023950;
  border-radius: 50%;
  transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
  left: -7px;
}

.timeline-item:nth-child(even) .timeline-content::before {
  right: -7px;
}

.timeline-content h3 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

/* Achievements Section */
.achievements {
  background: #f8f9fa;
    background-image: linear-gradient(to right, rgb(151, 232, 162), rgb(159, 115, 248));
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Achievement Cards - Light Mode */
.achievement-card {
    background: #62c1c6;
    color: #333333;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.achievement-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.achievement-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.achievement-card h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  
}

.achievement-card p {
  color: #666;
  line-height: 1.6;
}

body.darkmode .achievement-card {
    background: #2d2d2d;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.course-link {
 display: inline-block;
  padding: 12px 30px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  font-weight: 600;
}

.course-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  padding: 15px;
}

.course-link:hover .darkmode{
  background: #ffd700;
  color: #181a1b;
}


/* Skills Section - Light Mode */
.skills {
  padding: 50px 0;
  background: rgb(6, 0, 0);
  background-image: linear-gradient(to right, rgb(151, 232, 162), rgb(159, 115, 248));
}

.skills-category {
  margin-bottom: 30px;
  background: #84a3aa;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.skill {
  margin: 15px 0;
}

.skill-name {
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
  font-weight: 600;
  color: #2c3e50;
}

.progress-bar {
  width: 100%;
  background: #f0f0f0;
  border-radius: 50px;
  overflow: hidden;
  height: 25px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.progress {
  width: 0;
  height: 100%;
  line-height: 25px;
  text-align: right;
  padding-right: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  border-radius: 50px;
  transition: width 1s ease-in-out;
}

/* Colors */
.fill-blue { background: linear-gradient(90deg, #36D1DC, #5B86E5); }
.fill-green { background: linear-gradient(90deg, #56ab2f, #a8e063); }
.fill-orange { background: linear-gradient(90deg, #ff8008, #ffc837); }
.fill-purple { background: linear-gradient(90deg, #8e2de2, #4a00e0); }
.fill-teal { background: linear-gradient(90deg, #11998e, #38ef7d); }
.fill-pink { background: linear-gradient(90deg, #f953c6, #b91d73); }
.progress:nth-child(1) { background: linear-gradient(90deg, #4facfe, #00f2fe); }
.progress:nth-child(2) { background: linear-gradient(90deg, #43e97b, #38f9d7); }
/* etc. */


.skills-content {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}


.skills-category h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #2c3e50;
  text-align: center;
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-bar {
  height: 10px;
  background: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
}
.soft-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.soft-skill {
  background: linear-gradient(45deg, #3498db, #2ecc71);
  color:rgb(55, 102, 177);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
} 

body.darkmode .skills-category {
    background: #2d2d2d;
    color: rgb(55, 102, 177);
}



.resume-section {
  text-align: center;
  margin: 40px auto 2rem;   /* keeps it centered */
  background: #84a3aa;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

  width: 650px;   /* ← breadth */
  height: 170px;  /* ← length */
}
/* width = horizontal size (breadth).

height = vertical size (length). */


.resume-heading {
  font-size: 20px;
  margin-bottom: 15px;
  color: #333;
}


  .resume-btn {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid #03a199;
    color: #03a199;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;   /* pill shape */
    background: transparent;
    transition: all 0.3s ease;
  }

  .resume-btn:hover {
    background: #03a199;
    color: #fff;
    transform: scale(1.05);
  }

  .resume-btn:active {
    transform: scale(0.98);
  }



/* Social Section */
.social {
  background: #c766b7;
  background-image: linear-gradient(to right, rgb(151, 232, 162), rgb(159, 115, 248));
}

.social-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  background: rgb(55, 102, 177);

  border-radius: 15px;
  text-decoration: none;
  color: #2c3e50;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  color: #3498db;
}

.social-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.social-icon img {
  width: 60px;
  height: 60px;
   
}

.social-name {
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
}

/* Contact Section */
.contact {
  /* background: rgb(55, 102, 177); */
  background-image: linear-gradient(to right, rgb(151, 232, 162), rgb(159, 115, 248));
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #2c3e50;
}

.contact-item {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.contact-item a {
  color: #0881d1;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* Contact Form - Light Mode */
.contact-form {
     background-color: antiquewhite;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.166);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2c3e50;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #01242c;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3498db;
}

body.darkmode input,
body.darkmode textarea {
  background: #1a1a1a;
  color: #ffffff;
  border-color: #444;
}

.submit-button {
  width: 100%;
  padding: 12px;
 background-color: #09907c;
  color: rgba(82, 56, 56, 0.677);
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}


.dont-click {
  border: none;
}


/* Footer */
.footer {
  background: #354d66;
  color: white;
  text-align: center;
  padding: 2rem 0;
}

.footer p {
  margin: 0;
  opacity: 0.8;
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
}

.dark-mode-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

body.darkmode .dark-mode-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.toggle-icon {
    line-height: 1;
}

/* Remove the old .mode-toggle, #darkModeToggle, .toggle-track, .toggle-indicator styles */

/* Navigation Dark Mode Styles */
.darkmode .navbar {
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
}
.darkmode .nav-link {
    color: #ffffff;
}

.darkmode .nav-link:hover {
    color: #4db5ff;
}

.darkmode .hamburger .bar {
    background-color: #3e3e88;
}

/* Make sure mobile menu is visible in dark mode */
.darkmode .nav-menu.active {
    background-color: rgba(18, 20, 24, 0.92);
    border: 1px solid #333;
}

/* Style the active nav link in dark mode */
.darkmode .nav-link.active {
    color: #4db5ff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: rgba(52, 152, 219, 0.35) !important; /* light transparent blue */
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    backdrop-filter: saturate(180%) blur(8px);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    gap: 1rem;
  }

  .nav-menu.active {
    left: 0;
    background-color: rgba(52, 152, 219, 0.35) !important; /* light transparent blue */
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    backdrop-filter: saturate(180%) blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.06);
  }

  .home-content {
    padding: 1rem;
  }

  .name {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .skills-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    flex-direction: row !important;
  }

  .timeline-date {
    flex: 0 0 60px;
    text-align: left;
  }

  .timeline-content {
    margin-left: 2rem;
  }

  .timeline-content::before {
    left: -7px !important;
  }

  .container {
    padding: 0 1rem;
}
}

/* Refined Dark Mode Palette Overrides */
body.darkmode {
  background: #0d0f12;
  color: #e6e6e6;
}

body.darkmode .navbar {
  background: #121418 !important;
  border-bottom: 1px solid #232a31 !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35) !important;
}

body.darkmode .nav-logo {
  color: #64b5f6 !important;
}

body.darkmode .nav-link {
  color: #cfd8dc !important;
}

body.darkmode .nav-link:hover {
  color: #64b5f6 !important;
}

body.darkmode .nav-link.active {
  color: #64b5f6 !important;
}

body.darkmode .section-title {
  color: #FFD700 !important; /* golden for headings in dark mode */
}

body.darkmode .achievement-card,
body.darkmode .timeline-content,
body.darkmode .contact-form {
  background: #12171d !important;
  border: 1px solid #263238 !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4) !important;
}

body.darkmode input,
body.darkmode textarea {
  background: #0f1317 !important;
  color: #e6e6e6 !important;
  border: 1px solid #37474f !important;
}

body.darkmode input:focus,
body.darkmode textarea:focus {
  border-color: #64b5f6 !important;
}

body.darkmode .cta-button {
  background: #64b5f6 !important;
  color: #0d0f12 !important;
  border-color: #64b5f6 !important;
}

/* Override to ensure readability and transparent style in dark mode */
body.darkmode .cta-button {
  background: transparent !important;
  color: #ffffff !important;
  border-color: rgba(100, 181, 246, 0.7) !important;
  text-shadow: 0 1px 1px rgba(0,0,0,0.4) !important;
}

body.darkmode .cta-button:hover {
  background: #42a5f5 !important;
}

body.darkmode .hamburger .bar {
  background: #e6e6e6 !important;
}

body.darkmode .nav-menu,
body.darkmode .nav-menu.active {
  background-color: rgba(18, 20, 24, 0.92) !important;
  border: 1px solid #232a31 !important;
}

body.darkmode .social-link {
  background: #12171d !important;
  color: #cfd8dc !important;
}

body.darkmode .social-link:hover {
  color: #64b5f6 !important;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35) !important;
}

body.darkmode .footer {
  background: #0f1114 !important;
  color: #cfd8dc !important;
}

/* Dark Mode Section Background Overrides (remove colorful gradients) */
body.darkmode .navbar,
body.darkmode .nav-container {
  background-image: none !important;
}

body.darkmode .nav-container {
  background: transparent !important;
}

body.darkmode .home,
body.darkmode .about,
body.darkmode .education,
body.darkmode .skills,
body.darkmode .social,
body.darkmode .contact {
  background: #12171d !important;
  background-image: none !important;
}

/* Ensure mobile menu panel matches dark palette */
@media (max-width: 768px) {
  body.darkmode .nav-menu {
    background-color: #121418 !important;
    border-color: #232a31 !important;
  }
}

/* Responsive Enhancements */
@media (max-width: 1200px) {
  .container { max-width: 1000px; }
  .skills-content { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 992px) {
  section { padding: 4rem 0; }
  .nav-container { padding: 0.75rem; }
  /* Switch to hamburger and overlay menu on tablets */
  .hamburger { display: flex; }
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: rgba(52, 152, 219, 0.35); /* light transparent blue */
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    backdrop-filter: saturate(180%) blur(8px);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    gap: 1rem;
  }
  .nav-menu.active {
    left: 0;
    background-color: rgba(52, 152, 219, 0.35); /* light transparent blue */
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    backdrop-filter: saturate(180%) blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.06);
  }
  .home-content { max-width: 560px; }
  .section-title { font-size: 2.2rem; }
  .name { font-size: 2.6rem; }
  .skills-content { grid-template-columns: 1fr; gap: 2rem; }
  .about-content, .skills-content, .contact-content { padding: 0 1rem; }
}

@media (max-width: 768px) {
  .nav-container { padding: 0.5rem; }
  .home { min-height: 80vh; }
  .home-content { padding: 1rem; }
  .profile-photo { width: 160px; height: 160px; }
  .name { font-size: 2.2rem; }
  .tagline { font-size: 1.1rem; }
  .intro { font-size: 1rem; }
  .cta-button { padding: 10px 24px; font-size: 0.95rem; }
  .skills-content { grid-template-columns: 1fr; }
  .social-links { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

  /* Timeline mobile fix: prevent center line overlapping year labels */
  .timeline { padding-left: 24px; }
  .timeline::before { left: 6px !important; width: 2px !important; z-index: 0; }
  .timeline-item, .timeline-date, .timeline-content { position: relative; z-index: 1; }
  .timeline-date { text-align: left; padding-left: 8px; }
  .timeline-content { margin-left: 1rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 0.75rem; }
  section { padding: 3rem 0; }
  .profile-photo { width: 140px; height: 140px; }
  .name { font-size: 2rem; }
  .tagline { font-size: 1rem; }
  .intro { font-size: 0.95rem; }
  .cta-button { padding: 10px 22px; font-size: 0.9rem; }
  .social-links { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .social-link { padding: 1.25rem; }
  .progress-bar { height: 20px; }
}

/* Center the "View Course" buttons inside achievement cards */
.achievement-card .course-link {
  display: block !important;
  width: fit-content;
  margin: 0.75rem auto 0 !important; /* true horizontal centering */
  padding: 10px 20px;
  background: transparent;
  color: #3498db;
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid rgba(52, 152, 219, 0.7);
  font-weight: 600;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.achievement-card .course-link:hover {
  transform: translateY(-2px);
  background-color: rgba(52, 152, 219, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Dark mode variant for course buttons */
body.darkmode .achievement-card .course-link {
  background: transparent !important;
  color: #64b5f6 !important;
  border: 2px solid rgba(100, 181, 246, 0.7) !important;
}
body.darkmode .achievement-card .course-link:hover {
  background-color: rgba(100, 181, 246, 0.15) !important;
}

/* Dark Mode Tonal Backgrounds (softer, not pure black) */
body.darkmode {
  background: #0f141a !important; /* deep slate */
  color: #e4e7eb !important;
}

body.darkmode .navbar,
body.darkmode .nav-container {
  background: rgba(18, 20, 24, 0.96) !important; /* charcoal */
  background-image: none !important;
}

/* Subtle color‑tinted dark gradients per section */
body.darkmode .home {
  background: linear-gradient(135deg, #0f1a24 0%, #13202c 100%) !important; /* dark blue */
}

body.darkmode .about {
  background: linear-gradient(135deg, #14181e 0%, #1a2028 100%) !important; /* graphite */
}

body.darkmode .education {
  background: linear-gradient(135deg, #111a17 0%, #15211d 100%) !important; /* deep green */
}

body.darkmode .skills {
  background: linear-gradient(135deg, #161522 0%, #1b1a2d 100%) !important; /* indigo tint */
}

body.darkmode .social {
  background: linear-gradient(135deg, #1a1620 0%, #221c2b 100%) !important; /* plum tint */
}

body.darkmode .contact {
  background: linear-gradient(135deg, #121a22 0%, #172129 100%) !important; /* teal tint */
}

/* Surfaces slightly lighter than section backgrounds for depth */
body.darkmode .achievement-card,
body.darkmode .timeline-content,
body.darkmode .contact-form,
body.darkmode .social-link {
  background: #141a20 !important; /* surface */
  border: 1px solid #1f2730 !important;
}

/* Dark Mode Navbar/Menu Border Cleanup */
.darkmode .navbar,
body.darkmode .navbar {
  border-bottom: none !important;
}

.darkmode .nav-menu,
.darkmode .nav-menu.active,
body.darkmode .nav-menu,
body.darkmode .nav-menu.active {
  border: none !important;
}

/* === About: Dark mode surfaces for personal details & paragraph === */
body.darkmode .detail-item {
  background: #141a20 !important;
  color: #e4e7eb !important;
  border: 1px solid #1f2730 !important;
}

body.darkmode .detail-item strong {
  color: #64b5f6 !important;
}

body.darkmode .about-description {
  background: #141a20 !important;
  color: #cfd8dc !important;
  border: 1px solid #1f2730 !important;
}

/* === Achievements: Dark mode section background (avoid pure black) === */
body.darkmode .achievements {
  background: linear-gradient(135deg, #151a22 0%, #1b2028 100%) !important;
  background-image: none !important;
}

/* === Skills: Light mode base color and multicolor progress bars === */
.skills { background-color: #f5f7fa; }

.skills-category .skill:nth-child(1) .progress { background: linear-gradient(90deg, #4facfe, #00f2fe); }
.skills-category .skill:nth-child(2) .progress { background: linear-gradient(90deg, #43e97b, #38f9d7); }
.skills-category .skill:nth-child(3) .progress { background: linear-gradient(90deg, #fa709a, #fee140); }
.skills-category .skill:nth-child(4) .progress { background: linear-gradient(90deg, #a18cd1, #fbc2eb); }
.skills-category .skill:nth-child(5) .progress { background: linear-gradient(90deg, #f6d365, #fda085); }
.skills-category .skill:nth-child(6) .progress { background: linear-gradient(90deg, #84fab0, #8fd3f4); }

/* Dark mode track styling for progress bars */
body.darkmode .progress-bar {
  background: #19222b !important;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.25) !important;
}

/* === Dark mode text visibility improvements === */
body.darkmode .about-text h3 { color: #e4e7eb !important; }
body.darkmode .skill-name { color: #cfd8dc !important; }
body.darkmode .skills-category h3 { color: #e4e7eb !important; }
body.darkmode .timeline-date { color: #cfd8dc !important; }
body.darkmode .timeline-content h3 { color: #e4e7eb !important; }
body.darkmode .timeline-content p { color: #cfd8dc !important; }
body.darkmode .achievement-card p { color: #cfd8dc !important; }
body.darkmode .contact-item a { color: #64b5f6 !important; }

/* === 'Don't click' button styling (both modes) === */
#dont-click {
  padding: 10px 20px;
  border-radius: 8px;
  background: transparent !important;
  color: #ff0000 !important; /* red text */
  border: 2px solid rgba(255, 0, 0, 0.8) !important; /* red border */
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  margin-top: 1rem;
}

#dont-click:hover { transform: translateY(-2px); background-color: rgba(255, 0, 0, 0.12); box-shadow: 0 8px 20px rgba(0,0,0,0.16); }
body.darkmode #dont-click { background: transparent !important; color: #ff4d4d !important; border: 2px solid rgba(255, 77, 77, 0.9) !important; }
body.darkmode #dont-click:hover { background-color: rgba(255, 77, 77, 0.15) !important; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
#dont-click.shake { animation: shake 0.4s linear; }

/* === Dark mode buttons: add border (exclude toggle) === */
body.darkmode button,
body.darkmode .cta-button,
body.darkmode .submit-button {
  background: transparent !important;
  color: #eaf2f8 !important;
  border: 2px solid rgba(100, 181, 246, 0.7) !important;
  border-radius: 8px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.darkmode .dark-mode-toggle {
  background: transparent !important;
  color: #eaf2f8 !important;
  border: none !important;
  border-radius: 50%;
}

body.darkmode button:hover,
body.darkmode .cta-button:hover,
body.darkmode .submit-button:hover {
  background-color: rgba(100, 181, 246, 0.15) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* === Light mode accent buttons (compliment green/purple gradients) === */
/* === Light mode transparent buttons with shadows (exclude toggle & don't-click) === */
body:not(.darkmode) .cta-button,
body:not(.darkmode) .submit-button,
body:not(.darkmode) .achievement-card .course-link {
  background: transparent !important;
  color: #2f89c7 !important; /* azure text */
  border: 2px solid #2f89c7 !important; /* azure border */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important; /* subtle shadow */
}

body:not(.darkmode) .cta-button:hover,
body:not(.darkmode) .submit-button:hover,
body:not(.darkmode) .achievement-card .course-link:hover {
  background-color: rgba(47, 137, 199, 0.08) !important; /* transparent tint */
  box-shadow: 0 8px 20px rgba(0,0,0,0.16) !important;
  transform: translateY(-2px);
}

/* === Light mode specific styling for Send Message button === */
body:not(.darkmode) .submit-button {
  background: #f5f5f5 !important; /* light grey background */
  color: #050c4a !important;      /* dark blue text */
  border: 2px solid #d0d0d0 !important; /* subtle grey border */
}
body:not(.darkmode) .submit-button:hover {
  background: #eaeaea !important; /* slightly darker on hover */
  box-shadow: 0 8px 20px rgba(0,0,0,0.16) !important;
}

/* (reverted) Use default footer colors in dark mode */

