/* ===== CSS VARIABLES ===== */
:root {
  /* Colors - Modern palette with gradients */
  --primary-color: #667eea;
  --primary-dark: #5a6fd8;
  --primary-light: #88a3ff;
  --secondary-color: #f093fb;
  --secondary-dark: #f066a8;
  --accent-color: #4facfe;
  --success-color: #00d4aa;
  --warning-color: #ff9f40;
  --error-color: #ff6b8a;

  /* Text colors */
  --text-primary: #2d3748;
  --text-secondary: #4a5568;
  --text-light: #718096;
  --text-white: #ffffff;

  /* Background colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f7fafc;
  --bg-dark: #1a202c;
  --bg-darker: #171923;
  --bg-card: #ffffff;
  --bg-gradient: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  --bg-gradient-reverse: linear-gradient(
    135deg,
    var(--secondary-color) 0%,
    var(--primary-color) 100%
  );

  /* Border and shadow */
  --border-color: #e2e8f0;
  --border-radius: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.3);

  /* Typography */
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --font-mono: "Fira Code", "Courier New", monospace;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Transitions */
  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.3s ease-out;
  --transition-slow: 0.5s ease-out;
  --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;
}

/* Dark theme variables */
[data-theme="dark"] {
  --text-primary: #f7fafc;
  --text-secondary: #e2e8f0;
  --text-light: #a0aec0;
  --bg-primary: #1a202c;
  --bg-secondary: #2d3748;
  --bg-card: #2d3748;
  --border-color: #4a5568;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

/* ===== UTILITY CLASSES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.gradient-text {
  background: var(--bg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-up:nth-child(2) {
  animation-delay: 0.2s;
}
.fade-in-up:nth-child(3) {
  animation-delay: 0.4s;
}
.fade-in-up:nth-child(4) {
  animation-delay: 0.6s;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border: none;
  border-radius: var(--border-radius-lg);
  font-family: var(--font-primary);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn::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 var(--transition-slow);
}

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

.btn-primary {
  background: var(--bg-gradient);
  color: var(--text-white);
  box-shadow: var(--shadow-md);
  justify-content: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

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

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

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

/* ===== PRELOADER ===== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  transition: opacity var(--transition-slow);
}

.preloader-content {
  text-align: center;
}

.preloader-logo {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
  animation: pulse 2s ease-in-out infinite;
}

.loading-bar {
  width: 200px;
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  overflow: hidden;
  margin: var(--space-4) auto;
}

.loading-progress {
  height: 100%;
  background: var(--bg-gradient);
  border-radius: 2px;
  animation: loading 2s ease-in-out infinite;
}

.loading-text {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== CURSOR FOLLOWER ===== */
.cursor-follower {
  position: fixed;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-tooltip);
  mix-blend-mode: difference;
  opacity: 0;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.cursor-follower.active {
  opacity: 1;
}

.cursor-follower.hover {
  transform: scale(2);
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: var(--z-fixed);
  transition: all var(--transition-normal);
}

[data-theme="dark"] .navbar {
  background: rgba(26, 32, 44, 0.95);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .navbar.scrolled {
  background: rgba(26, 32, 44, 0.98);
}

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

.nav-logo .logo-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: -2px;
}

.nav-menu {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9rem;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--border-radius);
  transition: all var(--transition-normal);
  position: relative;
}

.nav-link i {
  font-size: 0.875rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--bg-gradient);
  transition: all var(--transition-normal);
  transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  background: rgba(102, 126, 234, 0.1);
}

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

.nav-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--border-radius);
  transition: all var(--transition-normal);
}

.theme-toggle:hover {
  background: var(--bg-secondary);
  transform: scale(1.1);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  padding: var(--space-2);
  background: none;
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  transition: all var(--transition-normal);
  border-radius: 2px;
}

.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--bg-gradient);
  overflow: hidden;
  padding-top: 80px; /* Account for fixed navbar */
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.geometric-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.shape-3 {
  width: 80px;
  height: 80px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

.shape-4 {
  width: 120px;
  height: 120px;
  top: 30%;
  right: 30%;
  animation-delay: 1s;
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  color: var(--text-white);
  padding: var(--space-8);
  margin-top: 80px; /* Account for fixed navbar height */
  bottom: 100px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.title-line {
  display: block;
}

.typing-text {
  position: relative;
  color: white !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: white !important;
  background-clip: unset !important;
}

.typing-text::after {
  content: "|";
  animation: blink 1s infinite;
  margin-left: 2px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  margin-bottom: var(--space-4);
  opacity: 0.9;
  font-weight: 500;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: var(--space-8);
  opacity: 0.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-stats .stat-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: var(--space-6);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stats .stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.15);
}

.hero-stats .stat-item i {
  font-size: 2rem;
  color: var(--primary-color);
  filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.3));
}

.hero-stats .stat-content {
  text-align: left;
}

.hero-stats .stat-content .stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: var(--space-1);
}

.hero-stats .stat-content .stat-label {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-16);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--text-white);
  animation: bounce 2s infinite;
  z-index: 10;
}

.scroll-text {
  font-size: 0.9rem;
  margin-bottom: var(--space-2);
  opacity: 0.8;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--text-white);
  border-bottom: 2px solid var(--text-white);
  transform: rotate(45deg);
  margin: 0 auto;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-tag {
  display: inline-block;
  background: var(--bg-gradient);
  color: var(--text-white);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--border-radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  margin-bottom: var(--space-4);
  background: var(--bg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: var(--space-24) 0;
  background: var(--bg-secondary);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-12);
  align-items: start;
  width: 100%;
}

.about-image {
  position: relative;
}

.image-container {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: transform var(--transition-normal);
}

.image-container:hover {
  transform: translateY(-10px);
}

.profile-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-gradient);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-normal);
}

.image-container:hover .image-overlay {
  opacity: 0.9;
}

.overlay-content {
  text-align: center;
  color: var(--text-white);
}

.overlay-content i {
  font-size: 3rem;
  margin-bottom: var(--space-2);
}

.overlay-content p {
  font-size: 1.2rem;
  font-weight: 600;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.floating-item {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-color);
  box-shadow: var(--shadow-lg);
  animation: floatAround 8s ease-in-out infinite;
}

.floating-item:nth-child(1) {
  top: 10%;
  right: -30px;
  animation-delay: 0s;
}

.floating-item:nth-child(2) {
  top: 40%;
  left: -30px;
  animation-delay: 2s;
}

.floating-item:nth-child(3) {
  bottom: 30%;
  right: -20px;
  animation-delay: 4s;
}

.floating-item:nth-child(4) {
  bottom: 10%;
  left: -40px;
  animation-delay: 6s;
}

.floating-item:nth-child(5) {
  top: 60%;
  right: -35px;
  animation-delay: 1s;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.story-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: var(--space-4);
  color: var(--primary-color);
}

.story-text {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

.story-highlight {
  background: var(--bg-gradient);
  color: var(--text-white);
  padding: var(--space-6);
  border-radius: var(--border-radius-lg);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  position: relative;
}

.skills-section {
  background: var(--bg-card);
  padding: var(--space-8);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-8);
  width: 100%;
}

.skills-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-6);
  color: var(--text-primary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
}

.skill-category h5 {
  font-size: 1.1rem;
  margin-bottom: var(--space-3);
  color: var(--primary-color);
  font-weight: 600;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.skill-tag {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-normal);
}

.skill-tag:hover {
  background: var(--primary-color);
  color: var(--text-white);
  transform: translateY(-2px);
}

.interests-section {
  background: var(--bg-card);
  padding: var(--space-8);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-md);
  width: 100%;
}

.interests-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-6);
  color: var(--text-primary);
}

.interests-grid {
  display: grid;
  gap: var(--space-4);
}

.interest-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--border-radius-lg);
  transition: all var(--transition-normal);
}

.interest-item:hover {
  background: var(--bg-secondary);
  transform: translateX(10px);
}

.interest-item i {
  font-size: 1.5rem;
  color: var(--secondary-color);
  width: 24px;
  text-align: center;
}

.interest-content h5 {
  font-size: 1.1rem;
  margin-bottom: var(--space-1);
  color: var(--text-primary);
}

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

/* ===== PROJECTS SECTION ===== */
.projects {
  padding: var(--space-24) 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.project-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-links {
  display: flex;
  gap: var(--space-3);
}

.project-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-gradient);
  color: var(--text-white);
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.project-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.project-content {
  padding: var(--space-6);
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.project-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.project-award {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--warning-color);
  color: var(--text-white);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  font-weight: 500;
}

.project-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tech-tag {
  background: var(--bg-secondary);
  color: var(--primary-color);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  font-weight: 500;
}

.projects-cta {
  text-align: center;
}

/* ===== TRAVEL SECTION ===== */
.travel {
  padding: var(--space-24) 0;
  background: var(--bg-secondary);
}

.travel-content {
  display: grid;
  gap: var(--space-12);
  grid-template-columns: 1fr;
}

.travel-map {
  background: var(--bg-card);
  border-radius: var(--border-radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}

.map-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.map-container iframe {
  width: 100%;
  height: 480px;
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  display: block;
  max-width: 100%;
}

.world-map {
  position: relative;
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.map-svg {
  width: 100%;
  height: 100%;
}

/* SVG Map Styles */
.continent {
  transition: all var(--transition-normal);
  cursor: pointer;
}

.continent:hover {
  opacity: 0.5 !important;
}

.country-marker {
  cursor: pointer;
  transition: all var(--transition-normal);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.country-marker:hover {
  r: 5;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.country-marker.visited {
  animation: mapPulse 2s ease-in-out infinite;
}

.route-line {
  stroke-dasharray: 5, 5;
  animation: routeFlow 3s linear infinite;
}

@keyframes mapPulse {
  0%,
  100% {
    r: 3;
    opacity: 1;
  }
  50% {
    r: 5;
    opacity: 0.7;
  }
}

@keyframes routeFlow {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 20;
  }
}

@keyframes highlight {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
  }
}

/* Map pins overlay */
.travel-gallery {
  background: var(--bg-card);
  border-radius: var(--border-radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  margin-top: var(--space-8);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin: 0;
  justify-items: center;
}

/* CSS Grid fallback for older browsers */
@supports not (display: grid) {
  .gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .gallery-item {
    flex: 0 0 calc(33.333% - var(--space-4));
    margin: var(--space-2);
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  aspect-ratio: 4/3;
}

/* Fallback for browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 4/3) {
  .gallery-item {
    height: 250px;
  }

  .gallery-item::before {
    content: "";
    display: block;
    padding-top: 75%; /* 4:3 aspect ratio */
  }
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--text-white);
  padding: var(--space-6) var(--space-4) var(--space-4);
  transform: translateY(100%);
  transition: transform var(--transition-normal);
}

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

.gallery-overlay h4 {
  font-size: 1.2rem;
  margin-bottom: var(--space-1);
  font-weight: 600;
}

.gallery-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.4;
}

.travel-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
}

.stat-card {
  background: var(--bg-card);
  padding: var(--space-6);
  border-radius: var(--border-radius-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: var(--space-3);
}

.stat-card .stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

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

/* ===== GAMING SECTION ===== */
.gaming {
  padding: var(--space-24) 0;
}

.gaming-content {
  display: grid;
  gap: var(--space-12);
}

.gaming-setup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
  background: var(--bg-card);
  padding: var(--space-8);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-md);
}

.setup-image {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.setup-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.setup-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.setup-image:hover .setup-overlay {
  opacity: 1;
}

.ps-logo {
  color: var(--text-white);
  font-size: 2rem;
}

.setup-info h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.setup-info p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: var(--space-4);
}

.gamer-tag {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--bg-gradient);
  color: var(--text-white);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--border-radius-lg);
  font-family: var(--font-mono);
  font-weight: 500;
}

.gaming-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
}

.gaming-stats .stat-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--bg-card);
  padding: var(--space-6);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.gaming-stats .stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.gaming-stats .stat-item i {
  font-size: 2rem;
  color: var(--primary-color);
}

.stat-content .stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

.favorite-games h3 {
  text-align: center;
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: var(--space-8);
  color: var(--text-primary);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.game-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.game-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.game-card:hover .game-image img {
  transform: scale(1.1);
}

.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
  color: var(--text-white);
  text-align: center;
  padding: var(--space-4);
}

.game-card:hover .game-overlay {
  opacity: 1;
}

.game-status {
  background: var(--primary-color);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.game-status.completed {
  background: var(--success-color);
}

.game-status.favorite {
  background: var(--warning-color);
}

.game-progress {
  width: 100%;
  margin-top: var(--space-2);
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--space-1);
}

.progress-fill {
  height: 100%;
  background: var(--text-white);
  border-radius: 2px;
  transition: width var(--transition-slow);
}

.progress-text {
  font-size: 0.8rem;
}

.game-achievements {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-2);
}

.game-content {
  padding: var(--space-4);
}

.game-content h4 {
  font-size: 1.2rem;
  margin-bottom: var(--space-1);
  color: var(--text-primary);
}

.game-content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
  font-size: 0.9rem;
}

.game-rating {
  display: flex;
  gap: var(--space-1);
}

.game-rating i {
  color: var(--warning-color);
  font-size: 0.9rem;
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: var(--space-24) 0;
  background: var(--bg-secondary);
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  align-items: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  width: 100%;
  max-width: 600px;
  text-align: center;
}

.contact-card {
  background: var(--bg-card);
  padding: var(--space-6);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.card-header i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.card-header h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
}

.contact-card p {
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
  font-size: 1.1rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-normal);
}

.contact-link:hover {
  transform: translateX(5px);
}

.social-links h3 {
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

/* Social link card styles */
.social-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--bg-secondary);
}

.social-link i {
  font-size: 1.5rem;
  color: var(--primary-color);
  width: 24px;
  text-align: center;
}

.social-link span {
  font-weight: 500;
  font-size: 1rem;
}

.social-link.playstation {
  background: linear-gradient(135deg, #003087 0%, #0070d1 100%);
  color: var(--text-white);
  border: none;
}

.social-link.playstation i {
  color: var(--text-white);
}

.social-link.playstation:hover {
  background: linear-gradient(135deg, #002766 0%, #005ba8 100%);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: var(--space-3);
  max-width: 500px;
  margin: 0 auto;
}

/* ===== SOCIAL GRID RESPONSIVE STYLES ===== */

/* Large Desktop: 6 items in 2 rows of 3 */
@media (min-width: 1200px) {
  .social-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: var(--space-4);
    max-width: 600px;
  }
}

/* Desktop: 6 items in 2 rows of 3 */
@media (min-width: 768px) and (max-width: 1199px) {
  .social-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: var(--space-3);
    max-width: 500px;
  }
}

/* Tablet: Stack vertically */
@media (min-width: 481px) and (max-width: 767px) {
  .social-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 1fr);
    gap: var(--space-3);
    max-width: 300px;
    margin: 0 auto;
  }

  .social-link {
    justify-content: flex-start;
    padding: var(--space-4);
  }
}

/* Mobile: Stack vertically with full width */
@media (max-width: 480px) {
  .social-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 1fr);
    gap: var(--space-2);
    width: 100%;
  }

  .social-link {
    justify-content: center;
    padding: var(--space-3);
    text-align: center;
  }
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Large desktop styles */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .map-container iframe {
    height: 500px;
  }
}

/* Desktop styles */
@media (min-width: 1024px) and (max-width: 1199px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet landscape styles */
@media (min-width: 901px) and (max-width: 1023px) {
  .travel-content {
    gap: var(--space-10);
  }

  .map-container {
    padding: 0 var(--space-3);
  }

  .map-container iframe {
    height: 400px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
  }

  .travel-gallery {
    padding: var(--space-6);
  }
}

/* Tablet portrait styles */
@media (min-width: 769px) and (max-width: 900px) {
  .travel-content {
    gap: var(--space-8);
  }

  .map-container {
    padding: 0 var(--space-3);
  }

  .map-container iframe {
    height: 380px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }

  .travel-gallery {
    padding: var(--space-6);
  }

  .gallery-overlay h4 {
    font-size: 1.1rem;
  }

  .gallery-overlay p {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .contact-content {
    gap: var(--space-4);
    padding: 0 var(--space-2);
  }

  .contact-info {
    gap: var(--space-4);
  }

  .contact-form-container {
    padding: var(--space-4);
    margin: 0 var(--space-1);
  }

  .form-disabled-message i {
    font-size: 2rem;
  }

  .form-disabled-message h3 {
    font-size: 1.2rem;
  }

  .form-disabled-message p {
    font-size: 0.95rem;
  }

  .direct-contact-options .btn {
    font-size: 0.9rem;
    padding: var(--space-3) var(--space-4);
  }
}

/* ===== FOOTER SECTION ===== */
.footer {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: var(--space-16) 0 var(--space-8);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--bg-gradient);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  margin-bottom: var(--space-8);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 400px;
}

.footer-quote {
  text-align: right;
  position: relative;
}

.footer-quote i {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin: 0 var(--space-2);
}

.footer-quote p {
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin: var(--space-2) 0;
  line-height: 1.5;
}

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

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-bottom i {
  color: var(--secondary-color);
  margin: 0 var(--space-1);
  animation: pulse 2s ease-in-out infinite;
}

/* ===== DEMO MODAL ===== */
.demo-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  padding: var(--space-4);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.demo-modal.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.modal-content {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

.demo-modal.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.modal-header h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--border-radius);
  transition: all var(--transition-normal);
}

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

.modal-body {
  padding: 0;
  max-height: calc(90vh - 100px);
  overflow-y: auto;
}

.video-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: var(--space-6);
}

.video-container iframe,
.video-container video {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--border-radius-lg);
}

.demo-modal .modal-content {
  max-width: 95vw;
  max-height: 95vh;
}

/* Footer responsive styles */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    text-align: center;
  }

  .footer-quote {
    text-align: center;
  }

  .footer-quote p {
    font-size: 1rem;
  }

  .footer-logo {
    font-size: 1.75rem;
  }

  .footer-description {
    max-width: none;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: var(--space-12) 0 var(--space-6);
  }

  .footer-content {
    margin-bottom: var(--space-6);
  }

  .footer-bottom {
    padding-top: var(--space-6);
  }

  .footer-quote i {
    font-size: 1.2rem;
  }

  .footer-quote p {
    font-size: 0.9rem;
  }
}

/* ===== ABOUT SECTION RESPONSIVE STYLES ===== */

/* Mobile and Tablet: Stack all sections vertically */
@media (max-width: 1023px) {
  .about-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    align-items: center;
  }

  .about-image,
  .about-text,
  .skills-section,
  .interests-section {
    width: 100%;
    max-width: 600px;
  }

  .about-image {
    order: 1;
  }

  .about-text {
    order: 2;
  }

  .skills-section {
    order: 3;
  }

  .interests-section {
    order: 4;
  }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
  .about-content {
    gap: var(--space-10);
  }

  .about-image,
  .about-text,
  .skills-section,
  .interests-section {
    max-width: 700px;
  }
}

/* Desktop: Arrange in 2x2 grid layout */
@media (min-width: 1024px) {
  .about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    grid-template-rows: auto auto;
    gap: var(--space-12);
    align-items: start;
  }

  .about-image {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .about-text {
    grid-column: 2;
    grid-row: 1;
  }

  .skills-section {
    grid-column: 1 / span 2;
    grid-row: 2;
    margin-top: var(--space-6);
  }

  .interests-section {
    grid-column: 1 / span 2;
    grid-row: 3;
    margin-top: var(--space-8);
  }
}

/* Large desktop: Optimize spacing */
@media (min-width: 1200px) {
  .about-content {
    gap: var(--space-16);
  }

  .skills-section {
    margin-top: var(--space-8);
  }

  .interests-section {
    margin-top: var(--space-12);
  }
}

/* Small mobile specific styles for about section */
@media (max-width: 480px) {
  .about-content {
    gap: var(--space-6);
  }

  .about-image,
  .about-text,
  .skills-section,
  .interests-section {
    max-width: 100%;
    padding: 0 var(--space-2);
  }

  .story-title {
    font-size: 1.5rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .interests-grid {
    gap: var(--space-3);
  }
}

/* ===== NAVIGATION RESPONSIVE STYLES ===== */

/* Mobile and Tablet Navigation - Updated for better mobile support */
@media (max-width: 1024px) {
  .hamburger {
    display: flex !important;
    z-index: 1001;
    position: relative;
    cursor: pointer;
  }

  .nav-menu {
    display: flex;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
    transition: left var(--transition-normal);
    z-index: 1000;
    backdrop-filter: blur(20px);
    padding: var(--space-8);
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu .nav-link {
    font-size: 1.2rem;
    padding: var(--space-4) var(--space-6);
    min-height: 48px;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
    position: relative;
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-normal);
  }

  .nav-menu .nav-link:hover,
  .nav-menu .nav-link:active {
    background: var(--bg-secondary);
    color: var(--primary-color);
    transform: scale(1.05);
  }

  [data-theme="dark"] .nav-menu {
    background: var(--bg-dark);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu.active {
    box-shadow: var(--shadow-xl);
  }

  /* Prevent scrolling when mobile menu is open */
  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }

  /* Ensure hamburger stays visible above menu */
  .nav-container {
    position: relative;
    z-index: 1001;
  }

  /* Add menu backdrop for better UX */
  .nav-menu::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: -1;
  }

  [data-theme="dark"] .nav-menu::before {
    background: rgba(0, 0, 0, 0.7);
  }

  .nav-menu.active .nav-link {
    animation: slideInFromRight 0.3s ease-out forwards;
  }

  .nav-menu.active .nav-link:nth-child(1) {
    animation-delay: 0.1s;
  }
  .nav-menu.active .nav-link:nth-child(2) {
    animation-delay: 0.15s;
  }
  .nav-menu.active .nav-link:nth-child(3) {
    animation-delay: 0.2s;
  }
  .nav-menu.active .nav-link:nth-child(4) {
    animation-delay: 0.25s;
  }
  .nav-menu.active .nav-link:nth-child(5) {
    animation-delay: 0.3s;
  }
  .nav-menu.active .nav-link:nth-child(6) {
    animation-delay: 0.35s;
  }

  .nav-menu.active .nav-controls {
    animation: fadeInUp 0.3s ease-out forwards;
    animation-delay: 0.4s;
    opacity: 0;
  }
}

/* Additional mobile navigation fixes for smaller devices */
@media (max-width: 768px) {
  .hamburger {
    display: flex !important;
    z-index: 1002;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .nav-menu {
    z-index: 1001;
  }

  .nav-menu.active {
    left: 0 !important;
  }

  /* Ensure nav links are properly clickable */
  .nav-menu .nav-link {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    margin: var(--space-2) 0;
    box-shadow: var(--shadow-sm);
  }

  .nav-menu .nav-link:active {
    background: var(--primary-color);
    color: var(--text-white);
  }
}

/* Ensure hamburger is visible on all mobile devices */
@media (max-width: 480px) {
  .nav-container {
    padding: var(--space-3) var(--space-4);
  }

  .hamburger {
    display: flex !important;
    z-index: 1002;
  }

  .nav-menu {
    padding: var(--space-6);
    gap: var(--space-6);
  }

  .nav-menu .nav-link {
    font-size: 1.1rem;
    padding: var(--space-3) var(--space-5);
    min-height: 48px;
    min-width: 180px;
  }
}

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== GAMING SECTION RESPONSIVE STYLES ===== */

/* Mobile and Tablet: Stack gaming setup vertically */
@media (max-width: 768px) {
  .gaming-setup {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: var(--space-6);
  }

  .setup-image {
    order: 1;
  }

  .setup-info {
    order: 2;
    text-align: center;
  }

  .setup-info h3 {
    font-size: 1.5rem;
  }

  .setup-info p {
    font-size: 1rem;
  }

  .gamer-tag {
    justify-content: center;
  }
}

/* Small mobile: Further adjustments */
@media (max-width: 480px) {
  .gaming-setup {
    padding: var(--space-4);
    gap: var(--space-4);
  }

  .setup-image img {
    height: 200px;
  }

  .setup-info h3 {
    font-size: 1.3rem;
  }

  .setup-info p {
    font-size: 0.9rem;
  }

  .gamer-tag {
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-4);
  }
}
