/* ==== FONTS ==== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Roboto+Mono:wght@400;500&display=swap');

/* ==== BASE STYLES ==== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary: #10b981;
  --dark: #1e293b;
  --dark-light: #334155;
  --light: #f8fafc;
  --light-gray: #e2e8f0;
  --accent: #8b5cf6;
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #10b981;
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --gradient-dark: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-full: 9999px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5px;
}


body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background-color: var(--light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-light);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

section {
  padding: 7rem 0;
  position: relative;
}

/* === Spacer Class for smooth anchor scrolling === */
.spacer {
  height: 100px;
}


section:nth-child(even) {
  background-color: #f1f5f9;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==== SIDEBAR ==== */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 100vh;
  background: var(--gradient-dark);
  color: var(--light);
  display: flex;
  flex-direction: column;
  padding: 2rem 0;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  transform: translateX(0);
  transition: var(--transition);
  overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: var(--border-radius-full);
}


.profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.profile-image-container {
  width: 150px;
  height: 150px;
  border-radius: var(--border-radius-full);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 4px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-md);
  position: relative;
}

.profile-image-container::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius-full);
  border: 2px solid var(--primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 0;
    transform: scale(1.1);
  }
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.profile-image:hover {
  transform: scale(1.05);
}

.sidebar-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
}

.sidebar-title {
  font-size: 0.9rem;
  opacity: 0.8;
  text-align: center;
  margin-bottom: 1.5rem;
}

.sidebar-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.sidebar-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-full);
  transition: var(--transition);
  color: var(--light);
}

.sidebar-social a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 0 1rem;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 0.8rem 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--light);
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary);
  transform: scaleY(0);
  transition: var(--transition);
}

.nav-item i {
  margin-right: 1rem;
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.nav-item:hover, .nav-item.active {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-item:hover::before, .nav-item.active::before {
  transform: scaleY(1);
}

/* ==== MAIN CONTENT ==== */
main {
  margin-left: 280px;
  padding-bottom: 2rem;
}

/* ==== HERO SECTION ==== */
.hero-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 4rem 2rem; /* Top and bottom padding increased */
}

.hero-text {
  padding: 0;
}

.highlight-text {
  color: var(--primary);
  position: relative;
  display: inline-block;
  font-size: 3.5rem; /* Bigger highlight */
}

.highlight-text::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 10px;
  background-color: rgba(59, 130, 246, 0.25);
  bottom: 5px;
  left: 0;
  z-index: -1;
}

.tagline {
  color: var(--dark-light);
  font-size: 1.8rem; /* Slightly larger tagline */
  font-weight: 500;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.intro-text {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 500px; /* <- smaller, cleaner */
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}


/* CTA BUTTONS */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.cta-primary, .cta-secondary {
  padding: 1rem 2.5rem;
  border-radius: var(--border-radius-full); /* Fully rounded buttons */
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.cta-primary {
  background: var(--primary);
  color: white;
}

.cta-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.cta-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.cta-secondary:hover {
  background-color: rgba(37, 99, 235, 0.1);
  transform: translateY(-4px);
}

/* ADDITIONAL PREMIUM GLOW EFFECT */
.cta-primary::after,
.cta-secondary::after {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cta-primary:hover::after,
.cta-secondary:hover::after {
  opacity: 1;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

.stat-box {
  background-color: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  z-index: -1;
}

.stat-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--dark-light);
}

/* ==== ABOUT SECTION ==== */
#about {
  padding-top: 6rem;
  padding-bottom: 6rem; /* Extra bottom padding for better separation */
}

.about-details {
  max-width: 800px;
  margin: 0 auto;
  text-align: auto;
  padding: 2rem 1rem;
  font-size: 1.1rem;
  line-height: 1.8;
}


.section-title {
  margin-bottom: 2rem;
  text-align: center;
}

.section-title h2 {
  margin-bottom: 0.5rem;
  font-size: 2.8rem; /* Slightly bigger About Me heading */
  position: relative;
}

.section-divider {
  height: 4px;
  width: 80px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-full);
  margin: 0 auto;
  margin-top: 0.5rem;
}


/* ==== SKILLS SECTION ==== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.skill-category {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--primary);
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.skill-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.skill-header i {
  font-size: 1.8rem;
  color: var(--primary);
  background-color: rgba(37, 99, 235, 0.1);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
}

.skill-header h3 {
  margin-bottom: 0;
  font-size: 1.3rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-tag {
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.skill-tag:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.languages-section {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.language-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 200px;
}

.language-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.language-level {
  width: 100%;
  height: 8px;
  background-color: var(--light-gray);
  border-radius: var(--border-radius-full);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.level-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-full);
}

.language-proficiency {
  font-size: 0.9rem;
  color: var(--dark-light);
}

/* ==== EXPERIENCE SECTION ==== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 2px;
  background-color: var(--light-gray);
  top: 0;
  bottom: 0;
  left: 20px;
}

.timeline-item {
  padding-left: 60px;
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 10px;
  width: 20px;
  height: 20px;
  background-color: var(--primary);
  border-radius: var(--border-radius-full);
  top: 0;
  border: 4px solid white;
  box-shadow: var(--shadow);
  z-index: 1;
}

.timeline-date {
  display: inline-block;
  background-color: var(--dark);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: var(--border-radius-full);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.timeline-content {
  background-color: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  position: relative;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 20px;
  left: -10px;
  width: 20px;
  height: 20px;
  background-color: white;
  transform: rotate(45deg);
  box-shadow: var(--shadow-sm);
  z-index: -1;
}

.timeline-content h3 {
  margin-bottom: 0.25rem;
  font-size: 1.4rem;
}

.timeline-content h4 {
  color: var(--dark-light);
  font-weight: normal;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.exp-tag {
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: var(--border-radius-full);
  font-size: 0.8rem;
  font-weight: 500;
}

.achievement-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.achievement-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.achievement-list i {
  color: var(--primary);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* ==== PROJECTS SECTION ==== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.project-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  border-top: 4px solid var(--primary);
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.project-card > * {
  position: relative;
  z-index: 1;
}

.project-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.project-icon {
  font-size: 1.5rem;
  color: var(--primary);
}

.project-header h3 {
  margin-bottom: 0;
  font-size: 1.3rem;
}

.project-subtitle {
  color: var(--dark-light);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.project-period {
  font-size: 0.9rem;
  color: var(--dark-light);
  margin-bottom: 1rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: var(--border-radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition);
}

.tech-tag:hover {
  background-color: var(--primary);
  color: white;
}

.project-description p {
  margin-bottom: 1rem;
}

.project-description ul {
  padding-left: 1.5rem;
  list-style-type: disc;
}

.project-description li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* ==== EDUCATION SECTION ==== */
.education-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.edu-card {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.edu-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.edu-logo {
  width: 80px;
  height: 80px;
  background-color: var(--primary);
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.edu-logo i {
  font-size: 2rem;
  color: white;
}

.edu-details {
  flex: 1;
}

.edu-details h3 {
  margin-bottom: 0.25rem;
  font-size: 1.4rem;
}

.edu-details h4 {
  color: var(--dark-light);
  font-weight: normal;
  margin-bottom: 1rem;
}

.edu-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.edu-meta span {
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.edu-meta i {
  color: var(--primary);
}

.edu-courses h5 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.course-tag {
  background-color: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-full);
  font-size: 0.9rem;
}

/* ==== LEADERSHIP SECTION ==== */
.leadership-card {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.leadership-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.leadership-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.leadership-icon i {
  font-size: 2rem;
  color: white;
}

.leadership-content {
  flex: 1;
}

.leadership-content h3 {
  margin-bottom: 0.25rem;
  font-size: 1.4rem;
}

.leadership-content h4 {
  color: var(--dark-light);
  font-weight: normal;
  margin-bottom: 0.5rem;
}

.leadership-period {
  font-size: 0.95rem;
  color: var(--dark-light);
  margin-bottom: 1.5rem;
}

.leadership-details p {
  margin-bottom: 1.5rem;
}

.leadership-achievements {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.leadership-achievements li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.leadership-achievements i {
  color: var(--primary);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* ==== CONTACT SECTION ==== */
.contact-content {
  margin-top: 2rem;
}

.contact-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.contact-intro p {
  font-size: 1.1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.contact-method i {
  font-size: 1.8rem;
  color: var(--primary);
  background-color: rgba(37, 99, 235, 0.1);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-full);
}

.contact-method h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.contact-method p {
  margin-bottom: 0;
  color: var(--dark-light);
}

.contact-social {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  border-radius: var(--border-radius-full);
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.contact-form {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  font-family: 'Poppins', sans-serif;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.submit-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: 'Poppins', sans-serif;
}

.submit-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.submit-btn i {
  font-size: 1rem;
}

/* ==== FOOTER ==== */
footer {
  background-color: var(--dark);
  color: var(--light);
  padding: 2rem 0;
  margin-left: 280px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-text p {
  margin-bottom: 0;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: var(--light);
  font-size: 1.2rem;
  transition: var(--transition);
}

.footer-social a:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

/* ==== ANIMATIONS ==== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate__fadeIn {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* ==== RESPONSIVE DESIGN ==== */
@media (max-width: 1200px) {
  .sidebar {
    width: 240px;
  }
  
  main, footer {
    margin-left: 240px;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
  }
  
  .skills-grid, .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 60px;
  }


  
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  main, footer {
    margin-left: 0;
  }
  
  .menu-toggle {
    display: flex;
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: var(--border-radius-full);
    align-items: center;
    justify-content: center;
    z-index: 1001;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition);
  }
  
  .menu-toggle:hover {
    background-color: var(--primary-dark);
  }
  
  .menu-toggle i {
    font-size: 1.5rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero-container {
    padding: 1rem 0;
  }
  
  .edu-card, .leadership-card {
    flex-direction: column;
  }
  
  .edu-logo, .leadership-icon {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 576px) {
  .sidebar {
    width: 100%;
  }
  
  .profile-image-container {
    width: 120px;
    height: 120px;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-primary, .cta-secondary {
    width: 100%;
  }
  
  .timeline::before {
    left: 15px;
  }
  
  .timeline-dot {
    left: 5px;
    width: 20px;
    height: 20px;
  }
  
  .timeline-content {
    padding: 1.2rem;
  }
  
  .project-card, .skills-grid {
    grid-template-columns: 1fr;
  }
}

/* ==== DARK MODE ==== */
.dark-mode {
  --dark: #f8fafc;
  --dark-light: #e2e8f0;
  --light: #0f172a;
  --light-gray: #1e293b;
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

/* Dark mode overrides */
.dark-mode .sidebar {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%); /* Brighter dark gradient */
  color: #ffffff; /* Pure white text */
}

.dark-mode .nav-item {
  color: #e2e8f0; /* Light gray text for menu items */
}

.dark-mode .nav-item:hover, 
.dark-mode .nav-item.active {
  background-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .nav-item::before, 
.dark-mode .nav-item.active::before {
  background-color: var(--primary); /* Blue highlight bar on active hover */
}


.dark-mode section:nth-child(even) {
  background-color: #0a1122;
}

.dark-mode .skill-category, 
.dark-mode .project-card,
.dark-mode .timeline-content,
.dark-mode .stat-box,
.dark-mode .edu-card,
.dark-mode .leadership-card,
.dark-mode .contact-form {
  background-color: #1e293b;
  color: var(--dark);
}

.dark-mode .timeline-content::before {
  background-color: #1e293b;
}

.dark-mode .skill-tag, 
.dark-mode .tech-tag, 
.dark-mode .exp-tag,
.dark-mode .contact-method i, 
.dark-mode .social-icon {
  background-color: rgba(219, 234, 254, 0.1);
}

.dark-mode .course-tag {
  background-color: rgba(219, 234, 254, 0.05);
}

.dark-mode footer {
  background-color: #0a1122;
  color: var(--dark);
}

.dark-mode .timeline-date {
  background-color: #1e293b; /* or a lighter dark */
  color: #ffffff;
}


/* ==== SPECIAL EFFECTS ==== */
/* Particle background for hero section */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

/* Text typing animation */
.typing-effect::after {
  content: '|';
  display: inline-block;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Hover effects for cards */
.hover-float {
  transition: transform 0.3s ease;
}

.hover-float:hover {
  transform: translateY(-10px);
}

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
}

/* Scroll progress indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: var(--gradient-primary);
  z-index: 9999;
  transition: width 0.1s ease;
}

/* Smooth scrolling for sections */
.smooth-scroll {
  scroll-behavior: smooth;
}

/* Print styles for resume */
@media print {
  .sidebar, .cta-buttons, .contact-form, footer, .menu-toggle {
    display: none !important;
  }
  
  main {
    margin: 0 !important;
    padding: 0 !important;
  }
  
  section {
    page-break-inside: avoid;
    padding: 1rem 0 !important;
  }
  
  body {
    font-size: 12pt;
    color: #000;
  }
  
  a {
    text-decoration: none !important;
    color: #000 !important;
  }
  
  .stat-box, .skill-category, .project-card, .timeline-content, .edu-card, .leadership-card {
    box-shadow: none !important;
    border: 1px solid #ddd;
  }
  
  h1, h2, h3, h4 {
    color: #000 !important;
  }
}

/* Preloader animation */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--light);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(37, 99, 235, 0.2);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Glowing effect for important actions */
.glow-effect {
  position: relative;
  overflow: hidden;
}

.glow-effect::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.glow-effect:hover::after {
  opacity: 1;
}

/* Theme toggle button */
.theme-toggle {
  position: fixed;
  bottom: 6rem; /* <- changed from 2rem to 6rem */
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: white;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition);
}


.theme-toggle:hover {
  transform: rotate(45deg);
}

.theme-toggle i {
  font-size: 1.5rem;
}
