/* ==========================================================================
   Root Variables - Color Scheme and Global Settings
   ========================================================================== */
:root {
  /* Primary Colors */
  --primary: #e63946;        /* Bold red accent */
  --secondary: #1a1a1a;      /* Dark background */
  --dark: #121212;          /* Darker shade */
  --light: #ffffff;         /* White accents */
  
  /* Typography */
  --font-family: 'Inter', sans-serif;
  --font-family-mono: 'JetBrains Mono', monospace;
  
  /* Animation and Transitions */
  --transition: 0.4s ease;
  --transition-slow: 0.6s ease;
  --transition-fast: 0.2s ease;
  
  /* Layout and Spacing */
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 20px rgba(0,0,0,0.2);
  --spacing: 1rem;
  --max-width: 1400px;
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  
  /* UI Elements */
  --border-color: #333333;
  --card-bg: #242424;
  --glow-color: rgba(230, 57, 70, 0.15);
}

/* ==========================================================================
   Interactive Elements - Particle Container and Effects
   ========================================================================== */
.particle-container {
  position: relative;
  width: 100%;
  height: 300px;
  margin: 3rem 0;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.particle-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  border-color: var(--primary);
}

#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.particle-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  width: 100%;
  padding: 2rem;
}

.particle-title {
  display: block;
  font-family: var(--font-family-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards 0.3s;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.particle-subtitle {
  display: block;
  font-size: 1.1rem;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards 0.5s;
}

/* ==========================================================================
   Hero Section - Layout and Background Effects
   ========================================================================== */

.hero-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  background: var(--primary);
  filter: blur(100px);
  opacity: 0.1;
  animation: float var(--transition-slow) infinite;
}

.glow-orb-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -200px;
  animation-duration: 15s;
}

.glow-orb-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
  animation-duration: 20s;
  animation-delay: -5s;
}
.about-text{
  text-justify: auto;
}

/* ==========================================================================
   Animations
   ========================================================================== */

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

@keyframes float {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-30px, -30px) rotate(5deg);
  }
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
   
@media (max-width: 768px) {
  .particle-container {
    height: 250px;
  }
  
  .particle-title {
    font-size: 1.5rem;
  }
  
  .particle-subtitle {
    font-size: 1rem;
  }
  
  .glow-orb {
    opacity: 0.05;
  }
}

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

body {
  font-family: var(--font-family);
  background: var(--secondary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-mono);
  letter-spacing: -0.02em;
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 0;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  height: 70px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: transform var(--transition);
  font-family: var(--font-family-mono);
}

.github {
  margin-left: 2rem;
  font-size: 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition);
}

.github:hover,
.logo:hover {
  transform: scale(1.05);
  color: var(--primary);
}

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

.nav-links li a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all var(--transition);
  transform: translateX(-50%);
}

.nav-links li a:hover::after {
  width: 80%;
}

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

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--primary);
  width: 0%;
  z-index: 1001;
}

/* Custom Cursor and Glow Effect */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background: var(--glow-color);
  border: 2px solid var(--primary);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
  z-index: 10000;
  mix-blend-mode: screen;
  will-change: transform;
}

.custom-cursor::before {
  content: '';
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
  opacity: 0.5;
}

.custom-cursor.hover {
  transform: translate(-50%, -50%) scale(1.5);
  background: transparent;
  border-color: var(--primary);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: var(--secondary);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 70px; /* Account for fixed navbar */
}

.hero-content {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 2rem;
  position: relative;
  z-index: 2;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-text h1 {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 800;
  color: var(--text-primary);
}

.hero-text .highlight {
  color: var(--primary);
}

.hero-text .tagline {
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-family: var(--font-family-mono);
}

.hero-text .description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.btn {
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.primary-btn {
  background: var(--primary);
  color: white;
  border: none;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4);
}

.secondary-btn {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--primary);
}

.secondary-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.hero-image {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: -2rem;
}

.profile-picture {
  width: 400px;
  height: 400px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  animation: morphing 10s ease-in-out infinite;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  transform: translateY(-2rem);
}

.profile-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: screen;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.about-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Skills Section */
.skills-section {
  position: relative;
  padding: 5rem 0;
}

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

.skill-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    800px circle at var(--mouse-x) var(--mouse-y),
    var(--glow-color),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  transition: transform 0.3s ease;
}

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

.skill-card h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.skill-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.project-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: center;
  align-items: center;
}

.btn-small {
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 140px;
  justify-content: center;
}

.btn-small i {
  font-size: 1rem;
}

.btn-small:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Contact Section */
.contact-section {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.info-card {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-intro {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-top: 1rem;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.icon-wrapper {
  width: 40px;
  height: 40px;
  background: rgba(230, 57, 70, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.info-content a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition);
}

.info-content a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(230, 57, 70, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.contact-form {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.form-header {
  margin-bottom: 2rem;
}

.form-header p {
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.input-wrapper {
  position: relative;
  margin-top: 1rem;
}

.input-wrapper input,
.input-wrapper textarea {
  width: 100%;
  padding: 1rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 1rem;
  transition: all var(--transition);
}

.input-wrapper label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  pointer-events: none;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus,
.input-wrapper input:valid,
.input-wrapper textarea:valid {
  border-color: var(--primary);
  outline: none;
}

.input-wrapper input:focus ~ label,
.input-wrapper textarea:focus ~ label,
.input-wrapper input:valid ~ label,
.input-wrapper textarea:valid ~ label {
  transform: translateY(-1.5rem) scale(0.8);
  color: var(--primary);
}

.input-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.input-wrapper input:focus ~ .input-border,
.input-wrapper textarea:focus ~ .input-border {
  width: 100%;
}

.contact-form button {
  margin-top: 2rem;
  width: 100%;
}

.contact-form button i {
  transition: transform var(--transition);
}

.contact-form button:hover i {
  transform: translateX(5px);
}

/* Footer */
.footer {
  background: white;
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.footer p {
  color: var(--text-secondary);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  max-width: 500px;
  width: 90%;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.close-modal:hover {
  color: var(--primary);
}

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

@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

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

@keyframes shine {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

@keyframes morphing {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  25% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
  }
  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
  }
  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  }
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
}

@keyframes patternMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 50px 50px;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-text {
    align-items: center;
  }

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

  .hero-text .description {
    margin: 0 auto;
  }

  .hero-stats {
    justify-content: center;
  }

  .profile-picture {
    width: 300px;
    height: 300px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text .tagline {
    font-size: 1.2rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .profile-picture {
    width: 250px;
    height: 250px;
  }

  .contact-form,
  .info-card {
    padding: 2rem;
  }

  .navbar {
    padding: 1rem;
  }

  .nav-container {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    transform: translateY(-100%);
    transition: transform var(--transition);
  }

  .nav-container.active {
    transform: translateY(0);
  }

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

  .nav-links li a {
    display: block;
    padding: 0.5rem 1rem;
    width: 100%;
    text-align: center;
  }

  .nav-links li a::after {
    display: none;
  }

  .nav-links li a:hover {
    background: rgba(230, 57, 70, 0.1);
  }

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

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --light: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #333333;
  }

  .navbar,
  .skill-card,
  .project-card,
  .contact-info,
  .footer {
    background: #242424;
  }

  .navbar {
    background: rgba(26, 26, 26, 0.95);
  }

  .custom-cursor {
    background: rgba(230, 57, 70, 0.2);
  }
}

/* Active Navigation Link */
.nav-links li a.active {
  color: var(--primary);
  background: rgba(230, 57, 70, 0.1);
}

/* Notification System */
.notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1002;
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
}

.notification.success {
  border-left: 4px solid #4CAF50;
}

.notification.error {
  border-left: 4px solid var(--primary);
}

/* Scroll Animations */
.hero-container,
.about-content,
.skill-card,
.project-card,
.contact-container {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-container.animate,
.about-content.animate,
.skill-card.animate,
.project-card.animate,
.contact-container.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Loading State for Buttons */
.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Dark Mode Adjustments */
@media (prefers-color-scheme: dark) {
  .notification {
    background: #242424;
    color: var(--text-primary);
  }

  .nav-links li a.active {
    background: rgba(230, 57, 70, 0.2);
  }
}

/* Gallery Section */
.gallery-section {
  background: var(--dark);
  padding: 5rem 0;
  position: relative;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 300px;
  gap: 1.5rem;
  padding: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  grid-column: span 4;
}

.gallery-item.wide {
  grid-column: span 8;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay h3 {
  color: var(--light);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.gallery-overlay p {
  color: var(--text-secondary);
}

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

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

/* Text Animations */
.animate-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-text.visible span {
  opacity: 1;
  transform: translateY(0);
}

.animate-text span:nth-child(2n) {
  transition-delay: 0.1s;
}

.animate-text span:nth-child(3n) {
  transition-delay: 0.2s;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff4d5a;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 24px;
  position: relative;
  margin-left: auto;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  position: absolute;
  left: 0;
  transition: all var(--transition);
}

.mobile-menu-toggle span:first-child {
  top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.mobile-menu-toggle span:last-child {
  bottom: 0;
}

.mobile-menu-toggle.active span:first-child {
  transform: translateY(11px) rotate(45deg);
}

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

.mobile-menu-toggle.active span:last-child {
  transform: translateY(-11px) rotate(-45deg);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .github {
    margin-left: auto;
  }

  .nav-container {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    transform: translateY(-150%);
    transition: transform var(--transition);
    opacity: 0;
    visibility: hidden;
  }

  .nav-container.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

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

  .nav-links li a {
    display: block;
    padding: 0.75rem 1rem;
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
  }

  .nav-links li a::after {
    display: none;
  }

  .nav-links li a:hover {
    background: rgba(230, 57, 70, 0.1);
  }
}
