:root {
  --primary-color: #8a63ff;
  --secondary-color: #6a3dff;
  --accent-color: #a07bff;
  --text-color: #f0f0f0;
  --text-light: #b0b0b0;
  --text-muted: #888888;
  --bg-color: #121212;
  --bg-elevated: #1e1e1e;
  --bg-higher: #2a2a2a;
  --white: #ffffff;
  --toggle-bg: #374151;
  --toggle-track: #4b5563;
  --toggle-thumb: #ffffff;
  --toggle-green: #10b981;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --toggle-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light theme variables */
.light-theme {
  --primary-color: #6a3dff;
  --secondary-color: #8a63ff;
  --accent-color: #7c4dff;
  --text-color: #1a1a1a;
  --text-light: #555555;
  --text-muted: #666666;
  --bg-color: #ffffff;
  --bg-elevated: #f8f9fa;
  --bg-higher: #e9ecef;
  --white: #ffffff;
  --toggle-bg: #e5e7eb;
  --toggle-track: #d1d5db;
  --toggle-thumb: #ffffff;
  --toggle-green: #10b981;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  transition: var(--transition);
}

/* Navigation Styles */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(12px);
  z-index: 1000;
  transition: var(--transition);
  box-shadow: var(--shadow);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.light-theme .main-nav {
  background: rgba(248, 249, 250, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 80px;
}

.nav-brand-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 1px;
}

.nav-profile-pic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--bg-higher);
  opacity: 0;
  transform: translateX(-20px);
  transition: var(--transition);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.nav-profile-pic.visible {
  opacity: 1;
  transform: translateX(0);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
  letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
  border-radius: 1px;
}

/* Theme Toggle Styles */
.theme-toggle-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 2rem;
  padding: 8px 16px;
  background: var(--toggle-bg);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--toggle-transition);
}

.light-theme .theme-toggle-container {
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--toggle-transition);
  user-select: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  min-width: 30px;
  text-align: center;
}

.light-label.active,
.dark-label.active {
  color: var(--text-color);
  font-weight: 600;
}

.theme-toggle-wrapper {
  position: relative;
  flex-shrink: 0;
}

.theme-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-toggle-label {
  display: block;
  cursor: pointer;
  user-select: none;
}

.toggle-track {
  width: 50px;
  height: 26px;
  background: var(--toggle-green);
  border-color: var(--toggle-green);
  border-radius: 50px;
  position: relative;
  transition: var(--toggle-transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.light-theme .toggle-track {
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-toggle-input:checked + .theme-toggle-label .toggle-track {
  background: var(--toggle-track);
  border-color: var(--toggle-track);
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--toggle-thumb);
  border-radius: 50%;
  transition: var(--toggle-transition);
  transform: translateX(0);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.light-theme .toggle-thumb {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.theme-toggle-input:checked + .theme-toggle-label .toggle-thumb {
  transform: translateX(22px);
}

.theme-icon {
  font-size: 10px;
  position: absolute;
  transition: var(--toggle-transition);
}

.sun-icon {
  color: #fbbf24;
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.moon-icon {
  color: #6366f1;
  transform: scale(0.8) rotate(0deg);
}

.theme-toggle-input:checked + .theme-toggle-label .moon-icon {
  opacity: 0;
}

.theme-toggle-input:checked + .theme-toggle-label .sun-icon {
  opacity: 1;
}

.theme-toggle-input:not(:checked) + .theme-toggle-label .sun-icon {
  opacity: 0;
}

.theme-toggle-input:not(:checked) + .theme-toggle-label .moon-icon {
  opacity: 1;
}

/* Enhanced Hamburger Menu Button Styles */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  z-index: 1001;
  position: relative;
  border-radius: 8px;
  transition: var(--transition);
  overflow: hidden;
}

.nav-toggle:hover {
  background: var(--bg-higher);
  box-shadow: 0 4px 15px rgba(138, 99, 255, 0.2);
}

.light-theme .nav-toggle:hover {
  box-shadow: 0 4px 15px rgba(138, 99, 255, 0.15);
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--text-color);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-radius: 2px;
  position: relative;
  transform-origin: center;
  opacity: 1;
}

/* Hover effects for individual hamburger lines */
.nav-toggle:hover span:nth-child(1) {
  transform: translateX(2px);
  background: var(--primary-color);
}

.nav-toggle:hover span:nth-child(2) {
  background: var(--secondary-color);
}

.nav-toggle:hover span:nth-child(3) {
  transform: translateX(-2px);
  background: var(--accent-color);
}

/* Enhanced active state styles */
.nav-toggle.active span {
  background: var(--primary-color);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
  width: 28px;
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
  width: 28px;
}

/* Hamburger Menu Animations */
@keyframes hamburgerPulse {
  0% { 
    transform: scale(1); 
    box-shadow: 0 0 0 0 rgba(138, 99, 255, 0.4);
  }
  50% { 
    transform: scale(1.05); 
    box-shadow: 0 0 0 8px rgba(138, 99, 255, 0.1);
  }
  100% { 
    transform: scale(1); 
    box-shadow: 0 0 0 0 rgba(138, 99, 255, 0);
  }
}

@keyframes hamburgerBreathe {
  0%, 100% { 
    opacity: 1; 
    transform: scaleX(1);
  }
  50% { 
    opacity: 0.7; 
    transform: scaleX(0.9);
  }
}


/* Breathing animation for idle state */
.nav-toggle.breathing-idle span {
  animation: hamburgerBreathe 3s ease-in-out infinite !important;
}

.nav-toggle.breathing-idle {
  animation: hamburgerPulse 4s ease-in-out infinite !important;
}

/* Header Section */
.header {
  min-height: 300px;
  position: relative;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-color) 100%);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.light-theme .header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.profile-pic {
  position: absolute;
  left: 50%;
  bottom: -80px;
  transform: translateX(-50%);
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid var(--bg-higher);
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
  filter: grayscale(20%);
}

.light-theme .profile-pic {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.profile-pic:hover {
  transform: translateX(-50%) scale(1.05);
  filter: grayscale(0%);
}

/* Intro Section */
.intro-section {
  text-align: center;
  padding: 6rem 1rem 3rem;
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.name {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 10;
  letter-spacing: 1px;
}

.title {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  position: relative;
  z-index: 10;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.social-media {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-media a {
  font-size: 1.5rem;
  color: var(--text-light);
  transition: var(--transition);
}

.social-media a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* Content Sections */
.content-section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 3rem auto;
  background: var(--bg-elevated);
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.light-theme .content-section {
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.content-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 0.5rem;
  letter-spacing: 0.5px;
  text-align: center;
}

.content-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent-color);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 2rem auto 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-light);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-higher);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-family: inherit;
  transition: var(--transition);
  color: var(--text-color);
}

.light-theme .form-group input,
.light-theme .form-group textarea {
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(138, 99, 255, 0.2);
}

.submit-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  letter-spacing: 0.5px;
  width: 100%;
}

.submit-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(138, 99, 255, 0.3);
}

/* Footer */
.footer {
  text-align: center;
  padding: 2.5rem;
  background: var(--bg-elevated);
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.light-theme .footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer p {
  color: var(--text-light);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .light-theme .nav-links {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    padding: 1.2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .light-theme .nav-link {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-link:last-of-type {
    border-bottom: none;
  }

  .theme-toggle-container {
    margin: 1rem auto 0.5rem;
    justify-content: center;
    order: 1;
    width: auto;
    background: var(--bg-higher);
    padding: 10px 16px;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
    /*     animation: hamburgerPulse 3s ease-in-out infinite;*/
  }

  /* Mobile hamburger animations */
  .nav-toggle span {
    animation: hamburgerBreathe 2s ease-in-out infinite;
  }
  
  .nav-toggle span:nth-child(1) { animation-delay: 0s; }
  .nav-toggle span:nth-child(2) { animation-delay: 0.3s; }
  .nav-toggle span:nth-child(3) { animation-delay: 0.6s; }
  
  .nav-toggle:active {
    animation: hamburgerWobble 0.5s ease-in-out;
  }
  
  .nav-toggle.intro-animation {
    animation: hamburgerPulse 1s ease-out, hamburgerWobble 0.8s ease-out 0.5s;
  }
  
  /* Glowing background effect */
  .nav-toggle::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 10px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
  }
  
  .nav-toggle:hover::before {
    opacity: 0.3;
  }
  
  .nav-container {
    padding: 0 24px;
  }
}

/* Responsive styles */
@media (max-width: 480px) {
  .nav-container {
    padding: 0 16px;
  }
  
  .nav-brand {
    font-size: 1.3rem;
  }
  
  .nav-profile-pic {
    width: 36px;
    height: 36px;
  }
  
  .intro-section {
    padding: 5rem 1rem 3rem;
  }
  
  .name {
    font-size: 2rem;
  }
  
  .title {
    font-size: 1.1rem;
  }
  
  .theme-toggle-container {
    padding: 8px 14px;
    gap: 10px;
  }
  
  .theme-label {
    font-size: 0.7rem;
    min-width: 28px;
  }
  
  .toggle-track {
    width: 44px;
    height: 24px;
  }
  
  .toggle-thumb {
    width: 18px;
    height: 18px;
  }
  
  .theme-toggle-input:checked + .theme-toggle-label .toggle-thumb {
    transform: translateX(18px);
  }

  /* Enhanced mobile hamburger styles */
  .nav-toggle {
    padding: 10px;
  }
  
  .nav-toggle span {
    width: 22px;
    height: 2.5px;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
    width: 24px;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    width: 24px;
  }
}

/* No scroll when mobile menu is open */
.no-scroll {
  overflow: hidden;
}

