:root {
  --primary-color: #00a8ff;
  --secondary-color: #0097e6;
  --dark-bg: #121212;
  --darker-bg: #1a1a1a;
  --card-bg: #1e1e1e;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --accent-color: #00a8ff;
  --border-color: #333;
  --hover-color: #0097e6;
}

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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--dark-bg);
  transition: all 0.3s ease;
}

/* Remove or comment out .theme-switch styles */
/* Remove light theme styles */

body {
    background: var(--dark-bg);
    color: var(--text-primary);
}

header {
    background: rgba(18, 18, 18, 0.95);
}

.project-card, .skill-category, .achievement-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

/* ...existing code... */

/* Remove or comment out light theme styles */
/* body.light-theme {...} */

/* Keep only dark theme styles */
.nav-links a {
    color: var(--text-primary);
}

.project-card {
    background: #2d3238;
}

/* Theme Toggle */
/* .theme-switch {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  z-index: 1000;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin: 0 10px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
} */

/* Header & Navigation */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
  background: rgba(18, 18, 18, 0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-bottom: 1px solid var(--border-color);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

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

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


.nav-shrink {
  padding: 0.5rem 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-links {
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: #0984e3;
  transition: width 0.3s ease;
}

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

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

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

@media (max-width: 768px) {
  .nav-links {
      position: fixed;
      right: -100%;
      top: 70px;
      flex-direction: column;
      background: #1a1a1a;
      width: 100%;
      text-align: center;
      transition: 0.3s;
      box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
      padding: 2rem;
  }

  .nav-links.active {
      right: 0;
  }
}
.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  margin: 5px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 168, 255, 0.1) 0%, transparent 50%);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
}

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

.logo a {
  color: #0984e3;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #0984e3;
  transition: width 0.3s ease;
}

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

/* .theme-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
} */

.burger {
  display: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
      position: fixed;
      top: 70px;
      left: -100%;
      width: 100%;
      height: calc(100vh - 70px);
      background: #1a1a1a;
      flex-direction: column;
      align-items: center;
      padding: 2rem;
      transition: 0.3s ease;
  }

  .nav-links.active {
      left: 0;
  }

  .burger {
      display: block;
  }

  .burger div {
      width: 25px;
      height: 3px;
      margin: 5px;
      background: #fff;
      transition: 0.3s ease;
  }

  .burger.active .line1 {
      transform: rotate(-45deg) translate(-5px, 6px);
  }

  .burger.active .line2 {
      opacity: 0;
  }

  .burger.active .line3 {
      transform: rotate(45deg) translate(-5px, -6px);
  }
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: 4rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  animation: glow 3s infinite;
}

.typewriter {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

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

.social-links a {
  color: var(--text-primary);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  margin: 0 15px;
}

.social-links a:hover {
  color: var(--accent-color);
  transform: translateY(-3px) scale(1.2);
}

/* Sections */
section {
  padding: 5rem 1rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
}

.skills {
  background: linear-gradient(135deg, #f6f9fc 0%, #f1f4f8 100%);
  padding: 5rem 2rem;
}

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

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #0984e3;
}

.skill-category {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  animation: float 6s infinite;
}

.skill-category:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 15px rgba(0, 168, 255, 0.2);
  border-color: var(--accent-color);
}

.skill-category h3 {
  color: #0984e3;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #0984e3;
  padding-bottom: 0.5rem;
}

.skill-category li {
  color: #555e61;
  padding: 0.8rem 0;
  border-bottom: 1px solid #eee;
  transition: all 0.3s ease;
}.coding-profiles {
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
}

.profile-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.profile-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  text-decoration: none;
  color: #2d3436;
  transition: all 0.3s ease;
}

.profile-links a:hover {
  transform: translateY(-3px);
  background: #0984e3;
  color: white;
}

.profile-links i {
  font-size: 1.2rem;
}

.skill-category li:hover {
  color: #0984e3;
  padding-left: 1rem;
  background: linear-gradient(90deg, rgba(9,132,227,0.1) 0%, rgba(9,132,227,0) 100%);
}

.skill-category li:before {
  color: #0984e3;
}
/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
  animation: float 6s infinite;
}

.project-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 15px rgba(0, 168, 255, 0.2);
  border-color: var(--accent-color);
}

.project-content {
  padding: 1.5rem;
}

.project-links {
  padding: 1rem;
  display: flex;
  justify-content: space-around;
}

.btn {
  padding: 0.6rem 1.2rem; /* Reduced padding */
  border: 1px solid var(--primary-color); /* Thinner border */
  border-radius: 25px; /* Smaller border radius */
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500; /* Slightly reduced font weight */
  letter-spacing: 0.3px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px; /* Reduced gap */
  box-shadow: 0 2px 8px rgba(0, 168, 255, 0.2); /* Smaller shadow */
  text-align: center;
  min-width: 100px; /* Reduced minimum width */
  font-size: 0.9rem; /* Smaller font size */
}

.btn:hover {
  background: var(--primary-color);
  color: var(--dark-bg);
  transform: translateY(-2px); /* Smaller lift effect */
  box-shadow: 0 4px 12px rgba(0, 168, 255, 0.3);
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 200px; /* Reduced ripple effect size */
  height: 200px;
}

.btn i {
  font-size: 1em; /* Smaller icon size */
  transition: transform 0.3s ease;
}

.btn:hover i {
  transform: translateX(2px); /* Smaller hover movement */
}



/* Responsive Design */
@media screen and (max-width: 768px) {
  .nav-links {
    position: fixed;
    right: -100%;
    top: 70px;
    flex-direction: column;
    background: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0,0,0,0.05);
  }

  .nav-links.active {
    right: 0;
  }

  .burger {
    display: block;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .project-card, .skill-category, .achievement-card {
    animation: none;
  }
}

/* Dark Theme */
body.dark-theme {
  background: var(--dark-bg);
  color: var(--text-light);
}

body.dark-theme header {
  background: rgba(33, 37, 41, 0.95);
}

body.dark-theme .nav-links a {
  color: var(--text-light);
}

body.dark-theme .project-card {
  background: #2d3238;
}

/* Light Theme */
/* body.light-theme {
  background: var(--light-bg);
  color: var(--text-dark);
}

body.light-theme header {
  background: rgba(255, 255, 255, 0.95);
}

body.light-theme .nav-links a {
  color: var(--text-dark);
}

body.light-theme .project-card {
  background: white;
} */

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  background: #f9f9f9;
}

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

.skill-category {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
}

.skill-category h3 {
  color: #007bff;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #007bff;
}

.skill-category ul {
  list-style: none;
  padding: 0;
}

.skill-category li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
  transition: color 0.3s ease;
}

.skill-category li:before {
  content: "▹";
  position: absolute;
  left: 0;
  color: #007bff;
}

.skill-category li:hover {
  color: #007bff;
  transform: translateX(5px);
}
.hero-description {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1.5rem;
max-width: 1200px;
margin: 2rem auto;
padding: 0 1rem;
}

.info-box {
background: rgba(45, 45, 45, 0.9);
border: 1px solid #404040;
border-radius: 10px;
padding: 1.5rem;
transition: all 0.3s ease;
backdrop-filter: blur(10px);
}

.info-box:hover {
transform: translateY(-5px);
border-color: #0984e3;
box-shadow: 0 5px 15px rgba(9,132,227,0.2);
}

.info-box i {
color: #0984e3;
font-size: 1.5rem;
margin-bottom: 1rem;
}

.info-box h3 {
color: #fff;
font-size: 1.1rem;
margin-bottom: 0.5rem;
}

.info-box p {
color: #e0e0e0;
font-size: 0.95rem;
line-height: 1.6;
opacity: 0.9;
}

.highlight {
color: #0984e3;
font-weight: 500;
}

@media screen and (max-width: 768px) {
.hero-description {
    grid-template-columns: 1fr;
}

.info-box {
    padding: 1.2rem;
}
}
@media (max-width: 768px) {
  .skills-container {
      grid-template-columns: 1fr;
  }
}
.certifications {
  padding: 4rem 2rem;
  background: #f8f9fa;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 25px;
  background: #fff;
  color: #333;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.filter-btn:hover,
.filter-btn.active {
  background: #007bff;
  color: #fff;
  transform: translateY(-2px);
}

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

.coursework-item {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.coursework-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.coursework-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #007bff;
}

.coursework-item h3 {
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.coursework-item p {
  color: #666;
  font-size: 0.9rem;
}

.cert-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  background: #e9ecef;
  color: #495057;
}

@media (max-width: 768px) {
  .coursework-list {
      grid-template-columns: 1fr;
  }
  
  .filter-buttons {
      flex-direction: column;
      align-items: center;
  }
  
  .filter-btn {
      width: 100%;
      max-width: 200px;
  }
}

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

.coursework-item {
  animation: fadeIn 0.5s ease forwards;
}
.profile-card {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  width: 300px;
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.stats-container {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.stat {
  display: flex;
  justify-content: space-between;
  margin: 0.5rem 0;
}

.stat-label {
  color: #666;
  font-size: 0.9rem;
}

.stat-value {
  font-weight: bold;
  color: #0984e3;
}

@keyframes loading {
  0% { opacity: 0.3; }
  50% { opacity: 0.7; }
  100% { opacity: 0.3; }
}

.stat-value:contains('Loading...') {
  animation: loading 1.5s infinite;
}
.coding-profiles {
  padding: 4rem 2rem;
}

.profile-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.profile-card {
  flex: 1;
  max-width: 450px;
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .profile-container {
      flex-direction: column;
      align-items: center;
  }

  .profile-card {
      width: 100%;
      max-width: 100%;
  }
}
.education {
  padding: 5rem 2rem;
  color: black;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  position: relative;
  overflow: hidden;
}

.education::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(9, 132, 227, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(9, 132, 227, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.education-timeline {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 2rem 0;
}

.education-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #0984e3 0%, #74b9ff 100%);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(9, 132, 227, 0.3);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-left: 50px;
  position: relative;
  margin-bottom: 4rem;
  width: 50%;
  opacity: 0;
  animation: slideInLeft 0.6s ease forwards;
}

.timeline-item:nth-child(1) {
  animation-delay: 0.2s;
}

.timeline-item:nth-child(2) {
  animation-delay: 0.4s;
}

.timeline-item:nth-child(odd) {
  align-self: flex-end;
  justify-content: flex-start;
  padding-left: 0;
  padding-right: 50px;
  animation: slideInRight 0.6s ease forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.timeline-icon {
  position: absolute;
  left: -23px;
  top: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0984e3 0%, #74b9ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
  box-shadow: 0 0 0 5px #fff, 0 0 0 8px rgba(9, 132, 227, 0.2);
  transition: all 0.3s ease;
  z-index: 10;
}

.timeline-icon:hover {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 0 0 5px #fff, 0 0 0 12px rgba(9, 132, 227, 0.3),
              0 0 20px rgba(9, 132, 227, 0.4);
}

.timeline-item:nth-child(odd) .timeline-icon {
  left: auto;
  right: -23px;
}

.timeline-content {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
  overflow: hidden;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #0984e3 0%, #74b9ff 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.timeline-content:hover::before {
  opacity: 1;
}

.timeline-content:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(9, 132, 227, 0.2);
  border-color: rgba(9, 132, 227, 0.3);
}

.timeline-content h3 {
  color: #2d3436;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

.timeline-content:hover h3 {
  color: #0984e3;
}

.timeline-content p {
  color: #636e72;
  margin: 0.5rem 0;
  font-size: 1rem;
  line-height: 1.6;
}

.timeline-date {
  color: #74b9ff;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.timeline-date i {
  color: #0984e3;
  font-size: 1rem;
}

.grades {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.8rem;
}

.grade-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  border-left: 3px solid #0984e3;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.grade-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(9, 132, 227, 0.1);
  transition: width 0.3s ease;
  z-index: 0;
}

.grade-item:hover::before {
  width: 100%;
}

.grade-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(9, 132, 227, 0.15);
  border-left-width: 4px;
}

.grade-item i {
  color: #0984e3;
  font-size: 1.1rem;
  z-index: 1;
  transition: transform 0.3s ease;
}

.grade-item:hover i {
  transform: scale(1.2) rotate(10deg);
}

.grade-item span {
  z-index: 1;
  color: #2d3436;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Arrow indicator pointing to timeline */
.timeline-content::after {
  content: '';
  position: absolute;
  top: 30px;
  width: 0;
  height: 0;
  border-style: solid;
}

.timeline-item:nth-child(even) .timeline-content::after {
  right: -15px;
  border-width: 15px 0 15px 15px;
  border-color: transparent transparent transparent white;
}

.timeline-item:nth-child(odd) .timeline-content::after {
  left: -15px;
  border-width: 15px 15px 15px 0;
  border-color: transparent white transparent transparent;
}

@media (max-width: 768px) {
  .education-timeline::before {
      left: 0;
  }
  
  .timeline-item {
      width: 100%;
      padding-left: 45px;
  }
  
  .timeline-item:nth-child(odd) {
      padding-left: 45px;
      padding-right: 0;
  }
  
  .timeline-icon {
      left: -8px;
  }
  
  .timeline-item:nth-child(odd) .timeline-icon {
      left: -8px;
      right: auto;
  }
}
.experience {
padding: 5rem 2rem;
}

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

.experience-item {
background: white;
border-radius: 15px;
padding: 2rem;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
transition: all 0.3s ease;
}

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

.experience-header {
margin-bottom: 1.5rem;
border-bottom: 2px solid #0984e3;
padding-bottom: 1rem;
}

.experience-header i {
color: #0984e3;
font-size: 1.5rem;
margin-bottom: 1rem;
}

.experience-header h3 {
color: #2d3436;
margin: 0.5rem 0;
}

.company {
color: #0984e3;
font-weight: 500;
}

.duration, .location {
color: #636e72;
font-size: 0.9rem;
display: flex;
align-items: center;
gap: 0.5rem;
margin: 0.3rem 0;
}

.experience-item ul {
list-style: none;
padding: 0;
}

.experience-item li {
padding: 0.5rem 0;
position: relative;
padding-left: 1.5rem;
}

.experience-item li:before {
content: "▹";
position: absolute;
left: 0;
color: #0984e3;
}
.projects {
padding: 5rem 2rem;
background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
color: #fff;
}

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

.project-card {
background: #2d2d2d;
border-radius: 15px;
padding: 2rem;
box-shadow: 0 4px 6px rgba(0,0,0,0.3);
transition: all 0.3s ease;
border: 1px solid #404040;
display: flex;
flex-direction: column;
justify-content: space-between;
}

.project-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 15px rgba(0,0,0,0.4);
border-color: #0984e3;
}

.tech-stack {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin: 1rem 0;
}

.tech-badge {
background: #0984e3;
color: white;
padding: 0.3rem 0.8rem;
border-radius: 15px;
font-size: 0.8rem;
}

.project-content ul {
list-style: none;
padding: 0;
margin: 1rem 0;
}

.project-content li {
padding: 0.5rem 0;
padding-left: 1.5rem;
position: relative;
}

.project-content li:before {
content: "▹";
position: absolute;
left: 0;
color: #0984e3;
}

.project-links {
display: flex;
gap: 1rem;
margin-top: 1.5rem;
}

.btn {
padding: 0.5rem 1rem;
border: 1px solid #0984e3;
border-radius: 5px;
color: #fff;
text-decoration: none;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 0.5rem;
}

.btn:hover {
background: #0984e3;
}
.achievements {
padding: 5rem 2rem;
background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
color: #fff;
}

.achievement-category {
margin-bottom: 4rem;
}

.achievement-category h3 {
color: #0984e3;
margin-bottom: 2rem;
display: flex;
align-items: center;
gap: 1rem;
}

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

.achievement-card {
background: #2d2d2d;
border-radius: 15px;
padding: 2rem;
box-shadow: 0 4px 6px rgba(0,0,0,0.3);
transition: all 0.3s ease;
border: 1px solid #404040;
}

.achievement-card.winner {
border-color: #0984e3;
background: linear-gradient(45deg, #2d2d2d, #1a1a1a);
}

.achievement-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 15px rgba(0,0,0,0.4);
}

.achievement-badge {
display: inline-block;
background: #0984e3;
color: white;
padding: 0.5rem 1rem;
border-radius: 20px;
font-size: 0.9rem;
margin: 1rem 0;
}

.achievement-place {
color: #0984e3;
font-size: 0.9rem;
margin: 0.5rem 0;
}

.achievement-content ul {
list-style: none;
padding: 0;
margin-top: 1rem;
}

.achievement-content li {
padding: 0.3rem 0;
padding-left: 1.5rem;
position: relative;
}

.achievement-content li:before {
content: "▹";
position: absolute;
left: 0;
color: #0984e3;
}
.contact {
padding: 5rem 2rem;
background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
color: #fff;
}

.contact-container {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 4rem;
max-width: 1200px;
margin: 0 auto;
}

.info-card {
background: #2d2d2d;
padding: 2rem;
border-radius: 15px;
text-align: center;
margin-bottom: 2rem;
border: 1px solid #404040;
transition: all 0.3s ease;
}

.info-card:hover {
transform: translateY(-5px);
border-color: #0984e3;
}

.info-card i {
font-size: 2rem;
color: #0984e3;
margin-bottom: 1rem;
}

.info-card a {
color: #fff;
text-decoration: none;
transition: color 0.3s ease;
}

.info-card a:hover {
color: #0984e3;
}

.social-links {
display: flex;
justify-content: center;
gap: 1rem;
margin-top: 2rem;
}

.social-btn {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.8rem 1.5rem;
border-radius: 25px;
background: #2d2d2d;
color: #fff;
text-decoration: none;
transition: all 0.3s ease;
border: 1px solid #404040;
}

.social-btn:hover {
background: #0984e3;
transform: translateY(-3px);
}

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

.form-group {
position: relative;
}

.form-group input,
.form-group textarea {
width: 100%;
padding: 1rem;
background: #2d2d2d;
border: 1px solid #404040;
border-radius: 10px;
color: #fff;
font-size: 1rem;
transition: all 0.3s ease;
}

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

.form-group label {
position: absolute;
left: 1rem;
top: 1rem;
color: #666;
transition: all 0.3s ease;
pointer-events: none;
}

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

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
transform: translateY(-2.5rem);
color: #0984e3;
font-size: 0.9rem;
}

.submit-btn {
padding: 1rem 2rem;
background: #0984e3;
color: #fff;
border: none;
border-radius: 25px;
cursor: pointer;
font-size: 1rem;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
}

.submit-btn:hover {
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(9,132,227,0.4);
}

@media (max-width: 768px) {
.contact-container {
    grid-template-columns: 1fr;
}
}

@keyframes bounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}

.bounce {
animation: bounce 2s infinite;
}
.footer {
background: #1a1a1a;
color: #fff;
padding: 4rem 2rem 2rem;
position: relative;
}

.footer-content {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 4rem;
}

.footer-section h3 {
color: #0984e3;
margin-bottom: 1rem;
font-size: 1.5rem;
}

.footer-section h4 {
color: #0984e3;
margin-bottom: 1rem;
}

.social-icons {
display: flex;
gap: 1rem;
margin-top: 1.5rem;
}

.social-icons a {
color: #fff;
font-size: 1.5rem;
transition: all 0.3s ease;
}

.social-icons a:hover {
color: #0984e3;
transform: translateY(-3px);
}

.footer-links {
display: flex;
flex-wrap: wrap;
gap: 1.5rem;
}

.footer-links a {
color: #fff;
text-decoration: none;
transition: all 0.3s ease;
position: relative;
}

.footer-links a::after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: -4px;
left: 0;
background: #0984e3;
transition: width 0.3s ease;
}

.footer-links a:hover::after {
width: 100%;
}

.footer-bottom {
margin-top: 3rem;
padding-top: 2rem;
border-top: 1px solid #404040;
text-align: center;
font-size: 0.9rem;
color: #888;
}

#back-to-top {
position: fixed;
bottom: 2rem;
right: 2rem;
background: #0984e3;
color: #fff;
width: 45px;
height: 45px;
border-radius: 50%;
border: none;
cursor: pointer;
display: none;
align-items: center;
justify-content: center;
font-size: 1.2rem;
transition: all 0.3s ease;
box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

#back-to-top:hover {
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(9,132,227,0.4);
}

@media (max-width: 768px) {
.footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

.social-icons {
    justify-content: center;
}

.footer-links {
    justify-content: center;
}
}
.nav-link {
  color: white;
}
.coursework-list a {
color: white;
text-decoration: none;
}

/* ...existing code... */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero-content {
    padding: 0 1rem;
  }
  .info-box {
    padding: 1rem;
  }
  .contact-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }
  .info-card {
    padding: 1rem;
  }
}
/* ===========================================
   RESPONSIVE MEDIA QUERIES
   =========================================== */

/* Large Desktop (1200px and above) */
@media screen and (min-width: 1200px) {
  .nav-container,
  .hero-content,
  .projects-grid,
  .skills-container,
  .education-timeline,
  .experience-container {
    max-width: 1400px;
  }
}

/* Tablet and Small Desktop (768px to 1024px) */
@media screen and (max-width: 1024px) {
  nav {
    padding: 1rem 3%;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .typewriter {
    font-size: 1.3rem;
  }

  .projects-grid,
  .skills-container,
  .experience-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

  .profile-container {
    gap: 1.5rem;
  }
}

/* Tablet Portrait (768px to 991px) */
@media screen and (max-width: 991px) {
  .hero h1 {
    font-size: 3rem;
  }

  .achievement-grid {
    grid-template-columns: 1fr;
  }

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

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

  .social-icons,
  .footer-links {
    justify-content: center;
  }
}

/* Mobile Landscape and Tablet Portrait (600px to 768px) */
@media screen and (max-width: 768px) {
  /* Navigation */
  .nav-links {
    position: fixed;
    right: -100%;
    top: 70px;
    flex-direction: column;
    background: #1a1a1a;
    width: 100%;
    height: calc(100vh - 70px);
    text-align: center;
    transition: right 0.3s ease;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    gap: 1rem;
    overflow-y: auto;
  }

  .nav-links.active {
    right: 0;
  }

  .burger {
    display: block;
    cursor: pointer;
  }

  .burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px;
    transition: all 0.3s ease;
  }

  .burger.active .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .burger.active .line2 {
    opacity: 0;
  }

  .burger.active .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  /* Hero Section */
  .hero {
    padding: 0 1.5rem;
    height: auto;
    min-height: 100vh;
  }

  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .typewriter {
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 0.95rem;
    padding: 0 0.5rem;
  }

  .social-links a {
    font-size: 1.3rem;
    margin: 0 10px;
  }

  /* Sections */
  section {
    padding: 3rem 1rem;
  }

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

  /* Grid Layouts */
  .projects-grid,
  .skills-container,
  .experience-container,
  .achievement-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Profile Cards */
  .profile-container {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }

  .profile-card {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  /* Education Timeline */
  .education-timeline::before {
    left: 20px;
  }

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

  .timeline-item:nth-child(odd) {
    padding-left: 60px;
    padding-right: 0;
  }

  .timeline-icon {
    left: 0;
  }

  .timeline-item:nth-child(odd) .timeline-icon {
    left: 0;
    right: auto;
  }

  /* Coursework */
  .coursework-list {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .filter-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .filter-btn {
    width: 100%;
    max-width: 250px;
  }

  /* Project Cards */
  .project-card {
    animation: none;
  }

  .btn {
    min-width: 80px;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  /* Contact Form */
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem;
  }

  .info-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  .social-links {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .social-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  /* Footer */
  .footer {
    padding: 3rem 1.5rem 1.5rem;
  }

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

  .social-icons {
    justify-content: center;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  /* Back to Top Button */
  #back-to-top {
    width: 40px;
    height: 40px;
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

/* Mobile Portrait (480px to 600px) */
@media screen and (max-width: 600px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .typewriter {
    font-size: 1.1rem;
  }

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

  .hero-description {
    font-size: 0.9rem;
  }

  .info-box {
    padding: 1.2rem;
  }

  .info-box h3 {
    font-size: 1rem;
  }

  .info-box p {
    font-size: 0.85rem;
  }

  .achievement-card {
    padding: 1.5rem;
  }

  .tech-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }

  .btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
    min-width: 70px;
  }
}

/* Small Mobile (320px to 480px) */
@media screen and (max-width: 480px) {
  /* Navigation */
  nav {
    padding: 0.8rem 4%;
  }

  .logo {
    font-size: 1.3rem;
  }

  .nav-links {
    top: 60px;
    padding: 1.5rem;
  }

  /* Hero Section */
  .hero {
    padding: 0 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .typewriter {
    font-size: 1rem;
  }

  .hero-description {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .hero-content {
    padding: 0 0.5rem;
  }

  .social-links a {
    font-size: 1.2rem;
    margin: 0 8px;
  }

  /* Sections */
  section {
    padding: 2.5rem 0.8rem;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
  }

  /* Cards */
  .project-card,
  .skill-category,
  .achievement-card,
  .experience-item {
    padding: 1.2rem;
  }

  .project-card h3,
  .skill-category h3,
  .achievement-card h4,
  .experience-item h3 {
    font-size: 1.1rem;
  }

  /* Profile Cards */
  .profile-card {
    padding: 1.2rem;
  }

  .card-header h3 {
    font-size: 1.2rem;
  }

  .stat-label,
  .stat-value {
    font-size: 0.85rem;
  }

  /* Education Timeline */
  .timeline-item {
    padding-left: 50px;
  }

  .timeline-icon {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .timeline-content {
    padding: 1.2rem;
  }

  .timeline-content h3 {
    font-size: 1.1rem;
  }

  .timeline-date {
    font-size: 0.85rem;
  }

  /* Experience */
  .experience-item li,
  .project-content li,
  .achievement-content li {
    font-size: 0.9rem;
    padding: 0.4rem 0;
  }

  /* Info Boxes */
  .info-box {
    padding: 1rem;
  }

  .info-box i {
    font-size: 1.3rem;
  }

  .info-box h3 {
    font-size: 0.95rem;
  }

  .info-box p {
    font-size: 0.8rem;
  }

  /* Buttons */
  .btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
    min-width: 60px;
  }

  .project-links {
    flex-direction: column;
    gap: 0.8rem;
  }

  .project-links .btn {
    width: 100%;
  }

  /* Tech Stack */
  .tech-stack {
    gap: 0.4rem;
  }

  .tech-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }

  /* Contact */
  .contact-container {
    padding: 0.5rem;
  }

  .info-card {
    padding: 1rem;
  }

  .info-card i {
    font-size: 1.5rem;
  }

  .social-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  .submit-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  /* Footer */
  .footer {
    padding: 2.5rem 1rem 1rem;
  }

  .footer-section h3 {
    font-size: 1.3rem;
  }

  .footer-section h4 {
    font-size: 1.1rem;
  }

  .social-icons a {
    font-size: 1.3rem;
  }

  .footer-links a {
    font-size: 0.9rem;
  }

  /* Back to Top */
  #back-to-top {
    width: 38px;
    height: 38px;
    bottom: 1rem;
    right: 1rem;
    font-size: 1rem;
  }

  /* Coursework List */
  .coursework-list {
    padding: 0.5rem;
  }

  .coursework-item {
    padding: 1rem;
  }

  .coursework-item h3 {
    font-size: 1rem;
  }

  .cert-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
  }
}

/* Extra Small Mobile (max-width: 360px) */
@media screen and (max-width: 360px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .typewriter {
    font-size: 0.95rem;
  }

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

  .logo {
    font-size: 1.2rem;
  }

  section {
    padding: 2rem 0.5rem;
  }

  .project-card,
  .skill-category,
  .achievement-card,
  .experience-item,
  .info-box {
    padding: 1rem;
  }

  .btn {
    font-size: 0.7rem;
    padding: 0.4rem 0.7rem;
  }
}

/* Landscape Orientation for Mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .typewriter {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: 0.85rem;
  }

  section {
    padding: 2rem 1rem;
  }
}

/* Print Styles */
@media print {
  header,
  .burger,
  #back-to-top,
  .social-links {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  section {
    page-break-inside: avoid;
  }
}
