/* Root Variables */
:root {
  --primary-bg: #0a0a0f;
  --secondary-bg: #1a1a2e;
  --card-bg: #16213e;
  --accent-primary: #00ff88;
  --accent-secondary: #0066ff;
  --accent-tertiary: #ff6b6b;
  --text-primary: #ffffff;
  --text-secondary: #b8c2cc;
  --text-muted: #8892b0;
  --gradient-primary: linear-gradient(135deg, #00ff88, #0066ff);
  --gradient-secondary: linear-gradient(135deg, #ff6b6b, #feca57);
  --shadow-glow: 0 0 20px rgba(0, 255, 136, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --font-primary: 'Orbitron', monospace;
  --font-secondary: 'Inter', sans-serif;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
  --galaxy-speed: 20s;
  --dot-size: 2px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-secondary);
  background: var(--primary-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Galaxy Animation Background - Enhanced */
.galaxy-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  perspective: 1000px;
  transform-style: preserve-3d;
  background: 
    radial-gradient(ellipse at 20% 80%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 40%, rgba(255, 107, 107, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at center, #0a0a0f 0%, #000000 100%);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.galaxy-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  transform-style: preserve-3d;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.galaxy-layer:nth-child(1) {
  opacity: 0.9;
}

.galaxy-layer:nth-child(2) {
  opacity: 0.7;
}

.galaxy-layer:nth-child(3) {
  opacity: 0.5;
}

.galaxy-layer:nth-child(4) {
  opacity: 0.3;
}

/* Enhanced Dot Styles - Less Distractive */
.dot {
  position: absolute;
  width: var(--dot-size);
  height: var(--dot-size);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 
    0 0 4px rgba(255, 255, 255, 0.6),
    0 0 8px rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
}

.dot.large {
  width: calc(var(--dot-size) * 1.8);
  height: calc(var(--dot-size) * 1.8);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 0 8px rgba(255, 255, 255, 0.8),
    0 0 16px rgba(255, 255, 255, 0.4),
    0 0 24px rgba(255, 255, 255, 0.2);
}

.dot.accent {
  background: rgba(0, 255, 136, 0.7);
  box-shadow: 
    0 0 6px rgba(0, 255, 136, 0.7),
    0 0 12px rgba(0, 255, 136, 0.4);
  width: calc(var(--dot-size) * 1.3);
  height: calc(var(--dot-size) * 1.3);
}

.dot.secondary {
  background: rgba(0, 102, 255, 0.6);
  box-shadow: 
    0 0 5px rgba(0, 102, 255, 0.6),
    0 0 10px rgba(0, 102, 255, 0.3);
}

.dot.tertiary {
  background: rgba(255, 107, 107, 0.5);
  box-shadow: 
    0 0 4px rgba(255, 107, 107, 0.5),
    0 0 8px rgba(255, 107, 107, 0.3);
}

.dot.large {
  width: calc(var(--dot-size) * 2);
  height: calc(var(--dot-size) * 2);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
}

/* Enhanced Interactive Cursor Effects */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: 
    radial-gradient(circle, rgba(0, 255, 136, 0.15) 0%, rgba(0, 102, 255, 0.1) 40%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
  mix-blend-mode: screen;
}

.cursor-glow.active {
  opacity: 1;
  animation: cursorPulse 2s ease-in-out infinite;
}

/* Mouse Trail Effects */
.mouse-trail {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 0 10px var(--accent-primary);
  animation: trailFade 0.8s ease-out forwards;
}

/* Interaction Ripple Effect */
.interaction-ripple {
  position: fixed;
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10;
  animation: rippleExpand 0.8s ease-out forwards;
}

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

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 255, 136, 0.1);
  z-index: 1000;
  transition: var(--transition);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.logo {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-decoration: none;
  letter-spacing: 2px;
  transition: var(--transition);
  text-shadow: var(--shadow-glow);
}

.logo span {
  color: var(--accent-secondary);
  font-weight: 400;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-secondary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: all var(--transition);
  transform: translateX(-50%);
  border-radius: 2px;
}

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

.nav-links a:hover::after {
  width: 80%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  padding: 0.5rem;
  border: none;
  background: transparent;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--accent-primary);
  transition: all var(--transition);
  border-radius: 2px;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

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

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

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.3s ease;
    border-left: 1px solid rgba(0, 255, 136, 0.2);
    z-index: 999;
  }
  
  .nav-links.open {
    right: 0;
  }
  
  .nav-links a {
    font-size: 1.2rem;
    padding: 1rem 2rem;
    width: 100%;
    text-align: center;
    border-radius: 0;
  }
  
  .hamburger {
    display: flex;
  }
  
  .navbar {
    padding: 1rem;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: transparent;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
  animation: slideInFromBottom 1s ease-out;
}

.glitch-wrapper {
  margin-bottom: 2rem;
  position: relative;
}

.glitch {
  font-family: var(--font-primary);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--accent-primary);
  position: relative;
  
  /* Improved visibility - reduced excessive glow */
  text-shadow: 
    0 0 8px currentColor,
    0 0 16px currentColor,
    0 0 24px var(--accent-secondary),
    0 3px 10px rgba(0, 0, 0, 0.9),
    -1px 0 2px var(--accent-tertiary),
    1px 0 2px var(--accent-secondary);
  
  /* Subtle but effective animation */
  animation: simpleGlow 3s ease-in-out infinite alternate;
  
  /* Enhanced contrast without excessive blur */
  filter: brightness(1.1) contrast(1.05) drop-shadow(0 0 12px rgba(0, 255, 136, 0.4));
}

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

.glitch::before {
  animation: glitch-anim 0.5s infinite linear alternate-reverse;
  color: var(--accent-secondary);
  z-index: -1;
  transform: translate(-2px, 0);
  text-shadow: 
    0 0 10px currentColor,
    0 0 20px currentColor;
}

.glitch::after {
  animation: glitch-anim2 1s infinite linear alternate-reverse;
  color: var(--accent-tertiary);
  z-index: -2;
  transform: translate(2px, 0);
  text-shadow: 
    0 0 10px currentColor,
    0 0 20px currentColor;
}

@keyframes simpleGlow {
  0% {
    text-shadow: 
      0 0 8px currentColor,
      0 0 16px currentColor,
      0 0 24px var(--accent-secondary),
      0 3px 10px rgba(0, 0, 0, 0.9),
      -1px 0 2px var(--accent-tertiary),
      1px 0 2px var(--accent-secondary);
  }
  100% {
    text-shadow: 
      0 0 12px currentColor,
      0 0 24px currentColor,
      0 0 36px var(--accent-secondary),
      0 5px 15px rgba(0, 0, 0, 0.95),
      -2px 0 4px var(--accent-tertiary),
      2px 0 4px var(--accent-secondary);
  }
}

/* Hero Name Styling */
.hero-name {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.hero-tagline {
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-style: italic;
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  text-align: center;
  min-width: 150px;
  cursor: pointer;
  font-family: var(--font-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 1;
}

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

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

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-primary);
  border: 2px solid var(--accent-primary);
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4);
  background: linear-gradient(135deg, #00ff88 0%, #00cc6a 50%, #00aa55 100%);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-secondary);
  border: 2px solid var(--accent-secondary);
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.btn-secondary:hover {
  background: var(--accent-secondary);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
}

.btn:active {
  transform: translateY(0);
}

/* Floating Elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.float-element {
  position: absolute;
  font-size: 2rem;
  opacity: 0.6;
  animation: float 6s ease-in-out infinite;
}

.float-element:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.float-element:nth-child(2) {
  top: 30%;
  right: 15%;
  animation-delay: 1s;
}

.float-element:nth-child(3) {
  bottom: 25%;
  left: 20%;
  animation-delay: 2s;
}

.float-element:nth-child(4) {
  bottom: 35%;
  right: 10%;
  animation-delay: 3s;
}

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

/* Section Styles */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  font-style: italic;
}

.emoji {
  font-style: normal;
}

/* About Section */
.about {
  background: var(--secondary-bg);
}

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

.profile-card {
  text-align: center;
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 255, 136, 0.1);
}

.profile-card img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-primary);
  margin-bottom: 1rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.8), 0 0 30px rgba(0, 255, 136, 0.3);
  }
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

.about-intro {
  font-size: 1.2rem !important;
  color: var(--text-primary) !important;
}

.fun-fact {
  background: rgba(0, 255, 136, 0.1);
  padding: 1rem;
  border-radius: var(--border-radius);
  border-left: 3px solid var(--accent-primary);
  font-style: italic;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
  background: var(--card-bg);
  padding: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 255, 136, 0.1);
}

.stat-number {
  display: block;
  font-family: var(--font-primary);
  font-size: 1.5rem;
  color: var(--accent-primary);
  font-weight: bold;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.project-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 255, 136, 0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

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

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
  border-color: var(--accent-primary);
}

.project-card.featured {
  border: 2px solid var(--accent-primary);
  background: linear-gradient(135deg, var(--card-bg), rgba(0, 255, 136, 0.05));
}

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

.project-tag {
  background: var(--gradient-primary);
  color: var(--primary-bg);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.project-card h3 {
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.project-tech {
  color: var(--accent-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.project-desc {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

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

.project-features span {
  background: rgba(0, 255, 136, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  color: var(--accent-primary);
}

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

.card-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.card-link:hover {
  color: var(--accent-secondary);
  transform: translateX(3px);
}

/* Skills Section */
.skills {
  background: var(--secondary-bg);
}

.skills-categories {
  display: grid;
  gap: 3rem;
}

.skill-category h3 {
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.skill-item {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 255, 136, 0.1);
  transition: var(--transition);
}

.skill-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent-primary);
  box-shadow: 0 5px 20px rgba(0, 255, 136, 0.2);
}

.skill-item i {
  font-size: 2rem;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.skill-item span {
  display: block;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.skill-bar {
  background: rgba(255, 255, 255, 0.1);
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
}

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

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

.hobby-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 255, 136, 0.1);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.hobby-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition);
}

.hobby-card:hover::before {
  opacity: 1;
}

.hobby-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-card);
}

.hobby-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.hobby-card h3 {
  color: var(--accent-primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  position: relative;
  z-index: 2;
}

.hobby-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

/* Contact Section */
.contact {
  background: var(--secondary-bg);
}

.contact-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: var(--card-bg);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-family: var(--font-secondary);
  font-size: 1rem;
  transition: var(--transition);
}

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

.form-group i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-primary);
}

.form-group textarea + i {
  top: 1rem;
  transform: none;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 255, 136, 0.1);
}

.contact-card h3 {
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.contact-item i {
  color: var(--accent-primary);
  width: 20px;
}

.contact-item a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--accent-primary);
}

.fun-facts {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 255, 136, 0.1);
}

.fun-facts h4 {
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.fun-facts ul {
  list-style: none;
}

.fun-facts li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  /* Hero Buttons Mobile */
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    min-width: 200px;
    width: 100%;
    max-width: 250px;
  }
  
  .hero-name {
    font-size: clamp(2rem, 8vw, 3rem);
    letter-spacing: 2px;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-tagline {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
  }
  
  .floating-elements {
    display: none; /* Hide floating elements on mobile for better performance */
  }
}

/* Mobile Contact Section */
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-form-wrapper {
    order: 1;
  }
  
  .contact-info {
    order: 2;
    gap: 1.5rem;
  }
  
  .wire-philosophy {
    margin-bottom: 2rem;
  }
  
  .wire-philosophy h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  .wire-philosophy ul {
    font-size: 0.9rem;
  }
  
  .contact-card,
  .fun-facts,
  .availability-card {
    padding: 1.5rem;
  }
  
  .contact-form {
    gap: 1rem;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 0.8rem 0.8rem 0.8rem 2.5rem;
    font-size: 0.9rem;
  }

  .about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
  }

  .about-intro {
    font-size: 1.2rem !important;
    color: var(--text-primary) !important;
  }

  .fun-fact {
    background: rgba(0, 255, 136, 0.1);
    padding: 1rem;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--accent-primary);
    font-style: italic;
  }

  .quick-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-top: 1.5rem;
  }

  .stat {
    padding: 1rem;
    text-align: center;
  }

  .hobby-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 255, 136, 0.1);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
  }

  .hobby-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
  }

  .hobby-card:hover::before {
    opacity: 1;
  }

  .hobby-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-card);
  }

  .hobby-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
  }

  .hobby-card h3 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    position: relative;
    z-index: 2;
  }

  .hobby-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 2;
  }
}

/* Footer */
.footer {
  background: var(--primary-bg);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid rgba(0, 255, 136, 0.1);
}

.footer p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-style: italic;
  font-size: 0.9rem;
}

/* Galaxy Animation Keyframes */
@keyframes galaxyRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.02);
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.8), 0 0 30px rgba(0, 255, 136, 0.3);
  }
}

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

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

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

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

/* Enhanced Glitch Animation */
@keyframes glitch {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
  100% {
    transform: translate(0);
  }
}

@keyframes glitch-top {
  0% {
    clip-path: polygon(0 0, 100% 0, 100% 5%, 0 5%);
  }
  20% {
    clip-path: polygon(0 15%, 100% 15%, 100% 20%, 0 20%);
  }
  40% {
    clip-path: polygon(0 10%, 100% 10%, 100% 15%, 0 15%);
  }
  60% {
    clip-path: polygon(0 30%, 100% 30%, 100% 35%, 0 35%);
  }
  80% {
    clip-path: polygon(0 70%, 100% 70%, 100% 75%, 0 75%);
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 5%, 0 5%);
  }
}

@keyframes glitch-bottom {
  0% {
    clip-path: polygon(0 85%, 100% 85%, 100% 90%, 0 90%);
  }
  20% {
    clip-path: polygon(0 60%, 100% 60%, 100% 65%, 0 65%);
  }
  40% {
    clip-path: polygon(0 95%, 100% 95%, 100% 100%, 0 100%);
  }
  60% {
    clip-path: polygon(0 20%, 100% 20%, 100% 25%, 0 25%);
  }
  80% {
    clip-path: polygon(0 40%, 100% 40%, 100% 45%, 0 45%);
  }
  100% {
    clip-path: polygon(0 85%, 100% 85%, 100% 90%, 0 90%);
  }
}

/* Particle Trail Animation */
@keyframes particleTrail {
  0% {
    transform: translateX(0) translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(200px) translateY(-100px) scale(0);
    opacity: 0;
  }
}

/* Enhanced Animation Keyframes for Interactive Effects */
@keyframes cursorPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.8;
  }
}

@keyframes trailFade {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.1);
    opacity: 0;
  }
}

@keyframes rippleExpand {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
    transform: translate(-50%, -50%);
  }
  100% {
    width: 100px;
    height: 100px;
    opacity: 0;
    transform: translate(-50%, -50%);
  }
}

@keyframes galaxyPulse {
  0% {
    transform: scale(1) rotateZ(0deg);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.3) rotateZ(180deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotateZ(360deg);
    opacity: 0.8;
  }
}

@keyframes starBirth {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.5);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

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

/* ========================================
   PERFORMANCE & OPTIMIZATION STYLES
   ======================================== */

/* GPU Acceleration for smooth animations */
.galaxy-container,
.galaxy-layer,
.dot,
.custom-cursor,
.mouse-trail,
.interaction-ripple {
  will-change: transform, opacity;
  transform: translateZ(0); /* Force hardware acceleration */
  backface-visibility: hidden;
  perspective: 1000px;
}

/* MOBILE RESPONSIVENESS FIX FOR ABOUT SECTION */
@media screen and (max-width: 768px) {
  /* Force About section to single column layout */
  section#about .about-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2rem !important;
    padding: 1rem !important;
    grid-template-columns: none !important;
    grid: none !important;
  }

  /* Image container - force to top */
  section#about .about-img {
    order: -1 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 1rem !important;
  }

  /* Profile card mobile styling */
  section#about .about-img .profile-card {
    max-width: 280px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  /* Profile image mobile sizing */
  section#about .about-img .profile-card img {
    width: 150px !important;
    height: 150px !important;
    max-width: 150px !important;
    max-height: 150px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
  }

  /* Text container - force to bottom */
  section#about .about-text {
    order: 1 !important;
    width: 100% !important;
    text-align: left !important;
    padding: 0 1rem !important;
  }

  /* Projects and Skills mobile fixes */
  .projects-grid,
  .skills-grid,
  .hobbies-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Quick stats mobile fix */
  .quick-stats {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

/* Extra small screens */
@media screen and (max-width: 480px) {
  section#about .about-img .profile-card img {
    width: 120px !important;
    height: 120px !important;
  }

  section#about .about-text {
    font-size: 0.9rem !important;
    padding: 0 0.5rem !important;
  }
}

/* Optimize mobile animations */
@media (max-width: 768px) {
  .galaxy-container {
    transform: translateZ(0) scale(1);
  }
  
  .galaxy-layer {
    animation-duration: 40s; /* Slower on mobile for better performance */
  }
  
  .dot {
    animation-duration: 6s; /* Slower twinkle on mobile */
  }
}

/* Reduce animation complexity when user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .galaxy-container,
  .galaxy-layer,
  .dot {
    animation: none !important;
  }
  
  .custom-cursor {
    display: none !important;
  }
  
  .mouse-trail,
  .interaction-ripple {
    display: none !important;
  }
}

/* Navigation active state for scrollspy */
.nav-links a.active {
  color: var(--accent-primary);
  background: rgba(0, 255, 136, 0.1);
  border-radius: 8px;
  transform: translateY(-2px);
}

.nav-links a.active::after {
  width: 100%;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
}

/* Add this after line 1613 in styles.css */

/* Remove progress bars and add cool tooltips */
/* Replace ALL existing tooltip styles (lines 1614-1876) with this clean version */

/* REPLACE lines 1614-1817 with this CLEAN, WORKING version */

/* Remove progress bars completely */
.skill-bar,
.skill-progress {
  display: none !important;
}

/* Fix skills grid spacing */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
  overflow: visible !important;
}

/* Clean skill item styling with working tooltips */
.skill-item {
  background: var(--card-bg);
  padding: 1.2rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 255, 136, 0.1);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  cursor: pointer;
  overflow: visible;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.skill-item:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.skill-item i {
  font-size: 2.2rem;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
  display: block;
}

.skill-item:hover i {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.6));
}

.skill-item span {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  margin: 0;
  text-align: center;
}

/* WORKING tooltip styles */
.skill-tooltip {
  position: absolute;
  bottom: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 10, 15, 0.95);
  color: var(--text-primary);
  padding: 1rem 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--accent-primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
  font-size: 0.85rem;
  line-height: 1.4;
  max-width: 280px;
  min-width: 260px;
  text-align: left;
  pointer-events: none;
  white-space: normal;
}

/* Tooltip arrow */
.skill-tooltip::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: var(--accent-primary);
}

/* CRITICAL: Show tooltip on hover */
.skill-item:hover .skill-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

/* Tooltip content */
.tooltip-title {
  color: var(--accent-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.tooltip-text {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.5;
}

/* Ensure containers allow overflow */
.skill-category {
  overflow: visible;
  margin-bottom: 3rem;
}

.skills-categories {
  overflow: visible;
}

.skills.section {
  overflow: visible;
}

/* Superpower skill items - special styling */
.skill-item.superpower {
  background: linear-gradient(135deg, var(--card-bg), rgba(0, 255, 136, 0.05));
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.skill-item.superpower:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 15px 40px rgba(0, 255, 136, 0.3);
}

/* Mobile fixes */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1.5rem 0;
  }
  
  .skill-item {
    padding: 1rem;
    min-height: 100px;
  }
  
  .skill-item i {
    font-size: 1.8rem;
  }
  
  .skill-item span {
    font-size: 0.85rem;
  }
  
  .skill-tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    min-width: auto;
    width: 85vw;
    z-index: 99999;
  }
  
  .skill-item:hover .skill-tooltip {
    transform: translate(-50%, -50%);
  }
  
  .skill-tooltip::before {
    display: none;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  
  .skill-item {
    padding: 0.8rem;
    min-height: 90px;
  }
  
  .skill-item i {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
  }
  
  .skill-item span {
    font-size: 0.8rem;
  }
}

/* Font Awesome Icon Fallbacks - Add this after line 1870 */

/* Fallback for missing Font Awesome icons */
.skill-item i::before {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", sans-serif !important;
  font-weight: 900;
}

/* If Font Awesome fails, show emoji fallbacks */
.fa-python::before { content: "🐍"; font-family: inherit; }
.fa-java::before { content: "☕"; font-family: inherit; }
.fa-js-square::before { content: "🚀"; font-family: inherit; }
.fa-react::before { content: "⚛️"; font-family: inherit; }
.fa-flask::before { content: "🌶️"; font-family: inherit; }
.fa-html5::before { content: "🏗️"; font-family: inherit; }
.fa-css3-alt::before { content: "🎨"; font-family: inherit; }
.fa-dharmachakra::before { content: "☸️"; font-family: inherit; }
.fa-aws::before { content: "☁️"; font-family: inherit; }
.fa-docker::before { content: "🐳"; font-family: inherit; }
.fa-git-alt::before { content: "🌿"; font-family: inherit; }
.fa-chart-line::before { content: "📊"; font-family: inherit; }
.fa-brain::before { content: "🧠"; font-family: inherit; }
.fa-language::before { content: "🗣️"; font-family: inherit; }
.fa-database::before { content: "🗄️"; font-family: inherit; }
.fa-bug::before { content: "🔍"; font-family: inherit; }
.fa-users::before { content: "👥"; font-family: inherit; }
.fa-clock::before { content: "⏰"; font-family: inherit; }
.fa-crown::before { content: "👑"; font-family: inherit; }
.fa-code::before { content: "💻"; font-family: inherit; }
.fa-globe::before { content: "🌐"; font-family: inherit; }
.fa-server::before { content: "🖥️"; font-family: inherit; }
.fa-magic::before { content: "✨"; font-family: inherit; }

/* Ensure icons are displayed */
.skill-item i {
  display: inline-block !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto !important;
  line-height: 1 !important;
}

/* Add this after your existing tooltip styles (around line 1870) */

/* Mobile tooltip fixes - replace existing mobile section */
@media (max-width: 768px) {
  /* Disable hover on mobile, use tap instead */
  .skill-item:hover .skill-tooltip {
    opacity: 0 !important;
    visibility: hidden !important;
  }
  
  /* Mobile tap-to-show tooltip */
  .skill-item.active .skill-tooltip {
    opacity: 1 !important;
    visibility: visible !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: 90vw !important;
    min-width: auto !important;
    width: 85vw !important;
    z-index: 999999 !important;
    background: rgba(5, 5, 10, 0.98) !important;
    border: 2px solid var(--accent-primary) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9) !important;
  }
  
  .skill-tooltip::before,
  .skill-tooltip::after {
    display: none !important;
  }
  
  /* Add close button for mobile tooltips */
  .skill-tooltip::before {
    content: '✕';
    position: absolute;
    top: 10px;
    right: 15px;
    color: var(--accent-primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: block !important;
    z-index: 10;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 1;
  }
  
  /* Grid adjustments */
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1.5rem 0;
  }
  
  .skill-item {
    padding: 1rem;
    min-height: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .skill-item:active {
    transform: scale(0.95);
  }
  
  .skill-item i {
    font-size: 1.8rem;
  }
  
  .skill-item span {
    font-size: 0.85rem;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  
  .skill-item {
    padding: 0.8rem;
    min-height: 90px;
  }
  
  .skill-item i {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
  }
  
  .skill-item span {
    font-size: 0.8rem;
  }
  
  .skill-tooltip {
    width: 90vw !important;
    max-width: 90vw !important;
    padding: 1.5rem !important;
  }
  
  .tooltip-title {
    font-size: 1rem !important;
  }
  
  .tooltip-text {
    font-size: 0.85rem !important;
  }
}


/* Add this at the end of your CSS file: */

/* Force contact icons to display */
.contact-item i {
  display: inline-block !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto !important;
  line-height: 1 !important;
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
  font-weight: 900 !important;
  width: 20px;
  text-align: center;
  margin-right: 10px;
}

/* Specific icon fixes */
.fa-envelope::before { content: "\f0e0" !important; }
.fab.fa-github::before { content: "\f09b" !important; font-weight: 400 !important; }
.fab.fa-linkedin::before { content: "\f08c" !important; font-weight: 400 !important; }
.fa-location-dot::before { content: "\f3c5" !important; }

/* Fallback for contact icons */
.contact-item i.fa-envelope::before { content: "✉️"; font-family: inherit !important; }
.contact-item i.fab.fa-github::before { content: "🐙"; font-family: inherit !important; }
.contact-item i.fab.fa-linkedin::before { content: "💼"; font-family: inherit !important; }
.contact-item i.fa-location-dot::before { content: "📍"; font-family: inherit !important; }