/* Modern Portfolio - Futuristic Design with Neon Blue Theme */

:root {
  --neon-blue: #00f0ff;
  --neon-blue-dark: #00b8d4;
  --neon-blue-light: #4dfff8;
  --neon-glow: rgba(0, 240, 255, 0.5);
  --bg-dark: #0a0e27;
  --bg-darker: #050814;
  --bg-card: rgba(15, 23, 42, 0.7);
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --gradient-accent: linear-gradient(135deg, #00f0ff 0%, #667eea 100%);
  --shadow-glow: 0 0 20px rgba(0, 240, 255, 0.5), 0 0 40px rgba(0, 240, 255, 0.5);
  --shadow-glow-intense: 0 0 30px rgba(0, 240, 255, 0.5), 0 0 60px rgba(0, 240, 255, 0.5), 0 0 90px rgba(0, 240, 255, 0.5);
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --font-primary: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-primary);
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-darker);
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg-darker); border-left: 1px solid rgba(0, 240, 255, 0.1); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--neon-blue), var(--neon-blue-dark));
  border-radius: 6px;
  box-shadow: 0 0 10px var(--neon-glow);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--neon-blue-light), var(--neon-blue));
  box-shadow: var(--shadow-glow);
}

/* Loading Screen */
.loading-screen {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100vh;
  background: var(--bg-darker);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}
.loading-screen::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(0, 240, 255, 0.1), transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(102, 126, 234, 0.1), transparent 50%);
  animation: bgPulse 4s ease-in-out infinite;
}
@keyframes bgPulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

.loading-content { text-align: center; position: relative; z-index: 1; }
.loading-spinner {
  width: 80px; height: 80px;
  border: 4px solid rgba(0, 240, 255, 0.1);
  border-top: 4px solid var(--neon-blue);
  border-radius: 50%;
  margin: 0 auto 2rem;
  animation: spin 1s linear infinite;
  box-shadow: var(--shadow-glow);
}
@keyframes spin { 100% { transform: rotate(360deg); } }

.loading-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  font-family: var(--font-display);
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.fade-in-text { animation: fadeIn 0.8s ease 0.3s both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.main-content { min-height: 100vh; opacity: 0; animation: fadeInContent 0.6s ease forwards; }
@keyframes fadeInContent { to { opacity: 1; } }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
section { padding: 6rem 0; position: relative; }

/* Section Titles */
.section-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  font-family: var(--font-display);
  margin-bottom: 4rem;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
  letter-spacing: -0.02em;
}
.section-title.visible { opacity: 1; transform: translateY(0); }
.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 4px;
  background: var(--gradient-accent);
  border-radius: 2px;
  box-shadow: var(--shadow-glow);
}

/* Buttons */
.btn {
  padding: 14px 32px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition-base);
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--gradient-accent);
  color: var(--text-primary);
  box-shadow: 0 4px 20px var(--neon-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-intense);
}
.btn-secondary {
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-blue);
  border: 2px solid var(--neon-blue);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: var(--neon-blue);
  color: var(--bg-darker);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.btn-outline {
  background: transparent;
  color: var(--neon-blue);
  border: 2px solid var(--neon-blue);
}
.btn-outline:hover {
  background: var(--neon-blue);
  color: var(--bg-darker);
  transform: translateY(-2px);
}
.btn-small { padding: 10px 20px; font-size: 0.9rem; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(10, 14, 39, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  z-index: 1000;
  transition: var(--transition-slow);
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
  opacity: 0;
  transform: translateY(-100px);
  animation: slideDown 0.8s ease 0.5s forwards;
}
@keyframes slideDown { to { opacity: 1; transform: translateY(0); } }

.navbar.scrolled {
  background: rgba(10, 14, 39, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 240, 255, 0.1);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

/* Logo */
.nav-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-display);
  transition: var(--transition-base);
}
.nav-logo a:hover { transform: scale(1.05); filter: drop-shadow(0 0 10px var(--neon-glow)); }
.logo-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-dot {
  width: 10px; height: 10px;
  background: var(--neon-blue);
  border-radius: 50%;
  margin-left: 6px;
  box-shadow: var(--shadow-glow);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: var(--shadow-glow); }
  50% { transform: scale(1.3); opacity: 0.7; box-shadow: var(--shadow-glow-intense); }
}

/* Nav Menu */
.nav-menu { display: flex; list-style: none; gap: 1rem; align-items: center; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  transition: var(--transition-base);
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--neon-blue);
  background: rgba(0, 240, 255, 0.05);
}
.nav-icon { font-size: 1rem; transition: var(--transition-base); }

/* Mobile Menu */
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--neon-blue);
  transition: var(--transition-base);
  padding: 8px;
}
.hamburger:hover { transform: scale(1.1); filter: drop-shadow(0 0 8px var(--neon-glow)); }
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: rgba(10, 14, 39, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.mobile-menu ul { list-style: none; padding: 2rem; }
.mobile-menu li { margin-bottom: 1rem; }
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 8px;
  transition: var(--transition-base);
  background: rgba(0, 240, 255, 0.03);
}
.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--neon-blue);
  background: rgba(0, 240, 255, 0.1);
  transform: translateX(8px);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}
.mobile-nav-icon { font-size: 1.2rem; }

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.hero-background { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; }
.animated-grid {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove { 100% { transform: translate(50px, 50px); } }
.particles { position: absolute; top: 0; left: 0; right: 0; bottom: 0; overflow: hidden; }
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, var(--bg-darker) 100%);
  z-index: 1;
}

.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: 2;
}
.hero-content { opacity: 0; animation: fadeInUp 1s ease 0.5s forwards; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  font-family: var(--font-display);
  line-height: 1.2;
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
}
.typing-text { color: var(--text-primary); }
.cursor {
  color: var(--neon-blue);
  animation: blink 1s infinite;
  text-shadow: var(--shadow-glow);
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

.highlight {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px var(--neon-glow));
}
.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--neon-blue);
  margin-bottom: 2rem;
  text-shadow: var(--shadow-glow);
}
.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}
.hero-buttons { display: flex; gap: 2rem; flex-wrap: wrap; }

/* Profile Card */
.hero-image { opacity: 0; animation: fadeInUp 1s ease 0.8s forwards; }
.profile-card {
  width: 100%;
  aspect-ratio: 1;
  max-width: 400px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(0, 240, 255, 0.2);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 40px rgba(0, 240, 255, 0.2);
  transition: var(--transition-base);
}
.profile-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent, rgba(0, 240, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%) translateY(100%) rotate(45deg); } }

.profile-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4), var(--shadow-glow-intense);
  border-color: var(--neon-blue);
}
.profile-icon {
  font-size: 12rem;
  color: var(--neon-blue);
  filter: drop-shadow(var(--shadow-glow));
  transition: var(--transition-base);
}
.profile-card:hover .profile-icon { transform: scale(1.1); filter: drop-shadow(var(--shadow-glow-intense)); }

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-20px); }
}
.scroll-icon {
  font-size: 2rem;
  color: var(--neon-blue);
  text-shadow: var(--shadow-glow);
  transition: var(--transition-base);
}

/* About Section */
.about {
  background: linear-gradient(135deg, #0a0e27, #1e293b);
  position: relative;
}
.about::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 10% 20%, rgba(0, 240, 255, 0.05), transparent 50%),
              radial-gradient(circle at 90% 80%, rgba(102, 126, 234, 0.05), transparent 50%);
  pointer-events: none;
}
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text {
  opacity: 0;
  transform: translateX(-40px);
  transition: var(--transition-slow);
}
.about-text.visible { opacity: 1; transform: translateX(0); }
.about-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* Stats */
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.stat {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition-base);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.stat:hover {
  transform: translateY(-8px);
  border-color: var(--neon-blue);
  box-shadow: var(--shadow-glow);
}
.stat-icon {
  font-size: 2rem;
  color: var(--neon-blue);
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px var(--neon-glow));
}
.stat h3 {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-display);
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.stat p { color: var(--text-secondary); font-size: 0.95rem; margin: 0; }

.about-image { opacity: 0; transform: translateX(40px); transition: var(--transition-slow); }
.about-image.visible { opacity: 1; transform: translateX(0); }
.about-card {
  width: 100%;
  aspect-ratio: 1;
  max-width: 400px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(0, 240, 255, 0.2);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: var(--transition-base);
}
.about-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent, rgba(0, 240, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
}
.about-card:hover {
  transform: translateY(-10px);
  border-color: var(--neon-blue);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}
.about-icon {
  font-size: 10rem;
  color: var(--neon-blue);
  filter: drop-shadow(var(--shadow-glow));
  transition: var(--transition-base);
}
.about-card:hover .about-icon { transform: scale(1.1) rotate(5deg); }

/* Skills Section */
.skills { background: var(--bg-darker); position: relative; }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
}
.skill-category {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 20px;
  padding: 3rem;
  transition: var(--transition-base);
  opacity: 0;
  transform: translateY(40px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.skill-category.visible { opacity: 1; transform: translateY(0); }
.skill-category:hover {
  transform: translateY(-8px);
  border-color: var(--neon-blue);
  box-shadow: var(--shadow-glow);
}
.skill-category h3 {
  font-size: 1.5rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--neon-blue);
  margin-bottom: 2rem;
  text-shadow: var(--shadow-glow);
}
.skill-items { display: flex; flex-direction: column; gap: 2rem; }
.skill-name {
  display: block;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.skill-bar {
  height: 10px;
  background: rgba(0, 240, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
.skill-progress {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 10px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px var(--neon-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Projects Section */
.projects {
  background: linear-gradient(135deg, #0a0e27, #1e293b);
  position: relative;
}
.projects::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 20% 30%, rgba(0, 240, 255, 0.05), transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(102, 126, 234, 0.05), transparent 50%);
  pointer-events: none;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 4rem;
}
.project-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition-base);
  opacity: 0;
  transform: translateY(40px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.project-card.visible { opacity: 1; transform: translateY(0); }
.project-card:hover {
  transform: translateY(-12px);
  border-color: var(--neon-blue);
  box-shadow: var(--shadow-glow-intense);
}
.project-image {
  width: 100%;
  height: 200px;
  background: rgba(0, 240, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.project-icon {
  font-size: 4rem;
  color: var(--neon-blue);
  filter: drop-shadow(var(--shadow-glow));
  z-index: 1;
  transition: var(--transition-base);
}
.project-card:hover .project-icon { transform: scale(1.2) rotate(5deg); }
.project-content { padding: 2rem; }
.project-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.project-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.project-tech { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.project-tech span {
  padding: 6px 12px;
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-blue);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}
.project-links { display: flex; gap: 1rem; }

/* Contact Section */
.contact { background: var(--bg-darker); position: relative; }
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}
.contact-info {
  opacity: 0;
  transform: translateX(-40px);
  transition: var(--transition-slow);
}
.contact-info.visible { opacity: 1; transform: translateX(0); }
.contact-info h3 {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--neon-blue);
  margin-bottom: 1.5rem;
}
.contact-info p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}
.contact-details { margin-bottom: 3rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(0, 240, 255, 0.05);
  border-radius: 12px;
  transition: var(--transition-base);
}
.contact-item:hover {
  background: rgba(0, 240, 255, 0.1);
  transform: translateX(10px);
}
.contact-icon {
  font-size: 1.5rem;
  color: var(--neon-blue);
  filter: drop-shadow(0 0 8px var(--neon-glow));
}
.contact-item a {
  color: var(--text-primary);
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.social-link {
  width: 50px; height: 50px;
  background: rgba(0, 240, 255, 0.1);
  border: 2px solid rgba(0, 240, 255, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-blue);
  text-decoration: none;
  font-size: 1.5rem;
  transition: var(--transition-base);
}
.social-link:hover {
  background: var(--neon-blue);
  color: var(--bg-darker);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.contact-form {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateX(40px);
  transition: var(--transition-slow);
}
.contact-form.visible { opacity: 1; transform: translateX(0); }
.form-group { margin-bottom: 2rem; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(0, 240, 255, 0.05);
  border: 2px solid rgba(0, 240, 255, 0.2);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: var(--transition-base);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--neon-blue);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}
.form-group textarea { min-height: 150px; resize: vertical; }
.contact-form .btn { width: 100%; font-size: 1.1rem; padding: 16px; }

#form-status { margin-top: 1rem; text-align: center; padding: 1rem; border-radius: 8px; }
.success-message {
  color: #00f064;
  background: rgba(0, 240, 100, 0.1);
  border: 1px solid rgba(0, 240, 100, 0.3);
  padding: 1rem;
  border-radius: 8px;
}
.error-message {
  color: #ff4646;
  background: rgba(255, 70, 70, 0.1);
  border: 1px solid rgba(255, 70, 70, 0.3);
  padding: 1rem;
  border-radius: 8px;
}

/* Footer */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid rgba(0, 240, 255, 0.1);
  padding: 3rem 0;
  text-align: center;
}
.footer p { color: var(--text-secondary); }
.footer a {
  color: var(--neon-blue);
  text-decoration: none;
  transition: var(--transition-base);
}
.footer a:hover { color: var(--neon-blue-light); text-shadow: var(--shadow-glow); }

/* Scroll to Top */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px; height: 50px;
  background: var(--gradient-accent);
  border: none;
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  transition: var(--transition-base);
  box-shadow: 0 4px 20px var(--neon-glow);
  z-index: 999;
}
.scroll-to-top.visible { opacity: 1; }
.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow-intense);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-container, .about-content, .contact-content { grid-template-columns: 1fr; gap: 3rem; }
  .hero-image, .about-image { max-width: 350px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .hamburger { display: block; }
  .hero { padding: 120px 0 60px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; text-align: center; }
  section { padding: 4rem 0; }
  .skills-grid, .projects-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container, .nav-container { padding: 0 1rem; }
  .hero-title { font-size: 2rem; }
  .profile-card, .about-card { max-width: 280px; }
  .profile-icon { font-size: 8rem; }
  .about-icon { font-size: 7rem; }
}

/* Particle Float Animation */
@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(50px);
    opacity: 0;
  }
}

/* Screen Reader Only Class for Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus Visible Styles for Keyboard Navigation */
*:focus-visible {
  outline: 2px solid var(--neon-blue);
  outline-offset: 2px;
}

.btn:focus-visible,
.nav-link:focus-visible,
.social-link:focus-visible {
  outline: 3px solid var(--neon-blue);
  outline-offset: 4px;
  box-shadow: var(--shadow-glow);
}

/* Skip to Main Content Link */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--neon-blue);
  color: var(--bg-darker);
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
  z-index: 10000;
  border-radius: 0 0 8px 0;
}

.skip-to-main:focus {
  top: 0;
}

/* Improve Text Contrast for Better Readability */
.hero-description,
.about-text p,
.project-content p {
  color: #cbd5e1;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --text-secondary: #e2e8f0;
    --text-muted: #cbd5e1;
  }
  
  .btn-outline,
  .btn-secondary {
    border-width: 3px;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
