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

/* Professional Geometric Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 15% 85%, rgba(100, 116, 208, 0.08) 1px, transparent 2px),
    radial-gradient(circle at 85% 15%, rgba(76, 185, 231, 0.06) 1px, transparent 2px),
    radial-gradient(circle at 50% 50%, rgba(147, 197, 253, 0.04) 1px, transparent 2px),
    linear-gradient(45deg, transparent 48%, rgba(100, 116, 208, 0.02) 50%, transparent 52%);
  background-size: 300px 300px, 250px 250px, 400px 400px, 150px 150px;
  animation: professionalPattern 30s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes professionalPattern {
  0% {
    transform: translateX(0) translateY(0);
  }

  25% {
    transform: translateX(-20px) translateY(-10px);
  }

  50% {
    transform: translateX(10px) translateY(-20px);
  }

  75% {
    transform: translateX(-10px) translateY(10px);
  }

  100% {
    transform: translateX(0) translateY(0);
  }
}

html {
  height: 100%;
  width: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(45deg, #f0f4f8 0%, #e2e8f0 25%, #f8fafc 50%, #e2e8f0 75%, #f0f4f8 100%);
  background-size: 400% 400%;
  animation: professionalShift 15s ease-in-out infinite;
  min-height: 100vh;
  transition: all 0.3s ease;
  position: relative;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(100, 116, 208, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(76, 185, 231, 0.05) 0%, transparent 50%),
    linear-gradient(45deg, transparent 40%, rgba(100, 116, 208, 0.02) 50%, transparent 60%);
  background-size: 600px 600px, 800px 800px, 300px 300px;
  animation: professionalFloat 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes professionalShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  25% {
    background-position: 50% 25%;
  }

  50% {
    background-position: 100% 50%;
  }

  75% {
    background-position: 50% 75%;
  }
}

@keyframes professionalFloat {

  0%,
  100% {
    transform: translateX(0) translateY(0) rotate(0deg);
    opacity: 0.8;
  }

  25% {
    transform: translateX(-10px) translateY(-5px) rotate(1deg);
    opacity: 0.6;
  }

  50% {
    transform: translateX(5px) translateY(-10px) rotate(-0.5deg);
    opacity: 0.9;
  }

  75% {
    transform: translateX(-5px) translateY(5px) rotate(0.5deg);
    opacity: 0.7;
  }
}

/* Loading Animation */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1d4ed8 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
  text-align: center;
  color: white;
  position: relative;
}

.loader-icon {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-machine {
  width: 120px;
  height: 120px;
  object-fit: contain;
  animation: machineWork 2s ease-in-out infinite;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.loader-initials {
  font-size: 2.5rem;
  font-weight: bold;
  animation: textGlow 2s ease-in-out infinite;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #0a1420, #af083a, #41099b);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientText 3s ease infinite, bounceIn 2s ease-in-out infinite;
}

.loader-text {
  font-size: 1.2rem;
  opacity: 0.9;
  animation: fadeInOut 2s ease-in-out infinite;
  position: relative;
}

.loader-text::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #60a5fa, transparent);
  animation: loadingBar 2s ease-in-out infinite;
}

@keyframes machineWork {

  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }

  25% {
    transform: translateX(-5px) rotate(-2deg);
  }

  50% {
    transform: translateX(0) rotate(0deg);
  }

  75% {
    transform: translateX(5px) rotate(2deg);
  }
}

@keyframes gradientText {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes bounceIn {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

@keyframes fadeInOut {

  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }
}

@keyframes loadingBar {
  0% {
    width: 0%;
    opacity: 0;
  }

  50% {
    width: 100%;
    opacity: 1;
  }

  100% {
    width: 0%;
    opacity: 0;
  }
}

/* Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
  z-index: 1000;
  transition: width 0.3s ease;
}

/* === ENHANCED NAVBAR STYLES === */
.no-scroll {
  overflow: hidden;
}

/* === Navbar Styles === */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s ease, transform 0.5s ease;
  transform: translateY(-100%);
  animation: slideDownNavbar 0.8s ease forwards;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Scroll active background */
.navbar.scrolled {
  background: rgba(0, 0, 0, 0.85);
  /* dark mode */
}

body:not(.dark-mode) .navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  /* light mode */
}

/* Slide-in animation */
@keyframes slideDownNavbar {
  to {
    transform: translateY(0%);
  }
}

/* Nav links hover effect */
.nav-link {
  position: relative;
  color: inherit;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

body.dark-mode .navbar {
  background: rgba(26, 32, 44, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4665f1;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-icon {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
  transform: rotate(10deg);
}

/* Navigation Menu (Desktop) */
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  border-radius: 25px;
}

body.dark-mode .nav-link {
  color: #e2e8f0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

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

.nav-link.active {
  color: #667eea;
  background: rgba(102, 126, 234, 0.15);
}

.nav-link.active::after {
  width: 80%;
}

/* More Toggle and Dropdown */
.more-wrapper {
  position: relative;
}

.more-toggle {
  background: none;
  border: none;
  color: #333;
  /* Default color for light mode */
  cursor: pointer;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
}

body.dark-mode .more-toggle {
  color: #e2e8f0;
  /* Dark mode color */
}

.more-toggle:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

.more-links {
  display: none; 
  /* Hidden by default */
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 0;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  min-width: 160px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

body.dark-mode .more-links {
  background: rgba(26, 32, 44, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.more-links.active {
  display: flex;
  /* Show when active */
  opacity: 1;
  max-height: 300px;
  /* Sufficient height to show all links */
}

.more-links li {
  width: 100%;
  margin: 0;
}

.more-links .nav-link {
  padding: 0.75rem 1.5rem;
  width: 100%;
  border-radius: 0;
}

/* Theme Toggle Button */
#theme-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: transform 0.3s ease;
  color: #667eea;
}

#theme-toggle:hover {
  transform: rotate(180deg);
}

body.dark-mode #theme-toggle {
  color: #fbbf24;
}

/* Mobile Menu Toggle (Hamburger) */
.menu-toggle {
  display: none;
  /* Hidden by default on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 4px;
  transition: all 0.3s ease;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: #333;
  transition: all 0.3s ease;
  border-radius: 2px;
}

body.dark-mode .menu-toggle span {
  background: #e2e8f0;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive Menu */
@media (max-width: 768px) {
  .nav-links.main-links {
    position: fixed;
    top: 70px;
    /* Adjust based on navbar height */
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.3s ease;
    z-index: 999;
  }

  body.dark-mode .nav-links.main-links {
    background: rgba(26, 32, 44, 0.98);
  }

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

  .nav-links.main-links li {
    margin: 0.75rem 0;
  }

  .nav-link {
    font-size: 1.2rem;
    padding: 1rem 2rem;
    width: 80%;
    text-align: center;
    border-radius: 50px;
  }

  .menu-toggle {
    display: flex;
    /* Show hamburger on mobile */
  }

  .more-links {
    position: static;
    /* Stack vertically in mobile menu */
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: auto;
    align-items: center;
  }

  .more-links .nav-link {
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 1rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
  }
}


.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 4rem;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)),
    url('./attached_assets/HB.jpg') center center / cover no-repeat;
  position: relative;
  overflow: hidden;
    background-size: 100% 200%, cover;
  /* Adjust background-size for gradient animation */
  animation: heroOverlayShift 20s ease-in-out infinite;
  /* Apply animation */
}

.hero-text {
  position: relative;
  /* Ensure it is positioned above the background */
  z-index: 2;
  /* Keep it above the background */
  background: inherit;
  /* Optional: Add a semi-transparent background for better readability */
  padding: 1.5rem;
  /* Optional: Add some padding for aesthetics */
  position:relative;
  z-index: 2;
  color: #fff;
  border-radius: 8px;
  /* Optional: Rounded corners for the text container */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Smooth transition for hover effect */
}

.hero-text:hover {
  transform: translateY(-10px);
  /* Move the text up on hover */
  box-shadow: 0 4px 20px rgba(39, 219, 195, 0.5);
  /* Add shadow for depth */
}

@keyframes heroOverlayShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
}

.hero-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  flex: 1;
  text-align: center;
}

.avatar-image {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 50%;
  border: 4px solid transparent;
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.6), 0 0 30px rgba(0, 255, 204, 0.4);
  animation: glowRing 3s ease-in-out infinite alternate;
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}

@keyframes glowRing {
  0% {
    box-shadow: 0 0 8px rgba(0, 255, 204, 0.4), 0 0 16px rgba(0, 255, 204, 0.3);
  }

  100% {
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.7), 0 0 40px rgba(0, 255, 204, 0.5);
  }
}

.avatar-image:hover {
  animation: glowRingHover 1.5s ease-in-out infinite alternate;
  /* New animation on hover */
  transform: scale(1.05) rotateY(5deg) rotateX(5deg);
  /* Slightly larger scale on hover */
}

@keyframes glowRingHover {
  0% {
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.6), 0 0 20px rgba(0, 255, 204, 0.4), 0 0 30px rgba(255, 107, 107, 0.5);
  }

  100% {
    box-shadow: 0 0 25px rgba(0, 255, 204, 0.9), 0 0 50px rgba(0, 255, 204, 0.7), 0 0 60px rgba(255, 107, 107, 0.8);
  }
}

.avatar-image:active {
  transform: scale(0.95);
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.5), 0 0 20px rgba(0, 255, 204, 0.4);
}

.avatar-caption {
  margin-top: 1rem;
  color: rgba(231, 66, 66, 0.8);
  font-style: italic;
}

/* Optional typewriter effect styling for the avatar caption */
.typewriter-caption {
  font-family: "Courier New", Courier, monospace;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid rgba(231, 66, 66, 0.8);
  animation: typing 3s steps(30, end), blink-caret 0.8s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: rgba(231, 66, 66, 0.8) }
}

.hero-text {
  color: white;
  background-color: transparent;
}

/* Define light mode variables */
:root {
  --hero-text-color: #111;
  /* Dark gray for visibility on light backgrounds */
  --hero-bg-color: transparent;
  /* Optional background color */
}

/* Override for dark mode */
.dark-mode {
  --hero-text-color: #f1f1f1;
  /* Light text on dark backgrounds */
  --hero-bg-color: #111;
  /* Optional background */
}

/* Apply to the .hero section */
.hero,
.hero-text {
  color: var(--hero-text-color);
  background-color: var(--hero-bg-color);
  /* Optional */
}

/* Optional: explicitly target inner text */
.hero h1,
.hero p,
.hero .availability-status {
  color: var(--hero-text-color);
}

.animated-text {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
  background-size: 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient 3s ease infinite;
}

@keyframes gradient {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.availability-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
  color: rgba(255, 255, 255, 0.9);
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: blink 2s infinite;
}

.status-indicator.available {
  background-color: #4ade80;
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0.3;
  }
}

.cta-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
  background-size: 300% 300%;
  animation: gradientShift 3s ease infinite;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 107, 107, 0.3);
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
}

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

.cta-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 107, 107, 0.6);
}

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

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.cta-btn.secondary {
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: none;
}

.cta-btn i {
  margin-right: 0.5rem;
}

/* Main Content */
main {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 0;
  border-radius: 30px 30px 0 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #333;
  position: relative;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  border-radius: 2px;
}

/* About Section Enhancements */
.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-item i {
  font-size: 2rem;
  color: #667eea;
  margin-bottom: 0.5rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.25rem;
}

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

/* Skills Section */
.skills-container {
  display: grid;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.skill-item {
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.skill-icon {
  font-size: 2.5rem;
  color: #667eea;
  min-width: 60px;
  text-align: center;
}

.skill-content {
  flex: 1;
}

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

.skill-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.skill-name {
  font-weight: bold;
  color: #333;
}

.skill-percentage {
  color: #667eea;
  font-weight: bold;
}

.skill-bar {
  width: 100%;
  height: 10px;
  background: #e9ecef;
  border-radius: 5px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(45deg, #667eea, #764ba2, #4ecdc4);
  background-size: 300% 300%;
  animation: gradientShift 2s ease infinite;
  width: 0%;
  transition: width 1.5s ease;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #667eea, #764ba2);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin: 2rem 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 50%;
  padding-right: 2rem;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 50%;
  padding-left: 2rem;
  text-align: left;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 0;
  width: 20px;
  height: 20px;
  background: white;
  border: 4px solid #667eea;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-marker.active {
  background: #667eea;
  animation: pulse-marker 2s infinite;
}

@keyframes pulse-marker {

  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }

  50% {
    transform: translateX(-50%) scale(1.2);
  }
}

.timeline-content {
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Visual change when a timeline item is expanded */
.timeline-item.expanded .timeline-content {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

.timeline-item.expanded .timeline-marker {
  background: #667eea;
}

.timeline-item:hover .timeline-content {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.timeline-content h3 {
  color: #667eea;
  margin-bottom: 0.5rem;
}

.timeline-date {
  position: absolute;
  top: -10px;
  right: 1rem;
  background: #667eea;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

/* Education Grid */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.education-item {
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.education-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Interests Grid */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.interest-item {
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.interest-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s;
}

.interest-item:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.interest-item:hover::before {
  opacity: 1;
}

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

.interest-item h3 {
  color: #667eea;
  margin-bottom: 1rem;
}

/* Projects */
.projects {
  display: grid;
  gap: 2rem;
}

.project {
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.project-period {
  background: #667eea;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  background: #e9ecef;
  color: #495057;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
}

/* Contact Form */
.contact-intro {
  color: #111; /* dark text for light backgrounds */
}

body.dark-mode .contact-intro {
  color: #fff; /* light text for dark backgrounds */
}

.contact-section {
  padding: 4rem 2rem;
  background: transparent;
  /* or any background from your theme */
  text-align: center;
  color: #130c0c;
}

body.dark-mode .contact-section {
  color: #e2e8f0;
}

.contact-section h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.contact-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #ccc;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  font-size: 1rem;
  border: 1px solid #444;
  border-radius: 8px;
  background-color: #1e1e1e;
  color: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #00e0ff;
  box-shadow: 0 0 8px rgba(0, 224, 255, 0.4);
}

.submit-btn {
  background-color: #184b52;
  color: #000;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background-color: #491c0e;
}

/* Footer */
.footer {
  background: var(--footer-bg, #0a0a0a);
  color: var(--footer-text, #f0f0f0);
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
}

.icon-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  /* Space between icons */
  margin-bottom: 1.5rem;
}

.icon {
  font-size: 2rem;
  color: var(--footer-text, #f0f0f0);
  transition: transform 0.3s ease, color 0.3s ease;
}

.icon:hover {
  transform: scale(1.3);
  color: var(--accent-color, #00e0ff);
}

.footer p {
  font-size: 0.95rem;
  opacity: 0.8;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-text h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #ecf0f1;
}

.footer-text h3 i {
  color: #667eea;
  margin-right: 0.5rem;
}

.footer-text p {
  color: #bdc3c7;
  font-size: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.social-btn:hover {
  background: #667eea;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.social-btn i {
  font-size: 1.2rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0.5rem 0;
  color: #bdc3c7;
}

.footer-note {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.fade-in-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Dark Mode */
body.dark-mode {
  background: linear-gradient(45deg, #1a202c 0%, #2d3748 25%, #1a202c 50%, #2d3748 75%, #1a202c 100%);
  background-size: 400% 400%;
  animation: professionalDarkShift 15s ease-in-out infinite;
  color: #e2e8f0;
}

body.dark-mode::after {
  background-image:
    radial-gradient(circle at 25% 25%, rgba(76, 185, 231, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(100, 116, 208, 0.06) 0%, transparent 50%),
    linear-gradient(45deg, transparent 40%, rgba(76, 185, 231, 0.03) 50%, transparent 60%);
}

body.dark-mode::before {
  background-image:
    radial-gradient(circle at 15% 85%, rgba(76, 185, 231, 0.1) 1px, transparent 2px),
    radial-gradient(circle at 85% 15%, rgba(100, 116, 208, 0.08) 1px, transparent 2px),
    radial-gradient(circle at 50% 50%, rgba(147, 197, 253, 0.06) 1px, transparent 2px),
    linear-gradient(45deg, transparent 48%, rgba(76, 185, 231, 0.04) 50%, transparent 52%);
}

@keyframes professionalDarkShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  25% {
    background-position: 50% 25%;
  }

  50% {
    background-position: 100% 50%;
  }

  75% {
    background-position: 50% 75%;
  }
}

body.dark-mode .navbar {
  background: rgba(44, 62, 80, 0.95);
}

body.dark-mode .nav-link {
  color: #ecf0f1;
}

body.dark-mode main {
  background: #34495e;
}

body.dark-mode section h2 {
  color: #ecf0f1;
}

body.dark-mode .skill-item,
body.dark-mode .education-item,
body.dark-mode .interest-item,
body.dark-mode .project,
body.dark-mode .timeline-content {
  background: #3a5269;
  color: #ecf0f1;
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  background: #3a5269;
  color: #ecf0f1;
  border-color: #495c6b;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

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

  .about-stats {
    flex-direction: row;
    justify-content: space-around;
  }

  .stat-item {
    padding: 1rem;
    min-width: 100px;
  }

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

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

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .avatar-image {
    width: 200px;
    height: 200px;
  }

  .animated-text {
    font-size: 2.5rem;
  }

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

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin: 0;
    margin-left: 50px;
    padding-left: 1rem;
    text-align: left;
  }

  .timeline-marker {
    left: 20px;
  }

  .timeline-date {
    position: static;
    display: inline-block;
    margin-top: 0.5rem;
  }

  .form-group {
    grid-template-columns: 1fr;
  }

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

  .interests-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 1rem;
  }

  section {
    padding: 2rem 1rem;
  }

  .hero {
    padding: 100px 1rem 60px;
  }

  .animated-text {
    font-size: 2rem;
  }

  .skill-item {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .skill-icon {
    font-size: 2rem;
    min-width: auto;
  }

  .education-item,
  .interest-item,
  .project {
    padding: 1rem;
  }

  .about-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .social-links {
    flex-direction: column;
  }

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

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