/* ============= CSS VARIABLES ============= */
:root {
  --neon-blue: #00bfff;
  --neon-cyan: #00f0ff;
  --neon-purple: #8a2be2;
  --dark-bg: rgba(10, 20, 40, 0.3);
  --glass-bg: rgba(15, 25, 45, 0.25);
  --glass-border: rgba(0, 191, 255, 0.3);
  --text-primary: #ffffff;
  --text-secondary: #b8c5d6;
  
  --font-heading: 'Orbitron', monospace;
  --font-body: 'Poppins', sans-serif;
  
  --glow-sm: 0 0 10px var(--neon-cyan);
  --glow-md: 0 0 20px var(--neon-cyan), 0 0 40px var(--neon-blue);
  --glow-lg: 0 0 30px var(--neon-cyan), 0 0 60px var(--neon-blue), 0 0 90px var(--neon-purple);
}

/* ============= RESET ============= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: #000;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============= PARTICLES OVERLAY ============= */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

/* ============= VIDEO BACKGROUND ============= */
#space-bg {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -3;
  opacity: 0.7;
  pointer-events: none;
  transform: none !important;
}

/* ============= GLASSMORPHISM UTILITIES ============= */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glow-text {
  text-shadow: var(--glow-sm);
  color: var(--neon-cyan);
}

.glow-paragraph {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* ============= CUSTOM SCROLLBAR ============= */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
  background: var(--neon-cyan);
  border-radius: 10px;
  box-shadow: var(--glow-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-blue);
  box-shadow: var(--glow-md);
}

/* ============= NAVBAR ============= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 5%;
  background: rgba(10, 20, 40, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.4s ease;
}

.navbar.scrolled {
  padding: 15px 5%;
  background: rgba(10, 20, 40, 0.7);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 3px;
  animation: glow-pulse 3s infinite;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 1px;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon-cyan);
  box-shadow: var(--glow-sm);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--neon-cyan);
  text-shadow: var(--glow-sm);
}

.nav-link:hover::before {
  width: 100%;
}

/* ============= HERO SECTION ============= */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 5%;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: 8px;
  margin-bottom: 20px;
  text-shadow: var(--glow-lg);
}

.typewriter-container {
  min-height: 80px;
  margin-bottom: 40px;
}

.typewriter {
  font-size: 1.8rem;
  color: var(--text-secondary);
  font-weight: 300;
}

.typewriter::after {
  content: '|';
  animation: blink 1s infinite;
  margin-left: 5px;
}

.hero-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============= NEON BUTTONS ============= */
.neon-btn {
  padding: 15px 40px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-decoration: none;
  color: var(--neon-cyan);
  background: var(--glass-bg);
  border: 2px solid var(--neon-cyan);
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: inline-block;
}

.neon-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.neon-btn:hover::before {
  left: 100%;
}

.neon-btn:hover {
  box-shadow: var(--glow-md);
  transform: translateY(-3px) scale(1.05);
  border-color: var(--neon-blue);
  color: #fff;
}

.neon-btn.outline {
  background: transparent;
}

.neon-btn.small {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* ============= SECTIONS ============= */
.section {
  padding: 120px 5%;
  position: relative;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  text-align: center;
  letter-spacing: 5px;
  margin-bottom: 80px;
  position: relative;
  animation: glow-pulse 3s infinite;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--neon-cyan);
  box-shadow: var(--glow-md);
}

/* ============= ABOUT SECTION ============= */
.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.profile-img {
  position: relative;
  width: 350px;
  height: 350px;
  margin: 0 auto;
}

.glow-ring {
  position: absolute;
  top: -15px;
  left: -15px;
  width: calc(100% + 30px);
  height: calc(100% + 30px);
  border-radius: 50%;
  border: 3px solid var(--neon-cyan);
  box-shadow: var(--glow-lg);
  animation: rotate-ring 10s linear infinite, glow-pulse 2s infinite;
}

.profile-img img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--glass-border);
  filter: drop-shadow(0 0 30px rgba(0, 191, 255, 0.5));
}

.about-text p {
  font-size: 1.2rem;
  line-height: 2;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.fun-facts {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.fact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.fact-item:hover {
  transform: translateX(10px);
  box-shadow: var(--glow-sm);
  border-color: var(--neon-cyan);
}

.fact-icon {
  font-size: 1.8rem;
}

/* ============= SKILLS SECTION ============= */
.skills-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.skill-group {
  background: var(--glass-bg);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: all 0.4s ease;
}

.skill-group:hover {
  transform: translateY(-10px);
  box-shadow: var(--glow-md);
  border-color: var(--neon-cyan);
}

.skill-group h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 2px;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.skill-item {
  padding: 12px 25px;
  background: rgba(0, 191, 255, 0.1);
  border: 2px solid var(--neon-cyan);
  border-radius: 25px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.skill-item:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: var(--glow-md);
  transform: scale(1.1);
}

/* ============= PROJECTS SECTION ============= */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  overflow: hidden;
  transition: all 0.4s ease;
}

.project-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--glow-lg);
  border-color: var(--neon-cyan);
}

.project-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-info {
  padding: 30px;
}

.project-info h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.project-info p {
  color: var(--text-secondary);
  margin-bottom: 15px;
  line-height: 1.8;
}

.project-tech {
  color: var(--neon-cyan);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.project-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ============= JOURNEY TIMELINE ============= */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--neon-cyan), var(--neon-purple));
  box-shadow: var(--glow-sm);
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.timeline-item:nth-child(odd) {
  justify-content: flex-start;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--neon-cyan);
  border-radius: 50%;
  border: 4px solid rgba(0, 191, 255, 0.3);
  box-shadow: var(--glow-md);
  z-index: 1;
  animation: pulse-dot 2s infinite;
}

.timeline-content {
  width: 45%;
  padding: 30px;
  transition: all 0.4s ease;
}

.timeline-item:nth-child(odd) .timeline-content {
  text-align: right;
}

.timeline-content:hover {
  transform: translateY(-10px);
  box-shadow: var(--glow-lg);
}

.timeline-date {
  display: inline-block;
  padding: 5px 15px;
  background: var(--neon-cyan);
  color: #000;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 20px;
  margin-bottom: 15px;
}

.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--neon-cyan);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.timeline-content p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============= CONTACT SECTION ============= */
.contact-content {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
}

.contact-form {
  padding: 40px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  background: rgba(0, 191, 255, 0.05);
  border: 2px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: var(--glow-sm);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-secondary);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.social-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  border-radius: 50%;
  color: var(--neon-cyan);
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.social-icon svg {
  width: 28px;
  height: 28px;
}

.social-icon:hover {
  transform: translateY(-5px) rotate(360deg);
  box-shadow: var(--glow-md);
  border-color: var(--neon-cyan);
}

/* ============= FOOTER ============= */
footer {
  padding: 30px 5%;
  text-align: center;
  background: var(--dark-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
}

.footer-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ============= SCROLL TO TOP ============= */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  border: 2px solid var(--neon-cyan);
  border-radius: 50%;
  color: var(--neon-cyan);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 999;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow-md);
}

.scroll-top svg {
  width: 24px;
  height: 24px;
}

/* ============= RESPONSIVE DESIGN ============= */

/* Tablets and below (768px) */
@media (max-width: 768px) {
  .navbar {
    padding: 15px 3%;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .logo {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }
  
  .nav-links {
    gap: 15px;
    font-size: 0.85rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
    letter-spacing: 3px;
  }
  
  .typewriter {
    font-size: 1.2rem;
  }
  
  .typewriter-container {
    min-height: 60px;
  }
  
  .hero-btns {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  .neon-btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  
  .section {
    padding: 80px 3%;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 50px;
  }
  
  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .profile-img {
    width: 250px;
    height: 250px;
  }
  
  .about-text p {
    font-size: 1rem;
  }
  
  .skills-row {
    grid-template-columns: 1fr;
  }
  
  .project-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    justify-content: flex-start !important;
    padding-left: 60px;
  }
  
  .timeline-dot {
    left: 20px;
  }
  
  .timeline-content {
    width: 100%;
    text-align: left !important;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .social-links {
    flex-direction: row;
  }
  
  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
  
  #space-bg {
    opacity: 0.5;
  }
}

/* Mobile phones (480px) */
@media (max-width: 480px) {
  .navbar {
    padding: 10px 3%;
  }
  
  .logo {
    font-size: 1.1rem;
  }
  
  .nav-links {
    gap: 10px;
    font-size: 0.75rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
    letter-spacing: 2px;
  }
  
  .typewriter {
    font-size: 1rem;
  }
  
  .section {
    padding: 60px 3%;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .profile-img {
    width: 200px;
    height: 200px;
  }
  
  .skill-group {
    padding: 25px;
  }
  
  .skill-item {
    font-size: 0.85rem;
    padding: 10px 20px;
  }
  
  .neon-btn {
    font-size: 0.9rem;
    padding: 12px 30px;
  }
  
  .contact-form {
    padding: 25px;
  }
  
  #space-bg {
    opacity: 0.4;
  }
}
