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

/* Touch-friendly improvements */
* {
  -webkit-tap-highlight-color: rgba(0, 255, 231, 0.3);
}

/* Ensure all interactive elements are touch-friendly */
a, button, .fab-main, .fab-item, .project-link, .download-btn, .btn-primary, .btn-game, .btn-secondary {
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Smooth scrolling for better mobile experience */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Default cursor behavior */
html, body {
  cursor: auto;
}

* {
  cursor: auto;
}

/* Ensure interactive elements show pointer cursor */
a, button, .fab-main, .fab-item, .project-link, .download-btn, .btn-primary {
  cursor: pointer;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #0a0a0a;
  color: #eaeaea;
  overflow-x: hidden;
  line-height: 1.6;
  transition: all 0.3s ease;
  padding-top: 80px; /* Account for fixed header */
}

/* Light Theme Styles */
body.light-theme {
  background: #f8f9fa;
  color: #2c3e50;
}

body.light-theme .background-animation {
  background: linear-gradient(45deg, #e3f2fd, #f3e5f5, #e8f5e8);
  background-size: 400% 400%;
}

body.light-theme nav {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 30px rgba(52, 152, 219, 0.3);
}

body.light-theme nav a {
  color: #2c3e50;
}

body.light-theme nav a:hover {
  color: #3498db;
  text-shadow: 0 0 10px #3498db;
}

body.light-theme .hero-content h1 {
  color: #3498db;
}

body.light-theme .hero-content p {
  color: #34495e;
}

body.light-theme .btn-primary {
  background: linear-gradient(45deg, #3498db, #9b59b6);
  color: #fff;
  box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
}

body.light-theme .btn-primary:hover {
  background: linear-gradient(45deg, #9b59b6, #3498db);
  box-shadow: 0 0 30px rgba(155, 89, 182, 0.5);
}

body.light-theme section h2 {
  color: #3498db;
}

body.light-theme section h2::after {
  background: linear-gradient(45deg, #3498db, #9b59b6);
}

body.light-theme #about p {
  color: #34495e;
}

body.light-theme .project-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(52, 152, 219, 0.2);
  color: #2c3e50;
}

body.light-theme .project-card:hover {
  box-shadow: 0 20px 40px rgba(52, 152, 219, 0.2);
  border-color: rgba(155, 89, 182, 0.5);
}

body.light-theme .project-card h3 {
  color: #2c3e50;
}

body.light-theme .project-card p {
  color: #34495e;
}

body.light-theme .tech-tag {
  background: rgba(52, 152, 219, 0.2);
  color: #3498db;
}

body.light-theme .project-link {
  border: 1px solid #3498db;
  color: #3498db;
}

body.light-theme .project-link:hover {
  background: #3498db;
  color: #fff;
  box-shadow: 0 0 15px rgba(52, 152, 219, 0.5);
}

body.light-theme .timeline-item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(52, 152, 219, 0.1);
  color: #2c3e50;
}

body.light-theme .timeline-item:hover {
  border-color: rgba(155, 89, 182, 0.3);
}

body.light-theme .timeline-item h3 {
  color: #2c3e50;
}

body.light-theme .timeline-item .company {
  color: #3498db;
}

body.light-theme .timeline-item .duration {
  color: #9b59b6;
}

body.light-theme .timeline-item .location {
  color: #34495e;
}

body.light-theme .skill-category {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(52, 152, 219, 0.1);
}

body.light-theme .skill-category h3 {
  color: #3498db;
}

body.light-theme .skill-item {
  background: rgba(52, 152, 219, 0.1);
  color: #2c3e50;
  border: 1px solid rgba(52, 152, 219, 0.3);
}

body.light-theme .skill-item:hover {
  background: rgba(155, 89, 182, 0.2);
  border-color: #9b59b6;
}

body.light-theme .contact-item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(52, 152, 219, 0.2);
}

body.light-theme .contact-item:hover {
  box-shadow: 0 10px 30px rgba(52, 152, 219, 0.2);
  border-color: #9b59b6;
}

body.light-theme .contact-item h3 {
  color: #3498db;
}

body.light-theme .contact-item a {
  color: #34495e;
}

body.light-theme .contact-item a:hover {
  color: #9b59b6;
}

body.light-theme .glitch {
  text-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
}

body.light-theme .glitch::before {
  color: #3498db;
  text-shadow: 2px 0 0 rgba(155, 89, 182, 0.3);
}

body.light-theme .glitch::after {
  color: #9b59b6;
  text-shadow: -2px 0 0 rgba(52, 152, 219, 0.3);
}

body.light-theme .section-title {
  color: #3498db;
}

body.light-theme .section-title::after {
  background: linear-gradient(45deg, #3498db, #9b59b6);
}

body.light-theme .video-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(52, 152, 219, 0.2);
}

body.light-theme .video-card:hover {
  box-shadow: 0 20px 40px rgba(52, 152, 219, 0.2);
  border-color: rgba(155, 89, 182, 0.5);
}

body.light-theme .video-info h3 {
  color: #2c3e50;
}

body.light-theme .video-info p {
  color: #34495e;
}

body.light-theme .video-info .project-link {
  border: 1px solid #3498db;
  color: #3498db;
}

body.light-theme .video-info .project-link:hover {
  background: #3498db;
  color: #fff;
  box-shadow: 0 0 15px rgba(52, 152, 219, 0.5);
}

body.light-theme .video-placeholder {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(155, 89, 182, 0.1));
  border: 2px dashed rgba(52, 152, 219, 0.3);
}

body.light-theme .placeholder-content p {
  color: #3498db;
  text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

body.light-theme .cv-section h1 {
  color: #3498db;
}

body.light-theme .download-btn {
  background: linear-gradient(45deg, #3498db, #9b59b6);
  color: #fff;
  box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
}

body.light-theme .download-btn:hover {
  background: linear-gradient(45deg, #9b59b6, #3498db);
  box-shadow: 0 0 30px rgba(155, 89, 182, 0.5);
}

body.light-theme .cv-image-container {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(52, 152, 219, 0.2);
}

body.light-theme .cv-image-container:hover {
  box-shadow: 0 20px 40px rgba(52, 152, 219, 0.2);
  border-color: rgba(155, 89, 182, 0.5);
}

body.light-theme .sound-visualizer {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #3498db;
  box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
}

body.light-theme .sound-visualizer:hover {
  box-shadow: 0 0 30px rgba(155, 89, 182, 0.5);
}

body.light-theme .sound-bar {
  background: linear-gradient(to top, #3498db, #9b59b6);
}

body.light-theme .fab-main {
  background: linear-gradient(45deg, #3498db, #9b59b6);
  box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
}

body.light-theme .fab-main:hover {
  box-shadow: 0 0 30px rgba(155, 89, 182, 0.8);
}

body.light-theme .fab-item {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #3498db;
}

body.light-theme .fab-item:hover {
  border-color: #9b59b6;
  box-shadow: 0 0 15px rgba(155, 89, 182, 0.5);
}

body.light-theme .hud-element {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #3498db;
  color: #3498db;
}

body.light-theme .tooltip {
  background: rgba(255, 255, 255, 0.95);
  color: #3498db;
  border: 1px solid #3498db;
  box-shadow: 0 0 15px rgba(52, 152, 219, 0.3);
}

body.light-theme .tooltip::after {
  border-top-color: #3498db;
}

body.light-theme .particle {
  background: #3498db;
}



/* Interactive Sound Visualizer */
.sound-visualizer {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 200px;
  height: 60px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 30px;
  backdrop-filter: blur(10px);
  border: 1px solid #00ffe7;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px;
  box-shadow: 0 0 20px rgba(0, 255, 231, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
}

.sound-visualizer:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
}

.sound-bar {
  width: 4px;
  background: linear-gradient(to top, #00ffe7, #ff00ff);
  border-radius: 2px;
  animation: soundWave 1s ease-in-out infinite;
}

.sound-bar:nth-child(odd) {
  animation-delay: 0.1s;
}

.sound-bar:nth-child(even) {
  animation-delay: 0.2s;
}

@keyframes soundWave {
  0%, 100% { height: 10px; opacity: 0.5; }
  50% { height: 40px; opacity: 1; }
}

/* Floating Action Button with Mega Menu */
.fab-container {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1000;
}

.fab-main {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #00ffe7, #ff00ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 0 20px rgba(0, 255, 231, 0.5);
  position: relative;
}

.fab-main:hover {
  transform: scale(1.1) rotate(180deg);
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.8);
}

.fab-main::before {
  content: '🎮';
  font-size: 24px;
  transition: all 0.3s ease;
}

.fab-menu {
  position: absolute;
  bottom: 80px;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
}

.fab-container.active .fab-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.fab-item {
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid #00ffe7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.fab-item:hover {
  transform: scale(1.2);
  border-color: #ff00ff;
  box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
}

/* Easter Egg - Secret Konami Code */
.konami-activated {
  animation: konamiGlow 2s ease-in-out;
}

@keyframes konamiGlow {
  0%, 100% { 
    filter: hue-rotate(0deg) saturate(1) brightness(1);
  }
  25% {
    filter: hue-rotate(90deg) saturate(2) brightness(1.5);
  }
  50% {
    filter: hue-rotate(180deg) saturate(3) brightness(2);
  }
  75% {
    filter: hue-rotate(270deg) saturate(2) brightness(1.5);
  }
}

/* Interactive Tooltip System */
.tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.95);
  color: #00ffe7;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-family: 'Orbitron', sans-serif;
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  border: 1px solid #00ffe7;
  box-shadow: 0 0 15px rgba(0, 255, 231, 0.3);
}

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

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #00ffe7;
}

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

@keyframes starTwinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* PREMIUM Text Reveal Animation */
.text-reveal {
  position: relative;
  overflow: hidden;
}

.text-reveal::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #00ffe7, transparent);
  animation: textScan 2s ease-in-out infinite;
}

@keyframes textScan {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

/* Interactive Particle System on Hover */
.interactive-element {
  position: relative;
  overflow: hidden;
}

.particle-burst {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #ff00ff;
  border-radius: 50%;
  pointer-events: none;
  animation: particleBurst 1s ease-out forwards;
  z-index: 1000;
}

@keyframes particleBurst {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0) translate(var(--dx), var(--dy));
  }
}

/* Gaming HUD Elements */
.hud-element {
  position: fixed;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #00ffe7;
  border-radius: 8px;
  padding: 10px;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  color: #00ffe7;
  backdrop-filter: blur(10px);
  z-index: 999;
}

.hud-fps {
  top: 20px;
  left: 20px;
}

.hud-coords {
  top: 20px;
  right: 20px;
}

.hud-time {
  top: 60px;
  right: 20px;
}

/* Magnetic Field Effect */
.magnetic-field {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 2px solid rgba(0, 255, 231, 0.3);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s ease;
}

.magnetic-field.active {
  opacity: 1;
  animation: magneticPulse 1s ease-in-out infinite;
}

@keyframes magneticPulse {
  0%, 100% {
    transform: scale(1);
    border-color: rgba(0, 255, 231, 0.3);
  }
  50% {
    transform: scale(1.2);
    border-color: rgba(255, 0, 255, 0.6);
  }
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 30px rgba(0, 255, 231, 0.3);
  min-height: 60px;
}

nav a {
  color: #eaeaea;
  text-decoration: none;
  font-weight: 500;
  font-family: 'Orbitron', sans-serif;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(45deg, #00ffe7, #ff00ff);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav a:hover {
  color: #00ffe7;
  text-shadow: 0 0 10px #00ffe7;
}

nav a:hover::before {
  width: 100%;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero-content h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: #00ffe7;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  font-weight: 700;
  animation: fadeInUp 1s ease forwards;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: #ccc;
  margin-bottom: 2rem;
  animation: fadeInUp 1.2s ease forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: linear-gradient(45deg, #00ffe7, #ff00ff);
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: 'Orbitron', sans-serif;
  box-shadow: 0 0 20px rgba(0, 255, 231, 0.3);
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}

.btn-primary:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
  background: linear-gradient(45deg, #ff00ff, #00ffe7);
}

/* Sections */
section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  color: #00ffe7;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(45deg, #00ffe7, #ff00ff);
}

/* About Section */
#about {
  text-align: center;
}

#about p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ccc;
  max-width: 800px;
  margin: 0 auto;
}

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

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 231, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 231, 0.1), transparent);
  transition: all 0.5s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 255, 231, 0.2);
  border-color: rgba(255, 0, 255, 0.5);
}

.project-card:hover::before {
  left: 100%;
}

.project-card h3 {
  font-family: 'Orbitron', sans-serif;
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.project-card p {
  color: #ccc;
  margin-bottom: 1.5rem;
}

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

.tech-tag {
  background: rgba(0, 255, 231, 0.2);
  color: #00ffe7;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

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

.project-link {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid #00ffe7;
  color: #00ffe7;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  cursor: pointer;
}

.project-link:hover {
  background: #00ffe7;
  color: #000;
  box-shadow: 0 0 15px rgba(0, 255, 231, 0.5);
}

/* Experience & Education Cards */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #00ffe7, #ff00ff);
}

.timeline-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 231, 0.1);
  transition: all 0.3s ease;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 2rem;
  width: 12px;
  height: 12px;
  background: #00ffe7;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ffe7;
}

.timeline-item:hover {
  transform: translateX(10px);
  border-color: rgba(255, 0, 255, 0.3);
}

.timeline-item h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.timeline-item .company {
  color: #00ffe7;
  font-weight: 600;
}

.timeline-item .duration {
  color: #ff00ff;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.timeline-item .location {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Companies Section */
.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.company-logo {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 231, 0.2);
  transition: all 0.3s ease;
  overflow: hidden;
  text-align: center;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.company-logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 231, 0.1), transparent);
  transition: all 0.5s ease;
}

.company-logo:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 255, 231, 0.2);
  border-color: rgba(255, 0, 255, 0.5);
}

.company-logo:hover::before {
  left: 100%;
}

.company-logo img {
  max-width: 120px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0.8);
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.company-logo:hover img {
  filter: brightness(1.2);
  transform: scale(1.1);
}

.company-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  padding: 1rem;
  transform: translateY(100%);
  transition: all 0.3s ease;
  opacity: 0;
}

.company-logo:hover .company-overlay {
  transform: translateY(0);
  opacity: 1;
}

.company-overlay h4 {
  color: #00ffe7;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.company-overlay p {
  color: #ccc;
  font-size: 0.8rem;
  margin: 0;
}

/* Companies Rotator (Carousel) */
.companies-rotator {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.companies-track {
  display: flex;
  gap: 3rem;
  align-items: center;
  animation: companiesScroll 25s linear infinite;
  will-change: transform;
}

.company-item {
  flex: 0 0 auto;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 231, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.company-item img {
  max-height: 48px;
  max-width: 160px;
  object-fit: contain;
  filter: brightness(0.85);
}

.company-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 255, 231, 0.2);
  border-color: rgba(255, 0, 255, 0.5);
}

@keyframes companiesScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Light theme support for rotator */
body.light-theme .company-item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(52, 152, 219, 0.2);
}
body.light-theme .company-item img { filter: brightness(0.75); }
body.light-theme .company-item:hover { border-color: rgba(155, 89, 182, 0.5); }

/* Light theme styles for companies section */
body.light-theme .company-logo {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(52, 152, 219, 0.2);
}

body.light-theme .company-logo:hover {
  box-shadow: 0 20px 40px rgba(52, 152, 219, 0.2);
  border-color: rgba(155, 89, 182, 0.5);
}

body.light-theme .company-logo img {
  filter: brightness(0.7);
}

body.light-theme .company-logo:hover img {
  filter: brightness(1);
}

body.light-theme .company-overlay {
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.95));
}

body.light-theme .company-overlay h4 {
  color: #3498db;
}

body.light-theme .company-overlay p {
  color: #34495e;
}

.skill-category {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 231, 0.1);
}

.skill-category h3 {
  font-family: 'Orbitron', sans-serif;
  color: #00ffe7;
  margin-bottom: 1rem;
  text-align: center;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.skill-item {
  background: rgba(0, 255, 231, 0.1);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid rgba(0, 255, 231, 0.3);
  transition: all 0.3s ease;
}

.skill-item:hover {
  background: rgba(255, 0, 255, 0.2);
  border-color: #ff00ff;
  transform: scale(1.05);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 255, 231, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 80px;
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 255, 231, 0.2);
  border-color: #ff00ff;
}

.contact-item h3 {
  font-family: 'Orbitron', sans-serif;
  color: #00ffe7;
  margin-bottom: 1rem;
}

.contact-item a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
  max-width: 100%;
  word-break: break-all;
  overflow-wrap: anywhere;
  white-space: normal;
}

.contact-item a:hover {
  color: #ff00ff;
}

/* Enhanced Hero Title */
.glitch {
  position: relative;
  display: inline-block;
  text-shadow: 0 0 20px rgba(0, 255, 231, 0.5);
  animation: titleGlow 3s ease-in-out infinite alternate;
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 700;
  letter-spacing: 2px;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

.glitch::before {
  color: #00ffe7;
  animation: subtleGlitch1 4s ease-in-out infinite;
  text-shadow: 2px 0 0 rgba(255, 0, 255, 0.3);
}

.glitch::after {
  color: #ff00ff;
  animation: subtleGlitch2 4s ease-in-out infinite;
  text-shadow: -2px 0 0 rgba(0, 255, 231, 0.3);
}

@keyframes titleGlow {
  0% {
    text-shadow: 0 0 20px rgba(0, 255, 231, 0.5), 0 0 30px rgba(0, 255, 231, 0.3);
  }
  50% {
    text-shadow: 0 0 30px rgba(0, 255, 231, 0.8), 0 0 40px rgba(0, 255, 231, 0.5), 0 0 50px rgba(255, 0, 255, 0.4);
  }
  100% {
    text-shadow: 0 0 40px rgba(0, 255, 231, 0.9), 0 0 50px rgba(0, 255, 231, 0.6), 0 0 60px rgba(255, 0, 255, 0.5);
  }
}

@keyframes subtleGlitch1 {
  0%, 100% {
    transform: translateX(0);
    opacity: 0.3;
  }
  25% {
    transform: translateX(1px);
    opacity: 0.4;
  }
  50% {
    transform: translateX(-1px);
    opacity: 0.3;
  }
  75% {
    transform: translateX(0.5px);
    opacity: 0.4;
  }
}

@keyframes subtleGlitch2 {
  0%, 100% {
    transform: translateX(0);
    opacity: 0.3;
  }
  25% {
    transform: translateX(-1px);
    opacity: 0.4;
  }
  50% {
    transform: translateX(1px);
    opacity: 0.3;
  }
  75% {
    transform: translateX(-0.5px);
    opacity: 0.4;
  }
}

/* Background Animation */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #0a0a0a, #1a1a1a, #0a0a0a);
  background-size: 400% 400%;
  animation: gradientFlow 15s ease infinite;
  z-index: -2;
}
/* 
Additional background stars effect
.background-animation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #00ffe7, transparent),
    radial-gradient(2px 2px at 40px 70px, #ff00ff, transparent),
    radial-gradient(1px 1px at 90px 40px, #00ffe7, transparent),
    radial-gradient(1px 1px at 130px 80px, #ff00ff, transparent),
    radial-gradient(2px 2px at 160px 30px, #00ffe7, transparent),
    radial-gradient(1px 1px at 200px 60px, #ffff00, transparent),
    radial-gradient(2px 2px at 250px 20px, #00ffe7, transparent),
    radial-gradient(1px 1px at 300px 90px, #ff00ff, transparent),
    radial-gradient(2px 2px at 350px 50px, #ffff00, transparent),
    radial-gradient(1px 1px at 400px 80px, #00ffe7, transparent);
  background-repeat: repeat;
  background-size: 400px 200px;
  animation: starTwinkle 4s ease-in-out infinite;
  opacity: 0.4;
}

.background-animation::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(1px 1px at 50px 100px, #00ffe7, transparent),
    radial-gradient(1px 1px at 120px 150px, #ff00ff, transparent),
    radial-gradient(2px 2px at 180px 200px, #ffff00, transparent),
    radial-gradient(1px 1px at 220px 250px, #00ffe7, transparent),
    radial-gradient(2px 2px at 280px 300px, #ff00ff, transparent);
  background-repeat: repeat;
  background-size: 300px 150px;
  animation: starTwinkle 6s ease-in-out infinite reverse;
  opacity: 0.3;
} */

/* Particles Animation */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #00ffe7;
  border-radius: 50%;
  box-shadow: 0 0 6px #00ffe7, 0 0 12px #00ffe7;
  animation: particleFloat linear infinite;
}

/* Add variety to particles */
.particle:nth-child(3n) {
  background: #ff00ff;
  box-shadow: 0 0 6px #ff00ff, 0 0 12px #ff00ff;
  width: 4px;
  height: 4px;
}

.particle:nth-child(3n+1) {
  background: #00ffe7;
  box-shadow: 0 0 6px #00ffe7, 0 0 12px #00ffe7;
  width: 3px;
  height: 3px;
}

.particle:nth-child(3n+2) {
  background: #ffff00;
  box-shadow: 0 0 6px #ffff00, 0 0 12px #ffff00;
  width: 2px;
  height: 2px;
}

/* Add some larger particles for variety */
.particle:nth-child(5n) {
  width: 5px;
  height: 5px;
  box-shadow: 0 0 8px currentColor, 0 0 16px currentColor;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

/* Add variety to particle animations */
.particle:nth-child(7n) {
  animation-duration: 8s !important;
  animation-timing-function: ease-in-out !important;
}

.particle:nth-child(11n) {
  animation-duration: 12s !important;
  animation-timing-function: ease-out !important;
}

.particle:nth-child(13n) {
  animation-duration: 10s !important;
  animation-timing-function: ease-in !important;
}

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

@keyframes screenShake {
  0%, 100% { transform: translateX(0); }
  10% { transform: translateX(-2px); }
  20% { transform: translateX(2px); }
  30% { transform: translateX(-2px); }
  40% { transform: translateX(2px); }
  50% { transform: translateX(-2px); }
  60% { transform: translateX(2px); }
  70% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
  90% { transform: translateX(-2px); }
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  20%, 80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

/* CV Section Styles */
.cv-section {
  padding: 4rem 2rem;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.cv-section h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: #00ffe7;
  margin-bottom: 2rem;
  letter-spacing: 2px;
  font-weight: 700;
}

.cv-content {
  max-width: 1000px;
  width: 100%;
  padding: 1rem;
}

.download-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(45deg, #00ffe7, #ff00ff);
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: 'Orbitron', sans-serif;
  box-shadow: 0 0 20px rgba(0, 255, 231, 0.3);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.download-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
  background: linear-gradient(45deg, #ff00ff, #00ffe7);
}

.cv-image-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 231, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cv-image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 231, 0.1), transparent);
  transition: all 0.5s ease;
}

.cv-image-container:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 255, 231, 0.2);
  border-color: rgba(255, 0, 255, 0.5);
}

.cv-image-container:hover::before {
  left: 100%;
}

.cv-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Portfolio Section Styles */
.portfolio-section {
  margin-bottom: 4rem;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: #00ffe7;
  margin-bottom: 2rem;
  text-align: center;
  letter-spacing: 2px;
  font-weight: 700;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(45deg, #00ffe7, #ff00ff);
}

/* Video Grid Section Styles */
.video-grid {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.video-grid h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #00ffe7;
  margin-bottom: 3rem;
  text-align: center;
  letter-spacing: 2px;
  font-weight: 700;
}

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

.video-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 231, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.video-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 231, 0.1), transparent);
  transition: all 0.5s ease;
}

.video-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 255, 231, 0.2);
  border-color: rgba(255, 0, 255, 0.5);
}

.video-card:hover::before {
  left: 100%;
}

.video-card video {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Video Placeholder for Spatial Projects */
.video-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, rgba(0, 255, 231, 0.1), rgba(255, 0, 255, 0.1));
  border-radius: 8px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(0, 255, 231, 0.3);
  position: relative;
  overflow: hidden;
}

.video-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 231, 0.2), transparent);
  animation: placeholderScan 3s ease-in-out infinite;
}

@keyframes placeholderScan {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

.placeholder-content {
  text-align: center;
  z-index: 1;
  position: relative;
}

.placeholder-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 10px rgba(0, 255, 231, 0.5));
}

.placeholder-content p {
  color: #00ffe7;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-shadow: 0 0 10px rgba(0, 255, 231, 0.5);
}

.video-info h3 {
  font-family: 'Orbitron', sans-serif;
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.video-info p {
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.video-info .project-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.video-info .project-link {
  padding: 0.4rem 0.8rem;
  background: transparent;
  border: 1px solid #00ffe7;
  color: #00ffe7;
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.3s ease;
  font-size: 0.8rem;
  font-weight: 500;
}

.video-info .project-link:hover {
  background: #00ffe7;
  color: #000;
  box-shadow: 0 0 15px rgba(0, 255, 231, 0.5);
  transform: translateY(-2px);
}

/* Tablet and Medium Screens */
@media (max-width: 1024px) {
  body {
    padding-top: 75px;
  }
  
  nav {
    padding: 0.9rem 1.5rem;
    gap: 1.5rem;
  }
  
  nav a {
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
  }
  
  .hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
  }
  
  .section-title {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
  }
  
  .companies-rotator {
    margin: 0 1rem;
  }
  
  .companies-track {
    gap: 2rem;
  }
  
  .company-item {
    padding: 1rem 1.5rem;
  }
}

/* Mobile and Small Tablets */
@media (max-width: 768px) {
  /* Body padding adjustment for mobile */
  body {
    padding-top: 70px;
  }
  
  /* Navigation */
  nav {
    flex-wrap: wrap;
    gap: 0.3rem;
    padding: 0.8rem 1rem;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-height: 60px;
  }
  
  nav a {
    font-size: 0.8rem;
    padding: 0.4rem 0.5rem;
    margin: 0.05rem;
    min-height: 44px; /* Touch-friendly minimum size */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  /* Hero Section */
  .hero {
    padding: 1.5rem 1rem;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .hero-content h1 {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
    margin-bottom: 1rem;
    line-height: 1.2;
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }
  
  .btn-primary {
    padding: 0.9rem 1.8rem;
    font-size: 0.9rem;
    min-height: 44px; /* Touch-friendly minimum size */
  }
  
  /* Sections */
  section {
    padding: 2.5rem 1rem;
  }
  
  .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 1.5rem;
    line-height: 1.3;
  }
  
  /* Timeline */
  .timeline {
    padding-left: 0.5rem;
  }
  
  .timeline-item {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .timeline-item h3 {
    font-size: 1.1rem;
  }
  
  .timeline-item p {
    font-size: 0.9rem;
  }
  
  /* Projects Grid */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .project-card {
    padding: 1.2rem;
    margin-bottom: 0.5rem;
  }
  
  .project-card h3 {
    font-size: 1.2rem;
    line-height: 1.3;
  }
  
  .project-card p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  /* Skills Grid */
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  /* Companies Grid */
  .companies-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .companies-rotator { mask-image: none; -webkit-mask-image: none; }
  .companies-track { gap: 1.5rem; }
  .company-item { padding: 0.8rem 1.2rem; }
  .company-item img { max-height: 36px; max-width: 120px; }
  
  .company-logo {
    padding: 1rem;
    min-height: 120px;
  }
  
  .company-logo img {
    max-width: 80px;
    max-height: 60px;
  }
  
  .skill-item {
    padding: 1rem;
  }
  
  .skill-item h3 {
    font-size: 1rem;
  }
  
  /* Contact Grid */
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .contact-item {
    padding: 1rem;
    min-height: 80px;
    font-size: 0.9rem;
  }
  
  .contact-item h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .contact-item a {
    font-size: 0.85rem;
    word-break: break-all;
    overflow-wrap: anywhere;
    white-space: normal;
  }
  
  /* FAB */
  .fab-container {
    bottom: 15px;
    left: 15px;
    transform: scale(0.9);
  }
  
  .fab-main {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
    min-height: 44px; /* Touch-friendly */
    min-width: 44px;
  }
  
  .fab-item {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
    min-height: 44px; /* Touch-friendly */
    min-width: 44px;
  }
  
  /* Sound Visualizer */
  .sound-visualizer {
    bottom: 15px;
    right: 15px;
    width: 120px;
    height: 40px;
  }
  
  .sound-bar {
    width: 3px;
    margin: 0 1px;
  }
  
  /* HUD */
  .hud {
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    padding: 0.5rem;
  }
  
  .hud-item {
    margin-bottom: 0.3rem;
  }
  
  /* Tooltip */
  .tooltip {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
  
  /* CV Section */
  .cv-section {
    padding: 1.5rem 1rem;
    min-height: 100vh;
  }
  
  .cv-section h1 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
  }
  
  .cv-content {
    max-width: 100%;
    padding: 0.5rem;
  }
  
  .cv-image-container {
    padding: 1rem;
    margin: 0.5rem;
  }
  
  .cv-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
  }
  
  .download-btn {
    padding: 0.9rem 1.8rem;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    min-height: 44px; /* Touch-friendly */
  }
  
  /* Portfolio Section */
  .video-grid {
    padding: 2rem 1rem;
  }
  
  .videos-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .video-card {
    padding: 1.2rem;
    margin-bottom: 0.5rem;
  }
  
  .video-info h3 {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0.8rem;
  }
  
  .video-info p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }
  
  .project-links {
    flex-direction: row;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .project-link {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    min-height: 44px; /* Touch-friendly */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Video Placeholder */
  .video-placeholder {
    height: 150px;
  }
  
  .video-placeholder::after {
    font-size: 2rem;
  }
  
  /* Particles - Reduced for mobile performance */
  .particles {
    display: block;
    opacity: 0.4;
  }
  
  /* Background Animation - Reduced for mobile performance */
  .background-animation {
    opacity: 0.6;
  }
  
  /* Reduce animations on mobile for better performance */
  .sound-bar {
    animation-duration: 1.5s;
  }
  
  .particle {
    animation-duration: 8s;
  }
  
  /* Ensure background stars are visible on mobile */
  .background-animation::before,
  .background-animation::after {
    opacity: 0.5;
  }
  
  /* Background Animation */
  .background-animation {
    opacity: 0.3;
  }
  
  /* Prevent horizontal scrolling */
  html, body {
    overflow-x: hidden;
    width: 100%;
  }
  
  /* Improve touch scrolling */
  body {
    -webkit-overflow-scrolling: touch;
  }
  
  /* Ensure all containers are responsive */
  .container, .games-container, .cv-content, .video-grid {
    width: 100%;
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Improve text readability on mobile */
  p, .contact-item a, .timeline-item p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  /* Better spacing for mobile */
  section {
    margin-bottom: 2rem;
  }
  
  /* Improve card layouts */
  .project-card, .timeline-item, .skill-category, .contact-item {
    margin-bottom: 1rem;
  }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
  /* Body padding adjustment for small mobile */
  body {
    padding-top: 65px;
  }
  
  /* Navigation */
  nav {
    padding: 0.6rem 0.5rem;
    gap: 0.2rem;
    min-height: 55px;
  }
  
  nav a {
    font-size: 0.7rem;
    padding: 0.3rem 0.4rem;
    margin: 0.02rem;
    min-height: 44px; /* Touch-friendly minimum size */
  }
  
  /* Hero Section */
  .hero {
    padding: 1.2rem 0.8rem;
    min-height: 75vh;
  }
  
  .hero-content h1 {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
    line-height: 1.1;
  }
  
  .hero-content p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .btn-primary {
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
    min-height: 44px; /* Touch-friendly */
  }
  
  /* Sections */
  .about-section, .skills-section, .projects-section, .timeline-section, .contact-section {
    padding: 2rem 0.8rem;
  }
  
  .section-title {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }
  
  /* Skills Grid */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  /* Companies Grid */
  .companies-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .companies-track { gap: 1rem; }
  .company-item { padding: 0.6rem 1rem; }
  .company-item img { max-height: 32px; max-width: 100px; }
  
  .company-logo {
    padding: 0.8rem;
    min-height: 100px;
  }
  
  .company-logo img {
    max-width: 60px;
    max-height: 40px;
  }
  
  /* FAB */
  .fab-container {
    bottom: 10px;
    left: 10px;
    transform: scale(0.7);
  }
  
  /* Sound Visualizer */
  .sound-visualizer {
    bottom: 10px;
    right: 10px;
    width: 100px;
    height: 35px;
  }
  
  /* HUD */
  .hud {
    top: 5px;
    right: 5px;
    font-size: 0.6rem;
    padding: 0.3rem;
  }
  
  /* CV Section */
  .cv-section {
    padding: 1.5rem 0.8rem;
  }
  
  .cv-section h1 {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }
  
  .download-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.8rem;
  }
  
  /* Portfolio Section */
  .video-grid {
    padding: 1.5rem 0.8rem;
  }
  
  .video-card {
    padding: 0.8rem;
  }
  
  .video-info h3 {
    font-size: 1rem;
  }
  
  .video-info p {
    font-size: 0.8rem;
  }
  
  .project-link {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
  }
  
  /* Video Placeholder */
  .video-placeholder {
    height: 120px;
  }
  
  .video-placeholder::after {
    font-size: 1.5rem;
  }
}

/* Landscape Mobile Devices */
@media (max-width: 768px) and (orientation: landscape) {
  body {
    padding-top: 60px;
  }
  
  .hero {
    min-height: 60vh;
    padding: 1rem;
  }
  
  .cv-section {
    height: auto;
    min-height: 80vh;
  }
  
  .fab-container {
    bottom: 5px;
    left: 5px;
    transform: scale(0.6);
  }
  
  .sound-visualizer {
    bottom: 5px;
    right: 5px;
    width: 80px;
    height: 30px;
  }
  
  nav {
    padding: 0.5rem 1rem;
    min-height: 50px;
  }
  
  nav a {
    font-size: 0.75rem;
    padding: 0.3rem 0.4rem;
  }
}

/* CV Section Styles */
.cv-section {
  padding: 4rem 2rem;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.cv-content {
  max-width: 1000px;
  width: 100%;
  padding: 1rem;
}

.cv-section h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: #00ffe7;
  margin-bottom: 2rem;
  letter-spacing: 2px;
  font-weight: 700;
}

.download-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(45deg, #00ffe7, #ff00ff);
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: 'Orbitron', sans-serif;
  box-shadow: 0 0 20px rgba(0, 255, 231, 0.3);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 255, 231, 0.5);
}

.cv-image-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 231, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cv-image-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 255, 231, 0.3);
  border-color: #ff00ff;
}

.cv-image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Video Grid Section Styles */
.video-grid {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.video-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 231, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 255, 231, 0.3);
  border-color: #ff00ff;
}

.video-info h3 {
  font-family: 'Orbitron', sans-serif;
  color: #00ffe7;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.video-info p {
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.video-info .project-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.video-info .project-link {
  padding: 0.4rem 0.8rem;
  background: transparent;
  border: 1px solid #00ffe7;
  color: #00ffe7;
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.3s ease;
  font-size: 0.8rem;
  font-weight: 500;
}

.video-info .project-link:hover {
  background: #00ffe7;
  color: #000;
  box-shadow: 0 0 15px rgba(0, 255, 231, 0.5);
  transform: translateY(-2px);
}

/* Video Placeholder for Spatial Projects */
.video-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, rgba(0, 255, 231, 0.1), rgba(255, 0, 255, 0.1));
  border-radius: 8px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(0, 255, 231, 0.3);
  position: relative;
  overflow: hidden;
}

.video-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 231, 0.2), transparent);
  animation: placeholderScan 3s ease-in-out infinite;
}

.video-placeholder::after {
  content: '🎥';
  font-size: 3rem;
  color: rgba(0, 255, 231, 0.5);
  z-index: 1;
}

@keyframes placeholderScan {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 255, 231, 0.2);
  min-height: 80px;
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 255, 231, 0.2);
  border-color: #ff00ff;
}

.contact-item h3 {
  font-family: 'Orbitron', sans-serif;
  color: #00ffe7;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}


/* Portfolio Introduction Section */
.portfolio-intro {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ccc;
  margin-bottom: 0;
}

/* Section Descriptions */
.section-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #aaa;
  text-align: center;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
}

/* Portfolio Call to Action */
.portfolio-cta {
  text-align: center;
  margin-top: 4rem;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  border: 1px solid rgba(0, 255, 231, 0.1);
  backdrop-filter: blur(10px);
}

.cta-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #ccc;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.btn-secondary {
  display: inline-block;
  padding: 1rem 2rem;
  background: transparent;
  border: 2px solid #ff00ff;
  color: #ff00ff;
  font-weight: bold;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: 'Orbitron', sans-serif;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.2);
  cursor: pointer;
  text-align: center;
}

.btn-secondary:hover {
  background: #ff00ff;
  color: #000;
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
}

/* Enhanced Video Grid Layout */
.video-grid {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.videos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  justify-items: center;
}

.video-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 231, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.video-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 231, 0.1), transparent);
  transition: all 0.5s ease;
}

.video-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 255, 231, 0.2);
  border-color: rgba(255, 0, 255, 0.5);
}

.video-card:hover::before {
  left: 100%;
}

.video-card video {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}