:root {
  --background: #ffffff;
  --foreground: #2c3e50;
  --primary: #e74c3c;
  --secondary: #3498db;
  --accent: #f39c12;
  --muted: #f8f9fa;
  --border: #e9ecef;
  --text-muted: #6c757d;
  --card-bg: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.95);
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: "Press Start 2P", cursive !important;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  line-height: 1.6;
}

/* Modern minimalist design */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  position: relative;
  overflow: hidden;
  padding: 120px 1rem 2rem 1rem; /* Added top padding to account for fixed navbar */
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(231, 76, 60, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(243, 156, 18, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    filter: drop-shadow(0 0 10px var(--primary));
  }
  to {
    filter: drop-shadow(0 0 20px var(--secondary));
  }
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.hero-subtitle {
  margin-bottom: 2rem;
}

.hero-subtitle p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--text-muted);
  text-align: center;
}

.hero-subtitle p:last-child {
  margin-bottom: 0;
}

.nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: 80px; /* Fixed height for consistent spacing */
}

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

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

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

.nav-links a {
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.8rem;
}

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

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

.section {
  padding: 5rem 0;
  position: relative;
  scroll-margin-top: 100px; /* Account for fixed navbar when scrolling to sections */
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary);
}

.card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  margin: 1rem 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(231, 76, 60, 0.15);
  border-color: var(--primary);
}

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

.skill-category {
  transition: all 0.3s ease;
}

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

.skill-category h3 {
  color: var(--foreground);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tags .nes-badge {
  transition: all 0.3s ease;
  min-width: fit-content;
  white-space: nowrap;
}

.skill-tags .nes-badge span {
  padding: 0.5rem 1rem;
  font-size: 0.7rem;
  white-space: nowrap;
  display: inline-block;
  min-width: fit-content;
}

.skill-tags .nes-badge:hover {
  transform: scale(1.05);
}

.skill-tag {
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.7rem;
  transition: all 0.3s ease;
  border: 2px solid var(--primary);
}

.skill-tag:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
  background: white;
  color: var(--primary);
}

/* Work Experience Styles */
.experience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.experience-content {
  padding: 0;
}

.experience-header {
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 1rem;
}

.experience-role {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.experience-details {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.experience-duration {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.experience-location {
  color: var(--text-muted);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.experience-description {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.experience-achievements {
  margin-bottom: 1.5rem;
}

.achievement-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding: 0.8rem;
  background: var(--muted);
  border-radius: 5px;
  border-left: 3px solid var(--primary);
  transition: all 0.3s ease;
}

.achievement-item:hover {
  background: white;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.1);
  transform: translateX(5px);
}

.achievement-item span {
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 0.8rem;
}

.experience-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

.project-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.project-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(231, 76, 60, 0.05), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.project-card:hover::after {
  transform: translateX(100%);
}

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

.project-title {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.project-description {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  background: var(--secondary);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.6rem;
  border: 2px solid var(--secondary);
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: white;
  color: var(--secondary);
}

.project-actions {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

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

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

.contact-form {
  display: grid;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--primary);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  background: white;
  border: 2px solid var(--border);
  border-radius: 5px;
  padding: 1rem;
  color: var(--foreground);
  font-size: 0.8rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Form Status Messages */
.form-status {
  padding: 1rem;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: bold;
  animation: slideIn 0.3s ease-out;
}

.form-status.success {
  background: #d4edda;
  border: 2px solid #28a745;
  color: #155724;
}

.form-status.error {
  background: #f8d7da;
  border: 2px solid #dc3545;
  color: #721c24;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: white;
  border: 2px solid var(--border);
  border-radius: 5px;
  color: var(--foreground);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.8rem;
}

.social-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.footer {
  background: var(--muted);
  border-top: 2px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  margin-top: 5rem;
}

.footer p {
  color: #495057;
  font-size: 0.8rem;
}

.footer-link {
  color: #dc3545;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px dotted #dc3545;
}

.footer-link:hover {
  color: #0a58ca;
  border-bottom-color: #0a58ca;
  text-shadow: 0 0 5px rgba(10, 88, 202, 0.5);
}

/* Mobile Navigation */
.mobile-nav-toggle {
  display: none !important;
  background: white;
  border: 4px solid black;
  color: black;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.8rem 2rem;
  border-radius: 0;
  transition: all 0.3s ease;
  font-family: "Press Start 2P", cursive;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  min-width: 120px;
  position: relative;

  /* Enhanced NES-style pixelated border effect */
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.3), inset 4px 4px 0 rgba(255, 255, 255, 0.4), 4px 4px 0 rgba(0, 0, 0, 0.4), 0 0 0 2px black;

  /* Retro glow effect */
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.3));

  /* Classic 8-bit corner cut effect - simple and clean */
  clip-path: polygon(4px 0%, calc(100% - 4px) 0%, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0% calc(100% - 4px), 0% 4px);
}

.mobile-nav-toggle:hover {
  background: var(--primary);
  color: white;
  border-color: black;
  transform: translateY(-2px);
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.2), inset 4px 4px 0 rgba(255, 255, 255, 0.5), 6px 6px 0 rgba(0, 0, 0, 0.5), 0 0 0 2px black,
    0 0 15px rgba(231, 76, 60, 0.5);
}

.mobile-nav-toggle:active {
  transform: translateY(1px);
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.4), inset 2px 2px 0 rgba(255, 255, 255, 0.2), 2px 2px 0 rgba(0, 0, 0, 0.4), 0 0 0 2px black;
}

.mobile-nav-menu {
  display: none;
  position: fixed;
  top: 70px; /* Fixed position below mobile navbar */
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border);
  z-index: 999;
  padding: 1rem 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav-menu.active {
  display: block;
}

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

.mobile-nav-links a {
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

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

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .nav-menu {
    padding: 0.8rem 0;
    height: 70px; /* Slightly smaller height on mobile */
  }

  .nav-links {
    display: none;
  }

  .mobile-nav-toggle {
    display: block !important;
    font-size: 0.8rem;
    padding: 0.6rem 1.5rem;
    min-width: 100px;
    letter-spacing: 1px;
  }

  .hero-section {
    padding-top: 140px; /* Further increased padding for mobile navbar */
    min-height: 90vh;
  }

  .section {
    padding: 4rem 0;
    scroll-margin-top: 120px; /* Increased scroll margin */
  }

  #home {
    scroll-margin-top: 0;
  }

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

  .hero-content p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .hero-section {
    padding: 1rem;
    min-height: 90vh;
  }

  .section {
    padding: 3rem 0;
  }

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

  .card {
    padding: 1.5rem;
    margin: 0.5rem 0;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .skill-category {
    padding: 1.5rem;
  }

  .project-card {
    padding: 1.5rem;
  }

  .project-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn {
    padding: 0.7rem 1rem;
    font-size: 0.7rem;
    text-align: center;
  }

  .contact-section {
    padding: 2rem 1rem;
    margin: 1rem 0;
  }

  .social-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .social-link {
    justify-content: center;
    padding: 0.7rem 1rem;
    font-size: 0.7rem;
  }

  .skill-tag {
    font-size: 0.6rem;
    padding: 0.4rem 0.8rem;
  }

  .tech-tag {
    font-size: 0.5rem;
    padding: 0.2rem 0.6rem;
  }

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

  .form-group label {
    font-size: 0.8rem;
  }

  /* Experience Section Mobile Styles */
  .experience-grid {
    gap: 1.5rem;
  }

  .experience-role {
    font-size: 1rem;
  }

  .experience-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .achievement-item {
    padding: 0.6rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .achievement-item span {
    font-size: 0.7rem;
  }

  .experience-tech .nes-badge {
    font-size: 0.6rem;
  }

  .skill-tags .nes-badge {
    min-width: fit-content;
  }

  .skill-tags .nes-badge span {
    padding: 0.4rem 0.8rem;
    font-size: 0.65rem;
  }

  /* New Hero and About Mobile Styles */
  .hero-name {
    font-size: 2.5rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 1rem;
  }

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

  .stat-number {
    font-size: 1.5rem;
  }

  .hero-actions {
    gap: 1rem;
    margin-top: 2rem;
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .nes-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.8rem;
    width: 100%;
    max-width: 300px;
  }

  .hero-social-links {
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .hero-social-links .nes-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.7rem;
  }

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

  .about-grid .skill-category {
    padding-top: 1.5rem;
  }

  .journey-highlights {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .highlight-item {
    padding: 0.8rem;
  }

  .highlight-item span {
    font-size: 0.8rem;
  }

  /* Ensure all sections have proper spacing from fixed header */
  .hero-content {
    padding-top: 3rem;
  }

  .hero-main {
    padding-top: 1rem;
  }

  /* Mobile Profile Image Styles */
  .hero-profile-image {
    width: 150px;
    height: 150px;
    border-width: 4px;
    margin-bottom: 1.5rem;
    box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.2), inset 4px 4px 0 rgba(255, 255, 255, 0.3), 4px 4px 0 rgba(0, 0, 0, 0.3),
      0 0 15px rgba(231, 76, 60, 0.3);
  }

  .hero-profile-image:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.1), inset 4px 4px 0 rgba(255, 255, 255, 0.4), 6px 6px 0 rgba(0, 0, 0, 0.4),
      0 0 20px rgba(243, 156, 18, 0.5), 0 0 40px rgba(231, 76, 60, 0.3);
  }

  .mobile-nav-links a {
    padding: 1rem 0;
    font-size: 0.9rem;
  }

  body {
    font-size: 0.7rem;
  }

  .footer p {
    font-size: 0.7rem;
    text-align: center;
    line-height: 1.6;
  }

  .footer-link {
    display: inline-block;
    margin-top: 0.2rem;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 2rem;
  }

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

  .hero-title-container .nes-badge {
    font-size: 0.6rem;
    padding: 0.3rem 0.6rem;
    max-width: 180px;
  }

  .hero-title-container .nes-badge span {
    font-size: 0.6rem;
  }

  .custom-badge {
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
    max-width: 200px;
    border-width: 2px;

    /* Even smaller retro shadow for tiny screens */
    box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.2), inset 2px 2px 0 rgba(255, 255, 255, 0.2), 2px 2px 0 rgba(0, 0, 0, 0.2);
  }

  .custom-badge:hover {
    box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.1), inset 2px 2px 0 rgba(255, 255, 255, 0.3), 3px 3px 0 rgba(0, 0, 0, 0.3);
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

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

  .hero-title-container .nes-badge {
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
    max-width: 200px;
    text-align: center;
  }

  .hero-title-container .nes-badge span {
    font-size: 0.7rem;
  }

  .custom-badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    max-width: 250px;
    border-width: 3px;

    /* Smaller retro shadow for mobile */
    box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.2), inset 3px 3px 0 rgba(255, 255, 255, 0.2), 3px 3px 0 rgba(0, 0, 0, 0.2);
  }

  .custom-badge:hover {
    box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.1), inset 3px 3px 0 rgba(255, 255, 255, 0.3), 4px 4px 0 rgba(0, 0, 0, 0.3);
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.8rem;
  }

  .hero-actions .nes-btn {
    width: 100%;
    max-width: 280px;
    padding: 0.8rem 1.2rem;
    font-size: 0.7rem;
  }

  .hero-social-links {
    gap: 0.8rem;
    margin-top: 1rem;
  }

  .hero-social-links .nes-btn {
    padding: 0.6rem 1rem;
    font-size: 0.6rem;
    width: 100%;
    max-width: 200px;
  }

  .skill-tags .nes-badge span {
    padding: 0.3rem 0.6rem;
    font-size: 0.6rem;
  }

  .about-content p {
    font-size: 0.8rem;
  }

  .about-grid .skill-category {
    padding-top: 1.2rem;
  }

  .hero-content {
    padding-top: 2rem; /* Increased padding for mobile */
  }

  .hero-main {
    padding-top: 1rem;
  }

  .journey-content p {
    font-size: 0.9rem;
  }

  /* Extra Small Mobile Profile Image */
  .hero-profile-image {
    width: 120px;
    height: 120px;
    border-width: 3px;
    margin-bottom: 1rem;
    box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.2), inset 3px 3px 0 rgba(255, 255, 255, 0.3), 3px 3px 0 rgba(0, 0, 0, 0.3),
      0 0 10px rgba(231, 76, 60, 0.3);
  }

  .hero-profile-image:hover {
    transform: scale(1.03);
    box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.1), inset 3px 3px 0 rgba(255, 255, 255, 0.4), 4px 4px 0 rgba(0, 0, 0, 0.4),
      0 0 15px rgba(243, 156, 18, 0.5), 0 0 30px rgba(231, 76, 60, 0.3);
  }

  .hero-main::before {
    width: 12px;
    height: 12px;
    top: -6px;
  }

  .mobile-nav-toggle {
    font-size: 0.7rem;
    padding: 0.5rem 1.2rem;
    min-width: 90px;
    letter-spacing: 1px;
  }

  .hero-section {
    padding-top: 40px; /* Extra padding for smallest screens */
  }

  .hero-content {
    padding-top: 2.5rem; /* Extra padding for smallest screens */
  }

  .hero-main {
    padding-top: 1.5rem;
  }

  .footer p {
    font-size: 0.6rem;
    line-height: 1.5;
    padding: 0 0.5rem;
  }

  .footer-link {
    font-size: 0.6rem;
  }
}

/* Enhanced Hero Section Styles */
.hero-main {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-greeting {
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease-out;
}

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

.hero-name {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow 2s ease-in-out infinite alternate, fadeInUp 1s ease-out 0.3s both;
  line-height: 1.1;
}

.hero-title-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  animation: fadeInUp 1.2s ease-out 0.6s both;
}

.hero-title-container .nes-badge {
  white-space: nowrap;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  min-width: fit-content;
  overflow: hidden;
  max-width: 100%;
}

.hero-title-container .nes-badge span {
  font-size: 0.8rem;
  white-space: nowrap;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-title-container .nes-badge.is-success,
.hero-title-container .nes-badge .is-success {
  font-size: 0.8rem !important;
}

.hero-tagline {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  animation: fadeInUp 1.4s ease-out 0.9s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  animation: fadeInUp 1.6s ease-out 1.2s both;
}

.stat-item {
  text-align: center;
}

.stat-item .nes-container {
  padding: 1.5rem 1rem;
  min-width: 120px;
  transition: all 0.3s ease;
  border: 3px dotted var(--primary) !important;
  border-radius: 0 !important;
}

.stat-item .nes-container:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(231, 76, 60, 0.2);
  border-color: var(--secondary) !important;
  border-style: dotted !important;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  animation: fadeInUp 1.8s ease-out 1.5s both;
}

.hero-actions .nes-btn {
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.hero-actions .nes-btn:hover {
  transform: translateY(-3px);
}

.hero-social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  animation: fadeInUp 2s ease-out 1.8s both;
}

.hero-social-links .nes-btn {
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.hero-social-links .nes-btn:hover {
  transform: translateY(-3px);
}

/* Enhanced About Section Styles */
.about-hero {
  max-width: 1200px;
  margin: 0 auto;
}

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

.about-description {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.journey-section {
  margin-top: 3rem;
}

.journey-content {
  padding: 0;
}

.journey-content p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 1rem;
}

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

.highlight-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--muted);
  border-radius: 8px;
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.highlight-item:hover {
  background: white;
  transform: translateX(10px);
  box-shadow: 0 5px 20px rgba(231, 76, 60, 0.1);
}

.highlight-item:nth-child(2) {
  border-left-color: var(--secondary);
}

.highlight-item:nth-child(3) {
  border-left-color: var(--accent);
}

.highlight-item span {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Hero Profile Image Styles */
.hero-profile-image {
  width: 200px;
  height: 200px;
  border-radius: 0;
  margin: 0 auto 2rem auto;
  display: block;
  transition: all 0.4s ease;

  /* 8-bit pixelated border effect */
  border: 6px solid var(--primary);
  box-shadow: inset -6px -6px 0 rgba(0, 0, 0, 0.2), inset 6px 6px 0 rgba(255, 255, 255, 0.3), 6px 6px 0 rgba(0, 0, 0, 0.3),
    0 0 20px rgba(231, 76, 60, 0.3);

  /* Retro scanline effect */
  position: relative;
  overflow: hidden;

  /* Floating animation */
  animation: float 3s ease-in-out infinite, fadeInUp 1s ease-out 0.3s both;
}

.hero-profile-image:hover {
  transform: scale(1.1) rotate(2deg);
  border-color: var(--accent);
  box-shadow: inset -6px -6px 0 rgba(0, 0, 0, 0.1), inset 6px 6px 0 rgba(255, 255, 255, 0.4), 8px 8px 0 rgba(0, 0, 0, 0.4),
    0 0 30px rgba(243, 156, 18, 0.5), 0 0 60px rgba(231, 76, 60, 0.3);
}

/* Scanline overlay effect */
.hero-profile-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.03) 2px, rgba(0, 0, 0, 0.03) 4px);
  pointer-events: none;
  z-index: 1;
}

/* Glitch effect on hover */
.hero-profile-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(231, 76, 60, 0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
  z-index: 2;
}

.hero-profile-image:hover::after {
  transform: translateX(100%);
}

/* Pixel corner decorations */
.hero-main::before {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--secondary);
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
  z-index: 3;
}

.hero-main {
  position: relative;
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

.custom-badge {
  background: var(--secondary);
  color: white;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: bold;
  transition: all 0.3s ease;
  display: inline-block;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;

  /* NES Retro Styling */
  border: 4px solid var(--secondary);
  border-radius: 0;
  position: relative;

  /* Pixelated border effect */
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.2), inset 4px 4px 0 rgba(255, 255, 255, 0.2), 4px 4px 0 rgba(0, 0, 0, 0.2);
}

.custom-badge:hover {
  background: white;
  color: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-2px);

  /* Hover shadow effect */
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.1), inset 4px 4px 0 rgba(255, 255, 255, 0.3), 6px 6px 0 rgba(0, 0, 0, 0.3);
}

/* Accessibility - Screen Reader Only Text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus indicators for better accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.nav-link:focus-visible {
  outline: 3px solid var(--primary) !important;
  outline-offset: 2px !important;
}

/* Skip to content link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  transition: top 0.3s;
  z-index: 9999;
}

.skip-link:focus {
  top: 6px;
}

/* Ensure proper contrast for all text elements */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--foreground);
}

/* SEO and Performance optimizations */
img {
  max-width: 100%;
  height: auto;
}

/* Prefers reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-profile-image {
    animation: none;
  }
}

/* Animation classes for Intersection Observer */
.section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* First section (hero) should be visible immediately */
#home {
  opacity: 1;
  transform: translateY(0);
}

/* Ensure sections are visible for users with reduced motion */
@media (prefers-reduced-motion: reduce) {
  .section {
    opacity: 1;
    transform: translateY(0);
    transition: none;
  }
}
