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

:root {
  /* Dark Theme (Default) */
  --body-bg-color: #0a0a0a;
  --primary-header-footer-bg: #121212; /* Was --primary-color */
  --card-bg-color: #1a1a1a;
  --section-odd-bg-color: rgba(10, 25, 41, 0.3); /* Dark blueish tint */

  --text-primary: #e0e0e0;
  --text-secondary: #8c8c8c; /* Was --accent-color for less important text */
  --text-on-dark-bg: #ffffff; /* Was --light-text */
  --text-on-light-bg: #121212; /* Was --dark-text */

  --accent-main: #3b82f6; /* Main blue accent */
  --accent-main-glow: rgba(59, 130, 246, 0.5);
  --accent-secondary: #2c5282; /* Subtle dark blue, was --highlight-color */
  --accent-border: #4d4d4d; /* Was --secondary-color for borders */
  --accent-darkest: #050505; /* Was --dark-accent */

  --gradient-primary-bg: linear-gradient(135deg, #121212 0%, #1a1a1a 50%, #0d0d0d 100%);
  --gradient-secondary-bg: linear-gradient(135deg, #333 0%, #555 100%);
  --gradient-accent-bg: linear-gradient(135deg, #2c5282 0%, #3b82f6 100%);

  --shadow-card-color: rgba(0, 0, 0, 0.5);
  --shadow-button-color: rgba(59, 130, 246, 0.3);
  --shadow-button-hover-color: rgba(59, 130, 246, 0.6);
  --shadow-text-section-title-color: rgba(255, 255, 255, 0.2);
  --shadow-logo-color: rgba(0, 150, 255, 0.5);
  --shadow-mobile-nav-color: rgba(0, 0, 0, 0.5);

  --star-color: #fff;
  --star-glow-color: #fff;
  --star-blue-tint: rgba(59, 130, 246, 0.4); /* For some stars */
  --shooting-star-color-start: rgba(255, 255, 255, 0.9);
  --shooting-star-blue-color-start: rgba(59, 130, 246, 0.9);
  --shooting-star-shadow-color: rgba(255, 255, 255, 0.3);
  --shooting-star-blue-shadow-color: rgba(59, 130, 246, 0.6);


  --input-bg-color: rgba(255, 255, 255, 0.07);
  --input-border-color: rgba(255, 255, 255, 0.1);
  --input-focus-bg-color: rgba(255, 255, 255, 0.05);
  --input-focus-border-color: var(--accent-main);
  --input-focus-shadow-color: var(--accent-main-glow);

  --card-border-color: rgba(255, 255, 255, 0.05);
  --card-hover-border-color: var(--accent-main);
  --card-hover-shadow-color: var(--accent-main-glow);

  --contact-form-border-color: rgba(100, 181, 246, 0.1);
  --social-link-bg-color: rgba(255, 255, 255, 0.1);
  --timeline-line-bg: var(--gradient-secondary-bg);
  --timeline-dot-border-color: #fff;

  --button-glow-effect-color: rgba(255, 255, 255, 0.4);
  --mobile-nav-border-color: rgba(59, 130, 246, 0.2);

  --gradient-blur-opacity: 0.2;
  --gradient-blur-blue-col1: rgba(59, 130, 246, 0.8);
  --gradient-blur-blue-col2: rgba(37, 99, 235, 0.4);
  --gradient-blur-blue-col3: rgba(59, 130, 246, 0);
  --gradient-blur-purple-col1: rgba(139, 92, 246, 0.8);
  --gradient-blur-purple-col2: rgba(124, 58, 237, 0.4);
  --gradient-blur-purple-col3: rgba(139, 92, 246, 0);
  --gradient-blur-cyan-col1: rgba(34, 211, 238, 0.8);
  --gradient-blur-cyan-col2: rgba(6, 182, 212, 0.4);
  --gradient-blur-cyan-col3: rgba(34, 211, 238, 0);
  --gradient-blur-red-col1: rgba(239, 68, 68, 0.6);
  --gradient-blur-red-col2: rgba(220, 38, 38, 0.3);
  --gradient-blur-red-col3: rgba(239, 68, 68, 0);
  --gradient-blur-green-col1: rgba(16, 185, 129, 0.6);
  --gradient-blur-green-col2: rgba(5, 150, 105, 0.3);
  --gradient-blur-green-col3: rgba(16, 185, 129, 0);
  --gradient-blur-gold-col1: rgba(245, 158, 11, 0.6);
  --gradient-blur-gold-col2: rgba(217, 119, 6, 0.3);
  --gradient-blur-gold-col3: rgba(245, 158, 11, 0);
}

body.light-mode {
  --body-bg-color: #ffffff;
  --primary-header-footer-bg: #f0f0f0;
  --card-bg-color: #f8f9fa;
  --section-odd-bg-color: #f0f2f5;

  --text-primary: #333333;
  --text-secondary: #555555;
  --text-on-dark-bg: #222222; /* Text that was white on dark backgrounds, now dark on light ones */
  --text-on-light-bg: #ffffff; /* Text that was dark on light backgrounds (buttons), now light */

  --accent-main: #007bff;
  --accent-main-glow: rgba(0, 123, 255, 0.3);
  --accent-secondary: #0056b3; /* Darker blue for highlights on light bg */
  --accent-border: #cccccc;
  --accent-darkest: #e0e0e0;

  --gradient-primary-bg: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 50%, #dee2e6 100%);
  --gradient-secondary-bg: linear-gradient(135deg, #bbb 0%, #ddd 100%);
  --gradient-accent-bg: linear-gradient(135deg, #007bff 0%, #56aaff 100%);

  --shadow-card-color: rgba(0, 0, 0, 0.1);
  --shadow-button-color: rgba(0, 123, 255, 0.2);
  --shadow-button-hover-color: rgba(0, 123, 255, 0.4);
  --shadow-text-section-title-color: rgba(0, 0, 0, 0.1);
  --shadow-logo-color: rgba(0, 100, 200, 0.4);
  --shadow-mobile-nav-color: rgba(0, 0, 0, 0.15);

  /* Light Mode Star Colors - Black, Red, Blue with subtle neon glow */
  --star-color-light-black: #2c3e50; /* Darker, less intense black */
  --star-glow-color-light-black: rgba(44, 62, 80, 0.5); /* Subtle dark glow */
  --star-color-light-red: #e74c3c; /* Standard red */
  --star-glow-color-light-red: rgba(231, 76, 60, 0.4);
  --star-color-light-blue: #3498db; /* Standard blue */
  --star-glow-color-light-blue: rgba(52, 152, 219, 0.4);

  /* Override general star colors for light mode - these will be set by JS */
  --star-color: var(--star-color-light-black); /* Default to one, JS will vary */
  --star-glow-color: var(--star-glow-color-light-black);

  --star-blue-tint: rgba(0, 100, 200, 0.4); /* Kept for shooting stars if needed */
  --shooting-star-color-start: rgba(85, 85, 85, 0.9); /* Darker shooting stars */

  --input-bg-color: #eeeeee;
  --input-border-color: #dddddd;
  --input-focus-bg-color: #f5f5f5;
  /* --input-focus-border-color is already var(--accent-main) */
  /* --input-focus-shadow-color is already var(--accent-main-glow) */

  --card-border-color: rgba(0, 0, 0, 0.08);
  /* --card-hover-border-color is var(--accent-main) */
  /* --card-hover-shadow-color is var(--accent-main-glow) */

  --contact-form-border-color: rgba(0, 123, 255, 0.2);
  --social-link-bg-color: rgba(0, 0, 0, 0.05);
  --timeline-line-bg: var(--gradient-secondary-bg); /* Or a light solid color */
  --timeline-dot-border-color: #333;

  --button-glow-effect-color: rgba(0, 0, 0, 0.1); /* Subtle dark glow on light buttons */
  --mobile-nav-border-color: rgba(0, 123, 255, 0.2);

  --gradient-blur-opacity: 0.15; /* Make them more subtle on light mode */
  --gradient-blur-blue-col1: rgba(100, 181, 246, 0.7);
  --gradient-blur-blue-col2: rgba(80, 150, 220, 0.3);
  --gradient-blur-blue-col3: rgba(100, 181, 246, 0);
  --gradient-blur-purple-col1: rgba(170, 130, 250, 0.7);
  --gradient-blur-purple-col2: rgba(150, 100, 240, 0.3);
  --gradient-blur-purple-col3: rgba(170, 130, 250, 0);
  --gradient-blur-cyan-col1: rgba(80, 220, 240, 0.7);
  --gradient-blur-cyan-col2: rgba(50, 190, 220, 0.3);
  --gradient-blur-cyan-col3: rgba(80, 220, 240, 0);
  --gradient-blur-red-col1: rgba(250, 100, 100, 0.5);
  --gradient-blur-red-col2: rgba(230, 70, 70, 0.2);
  --gradient-blur-red-col3: rgba(250, 100, 100, 0);
  --gradient-blur-green-col1: rgba(60, 200, 150, 0.5);
  --gradient-blur-green-col2: rgba(30, 170, 120, 0.2);
  --gradient-blur-green-col3: rgba(60, 200, 150, 0);
  --gradient-blur-gold-col1: rgba(250, 180, 50, 0.5);
  --gradient-blur-gold-col2: rgba(230, 150, 40, 0.2);
  --gradient-blur-gold-col3: rgba(250, 180, 50, 0);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  background-color: var(--body-bg-color);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding-left: 250px; /* Space for fixed sidebar on desktop */
}

/* Sidebar Styles */
.sidebar {
  width: 250px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  background-color: var(--primary-header-footer-bg);
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 2px 0 10px var(--shadow-mobile-nav-color);
  z-index: 1000;
  transition: transform 0.3s ease-in-out;
}

.sidebar-top {
  text-align: center;
  margin-bottom: 2rem;
}

.sidebar .logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-on-dark-bg); /* Assuming sidebar bg is darkish */
  text-decoration: none;
  text-shadow: 0 0 10px var(--shadow-logo-color);
  display: block; /* Make it block to center it if needed */
}

body.light-mode .sidebar .logo {
  color: var(--text-primary); /* Adjust logo color for light mode sidebar */
}

.sidebar-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-nav-links .nav-link {
  color: var(--text-secondary); /* Default link color */
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.sidebar-nav-links .nav-link:hover {
  background-color: var(--accent-secondary);
  color: var(--text-on-dark-bg); /* Text color on hover */
  text-shadow: 0 0 5px var(--accent-main-glow);
}

.sidebar-nav-links .nav-link.active {
  background-color: var(--accent-main);
  color: var(--text-on-light-bg); /* Text color for active link */
  font-weight: 600;
  box-shadow: 0 0 10px var(--accent-main-glow);
}

body.light-mode .sidebar-nav-links .nav-link {
  color: var(--text-secondary);
}

body.light-mode .sidebar-nav-links .nav-link:hover {
  background-color: var(--accent-secondary);
  color: var(--text-on-light-bg);
}

body.light-mode .sidebar-nav-links .nav-link.active {
  background-color: var(--accent-main);
  color: var(--text-on-light-bg);
}


.sidebar-bottom {
  margin-top: 2rem;
  text-align: center;
}

.sidebar .theme-btn {
  color: var(--text-secondary); /* Theme button color in sidebar */
  font-size: 1.5rem;
}

.sidebar .theme-btn:hover {
  color: var(--accent-main);
}

body.light-mode .sidebar .theme-btn {
  color: var(--text-primary);
}

/* Main Content Styles */
.main-content {
  transition: margin-left 0.3s ease-in-out;
  /* padding-left is handled by body padding on desktop */
}

/* Mobile Sidebar Toggle Button */
.mobile-sidebar-toggle {
  display: none; /* Hidden on desktop */
  position: fixed;
  top: 1rem;
  left: 1rem; /* Positioned on the left for mobile */
  background: var(--primary-header-footer-bg);
  color: var(--text-primary);
  border: none;
  font-size: 1.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1001; /* Above sidebar when closed, below when open for interaction */
  box-shadow: 0 2px 5px var(--shadow-mobile-nav-color);
}

body.light-mode .mobile-sidebar-toggle {
    background: var(--primary-header-footer-bg);
    color: var(--text-primary);
}

/* Header styles */
.header {
  background: var(--gradient-primary-bg);
  color: var(--text-on-dark-bg);
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
  z-index: 5; /* Increase z-index to ensure menu stays above other content */
}

/* Adding sticky navigation that maintains proper layout */
.header .nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
  width: 100%;
}

/* Fixed navigation when scrolling */
/* .nav.fixed is no longer needed as sidebar is fixed */
/* Remove or comment out .nav.fixed and its @keyframes navSlideDown */
/*
.nav.fixed {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
  width: 100%;
  background: var(--primary-header-footer-bg);
  box-shadow: 0 2px 10px var(--shadow-mobile-nav-color);
}

@keyframes navSlideDown {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(0); }
}
*/

.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--star-color);
  border-radius: 50%;
  animation: twinkle var(--duration) infinite;
  box-shadow: 0 0 2px var(--star-glow-color); /* Added subtle glow */
}

@keyframes twinkle {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

.shooting-star {
  position: absolute;
  width: 4px; /* Adjusted in JS */
  height: 4px; /* Adjusted in JS */
  /* background is set in JS */
  border-radius: 50%;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Remove old .nav styles as it's replaced by .sidebar */
/*
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
  width: 100%;
}
*/

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-on-dark-bg);
  text-decoration: none;
  text-shadow: 0 0 10px var(--shadow-logo-color);
}

/* Remove old .nav-links and .nav-link styles */
/*
.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-on-dark-bg);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-main);
  transition: width 0.3s ease;
}

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

.nav-link:hover {
  color: var(--text-on-dark-bg);
  text-shadow: 0 0 8px var(--accent-main-glow);
}
*/

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 0;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 800;  background: linear-gradient(to right, var(--text-on-dark-bg), var(--text-secondary)); /* Adjusted gradient */
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px var(--shadow-text-section-title-color); /* Adjusted shadow color */
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
  color: var(--text-secondary); /* Use secondary text color */
}

.btn {
  display: inline-block;
  background: var(--accent-main);
  color: var(--text-on-light-bg); /* Text on button (light bg for button) */
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--shadow-button-color);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-main);
  z-index: -1;
}

.btn:hover {
  box-shadow: 0 7px 20px var(--shadow-button-hover-color);
}

/* Restore the red radial gradient - now themeable glow */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), var(--button-glow-effect-color) 0%, rgba(255, 0, 0, 0) 60%); /* Red part removed, now uses variable */
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  border-radius: 50px;
}

.btn:hover::after {
  opacity: 1;
}

/* Main content styles */
.section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.section:nth-child(odd) {
  background-color: var(--section-odd-bg-color);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--text-primary); /* Adjusted from --light-text */
  display: inline-block;
  text-shadow: 0 0 15px var(--shadow-text-section-title-color);
}

.section-title h2::after {
  content: '';
  display: block;
  width: 50%;
  height: 3px;
  background: var(--gradient-accent-bg); /* Was --gradient-blue-accent */
  margin: 0.5rem auto 0;
  border-radius: 3px;
}

/* About section */
.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-img {
  flex: 1;
  position: relative;
}

.about-img:before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  background: var(--gradient-secondary-bg); /* Was --gradient-secondary */
  z-index: -1;
  border-radius: 15px;
  opacity: 0.5;
}

.about-img img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 20px var(--shadow-card-color); /* Use variable */
  transition: all 0.3s ease;
  object-fit: cover; /* This makes the image crop rather than stretch */
  object-position: center; /* Centers the image within its container */
}

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

.about-text {
  flex: 2;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary); /* Adjusted from --light-text */
  text-shadow: 0 0 10px var(--shadow-text-section-title-color); /* Use variable */
}

/* Mission section */
.mission-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-direction: row-reverse; /* Reverse of about section layout */
}

.mission-img {
  flex: 1;
  position: relative;
}

.mission-img:before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  background: var(--gradient-accent-bg); /* Was --gradient-blue-accent */
  z-index: -1;
  border-radius: 15px;
  opacity: 0.5;
}

.mission-img img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px var(--shadow-card-color); /* Use variable */
  transition: all 0.3s ease;
  object-fit: cover;
  object-position: center;
}

.mission-img:hover img {
  transform: scale(1.02);
}

.mission-text {
  flex: 2;
}

.mission-text h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary); /* Adjusted from --light-text */
  text-shadow: 0 0 10px var(--shadow-text-section-title-color); /* Use variable */
}

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

.project-card {
  background-color: var(--card-bg-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-card-color);
  transition: all 0.4s ease;
  border: 1px solid var(--card-border-color);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--card-hover-shadow-color); /* Was --blue-glow */
  border: 1px solid var(--card-hover-border-color); /* Was --blue-accent */
}

.project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: all 0.5s ease;
}

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

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary); /* Adjusted from --light-text */
}

.project-content p {
  margin-bottom: 1rem;
  color: var(--text-secondary); /* Was --text-color */
  opacity: 0.9;
}

.project-link {
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary); /* Was --accent-color */
  text-decoration: none;
  font-weight: 600;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.project-link:hover {
  color: var(--accent-main); /* Was --blue-accent */
  transform: translateX(5px);
}

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

.timeline::after {
  content: '';
  position: absolute;
  width: 3px;
  background: var(--timeline-line-bg); /* Was --gradient-secondary */
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1.5px;
  border-radius: 3px;
  z-index: 1;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 60%;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: -10%;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-content {
  padding: 20px;
  background-color: var(--card-bg-color);
  border-radius: 10px;
  box-shadow: 0 4px 20px var(--shadow-card-color);
  position: relative;
  border: 1px solid var(--card-border-color);
  transition: all 0.3s ease;
  overflow: hidden;
}

.timeline-content:hover {
  box-shadow: 0 10px 25px var(--card-hover-shadow-color); /* Was --blue-glow */
  border: 1px solid var(--card-hover-border-color); /* Was --blue-accent */
}

.timeline-content h3 {
  color: var(--text-primary); /* Was --light-text */
  margin-bottom: 0.5rem;
}

.timeline-content h4 {
  color: var(--text-secondary); /* Was --accent-color */
  margin-bottom: 1rem;
}

.timeline-item:nth-child(odd) .timeline-content::after,
.timeline-item:nth-child(even) .timeline-content::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--accent-main); /* Was --blue-accent */
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-main-glow); /* Was --blue-glow */
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  border: 2px solid var(--timeline-dot-border-color); /* Was white */
}

.timeline-item:nth-child(odd) .timeline-content::after {
  right: -51px;
}

.timeline-item:nth-child(even) .timeline-content::after {
  left: -51px;
}

/* Achievement image styles */
.achievement-img {
  margin-top: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-card-color);
  transition: all 0.3s ease;
  max-width: 100%;
  width: 100%; /* Make images wider */
  margin-left: auto;
  margin-right: auto;
}

.achievement-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.achievement-img:hover img {
  transform: scale(1.03);
}

.certificate-img {
  border: 1px solid var(--mobile-nav-border-color); /* Was rgba(59, 130, 246, 0.2) */
}

/* Contact section */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--card-bg-color);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 20px var(--shadow-card-color);
  border: 1px solid var(--contact-form-border-color); /* Was rgba(100, 181, 246, 0.1) */
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary); /* Was --light-text */
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--input-bg-color);
  border: 1px solid var(--input-border-color);
  border-radius: 8px;
  font-family: inherit;
  color: var(--text-primary); /* Was --text-color */
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--input-focus-border-color); /* Was --blue-accent */
  box-shadow: 0 0 10px var(--input-focus-shadow-color); /* Was --blue-glow */
  background-color: var(--input-focus-bg-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.contact-method {
  background-color: var(--card-bg-color);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 20px var(--shadow-card-color);
  text-align: center;
  border: 1px solid var(--contact-form-border-color); /* Was rgba(100, 181, 246, 0.1) */
  transition: all 0.3s ease;
}

.contact-method:hover {
  box-shadow: 0 15px 30px var(--card-hover-shadow-color); /* Was --blue-glow */
  border: 1px solid var(--card-hover-border-color); /* Was --blue-accent */
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--input-bg-color); /* Was rgba(255, 255, 255, 0.05) */
  border-radius: 50%;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: var(--accent-main); /* Was --blue-accent */
  transition: all 0.3s ease;
}

.contact-method:hover .contact-icon {
  background: var(--accent-main); /* Was --blue-accent */
  color: var(--text-on-light-bg); /* Was white */
  box-shadow: 0 0 20px var(--accent-main-glow); /* Was --blue-glow */
}

.contact-method h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: var(--text-primary); /* Was --light-text */
}

.contact-method p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary); /* Was --accent-color */
}

.contact-btn {
  border-radius: 50px;
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
}

/* Footer */
.footer {
  background: var(--gradient-primary-bg); /* Was --gradient-primary */
  color: var(--text-on-dark-bg); /* Was --light-text */
  padding: 2rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.social-link {
  color: var(--text-on-dark-bg); /* Was --light-text */
  font-size: 1.5rem;
  transition: all 0.3s ease;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--social-link-bg-color); /* Was rgba(255, 255, 255, 0.1) */
  border-radius: 50%;
  text-decoration: none;
}

.social-link:hover {
  color: var(--text-on-light-bg); /* Was --dark-text */
  background: var(--gradient-accent-bg); /* Was --gradient-blue-accent */
  transform: translateY(-5px);
  box-shadow: 0 5px 15px var(--accent-main-glow); /* Was --blue-glow */
}

/* Specific brand hovers - keeping brand colors, ensure text contrast */
.social-link.github:hover {
  background: #8030a3; /* Brand color */
  box-shadow: 0 5px 15px rgba(128, 48, 163, 0.5);
  color: #fff; /* Explicit white for this bg */
}

.social-link.linkedin:hover {
  background: #0077b5; /* Brand color */
  box-shadow: 0 5px 15px rgba(0, 119, 181, 0.5);
  color: #fff; /* Explicit white */
}

.social-link.facebook:hover {
  background: #1877f2; /* Brand color */
  box-shadow: 0 5px 15px rgba(24, 119, 242, 0.5);
  color: #fff; /* Explicit white */
}

.social-link.whatsapp:hover {
  background: #25d366; /* Brand color */
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.5);
  color: var(--text-on-light-bg); /* Was --dark-text, now themeable */
}

/* Blurred gradient elements */
.gradient-blur {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: var(--gradient-blur-opacity); /* Was 0.2 */
  z-index: 0;
  pointer-events: none;
  transition: all 0.5s ease;
}

.gradient-blue {
  background: radial-gradient(circle, var(--gradient-blur-blue-col1) 0%, var(--gradient-blur-blue-col2) 50%, var(--gradient-blur-blue-col3) 70%);
}

.gradient-purple {
  background: radial-gradient(circle, var(--gradient-blur-purple-col1) 0%, var(--gradient-blur-purple-col2) 50%, var(--gradient-blur-purple-col3) 70%);
}

.gradient-cyan {
  background: radial-gradient(circle, var(--gradient-blur-cyan-col1) 0%, var(--gradient-blur-cyan-col2) 50%, var(--gradient-blur-cyan-col3) 70%);
}

.gradient-red {
  background: radial-gradient(circle, var(--gradient-blur-red-col1) 0%, var(--gradient-blur-red-col2) 50%, var(--gradient-blur-red-col3) 70%);
}

.gradient-green {
  background: radial-gradient(circle, var(--gradient-blur-green-col1) 0%, var(--gradient-blur-green-col2) 50%, var(--gradient-blur-green-col3) 70%);
}

.gradient-gold {
  background: radial-gradient(circle, var(--gradient-blur-gold-col1) 0%, var(--gradient-blur-gold-col2) 50%, var(--gradient-blur-gold-col3) 70%);
}

/* Section specific gradients */
.section {
  position: relative;
  overflow: hidden;
}

/* Adding subtle movement animation to the gradients */
@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10px, -10px) scale(1.05); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Mobile menu styles */
/* Remove .mobile-menu-btn as it's replaced by .mobile-sidebar-toggle */
/*
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-on-dark-bg);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 20;
}

.mobile-menu-btn:hover {
  color: var(--accent-main);
  transform: scale(1.1);
}
*/

/* Theme toggle button styles */
/* .theme-btn is now primarily in the sidebar, adjust if needed elsewhere */
.theme-btn {
  background: none;
  border: none;
  color: var(--text-on-dark-bg); /* Color based on header background */
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  /* margin-left: 1rem; */ /* No longer needed here */
  transition: color 0.3s ease;
  z-index: 1002; /* Ensure clickable */
}

.theme-btn:hover {
  color: var(--accent-main);
}

/* Remove .nav.fixed .theme-btn styles */
/*
.nav.fixed .theme-btn {
  color: var(--text-primary);
}

.nav.fixed .theme-btn:hover {
  color: var(--accent-main);
}
*/

/* ==============================
   SHEEKAR PROJECT SHOWCASE STYLES
   ============================== */

/* Sheekar Brand Colors */
:root {
  --sheekar-brand-color: #2a8282;
  --sheekar-brand-glow: rgba(42, 130, 130, 0.5);
  --sheekar-brand-light: rgba(42, 130, 130, 0.1);
  --sheekar-brand-gradient: linear-gradient(135deg, #2a8282 0%, #3ca3a3 50%, #2a8282 100%);
  --sheekar-brand-shadow: rgba(42, 130, 130, 0.3);
  --sheekar-brand-hover-shadow: rgba(42, 130, 130, 0.6);
}

/* Main Sheekar Showcase Container */
.sheekar-showcase {
  background: var(--gradient-primary-bg);
  border-radius: 20px;
  padding: 3rem;
  margin: 2rem 0;
  border: 1px solid var(--card-border-color);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px var(--shadow-card-color);
  transition: all 0.3s ease;
}

.sheekar-showcase:hover {
  border-color: var(--sheekar-brand-color);
  box-shadow: 0 25px 50px var(--sheekar-brand-hover-shadow);
  transform: translateY(-5px);
}

.sheekar-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--sheekar-brand-gradient);
  border-radius: 20px 20px 0 0;
}

/* Sheekar Content Layout */
.sheekar-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.sheekar-description h3 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  background: var(--sheekar-brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px var(--sheekar-brand-glow);
}

.sheekar-description p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  text-align: justify;
}

/* Features List */
.sheekar-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: var(--card-bg-color);
  border-radius: 12px;
  border: 1px solid var(--card-border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--sheekar-brand-gradient);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.feature-item:hover {
  background: var(--sheekar-brand-light);
  border-color: var(--sheekar-brand-color);
  transform: translateX(5px);
}

.feature-item:hover::before {
  transform: scaleY(1);
}

.feature-item i {
  font-size: 1.5rem;
  color: var(--sheekar-brand-color);
  margin-right: 1rem;
  width: 30px;
  text-align: center;
  animation: pulse 2s infinite;
}

.feature-item span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* App Screenshot */
.sheekar-image {
  position: relative;
  text-align: center;
}

.app-screenshot {
  width: 100%;
  max-width: 250px;
  border-radius: 20px;
  border: 3px solid var(--sheekar-brand-color);
  box-shadow: 0 15px 30px var(--shadow-card-color);
  transition: all 0.3s ease;
}

.app-screenshot:hover {
  transform: scale(1.05) rotateY(5deg);
  box-shadow: 0 20px 40px var(--sheekar-brand-glow);
}

.image-caption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Statistics Section */
.sheekar-stats {
  background: var(--card-bg-color);
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid var(--card-border-color);
  position: relative;
  overflow: hidden;
}

.sheekar-stats::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--sheekar-brand-glow) 0%, transparent 70%);
  opacity: 0.1;
  animation: rotate 20s linear infinite;
}

.sheekar-stats h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.stats-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

/* Statistics Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  background: var(--gradient-primary-bg);
  border-radius: 12px;
  border: 1px solid var(--card-border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--sheekar-brand-glow), transparent);
  transition: left 0.5s ease;
}

.stat-item:hover::before {
  left: 100%;
}

.stat-item:hover {
  transform: translateY(-5px);
  border-color: var(--sheekar-brand-color);
  box-shadow: 0 10px 20px var(--sheekar-brand-glow);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--sheekar-brand-color);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px var(--sheekar-brand-glow);
  text-align: center;
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
}

/* Call to Action Button */
.project-cta {
  text-align: center;
  position: relative;
  z-index: 1;
}

.sheekar-btn {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--sheekar-brand-gradient);
  color: var(--text-on-dark-bg);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px var(--sheekar-brand-shadow);
  position: relative;
  overflow: hidden;
}

.sheekar-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.sheekar-btn:hover::before {
  left: 100%;
}

.sheekar-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--sheekar-brand-hover-shadow);
}

.sheekar-btn i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.sheekar-btn:hover i {
  transform: translateX(3px);
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding-left: 0; /* Remove sidebar padding on mobile */
  }

  .sidebar {
    transform: translateX(-100%); /* Hide sidebar off-screen */
    /* Ensure theme button inside sidebar is accessible if sidebar is narrow */
  }

  .sidebar.active {
    transform: translateX(0); /* Show sidebar */
  }

  .main-content {
    margin-left: 0; /* Full width when sidebar is hidden */
  }

  .mobile-sidebar-toggle {
    display: block; /* Show burger button on mobile */
  }

  /* Adjust header padding if needed when sidebar is not present */
  .header {
    padding-top: 4rem; /* Add padding to header if burger button overlaps */
  }  /* Header container adjustments can be added if needed */

  .about-content,
  .mission-content {
    flex-direction: column;
  }

  .timeline::after {
    display: none;
  }

  .timeline-item {
    width: 100%;
    padding-left: 25px;
    padding-right: 25px;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-item:nth-child(odd) .timeline-content::after,
  .timeline-item:nth-child(even) .timeline-content::after {
    display: none;
  }

  /* Remove old mobile menu styles */
  /*
  .nav {
    position: relative;
    z-index: 1000;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--primary-header-footer-bg);
    padding: 1rem;
    z-index: 999;
    box-shadow: 0 10px 20px var(--shadow-mobile-nav-color);
    border-top: 1px solid var(--mobile-nav-border-color);
    border-bottom: 1px solid var(--mobile-nav-border-color);
  }

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

  .nav-link {
    padding: 0.75rem 0;
    width: 100%;
    text-align: center;
    color: var(--text-primary);
  }

  .nav-link:hover {
    color: var(--accent-main);
    text-shadow: none;
  }
  .nav-link:after {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
    position: relative;
    z-index: 1001;
    color: var(--text-primary);
  }

  .nav.fixed .mobile-menu-btn {
     color: var(--text-primary);
  }

  .theme-btn { // Old mobile specific theme button styles
    margin-left: 0.5rem;
    font-size: 1.5rem;
    padding: 0.25rem 0.5rem;
    order: 3;
    color: var(--text-primary);
  }

  .nav .logo { order: 1; }
  .nav .mobile-menu-btn { order: 2; }
  */

  .achievement-img {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  .sheekar-showcase {
    padding: 2rem 1.5rem;
    margin: 1rem 0;
  }

  .sheekar-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .sheekar-description h3 {
    font-size: 1.8rem;
  }

  .sheekar-description p {
    font-size: 1rem;
    text-align: center;
  }

  .sheekar-features {
    gap: 0.8rem;
  }

  .feature-item {
    padding: 0.8rem;
  }

  .feature-item i {
    font-size: 1.3rem;
    margin-right: 0.8rem;
  }

  .feature-item span {
    font-size: 0.9rem;
  }

  .sheekar-stats {
    padding: 2rem 1.5rem;
  }

  .sheekar-stats h3 {
    font-size: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stat-item {
    padding: 1.2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .sheekar-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .app-screenshot {
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .sheekar-showcase {
    padding: 1.5rem 1rem;
  }

  .sheekar-description h3 {
    font-size: 1.6rem;
  }

  .stats-grid {
    gap: 1rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }
}
