
@font-face {
  font-family: 'BBHSansHegarty';
  src: url('./fonts/BBHSansHegarty-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #6366f1;
  --accent: #06b6d4;
  --secondary: #8b5cf6;
  --text: #f8fafc;
  --muted: #94a3b8;
  --background: #0f172a;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.2);
  
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--accent));
  --gradient-secondary: linear-gradient(135deg, var(--secondary), var(--primary));
  --gradient-text: linear-gradient(135deg, var(--accent), var(--primary));
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
  
  --section-padding: 120px 0;
  --container-padding: 0 24px;
  --border-radius: 16px;
  --border-radius-lg: 24px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.bg-animated {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.bg-animated canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.95);
  box-shadow: var(--shadow-lg);
}

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

.nav-logo .logo-text {
  font-size: 24px;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
  padding: 8px 16px;
  border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: var(--surface);
}

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

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

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-text {
  z-index: 2;
  text-align: center;
}

.hero-title {
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.greeting {
  display: block;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 8px;
}

.name {
  display: block;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.3)); }
  to { filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.6)); }
}

.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-description {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

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

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

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

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

.hero-socials {
  display: flex;
  gap: 16px;
}

.hero-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
}

.hero-socials a:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  color: var(--accent);
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.floating-elements {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-elements::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(45deg, transparent 30%, rgba(99, 102, 241, 0.05) 50%, transparent 70%),
    linear-gradient(-45deg, transparent 30%, rgba(6, 182, 212, 0.05) 50%, transparent 70%);
  animation: geometricShift 15s ease-in-out infinite;
}

.floating-elements::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: centerGlow 4s ease-in-out infinite;
}

@keyframes geometricShift {
  0%, 100% { opacity: 0.3; transform: translateX(0); }
  50% { opacity: 0.6; transform: translateX(10px); }
}

@keyframes centerGlow {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.6;
  }
}

.center-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
  border: 3px solid var(--border);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 40px rgba(99, 102, 241, 0.3);
  backdrop-filter: blur(20px);
  animation: centerFloat 6s ease-in-out infinite;
  transition: var(--transition);
}

.center-image:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 60px rgba(99, 102, 241, 0.5);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: var(--transition);
}

.center-image:hover .profile-image {
  transform: scale(1.1);
}

@keyframes centerFloat {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0px);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-10px);
  }
}

.network-hub {
  display: none;
}

.floating-icon {
  position: absolute;
  width: 70px;
  height: 70px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 24px;
  backdrop-filter: blur(20px);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: float 6s ease-in-out infinite;
}

.floating-icon:hover {
  transform: translateY(-8px) scale(1.05);
  background: var(--surface-hover);
  border-color: var(--border-hover);
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 20px rgba(99, 102, 241, 0.2);
  color: var(--primary);
}

.floating-icon:nth-child(1) {
  top: 15%;
  left: 15%;
  animation-delay: 0s;
  background: linear-gradient(135deg, var(--primary), rgba(99, 102, 241, 0.1));
  border-color: rgba(99, 102, 241, 0.3);
}

.floating-icon:nth-child(2) {
  top: 15%;
  right: 15%;
  animation-delay: 1.5s;
  background: linear-gradient(135deg, var(--accent), rgba(6, 182, 212, 0.1));
  border-color: rgba(6, 182, 212, 0.3);
}

.floating-icon:nth-child(3) {
  bottom: 15%;
  left: 15%;
  animation-delay: 3s;
  background: linear-gradient(135deg, var(--secondary), rgba(139, 92, 246, 0.1));
  border-color: rgba(139, 92, 246, 0.3);
}

.floating-icon:nth-child(4) {
  bottom: 15%;
  right: 15%;
  animation-delay: 4.5s;
  background: linear-gradient(135deg, var(--accent), rgba(6, 182, 212, 0.1));
  border-color: rgba(6, 182, 212, 0.3);
}

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

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border: 2px solid var(--accent);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

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

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 16px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

.about-section {
  padding: var(--section-padding);
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.5) 100%);
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 80px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}

.about-card h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--accent);
}

.about-card p {
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}


.roles-section {
  text-align: center;
}

.roles-section h3 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 40px;
  color: var(--text);
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.role-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(20px);
}

.role-badge:hover {
  transform: translateY(-4px);
  background: var(--surface-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.role-badge i {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.role-badge .label {
  font-weight: 600;
  color: var(--text);
}

.skills-section {
  padding: var(--section-padding);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, transparent 100%);
}

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

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 32px;
  transition: var(--transition);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition);
}

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

.skill-card:hover {
  transform: translateY(-4px);
  background: var(--surface-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.skill-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.skill-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.skill-level {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.skill-bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  transition: width 1s ease-in-out;
}

.skill-percentage {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  min-width: 40px;
}

.gaming-section {
  padding: var(--section-padding);
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.5) 100%);
}

.gaming-content {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.gaming-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

.stat-card {
  background: linear-gradient(135deg, var(--surface), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.stat-card:hover {
  transform: translateY(-12px) scale(1.02);
  background: linear-gradient(135deg, var(--surface-hover), rgba(255, 255, 255, 0.05));
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 20px rgba(99, 102, 241, 0.1);
}

.stat-icon {
  width: 72px;
  height: 72px;
  background: var(--gradient-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: white;
  font-size: 28px;
  animation: pulse 3s ease-in-out infinite;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.stat-info h3 {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
  animation: countUp 2s ease-out;
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.stat-info p {
  color: var(--muted);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.games-grid h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 32px;
  text-align: center;
}

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

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 24px;
  transition: var(--transition);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.game-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: var(--transition);
}

.game-card:hover::after {
  left: 100%;
}

.game-card:hover {
  transform: translateY(-4px) scale(1.02);
  background: var(--surface-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.game-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.game-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-secondary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.game-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.game-genre {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.game-hours {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

.game-hours i {
  font-size: 12px;
}

.contact-section {
  padding: var(--section-padding);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 12px;
  transition: var(--transition);
}

.contact-item:hover {
  background: var(--surface-hover);
}

.contact-item i {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.contact-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--muted);
  font-size: 14px;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 24px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 16px;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.footer {
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  backdrop-filter: blur(20px);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.brand-text {
  color: var(--accent);
  font-weight: 600;
}

.separator {
  color: var(--muted);
  opacity: 0.5;
}

.copyright {
  color: var(--muted);
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
}

.footer-link:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  color: var(--accent);
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .hero-content {
    gap: 60px;
  }
  
  .floating-icon {
    width: 60px;
    height: 60px;
    font-size: 20px;
  }
  
  .gaming-stats {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 80px;
    transition: var(--transition);
    z-index: 1000;
  }

  .nav-link {
    font-size: 24px;
    margin: 20px 0;
    padding: 12px 24px;
    border-radius: 12px;
    transition: var(--transition);
    display: block;
    width: 200px;
    text-align: center;
  }

  .nav-link:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateX(8px);
    color: var(--primary);
  }

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

  .nav-toggle {
    display: flex;
  }

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

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

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
    max-width: 600px;
    padding: 20px;
  }

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

  .hero-title {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    padding: 14px 28px;
    font-size: 15px;
    border-radius: 12px;
  }

  .hero-socials {
    margin-top: 24px;
    gap: 16px;
  }

  .hero-socials a {
    width: 44px;
    height: 44px;
    font-size: 18px;
    border-radius: 12px;
  }

  .floating-icon {
    width: 60px;
    height: 60px;
    font-size: 20px;
    border-radius: 12px;
  }

  .floating-icon:nth-child(1) {
    top: 15%;
    left: 15%;
  }

  .floating-icon:nth-child(2) {
    top: 15%;
    right: 15%;
  }

  .floating-icon:nth-child(3) {
    bottom: 15%;
    left: 15%;
  }

  .floating-icon:nth-child(4) {
    bottom: 15%;
    right: 15%;
  }
  
  .center-image {
    width: 140px;
    height: 140px;
    border-width: 2px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .skills-grid,
  .games-list {
    grid-template-columns: 1fr;
  }

  .gaming-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-section {
    padding: 100px 0 60px;
  }

  .hero-content {
    gap: 24px;
    padding: 16px;
  }

  .hero-title {
    font-size: 1.8rem;
    line-height: 1.1;
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }

  .hero-description {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 95%;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
  }

  .btn {
    width: 100%;
    max-width: 260px;
    padding: 12px 24px;
    font-size: 14px;
    border-radius: 10px;
  }

  .hero-socials {
    gap: 12px;
    margin-top: 20px;
  }

  .hero-socials a {
    width: 40px;
    height: 40px;
    font-size: 16px;
    border-radius: 10px;
  }

  .floating-icon {
    width: 50px;
    height: 50px;
    font-size: 18px;
    border-radius: 10px;
  }

  .floating-icon:nth-child(1) {
    top: 12%;
    left: 12%;
  }

  .floating-icon:nth-child(2) {
    top: 12%;
    right: 12%;
  }

  .floating-icon:nth-child(3) {
    bottom: 12%;
    left: 12%;
  }

  .floating-icon:nth-child(4) {
    bottom: 12%;
    right: 12%;
  }

  .center-image {
    width: 120px;
    height: 120px;
  }

  .about-card,
  .contact-card,
  .contact-form {
    padding: 20px;
  }

  .about-stats {
    gap: 12px;
  }

  .stat-card {
    padding: 16px;
  }

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

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

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .skill-card {
    padding: 16px;
  }

  .gaming-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .game-card {
    padding: 16px;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .section-header p {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: clamp(28px, 6vw, 36px);
  }

  .section-subtitle {
    font-size: clamp(14px, 3vw, 18px);
  }

  .stat-card {
    padding: 24px 20px;
  }

  .stat-icon {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }

  .stat-info h3 {
    font-size: 24px;
  }

  .game-card {
    padding: 20px;
  }

  .skill-card {
    padding: 24px 20px;
  }

  .nav-container {
    padding: 0 16px;
  }

  .footer-content {
    padding: 0 16px;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }

  .hero-section {
    padding: 80px 0 40px;
  }

  .hero-content {
    gap: 20px;
    padding: 12px;
  }

  .hero-title {
    font-size: 1.6rem;
    line-height: 1.1;
    margin-bottom: 8px;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }

  .hero-description {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 16px;
    max-width: 98%;
  }

  .hero-buttons {
    gap: 8px;
    margin-bottom: 16px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 13px;
    max-width: 240px;
  }

  .hero-socials {
    gap: 20px;
    margin-top: 16px;
  }

  .hero-socials a {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .floating-icon {
    width: 45px;
    height: 45px;
    font-size: 16px;
    border-radius: 8px;
  }

  .floating-icon:nth-child(1) {
    top: 10%;
    left: 10%;
  }

  .floating-icon:nth-child(2) {
    top: 10%;
    right: 10%;
  }

  .floating-icon:nth-child(3) {
    bottom: 10%;
    left: 10%;
  }

  .floating-icon:nth-child(4) {
    bottom: 10%;
    right: 10%;
  }

  .center-image {
    width: 100px;
    height: 100px;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .section-header p {
    font-size: 0.85rem;
  }

  .about-card,
  .contact-card,
  .contact-form {
    padding: 16px;
  }

  .stat-card {
    padding: 12px;
  }

  .stat-value {
    font-size: 1.3rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .skill-card,
  .game-card {
    padding: 12px;
  }
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

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

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

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-180deg) scale(0.5);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

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

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px var(--accent);
  }
  50% {
    box-shadow: 0 0 20px var(--accent), 0 0 30px var(--accent);
  }
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  0%, 50% {
    border-color: transparent;
  }
  51%, 100% {
    border-color: var(--accent);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.loading {
  opacity: 0.5;
  pointer-events: none;
}

@media (hover: none) and (pointer: coarse) {
  .floating-icon {
    width: 60px;
    height: 60px;
    font-size: 20px;
  }
  
  .btn {
    min-height: 48px;
    padding: 16px 24px;
  }
  
  .nav-link {
    padding: 12px 16px;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  
  .socials a {
    width: 52px;
    height: 52px;
  }
  
  .footer-link {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .hero-section {
    padding: 80px 0 40px;
  }
  
  .hero-content {
    gap: 30px;
  }
  
  .floating-icon {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }
  
  .section-padding {
    padding: 80px 0;
  }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .floating-icon {
    box-shadow: 
      0 2px 10px rgba(0, 0, 0, 0.1),
      0 0 0 0.5px rgba(255, 255, 255, 0.05);
  }
  
  .stat-card {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .floating-icon {
    animation: none !important;
  }
  
  .floating-elements::before,
  .floating-elements::after {
    animation: none !important;
  }
  
  .center-image {
    width: 150px;
    height: 150px;
  }
}

button:focus,
a:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-contrast: high) {
  :root {
    --surface: rgba(255, 255, 255, 0.1);
    --border: rgba(255, 255, 255, 0.3);
  }
}

@media (hover: none) and (pointer: coarse) {
  .floating-icon {
    animation: none;
    touch-action: manipulation;
  }
  
  .floating-icon:hover {
    transform: none;
  }
  
  .floating-icon:active {
    transform: scale(0.95);
    background: var(--surface-hover);
  }
  
  .btn:hover {
    transform: none;
  }
  
  .btn:active {
    transform: scale(0.98);
  }
  
  .skill-card:hover {
    transform: none;
  }
  
  .skill-card:active {
    transform: scale(0.98);
  }
  
  .game-card:hover {
    transform: none;
  }
  
  .game-card:active {
    transform: scale(0.98);
  }

  .center-image:hover {
    transform: translate(-50%, -50%) scale(1.05);
  }

  .center-image:active {
    transform: translate(-50%, -50%) scale(0.95);
  }

  .nav-link:hover {
    transform: none;
  }

  .nav-link:active {
    transform: scale(0.95);
    background: rgba(99, 102, 241, 0.2);
  }

  .hero-socials a:hover {
    transform: none;
  }

  .hero-socials a:active {
    transform: scale(0.9);
  }
}
