:root {
  /* Dark Theme Colors */
  --primary-color: #21e731;
  --secondary-color: #1a1a1a;
  --accent-color: #25d652;
  --text-light: #666;
  --bg-dark: #0a0a0a;
  --bg-card: #1a1a1a;
  --gradient: linear-gradient(135deg, #16f38c 0%, #16ca76 100%);
  --bg-very-dark: #060617;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --card-bg: rgba(0, 0, 255, 0.132);
  --card-border: rgba(255, 255, 255, 0.1);
  --navbar-bg: rgba(10, 10, 10, 0.5);
  --footer-bg: #15122b;
  --expertise-card-bg: rgba(0, 0, 255, 0.12);
  --timeline-card-bg: rgba(0, 0, 255, 0.132);
}

/* Light Theme Colors */
body.light-mode {
  --primary-color: #0abb4e;
  --secondary-color: #f8f9fa;
  --accent-color: #0066cc;
  --text-light: #6c757d;
  --bg-dark: #ffffff;
  --bg-card: #ffffff;
  --gradient: linear-gradient(135deg, #1eb644 0%, #0066cc 100%);
  --bg-very-dark: #f8f9fa;
  --text-primary: #212529;
  --text-secondary: #495057;
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-border: rgba(0, 0, 0, 0.1);
  --navbar-bg: rgba(255, 255, 255, 0.95);
  --footer-bg: #e9ecef;
  --expertise-card-bg: rgba(26, 115, 232, 0.05);
  --timeline-card-bg: rgba(26, 115, 232, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-very-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

/* Navigation */
.navbar {
  background: var(--navbar-bg) !important;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--card-border);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  padding: 20px;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  font-family: "Orbitron", sans-serif;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav .nav-link {
  font-family: "Orbitron", sans-serif;
  color: var(--text-primary) !important;
  font-weight: 500;
  margin: 0 10px;
  transition: color 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--accent-color) !important;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* Custom Hamburger Menu */
.navbar-toggler {
  border: none;
  padding: 0;
  outline: none;
  position: relative;
  z-index: 1001;
  background: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.hamburger {
  display: flex;
  flex-direction: column;
  width: 35px;
  height: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: var(--accent-color);
  margin: 2px 0;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Side Navigation */
.side-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--card-border);
  z-index: 1000;
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  padding: 80px 0 20px 0;
}

.side-nav.active {
  right: 0;
}

.side-nav .nav-item {
  margin: 10px 0;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.3s ease;
}

.side-nav.active .nav-item {
  opacity: 1;
  transform: translateX(0);
}

.side-nav.active .nav-item:nth-child(1) {
  transition-delay: 0.2s;
}
.side-nav.active .nav-item:nth-child(2) {
  transition-delay: 0.3s;
}
.side-nav.active .nav-item:nth-child(3) {
  transition-delay: 0.4s;
}
.side-nav.active .nav-item:nth-child(4) {
  transition-delay: 0.5s;
}
.side-nav.active .nav-item:nth-child(5) {
  transition-delay: 0.6s;
}
.side-nav.active .nav-item:nth-child(6) {
  transition-delay: 0.7s;
}

.side-nav .nav-link {
  color: var(--text-primary) !important;
  font-weight: 500;
  font-size: 1.2rem;
  padding: 15px 30px;
  display: block;
  border-radius: 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.side-nav .nav-link:hover {
  color: var(--accent-color) !important;
  background: rgba(0, 212, 255, 0.1);
  transform: translateX(10px);
}

.side-nav .nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.side-nav .nav-link:hover::before {
  transform: scaleY(1);
}

/* Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Download CV button inside side nav */
.side-nav #download-cv {
  margin: 30px 30px 0;
}

.side-nav .btn-download {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  background: var(--gradient);
  color: var(--bg-very-dark);
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(240, 17, 17, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.side-nav #download-cv .btn-download:hover {
  transform: scale(1.05);
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(230, 10, 10, 0.5);
  background: var(--bg-very-dark);
  border: 1px solid var(--card-border);
  font-weight: bold;
  color: var(--text-primary);
}

h1 {
  font-family: "Orbitron", sans-serif;
  color: var(--text-primary);
}

.download-cv {
  background: var(--gradient);
  border-radius: 8px;
}

.download-cv .btn {
  font-weight: bold;
  color: white;
}

.download-cv .btn:hover {
  background-color: var(--bg-very-dark);
  border: 1px solid var(--card-border);
  font-weight: bold;
  color: var(--text-primary);
}

.pulse-glow-container {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  margin: 50px auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: 3s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(17, 207, 90, 0.8), 0 0 60px rgba(7, 201, 87, 0.6),
    0 0 100px rgba(10, 223, 106, 0.4);
}

.pulse-glow-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--bg-very-dark);
  z-index: 2;
}

/* Floating tech icons */
.tech-icon {
  position: absolute;
  font-size: 2.5rem;
  color: var(--accent-color);
  text-shadow: 0 0 10px var(--accent-color);
  animation: floaTechtIcon 3s ease-in-out infinite;
  z-index: 1;
}

.icon1 {
  top: -20px;
  left: 40%;
  animation-delay: 0s;
}
.icon2 {
  bottom: -20px;
  right: 35%;
  animation-delay: 1s;
}
.icon3 {
  top: 40%;
  left: -25px;
  animation-delay: 2s;
}
.icon4 {
  bottom: 35%;
  right: -25px;
  animation-delay: 3s;
}

@keyframes floaTechtIcon {
  0% {
    transform: translateY(0px) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translateY(-10px) scale(1.2);
    opacity: 0.6;
  }
  100% {
    transform: translateY(0px) scale(1);
    opacity: 0.9;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: -90px;
}

.hero-content {
  z-index: 2;
}

/* .hero h1 {
  display: flex;
  flex-direction: column;
  font-size: 5.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease;
} */

.hero h1 {
  font-size: 5.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease;
}

.hero .subtitle {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.2s both;
}

/* Typewriter cursor animation */
.typewriter-cursor {
  display: inline-block;
  background: var(--accent-color);
  width: 3px;
  animation: blink 1s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* .hero .subtitle {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.2s both;
} */

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.floating-element {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--accent-color);
  border-radius: 50%;
  animation: floatObject 3s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}
.floating-element:nth-child(2) {
  top: 90%;
  left: 48%;
  animation-delay: 2s;
}
.floating-element:nth-child(3) {
  top: 40%;
  left: 90%;
  animation-delay: 4s;
}

@keyframes floatObject {
  0% {
    transform: translateY(0px) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translateY(-10px) scale(1.2);
    opacity: 0.6;
  }
  100% {
    transform: translateY(0px) scale(1);
    opacity: 0.9;
  }
}

/* Glow buttons */
.glow-btn-container {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.status-btn {
  border-radius: 50px;
  padding: 10px 20px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  color: #e6f8ff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  cursor: default;
  transition: all 0.3s ease;
}

/* Light mode status buttons */
body.light-mode .status-btn {
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--text-primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-green-glow {
  /* color: #00ff88;
  box-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88; */
  animation: pulse-green 1.5s infinite ease-in-out;
}

.btn-green-glow .dot {
  width: 10px;
  height: 10px;
  background-color: #00ff88;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-green 1.5s infinite ease-in-out;
}

.btn-blue-glow {
  color: #4db8ff;
  box-shadow: 0 0 10px #4db8ff, 0 0 20px #4db8ff;
  animation: pulse-blue 1.5s infinite ease-in-out;
}

/* Light mode glow effects */
body.light-mode .btn-green-glow {
  color: #059669;
  box-shadow: 0 0 15px rgba(5, 150, 105, 0.3), 0 0 30px rgba(5, 150, 105, 0.2);
}

body.light-mode .btn-green-glow .dot {
  background-color: #059669;
}

body.light-mode .btn-blue-glow {
  color: #0ea5e9;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.3), 0 0 30px rgba(14, 165, 233, 0.2);
}

@keyframes pulse-green {
  0%,
  100% {
    box-shadow: 0 0 8px #00ff88, 0 0 16px #00ff88, 0 0 24px #00ff88;
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 4px #00ff88, 0 0 8px #00ff88, 0 0 12px #00ff88;
    opacity: 0.6;
  }
}

@keyframes pulse-blue {
  0%,
  100% {
    box-shadow: 0 0 8px #4db8ff, 0 0 16px #4db8ff, 0 0 24px #4db8ff;
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 4px #4db8ff, 0 0 8px #4db8ff, 0 0 12px #4db8ff;
    opacity: 0.6;
  }
}

/* View more on github button */
#view-more {
  display: flex;
  justify-content: center;
  margin: 70px auto;
  transition: transform 1s ease;
}

#view-more:hover {
  transform: scale(1.05);
  background: var(--card-bg);
}

#view-more i {
  margin-right: 8px;
  font-size: 18px;
  animation: blink 1.1s infinite ease;
}



/* Mouse Light */
/* .mouse-light {
  position: fixed;
  left: 20%;
  top: 50%;
  width: 420px;
  height: 420px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  filter: blur(60px) saturate(150%);
  will-change: transform, opacity;
  z-index: 1;
  opacity: 0.9;
  transition: opacity 300ms linear;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(28, 169, 255, 0.85) 0%,
    rgba(28, 169, 255, 0.55) 20%,
    rgba(38, 114, 255, 0.25) 40%,
    rgba(20, 40, 80, 0.05) 70%,
    transparent 100%
  );
} */

/* Light mode mouse light */
/* body.light-mode .mouse-light {
  background: radial-gradient(
    circle at 30% 30%,
    rgba(26, 115, 232, 0.4) 0%,
    rgba(26, 115, 232, 0.25) 20%,
    rgba(59, 130, 246, 0.15) 40%,
    rgba(147, 197, 253, 0.05) 70%,
    transparent 100%
  );
  mix-blend-mode: multiply;
} */

/* About Section */
.section-title {
  margin-top: 120px;
}

#about h2 {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bolder;
  font-size: 50px;
}

.heading-line {
  height: 4px;
  width: 150px;
  background: var(--gradient);
  border-radius: 2px;
  margin: 0 auto;
}

.about-card {
  border-radius: 20px;
  padding: 1rem;
  margin-top: 40px;
  box-shadow: 0 10px 30px rgba(58, 41, 209, 0.3);
  border: 3px solid var(--card-border);
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, background-color 0.4s ease,
    border-color 0.4s ease;
  font-family: sans-serif;
}

.about-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
}

/* Light mode about card */
body.light-mode .about-card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-mode .about-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.highlight-badge-modern {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(58, 41, 209, 0.1);
}

.highlight-badge-modern:hover {
  /* background: var(--accent-color); */
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
  cursor: pointer;
}

/* Areas of Expertise */
.expertise-section {
  padding: 60px 15px;
  text-align: center;
}

.expertise-title {
  font-size: 1.8rem;
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bolder;
  font-size: 50px;
}

.expertise-card {
  background: var(--expertise-card-bg);
  border-radius: 20px;
  padding: 1rem;
  margin-top: 40px;
  border: 2px solid var(--card-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s ease;
  height: 100%;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.expertise-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent-color);
  box-shadow: 0 15px 30px rgba(0, 102, 204, 0.2);
}

/* Light mode expertise cards */
body.light-mode .expertise-card {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

body.light-mode .expertise-card:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.expertise-card h5 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.expertise-card i {
  font-size: 24px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.expertise-card:hover i {
  transform: rotate(10deg) scale(1.15);
}

.expertise-items {
  display: inline-block;
  background: rgba(0, 102, 204, 0.12);
  color: var(--accent-color);
  padding: 6px 14px;
  border-radius: 20px;
  margin: 4px;
  font-size: 0.85rem;
  border: 1px solid rgba(0, 212, 255, 0.25);
  transition: all 0.3s ease;
}

/* Light mode expertise items */
body.light-mode .expertise-items {
  background: rgba(26, 115, 232, 0.08);
  color: var(--primary-color);
  border-color: rgba(26, 115, 232, 0.2);
}

.expertise-items:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
}

/* Career Timeline */
.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.career-timeline {
  margin-top: 100px;
}

.career-timeline h2 {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bolder;
  font-size: 50px;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient);
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin: 60px 0;
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item.animate {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
  margin-right: 60px;
  text-align: right;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -15px;
  left: auto;
  border-left: 15px solid var(--timeline-card-bg);
  border-right: none;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 60px;
  margin-right: auto;
  text-align: left;
}

.timeline-content {
  background: var(--timeline-card-bg);
  padding: 30px;
  border-radius: 20px;
  width: calc(50% - 30px);
  position: relative;
  border: 1px solid var(--card-border);
  transition: all 0.4s ease;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.timeline-content::before {
  content: "";
  position: absolute;
  top: 30px;
  left: -15px;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-right: 15px solid var(--timeline-card-bg);
}

.timeline-content::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}

.timeline-item:hover .timeline-content::after {
  transform: scaleX(1);
}

.timeline-content:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 102, 204, 0.3);
  border-color: var(--accent-color);
}

/* Light mode timeline hover */
body.light-mode .timeline-content:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.timeline-icon {
  position: absolute;
  left: 50%;
  top: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient);
  border: 4px solid var(--bg-very-dark);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 10;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.timeline-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(0, 212, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
  z-index: -1;
}

.timeline-item:hover .timeline-icon {
  transform: translateX(-50%) scale(1.2);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.timeline-item:hover .timeline-icon::after {
  width: 70px;
  height: 70px;
}

/* Icon specific colors */
.timeline-icon.education {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
}

.timeline-icon.work {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.timeline-icon.school {
  background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
  color: #2d3436;
}

.timeline-icon.certification {
  background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
}

.timeline-degree {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.timeline-degree i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.timeline-school {
  font-size: 1.2rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-date {
  display: inline-block;
  background: rgba(0, 102, 204, 0.2);
  color: var(--accent-color);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 15px;
  border: 1px solid rgba(0, 212, 255, 0.3);
}

/* Light mode timeline date */
body.light-mode .timeline-date {
  background: rgba(26, 115, 232, 0.1);
  color: var(--primary-color);
  border-color: rgba(26, 115, 232, 0.2);
}

.timeline-details {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 15px;
}

.timeline-details strong {
  color: var(--accent-color);
  font-weight: 600;
}

.timeline-achievements {
  margin-top: 15px;
}

.achievement-tag {
  display: inline-block;
  background: rgba(0, 212, 255, 0.1);
  color: var(--primary-color);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  margin: 3px;
  border: 1px solid rgba(0, 102, 204, 0.3);
  transition: all 0.3s ease;
}

/* Light mode achievement tags */
body.light-mode .achievement-tag {
  background: rgba(26, 115, 232, 0.08);
  border-color: rgba(26, 115, 232, 0.2);
}

.achievement-tag:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
}

/* Projects Section */
#projects .section-title {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 48px;
  text-align: center;
  margin: 120px 0 8px;
  letter-spacing: 1px;
}

.project-card {
  background: var(--bg-dark);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.4s ease;
  height: 100%;
  margin-top: 80px;
  color: var(--text-primary);
  border: 1px solid var(--card-border);
}

.project-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--accent-color);
  box-shadow: 0 20px 50px rgba(0, 102, 204, 0.25);
}

/* Light mode project cards */
body.light-mode .project-card {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

body.light-mode .project-card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.project-img {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-bottom: 2px solid var(--card-border);
  transition: transform 0.8s ease;
  animation: swingUpDown 2s ease-in-out infinite alternate;
}

@keyframes swingUpDown {
  0% {
    transform: translateY(-15px) scale(1.02);
  }
  100% {
    transform: translateY(15px) scale(1.02);
  }
}

.category-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: white;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.category-tag i {
  font-size: 20px;
}

.category-tag.ecom {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

.category-tag.app {
  background: linear-gradient(135deg, #3b82f6, #1e40af);
}

.category-tag.ngo {
  background: linear-gradient(135deg, #16a34a, #065f46);
}

.category-tag.weather {
  background: linear-gradient(135deg, #06b6d4, #0e7490);
}

.category-tag.banking {
  background: linear-gradient(135deg, #9333ea, #5b21b6);
}

.frosted-badge {
  position: absolute;
  top: 190px;
  left: 20px;
  height: 45px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.frosted-badge i {
  color: #22c55e;
  font-size: 16px;
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tech-tag {
  background: rgba(0, 102, 204, 0.08);
  color: var(--primary-color);
  padding: 6px 14px;
  border-radius: 15px;
  font-size: 0.9rem;
  border: 1px solid rgba(0, 102, 204, 0.25);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

/* Light mode tech tags */
body.light-mode .tech-tag {
  background: rgba(26, 115, 232, 0.05);
  border-color: rgba(26, 115, 232, 0.15);
}

.tech-tag:hover {
  background: var(--accent-color);
  color: rgba(0, 0, 0, 0.582);
}

.tech-tag i {
  font-size: 1rem;
}

.project-buttons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.live-demo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.live-demo-btn:hover {
  transform: scale(1.03);
  color: white;
}

.github-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #24292f;
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Light mode github button */
body.light-mode .github-btn {
  background: #6c757d;
}

.github-btn:hover {
  transform: translateY(-2px);
  border: 1px solid var(--card-border);
  color: white;
}

.github-btn i {
  font-size: 18px;
}

.disabled-link {
  pointer-events: none;
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: none;
}

/* Footer */
.footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
  transition: background-color 0.4s ease;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient);
}

.footer-main {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--card-border);
}

.footer-bottom {
  padding: 30px 0;
  text-align: center;
}

.footer-brand {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.footer-tagline {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 300px;
}

.footer-section h5 {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  position: relative;
}

.footer-section h5::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--gradient);
  border-radius: 1px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

.footer-links a i {
  font-size: 0.9rem;
  width: 16px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.footer-contact-item:hover {
  color: var(--accent-color);
}

.footer-contact-item i {
  width: 20px;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.footer-stats {
  display: flex;
  justify-content: space-around;
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--card-border);
}

.footer-stat {
  flex: 1;
}

.footer-stat-number {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.footer-stat-label {
  color: var(--text-light);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-social {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 2rem;
}

.footer-social a {
  display: flex;
  width: 50px;
  height: 50px;
  background: var(--card-bg);
  color: var(--text-secondary);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  text-decoration: none;
  border: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
}

.footer-social a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  transition: left 0.4s ease;
  z-index: -1;
}

.footer-social a:hover {
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

.footer-social a:hover::before {
  left: 0;
}

.footer-bottom p {
  margin: 0;
  color: var(--text-light);
}

.footer-cta {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-cta .btn {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--accent-color);
  padding: 12px 30px;
  border-radius: 25px;
  transition: all 0.4s ease;
}

.footer-cta .btn:hover {
  background: var(--gradient);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 102, 204, 0.3);
}

/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  top: 18px;
  right: 45px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: var(--card-bg);
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1100;
  transition: all 0.4s ease;
  border: 1px solid var(--card-border);
}

.theme-toggle:hover {
  transform: scale(1.05);
  background: var(--gradient);
  color: white;
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.theme-toggle i {
  position: absolute;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-size: 22px;
}

.theme-toggle .dark-icon {
  opacity: 0;
  transform: scale(0.5) rotate(180deg);
}

.theme-toggle.active .light-icon {
  opacity: 0;
  transform: scale(0.5) rotate(-180deg);
}

.theme-toggle.active .dark-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Light mode specific enhancements */
/* body.light-mode .mouse-light {
  opacity: 0.6;
} */

body.light-mode .pulse-glow-container {
  box-shadow: 0 0 20px rgba(26, 115, 232, 0.3), 0 0 60px rgba(26, 115, 232, 0.2),
    0 0 100px rgba(26, 115, 232, 0.1);
}

body.light-mode .tech-icon {
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--primary-color);
}

/* Ensure smooth transitions for all theme changes */
*,
*::before,
*::after {
  transition: background-color 0.4s ease, color 0.4s ease,
    border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Tablet Responsive (768px - 991px) */
@media (max-width: 991px) and (min-width: 769px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .hero .subtitle {
    font-size: 1.3rem;
  }

  .pulse-glow-container {
    width: 220px;
    height: 220px;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .expertise-title {
    font-size: 2.5rem;
  }
}

/* Mobile Landscape (768px and below) */
@media (max-width: 768px) {
  .navbar {
    padding: 15px;
  }

  .navbar-brand {
    font-size: 1.1rem;
  }

  /* Hero Section Mobile */
  .hero {
    min-height: 100vh;
    padding: 100px 0 50px;
    text-align: center;
    display: flex;
    align-items: center;
    margin-top: -38px;
  }

  .hero .row {
    align-items: center;
  }

  .hero .order-1 {
    margin-bottom: 1rem;
    margin-top: -3.5rem;
  }

  .hero .order-2 {
    margin-top: 0.5rem;
  }

  .hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    margin-top: 0;
    text-align: center;
  }

  .hero .subtitle {
    font-size: 1.2rem;
    /* margin-top: -1.5rem; */
    text-align: center;
  }

  .pulse-glow-container {
    width: 200px;
    height: 200px;
    margin: 30px auto;
  }

  .tech-icon {
    font-size: 2rem;
  }

  .glow-btn-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: auto;
    justify-content: center;
    max-width: fit-content;
    gap: 15px;
    margin-top: -9rem;
    position: relative;
    z-index: 10;
  }

  .status-btn {
    padding: 12px 25px;
    font-size: 0.95rem;
  }

  /* About Section Mobile */
  .section-title {
    margin-top: 80px;
    font-size: 2.2rem;
  }

  .about-card {
    padding: 1.5rem;
    margin-top: 30px;
  }

  .highlight-badge-modern {
    font-size: 0.85rem;
    padding: 8px 16px;
    margin: 5px;
  }

  /* Expertise Section Mobile */
  .expertise-section {
    padding: 40px 15px;
  }

  .expertise-title {
    font-size: 2.2rem;
  }

  .expertise-card {
    margin-top: 20px;
    padding: 1.2rem;
  }

  .expertise-items {
    font-size: 0.8rem;
    padding: 5px 10px;
    margin: 2px;
  }

  /* Timeline Mobile */
  .career-timeline {
    margin-top: 60px;
  }

  .timeline-line {
    left: 25px;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    width: calc(100% - 60px);
    margin-left: 50px;
    margin-right: 10px;
    text-align: left;
  }

  .timeline-item:nth-child(odd) .timeline-content::before {
    left: -15px;
    right: auto;
    border-right: 15px solid var(--timeline-card-bg);
    border-left: none;
  }

  .timeline-icon {
    left: 30px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .timeline-content {
    padding: 20px;
  }

  .timeline-degree {
    font-size: 1.2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .timeline-school {
    font-size: 1rem;
  }

  .timeline-date {
    font-size: 0.85rem;
    padding: 4px 12px;
  }

  .achievement-tag {
    font-size: 0.75rem;
    padding: 3px 8px;
    margin: 2px;
  }

  /* Projects Mobile */
  .project-card {
    margin-top: 30px;
  }

  .project-img {
    height: 210px;
  }

  .frosted-badge {
    position: absolute;
    top: 155px;
    left: 20px;
    height: 40px;
  }

  .project-content {
    padding: 1.2rem;
  }

  .project-title {
    font-size: 1.2rem;
  }

  .project-buttons {
    flex-direction: row;
    gap: 8px;
  }

  .live-demo-btn,
  .github-btn {
    padding: 10px px;
    font-size: 14px;
  }

  .tech-tag {
    font-size: 0.8rem;
    padding: 4px 10px;
  }

  /* Footer Mobile */
  .footer-main {
    padding: 40px 0 30px;
  }

  .footer-brand {
    font-size: 1.5rem;
  }

  .footer-tagline {
    font-size: 1rem;
    max-width: 100%;
  }

  .footer-stats {
    flex-direction: column;
    gap: 20px;
  }

  .footer-stat-number {
    font-size: 1.5rem;
  }

  .footer-social {
    justify-content: center;
    gap: 12px;
  }

  .footer-social a {
    width: 45px;
    height: 45px;
  }

  .footer-section {
    text-align: center;
    margin-bottom: 2rem;
  }

  .footer-section h5::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-contact-info {
    align-items: center;
  }

  .footer-contact-item {
    justify-content: center;
    text-align: center;
  }

  /* Theme Toggle Mobile */
  .theme-toggle {
    top: 15px;
    right: 11rem;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* Extra Small Mobile (576px and below) */
@media (max-width: 576px) {
  .hero {
    padding: 80px 0 30px;
  }

  .hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    margin-top: 28px;
  }

  .hero .order-1 {
    margin-bottom: 1rem;
    margin-top: -7rem;
  }

  .hero .subtitle {
    font-size: 1rem;
    margin-top: -10px;
  }

  pulse-glow-container {
    width: 180px;
    height: 180px;
  }

  .tech-icon {
    font-size: 2rem;
  }

  .glow-btn-container {
    margin-top: -12rem;
  }

  .status-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.8rem;
    margin-top: 60px;
  }

  .expertise-title {
    font-size: 1.8rem;
  }

  .expertise-card {
    padding: 1rem;
  }

  .timeline-content {
    width: 90% !important;
    margin: 20px 35px !important;
    text-align: left !important;
  }

  .timeline-content {
    padding: 15px;
  }

  .timeline-degree {
    font-size: 1.1rem;
  }

  .project-img {
    height: 220px;
  }

  .frosted-badge {
    position: absolute;
    top: 162px;
    left: 5px;
    height: 40px;
  }

  .category-tag {
    width: 40px;
    height: 40px;
  }

  .category-tag i {
    font-size: 16px;
  }

  /* Theme Toggle Mobile */
  .theme-toggle {
    top: 14px;
    right: 5rem;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Light mode specific enhancements */
/* body.light-mode .mouse-light {
  opacity: 0.6;
} */

body.light-mode .pulse-glow-container {
  box-shadow: 0 0 20px rgba(26, 115, 232, 0.3), 0 0 60px rgba(26, 115, 232, 0.2),
    0 0 100px rgba(26, 115, 232, 0.1);
}

body.light-mode .tech-icon {
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--primary-color);
}