/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

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

:root {
  /* Colors */
  --primary-color: #667eea;
  --primary-dark: #556cd6;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --background-primary: #f8f9fa;
  --background-secondary: #ffffff;
  --text-primary: #333;
  --text-secondary: #666;
  --text-muted: #555;
  --border-light: rgba(229, 231, 235, 0.8);
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.15);
  --shadow-button: 0 4px 15px rgba(102, 126, 234, 0.3);
  
  /* Typography */
  --font-primary: 'Poppins', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-secondary: 'Inter', system-ui, -apple-system, 'Segoe UI', 'Roboto', sans-serif;
  --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-pill: 2rem;
}

body {
  font-family: var(--font-secondary);
  background: linear-gradient(180deg, #f5f7fa 0%, #e8eef5 50%, #f5f7fa 100%);
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.6;
}

/* Typography System */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p {
  margin-bottom: var(--spacing-sm);
  line-height: 1.7;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-lg);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

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

.btn-secondary:hover {
  background: var(--background-primary);
  color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: white;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

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

.btn-ghost > * {
  position: relative;
  z-index: 2;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.btn-outline {
  background: var(--background-secondary);
  color: var(--primary-color);
  border: 1px solid #e9ecef;
}

.btn-outline:hover {
  background: #e9ecef;
  color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

/* Header */
header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: var(--spacing-sm);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  min-height: 64px;
}

body.gaming-theme header {
  background: #121212 !important;
  border-bottom: 1px solid #222 !important;
}

body.gaming-theme header .nav-links a,
body.gaming-theme header .header-name a,
body.gaming-theme header .social-icons a {
  color: #f1f1f1 !important;
}

body.gaming-theme header .nav-links a:hover,
body.gaming-theme header .header-name a:hover,
body.gaming-theme header .social-icons a:hover {
  color: #ff5500 !important;
}

#nav-placeholder {
  min-height: 32px; /* Maintain space for nav content while loading */
}

#nav-placeholder nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  height: 100%;
  min-height: 32px;
  padding: 0 var(--spacing-lg);
}

.nav-links {
  display: flex;
  gap: var(--spacing-sm);
  font-family: var(--font-secondary);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  text-transform: uppercase;
}

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

.header-name {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  letter-spacing: -0.01em;
}

.header-name.visible {
  opacity: 1;
  pointer-events: auto;
}

.header-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.header-name a:hover {
  color: var(--primary-color);
}

.social-icons {
  display: flex;
  align-items: center;
}

.social-icons a {
  display: inline-flex;
  width: 24px;
  height: 24px;
  margin-left: var(--spacing-sm);
  color: var(--text-primary);
  transition: color 0.3s;
}

.social-icons a:hover {
  color: var(--primary-color);
}

.social-icons a svg {
  width: 100%;
  height: 100%;
}

/* Hero Section */
.hero {
  max-width: 100%;
  margin: 0;
  text-align: center;
  position: relative;
  background-color: var(--primary-color);
  background-image: url('../images/hero-background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px var(--spacing-lg) var(--spacing-md);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: var(--spacing-md);
}

.hero h1 {
  font-size: 2.5rem;
  margin: 0 0 5px 0;
  color: white;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero p {
  margin-bottom: var(--spacing-sm);
  font-size: 1.125rem;
  opacity: 0.9;
  color: white;
}

/* Typing Animation */
.typing-text {
  display: block;
  min-height: 1.5em;
  width: 100%;
  text-align: center;
}

.typed-text {
  display: inline;
}

.cursor {
  display: inline-block;
  background-color: white;
  margin-left: 1px;
  width: 2px;
  height: 1.2em;
  vertical-align: text-top;
  animation: blink 1s infinite;
}

.cursor::before {
  content: '';
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* About Section */
.about {
  width: 100%;
  margin: 0;
  padding: var(--spacing-2xl) 0;
  background: var(--background-primary);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  text-align: center;
}

.about-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 5rem;
  align-items: start;
  text-align: left;
  min-height: 0;
}

.about-text h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
}

.about-image {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--spacing-lg);
  width: 100%;
  justify-content: flex-start;
  margin-top: var(--spacing-lg);
}

.about-image img {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: cover;
  object-position: center bottom;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.about-image .btn {
  align-self: center;
}

/* Travel Section */
.travel {
  width: 100%;
  margin: 0;
  padding: var(--spacing-2xl) 0;
  background: var(--background-secondary);
}

.travel-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
  text-align: center;
}

.travel-container h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-xs);
  color: var(--text-primary);
}

.travel-subtitle {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: var(--spacing-xl);
  color: var(--text-secondary);
}

.travel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.travel-grid-secondary {
  margin-top: var(--spacing-2xl);
}

.travel-destination {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-lg) var(--spacing-sm);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15), 0 6px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.travel-destination:hover {
  box-shadow: 0 15px 35px rgba(0,0,0,0.25), 0 20px 60px rgba(0,0,0,0.2);
}

.polaroid-date {
  position: absolute;
  bottom: var(--spacing-xs);
  right: var(--spacing-xs);
  background: rgba(255, 165, 0, 0.9);
  color: var(--text-primary);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 2;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transform: rotate(-2deg);
}

/* Randomized polaroid tilts */
.travel-grid:nth-of-type(1) .travel-destination:nth-child(1) { transform: rotate(-1.2deg); }
.travel-grid:nth-of-type(1) .travel-destination:nth-child(2) { transform: rotate(0.8deg); }
.travel-grid:nth-of-type(1) .travel-destination:nth-child(3) { transform: rotate(-0.3deg); }
.travel-grid:nth-of-type(2) .travel-destination:nth-child(1) { transform: rotate(1.5deg); }
.travel-grid:nth-of-type(2) .travel-destination:nth-child(2) { transform: rotate(-0.7deg); }
.travel-grid:nth-of-type(2) .travel-destination:nth-child(3) { transform: rotate(1.1deg); }
.travel-grid:nth-of-type(3) .travel-destination:nth-child(1) { transform: rotate(-0.9deg); }
.travel-grid:nth-of-type(3) .travel-destination:nth-child(2) { transform: rotate(1.3deg); }
.travel-grid:nth-of-type(3) .travel-destination:nth-child(3) { transform: rotate(-1.6deg); }

.travel-destination .tilt-inner {
  width: 100%;
  height: 100%;
}

.travel-destination .tilt-inner > * {
  position: relative;
  z-index: 1;
}

.travel-destination img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.125rem;
  margin-bottom: var(--spacing-sm);
  border: 2px solid #f8f9fa;
}

.travel-destination h4 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
  color: var(--text-primary);
  font-weight: 600;
  text-align: center;
  font-family: var(--font-primary);
}

.travel-destination p {
  opacity: 0.7;
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.5;
  font-style: italic;
}

/* Personal Links Section */
.personal-links {
  max-width: 600px;
  margin: var(--spacing-xl) auto;
  padding: 0 var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
}

.personal-container {
  text-align: center;
}

.personal-container h2 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-xs);
  color: var(--text-primary);
}

.personal-container p {
  font-size: 0.95rem;
  opacity: 0.7;
  margin-bottom: var(--spacing-md);
}

.personal-links-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
  max-width: 100%;
}

.personal-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  margin: 0;
  color: var(--text-primary);
  transition: color 0.3s;
  text-decoration: none;
  flex-shrink: 0;
}

.personal-icon svg {
  width: 100%;
  height: 100%;
}

.personal-icon:hover {
  color: var(--primary-color);
}

/* Projects Page Styles */
.projects-hero {
  background: var(--gradient-primary);
  background-image: url('../images/hero-background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  text-align: center;
  padding: 8rem var(--spacing-lg) var(--spacing-2xl);
  margin-top: 0;
  position: relative;
}

.projects-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.projects-hero-content {
  position: relative;
  z-index: 2;
}

.projects-hero-content h1 {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

.projects-hero-content p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.projects-main {
  padding: var(--spacing-2xl) 0;
  background: var(--background-primary);
}

.projects-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Featured Project */
.featured-project {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: var(--spacing-2xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
}

.project-image {
  height: 100%;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-details {
  padding: var(--spacing-xl);
}

.project-tag {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.project-details h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.project-details p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: var(--spacing-lg);
}

.tech-tag {
  background: #e8eef5;
  color: var(--primary-color);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: var(--spacing-sm);
}

/* Projects Grid */
.projects-grid {
  margin-top: var(--spacing-2xl);
}

.projects-grid h3 {
  font-size: 2rem;
  margin-bottom: var(--spacing-lg);
  color: var(--text-primary);
  text-align: center;
  width: 100%;
  flex-basis: 100%;
}

.projects-grid {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  flex-wrap: wrap;
}

.project-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 400px;
  min-width: 350px;
  display: flex;
  flex-direction: column;
  height: auto;
}

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

.project-card-image {
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.project-card-content {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 300px;
}

.project-card-content h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.project-card-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
}

.project-card-links {
  margin-top: calc(-1 * var(--spacing-xs));
}

.project-card-links a {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.project-card-links a:hover {
  color: #764ba2;
}



/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
  width: 24px;
  height: 18px;
}

.mobile-menu-toggle span {
  width: 18px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  transform-origin: center;
  display: block;
}

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

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

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

.mobile-menu {
  position: fixed;
  top:64px;
  left: 0;
  right: 0;
  width: 100vw;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: none;
  border-bottom: 1px solid var(--border-light);
  padding: var(--spacing-sm) 0;
  text-align: center;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

.mobile-menu a {
  display: block;
  padding: var(--spacing-sm) var(--spacing-lg);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: var(--font-secondary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(229, 231, 235, 0.2);
  margin: 0 var(--spacing-md);
  border-radius: var(--radius-sm);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.mobile-menu.active a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.active a:nth-child(1) {
  transition-delay: 0.1s;
}

.mobile-menu.active a:nth-child(2) {
  transition-delay: 0.2s;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  color: var(--primary-color);
  background: rgba(102, 126, 234, 0.08);
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Typography adjustments */
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.4rem; }
  
  /* Mobile navigation */
  .nav-links {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  #nav-placeholder nav {
    padding: 0 var(--spacing-sm);
  }
  
  .header-name {
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    pointer-events: auto;
  }
  
  .social-icons a {
    margin-left: var(--spacing-xs);
  }
  
  /* Hero section mobile */
  .hero {
    min-height: 50vh;
    padding: 7rem var(--spacing-sm) var(--spacing-xl);
  }
  
  .hero h1 {
    font-size: 1.8rem;
    margin: 0 0 0.8rem 0;
  }
  
  .hero p {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
  }
  
  .hero img {
    width: 100px;
    height: 100px;
    margin-bottom: var(--spacing-md);
  }
  
  .btn {
    padding: 0.8rem var(--spacing-md);
    font-size: 0.9rem;
  }
  
  /* About section mobile */
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    text-align: center;
  }
  
  .about-text {
    text-align: center;
  }
  
  .about-text h3 {
    font-size: 1.8rem;
  }
  
  .about-image {
    align-items: center;
    margin-top: 0;
  }
  
  /* Travel section mobile */
  .travel-container h2 {
    font-size: 2rem;
  }
  
  .travel-grid-secondary {
    margin-top: var(--spacing-xl);
  }
  
  /* Personal links mobile */
  .personal-links {
    margin: var(--spacing-lg) auto;
    margin-bottom: var(--spacing-lg);
  }
  
  .personal-container h2 {
    font-size: 1.5rem;
  }
  
  .personal-container p {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
  }
  
  .personal-links-row {
    gap: var(--spacing-md);
    justify-content: space-around;
    max-width: 320px;
    margin: 0 auto;
  }
  
  .personal-icon {
    width: 24px;
    height: 24px;
  }
  
  /* Projects mobile */
  .projects-hero {
    padding: 6rem var(--spacing-sm) var(--spacing-xl);
  }
  
  .projects-hero-content h1 {
    font-size: 2.5rem;
  }
  
  .featured-project {
    grid-template-columns: 1fr;
    margin-bottom: var(--spacing-xl);
  }
  
  .project-details {
    padding: var(--spacing-lg);
  }
  
  .project-details h2 {
    font-size: 1.875rem;
  }
  
  .projects-grid {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
  }
  
  .project-card {
    min-width: unset;
    max-width: unset;
  }
  
  .project-links {
    flex-direction: column;
  }
  
  /* Mobile Menu */
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transition: opacity 1.2s ease-out;
}

.fade-in.visible {
  opacity: 1;
}

.slide-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-left {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}
/* Secret Gaming Link */

.secret-gaming-link {
  position: relative;
  overflow: hidden;
}

.secret-gaming-link-text {
  opacity: 0;
  display: inline-block;
  background: linear-gradient(45deg, #FF5500, #F7931E, #FFD23F);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1), text-shadow 0.3s;
}

.secret-gaming-link.show-gaming-text .secret-gaming-link-text,
.secret-gaming-link:hover .secret-gaming-link-text {
  opacity: 1 !important;
}

.secret-gaming-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

.secret-gaming-link-text:hover {
  animation: text-shimmer 1.5s ease-in-out infinite;
  background: linear-gradient(45deg, #FF5500, #F7931E, #FFD23F);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.secret-gaming-link-text:hover::before {
  left: 100%;
}

@keyframes text-shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Gaming Theme Styles */
.gaming-theme {
  background: #121212;
}

.gaming-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
              url('../images/cache.jpeg');
  background-size: cover;
  background-position: center;
}

.gaming-typing .typed-text {
  color: #f1f1f1;
}

.gaming-stats-preview {
  display: flex;
  gap: var(--spacing-xl);
  justify-content: center;
  margin-top: var(--spacing-lg);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  color: #f1f1f1;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #FF5500;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gaming-about {
  background: #121212;
  color: #f1f1f1;
}

.gaming-about .about-text h3 {
  background: linear-gradient(135deg, #FF5500 0%, #FFD23F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gaming-about .about-text p,
.gaming-clip p {
  color: #a7a7a7;
}

.gaming-clips {
  background: #060606;
  color: #f1f1f1;
}

.gaming-clips h2,
.gaming-links h2 {
  color: #ff5500;
}

.gaming-clips .travel-subtitle {
  color: #f1f1f1;
}

.gaming-clip {
  background: #121212;
  transition: all 0.3s ease;
}

.gaming-clip:hover {
  border-color: #ff5500;
  box-shadow: 0 15px 35px rgba(255, 107, 53, 0.3), 0 20px 60px rgba(255, 107, 53, 0.2);
}

/* Gaming theme for mobile menu */
body.gaming-theme .mobile-menu {
  background: #121212 !important;
  border-bottom: 1px solid #222 !important;
}
body.gaming-theme .mobile-menu a {
  color: #f1f1f1 !important;
}
body.gaming-theme .mobile-menu a:hover {
  color: #ff5500 !important;
  background: rgba(255, 85, 0, 0.08) !important;
}

/* 16:9 aspect ratio for video container */
.clip-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #34495E 0%, #2C3E50 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 0.6rem;
  margin-bottom: var(--spacing-sm);
  overflow: hidden;
}

.clip-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-button {
  font-size: 3rem;
  color: #ff5500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clip-info {
  position: absolute;
  top: var(--spacing-xs);
  left: var(--spacing-xs);
  right: var(--spacing-xs);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;  
  color: #f1f1f1;
  font-weight: 600;
}

.map-name {
  background: #ff5500;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.clip-tag {
  background: #202c34;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.gaming-clip h4 {
  color: #f1f1f1;
}

.gaming-links p {
  color: #f1f1f1;
}

.gaming-links .personal-icon:hover {
  color: #ff5500;
}

/* Staggered animations for groups */
.stagger-delay-1 {
  transition-delay: 0.2s;
}

.stagger-delay-2 {
  transition-delay: 0.4s;
}

.stagger-delay-3 {
  transition-delay: 0.6s;
}

.stagger-delay-4 {
  transition-delay: 0.8s;
}

.stagger-delay-5 {
  transition-delay: 1.0s;
}

.stagger-delay-6 {
  transition-delay: 1.2s;
}