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

/* CSS Custom Properties for better mobile support */
:root {
  --vh: 1vh;
  --primary-gradient: linear-gradient(135deg, #8b5cf6, #3b82f6);
  --card-bg: rgba(30, 41, 59, 0.8);
  --border-color: rgba(139, 92, 246, 0.2);
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #e2e8f0;
  background-color: #0f172a;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Prevent zoom on input focus on iOS */
  -webkit-text-size-adjust: 100%;
}

/* Improve tap targets for mobile */
a, button, input, textarea, select {
  -webkit-tap-highlight-color: rgba(139, 92, 246, 0.3);
}

/* Prevent horizontal scroll on mobile */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

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

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.logo-text:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  overflow: hidden;
}

.nav-link:hover {
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-2px);
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Advanced Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1001;
}

.hamburger:hover {
  background: rgba(139, 92, 246, 0.1);
  transform: scale(1.1);
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #e2e8f0;
  margin: 3px 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-radius: 2px;
  transform-origin: center;
}

/* Hamburger Animation States */
.hamburger.active span {
  background: #8b5cf6;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* Mobile Menu Styles */
.nav-menu.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.15);
  z-index: 999;
}

.nav-menu.mobile-menu.active {
  height: auto;
  padding: 80px 0 40px 0;
  display: flex;
}

/* Branded header shown at the top of the open mobile menu */
.nav-menu.mobile-menu.active::before {
  content: '{ MB }' / '';
  display: block;
  font-family: monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: #8b5cf6;
  letter-spacing: 6px;
  text-align: center;
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInBrand 0.4s ease 0.05s forwards;
  order: -1;
}

/* Tagline shown at the bottom of the open mobile menu */
.nav-menu.mobile-menu.active::after {
  content: '< Full Stack Developer />' / '';
  display: block;
  font-family: monospace;
  font-size: 0.7rem;
  color: rgba(139, 92, 246, 0.5);
  letter-spacing: 2px;
  text-align: center;
  margin-top: 1.5rem;
  opacity: 0;
  animation: fadeInBrand 0.4s ease 0.4s forwards;
}

@keyframes fadeInBrand {
  to { opacity: 1; }
}

.nav-menu.mobile-menu .nav-link {
  color: #e2e8f0;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.75rem 2rem;
  margin: 0.2rem 0;
  border-radius: 8px;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  overflow: visible;
  text-align: left;
  display: block;
  visibility: visible;
  width: 200px;
  max-width: 90vw;
}

/* Staggered Animation for Menu Items */
.nav-menu.mobile-menu.active li:nth-child(1) .nav-link {
  animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

.nav-menu.mobile-menu.active li:nth-child(2) .nav-link {
  animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
}

.nav-menu.mobile-menu.active li:nth-child(3) .nav-link {
  animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.nav-menu.mobile-menu.active li:nth-child(4) .nav-link {
  animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.25s forwards;
}

.nav-menu.mobile-menu.active li:nth-child(5) .nav-link {
  animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

.nav-menu.mobile-menu.active li:nth-child(6) .nav-link {
  animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.35s forwards;
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Shimmer Effect for Mobile Menu Links */
.nav-menu.mobile-menu .nav-link::before {
  display: inline-block;
  content: attr(data-icon);
  margin-right: 0.6rem;
  font-size: 1.1rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  vertical-align: middle;
}

.nav-menu.mobile-menu .nav-link:hover::before,
.nav-menu.mobile-menu .nav-link.active::before {
  transform: scale(1.3);
}

.nav-menu.mobile-menu .nav-link:hover {
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.08);
  transform: translateX(4px);
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
  border-left-color: #8b5cf6;
}

.nav-menu.mobile-menu .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu.mobile-menu .nav-link:hover::after {
  width: 100%;
}

/* Body scroll lock */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Navbar hover effects */
.navbar:hover {
  background: rgba(15, 23, 42, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 5px 20px rgba(139, 92, 246, 0.1);
}

.nav-container {
  transition: all 0.3s ease;
}

/* Mobile menu backdrop */
.nav-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.nav-menu.active::before {
  opacity: 1;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  position: relative;
  overflow: hidden;
  /* Optimize for mobile performance */
  will-change: transform;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%238b5cf6" stop-opacity="0.1"/><stop offset="100%" stop-color="%238b5cf6" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
  opacity: 0.5;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.1rem;
  color: #94a3b8;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #8b5cf6;
  border: 2px solid #8b5cf6;
}

.btn-secondary:hover {
  background: #8b5cf6;
  color: white;
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Floating Card */
.floating-card {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

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

.code-snippet {
  background: rgba(30, 41, 59, 0.8);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 92, 246, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.code-header {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #10b981; }

.code-content {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.keyword { color: #8b5cf6; }
.variable { color: #3b82f6; }
.string { color: #10b981; }

/* Sections */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

section {
  padding: 5rem 0;
}

/* About Section */
.about {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #94a3b8;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.about-stats {
  display: grid;
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.stat-item h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #8b5cf6;
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: #94a3b8;
  font-size: 0.9rem;
}

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

.skill-card {
  background: rgba(30, 41, 59, 0.8);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: all 0.3s ease;
  text-align: center;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
}

.skill-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.skill-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #e2e8f0;
}

.skill-card p {
  color: #94a3b8;
  line-height: 1.6;
}

/* GitHub Stats */
.github-stats {
  margin-top: 4rem;
  text-align: center;
}

.stats-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #e2e8f0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  justify-items: center;
}

.stat-card {
  background: rgba(30, 41, 59, 0.8);
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 500px;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
}

.stat-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  min-height: 150px;
}

.github-link {
  margin-top: 1rem;
}

/* Projects Section */
.projects {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.projects-category {
  margin-bottom: 4rem;
}

.category-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #e2e8f0;
}

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

.project-card {
  background: rgba(30, 41, 59, 0.8);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.project-card.active {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.05);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-header h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #e2e8f0;
}

.project-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-status.active {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.project-status.discontinued {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.project-description {
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

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

.tag {
  background: rgba(139, 92, 246, 0.2);
  color: #8b5cf6;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

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

.project-domain {
  color: #64748b;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
}

/* Interests Section */
.interests-content {
  max-width: 900px;
  margin: 0 auto;
}

.interest-category h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #e2e8f0;
}

.interest-category p {
  color: #94a3b8;
  margin-bottom: 2rem;
  line-height: 1.6;
}

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

.anime-item {
  background: rgba(139, 92, 246, 0.1);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  text-align: center;
  transition: all 0.3s ease;
  color: #e2e8f0;
  font-weight: 500;
}

.anime-item:hover {
  background: rgba(139, 92, 246, 0.2);
  transform: translateY(-2px);
}

/* Contact Section */
.contact {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

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

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #e2e8f0;
}

.contact-info p {
  color: #94a3b8;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 0.75rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.contact-link:hover {
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.1);
  transform: translateX(5px);
}

.contact-icon {
  font-size: 1.25rem;
}

/* Discord Status */
.discord-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  background: rgba(30, 41, 59, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: all 0.3s ease;
}

.discord-status:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-1px);
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
}

.status-indicator.online {
  background-color: #23a55a;
  box-shadow: 0 0 8px rgba(35, 165, 90, 0.5);
}

.status-indicator.idle {
  background-color: #f0b232;
  box-shadow: 0 0 8px rgba(240, 178, 50, 0.5);
}

.status-indicator.dnd {
  background-color: #f23f43;
  box-shadow: 0 0 8px rgba(242, 63, 67, 0.5);
}

.status-indicator.offline {
  background-color: #80848e;
  box-shadow: 0 0 8px rgba(128, 132, 142, 0.3);
}

.status-text {
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 500;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.contact-form {
  background: rgba(30, 41, 59, 0.8);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  color: #e2e8f0;
  font-family: inherit;
  transition: border-color 0.3s ease;
  /* Prevent zoom on iOS */
  font-size: 16px;
  /* Improve mobile input experience */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #64748b;
}

/* Form Messages */
.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
  animation: slideInUp 0.3s ease;
}

.form-message.success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

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

/* Footer */
.footer {
  background: rgba(15, 23, 42, 0.95);
  padding: 2rem 0;
  text-align: center;
}

.footer-content p {
  color: #64748b;
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .hero-container {
    gap: 3rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }

  .container {
    padding: 0 1rem;
  }

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

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .skill-card {
    padding: 1.5rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .project-card {
    padding: 1.5rem;
  }

  .anime-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
  }
  
  .anime-item {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .hero-buttons {
    justify-content: center;
    gap: 0.75rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .stat-card {
    padding: 0.75rem;
    max-width: 100%;
  }
  
  .stat-card img {
    min-height: 120px;
  }
  
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .stat-item {
    padding: 1rem;
  }
  
  .stat-item h3 {
    font-size: 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 0.875rem;
    font-size: 1rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .discord-status {
    padding: 0.5rem;
    font-size: 0.8rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .status-text {
    font-size: 0.75rem;
    max-width: 180px;
  }
  
  .contact-link {
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 110px;
  }

  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero-description {
    font-size: 0.95rem;
  }
  
  .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .nav-container {
    padding: 1rem;
  }
  
  .logo-text {
    font-size: 1.25rem;
  }
  
  .skill-card,
  .project-card {
    padding: 1.25rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .anime-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
  }
  
  .anime-item {
    padding: 0.5rem;
    font-size: 0.85rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .btn {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }
  
  .project-tags {
    gap: 0.25rem;
  }
  
  .tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }
  
  .contact-form {
    padding: 1.25rem;
  }
  
  .form-group {
    margin-bottom: 1.25rem;
  }
  
  section {
    padding: 2.5rem 0;
  }
}

@media (max-width: 360px) {
  .hero {
    padding-top: 100px;
  }

  .hero-title {
    font-size: 1.75rem;
  }
  
  .container {
    padding: 0 0.75rem;
  }
  
  .nav-container {
    padding: 0.75rem;
  }
  
  .skill-card,
  .project-card,
  .contact-form {
    padding: 1rem;
  }
  
  .anime-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
}

/* Landscape orientation for tablets */
@media (max-width: 1024px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
  }
  
  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  section {
    padding: 3rem 0;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn:active {
    transform: scale(0.98);
  }
  
  .skill-card:active,
  .project-card:active {
    transform: scale(0.98);
  }
  
  /* Increase touch targets */
  .nav-link {
    padding: 0.75rem 1rem;
  }
  
  .btn {
    min-height: 44px;
  }
  
  .form-group input,
  .form-group textarea {
    min-height: 44px;
  }
  
  /* Mobile menu touch optimizations */
  .nav-menu.mobile-menu .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .hamburger {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .stat-card img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
}

/* ===== Creative Enhancements ===== */

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #8b5cf6, #3b82f6, #06b6d4);
  z-index: 9999;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.7);
  pointer-events: none;
  transition: width 0.1s linear;
}

/* Hero Particles Canvas */
#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Hero Ambient Glow Orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbDrift 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18), transparent 70%);
  top: -150px;
  right: 5%;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14), transparent 70%);
  bottom: -50px;
  left: -50px;
  animation-delay: -4s;
}

.hero-orb-3 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12), transparent 70%);
  top: 50%;
  left: 40%;
  animation-delay: -7s;
}

@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -30px) scale(1.05); }
  66%       { transform: translate(-15px, 15px) scale(0.97); }
}

/* Animated Gradient Name */
.gradient-text {
  background: linear-gradient(90deg, #8b5cf6, #3b82f6, #06b6d4, #8b5cf6);
  background-size: 200% auto;
  animation: gradientFlow 4s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Section Title Animated Underline */
.section-title {
  padding-bottom: 1.2rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #8b5cf6, #3b82f6);
  margin: 0.75rem auto 0;
  border-radius: 2px;
  animation: underlineExpand 2.5s ease-in-out infinite alternate;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}

@keyframes underlineExpand {
  from { width: 40px; opacity: 0.6; }
  to   { width: 100px; opacity: 1; }
}

/* Card Shimmer Effect */
.skill-card,
.project-card {
  position: relative;
  overflow: hidden;
}

.skill-card::after,
.project-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  transform: skewX(-15deg);
  transition: left 0.65s ease;
  pointer-events: none;
  z-index: 1;
}

.skill-card:hover::after,
.project-card:hover::after {
  left: 160%;
}

/* Typing Cursor */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: #8b5cf6;
  margin-left: 2px;
  vertical-align: middle;
  border-radius: 1px;
  animation: cursorBlink 0.8s step-end infinite;
  box-shadow: 0 0 6px rgba(139, 92, 246, 0.8);
}

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

/* Stat Counter Glow */
.stat-item h3 {
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

/* Enhanced Form Focus */
.form-group input:focus,
.form-group textarea:focus {
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2), 0 0 15px rgba(139, 92, 246, 0.08);
}

/* Anime item glow on hover */
.anime-item:hover {
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
}