/* ===== ROOT VARIABLES ===== */
:root {
  --bg: #050510;
  --bg2: #0a0a1f;
  --purple: #7c3aed;
  --purple-light: #a855f7;
  --blue: #2563eb;
  --blue-light: #60a5fa;
  --neon-purple: #b14aed;
  --neon-blue: #00d4ff;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(139,92,246,0.2);
  --glow-purple: 0 0 20px rgba(124,58,237,0.5);
  --glow-blue: 0 0 20px rgba(0,212,255,0.4);
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  overflow-x: hidden;
}

/* ===== PARTICLES ===== */
#particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(5,5,16,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}
.nav-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--purple-light);
  letter-spacing: 2px;
}
.nav-logo .dot { color: var(--neon-blue); }
.nav-links { display: flex; list-style: none; gap: 1.8rem; }
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--neon-blue));
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--neon-blue); }
.nav-links a:hover::after { width: 100%; }
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: var(--purple-light); }

/* ===== SECTION BASE ===== */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text);
  letter-spacing: 2px;
}
.section-title span {
  background: linear-gradient(90deg, var(--purple-light), var(--neon-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== GLASS CARD ===== */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
}
.glass-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--glow-purple);
  border-color: var(--purple-light);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 4rem;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding-top: 5rem;
}
.hero-left { flex: 1; }
.hero-greeting {
  font-size: 1.1rem;
  color: var(--neon-blue);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.hero-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, var(--purple-light) 50%, var(--neon-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}
.hero-roles {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  color: var(--purple-light);
  min-height: 2rem;
  margin-bottom: 1.5rem;
}
.cursor {
  animation: blink 0.8s infinite;
  color: var(--neon-blue);
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.hero-desc {
  color: var(--text-dim);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 500px;
}
.hero-btns { display: flex; gap: 1rem; margin-bottom: 2rem; }
.btn {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  box-shadow: var(--glow-purple);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(124,58,237,0.7);
}
.btn-secondary {
  background: transparent;
  color: var(--neon-blue);
  border: 2px solid var(--neon-blue);
}
.btn-secondary:hover {
  background: var(--neon-blue);
  color: #000;
  transform: translateY(-3px);
}
.social-links { display: flex; gap: 1rem; }
.social-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  text-decoration: none;
  transition: all 0.3s;
}
.social-icon svg { width: 20px; height: 20px; }
.social-icon:hover {
  color: var(--neon-blue);
  border-color: var(--neon-blue);
  box-shadow: var(--glow-blue);
  transform: translateY(-3px);
}

/* ===== PHOTO ===== */
.hero-right { flex: 0 0 auto; }
.photo-container {
  position: relative;
  width: 320px; height: 320px;
  display: flex; align-items: center; justify-content: center;
}
.photo-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: spin 8s linear infinite;
}
.ring1 {
  width: 310px; height: 310px;
  border-top-color: var(--purple-light);
  border-right-color: var(--purple-light);
  animation-duration: 6s;
}
.ring2 {
  width: 340px; height: 340px;
  border-bottom-color: var(--neon-blue);
  border-left-color: var(--neon-blue);
  animation-duration: 9s;
  animation-direction: reverse;
}
.ring3 {
  width: 370px; height: 370px;
  border-top-color: rgba(124,58,237,0.3);
  border-right-color: rgba(0,212,255,0.3);
  animation-duration: 14s;
}
@keyframes spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
.photo-glow {
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.3) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1);opacity:0.7} 50%{transform:scale(1.1);opacity:1} }
.profile-photo {
  width: 260px; height: 260px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 4px solid var(--purple);
  box-shadow: 0 0 40px rgba(124,58,237,0.5), 0 0 80px rgba(0,212,255,0.2);
  position: relative;
  z-index: 1;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  padding-bottom: 2rem;
}
.scroll-dot {
  width: 6px; height: 40px;
  border-radius: 3px;
  background: linear-gradient(to bottom, var(--purple-light), transparent);
  animation: scrollAnim 1.5s ease-in-out infinite;
}
@keyframes scrollAnim { 0%,100%{opacity:1;transform:scaleY(1)} 50%{opacity:0.3;transform:scaleY(0.5)} }

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.about-card {
  padding: 2.5rem 2rem;
  text-align: center;
}
.about-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.about-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  color: var(--purple-light);
  margin-bottom: 0.8rem;
}
.about-card p { color: var(--text-dim); line-height: 1.7; }

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.skill-card {
  padding: 1.8rem 1.5rem;
  text-align: center;
  cursor: default;
}
.skill-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.skill-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}
.skill-bar {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--purple), var(--neon-blue));
  border-radius: 3px;
  transition: width 1.5s ease;
  box-shadow: 0 0 10px rgba(0,212,255,0.5);
}

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.project-card {
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--neon-blue));
}
.project-tag {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  background: rgba(124,58,237,0.2);
  border: 1px solid var(--purple);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--purple-light);
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
.project-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.project-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.8rem;
  line-height: 1.4;
}
.project-card p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1rem; }
.project-tech { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.2rem; }
.project-tech span {
  padding: 0.2rem 0.6rem;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--neon-blue);
}
.project-links { display: flex; gap: 0.8rem; }
.proj-btn {
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--purple);
  color: var(--purple-light);
  transition: all 0.3s;
}
.proj-btn:hover { background: var(--purple); color: #fff; }
.proj-btn-live { border-color: var(--neon-blue); color: var(--neon-blue); }
.proj-btn-live:hover { background: var(--neon-blue); color: #000; }

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 3rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 1rem; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--purple), var(--neon-blue), transparent);
}
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}
.timeline-dot {
  position: absolute;
  left: -2.4rem;
  top: 1.2rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--purple-light);
  box-shadow: 0 0 10px var(--purple-light);
  border: 2px solid var(--bg);
}
.timeline-card { padding: 1.5rem 2rem; }
.timeline-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  border-radius: 10px;
  font-size: 0.7rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.timeline-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.timeline-org { color: var(--neon-blue); font-size: 0.9rem; margin-bottom: 0.5rem; font-weight: 600; }
.timeline-card p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.6; }

/* ===== ACHIEVEMENTS ===== */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.achievement-card {
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.achievement-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--neon-blue));
}
.ach-icon { font-size: 3rem; margin-bottom: 1rem; }
.achievement-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  color: var(--purple-light);
  margin-bottom: 1rem;
  line-height: 1.4;
}
.achievement-card p { color: var(--text-dim); line-height: 1.7; font-size: 0.95rem; }

/* ===== CERTIFICATIONS ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.cert-card {
  padding: 2rem 1.5rem;
  text-align: center;
}
.cert-logo { font-size: 2rem; margin-bottom: 0.8rem; }
.cert-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  color: var(--purple-light);
  margin-bottom: 0.4rem;
}
.cert-card p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 0.8rem; }
.cert-badge {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(0,212,255,0.2));
  border: 1px solid var(--purple);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--neon-blue);
  font-weight: 700;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.contact-card {
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
}
.contact-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.contact-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  color: var(--purple-light);
  margin-bottom: 0.5rem;
}
.contact-card p { color: var(--text-dim); font-size: 0.85rem; word-break: break-all; }

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-dim);
}
.footer span {
  background: linear-gradient(90deg, var(--purple-light), var(--neon-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}
.footer-sub { font-size: 0.8rem; margin-top: 0.3rem; opacity: 0.5; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .navbar { padding: 1rem 1.5rem; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: rgba(5,5,16,0.97); padding: 1rem; }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
  .hero { padding: 0 1.5rem; }
  .hero-content { flex-direction: column-reverse; text-align: center; }
  .hero-name { font-size: 2.2rem; }
  .hero-btns { justify-content: center; }
  .social-links { justify-content: center; }
  .photo-container { width: 220px; height: 220px; }
  .profile-photo { width: 180px; height: 180px; }
  .ring1 { width: 210px; height: 210px; }
  .ring2 { width: 235px; height: 235px; }
  .ring3 { width: 260px; height: 260px; }
  .section { padding: 4rem 1.5rem; }
  .about-grid, .achievements-grid, .cert-grid { grid-template-columns: 1fr; }
  .projects-grid, .skills-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== PROJECT IMAGE ===== */
.project-img {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid rgba(124,58,237,0.3);
}
.project-img svg {
  width: 100%;
  height: auto;
  display: block;
}
.project-card:hover .project-img {
  border-color: var(--neon-blue);
  box-shadow: 0 0 15px rgba(0,212,255,0.2);
}

/* ===== CONTACT REDESIGN ===== */
.contact-subtitle {
  text-align: center;
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  line-height: 1.8;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.contact-desc {
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1rem;
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 1.4rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}
.contact-info-item:hover {
  border-color: var(--neon-blue);
  transform: translateX(6px);
}
.ci-icon {
  font-size: 1.5rem;
  width: 44px; height: 44px;
  background: rgba(124,58,237,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ci-label {
  font-size: 0.75rem;
  color: var(--purple-light);
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.ci-value {
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* ===== FORM ===== */
.contact-right {
  padding: 2.5rem 2rem;
}
.form-group {
  margin-bottom: 1.4rem;
}
.form-label {
  display: block;
  font-size: 0.8rem;
  color: var(--neon-blue);
  font-family: 'Orbitron', monospace;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-input::placeholder { color: rgba(255,255,255,0.2); }
.form-input:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 12px rgba(0,212,255,0.15);
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
}
.form-submit {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--purple), var(--neon-blue));
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 0.5rem;
}
.form-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(0,212,255,0.4);
}
.form-note {
  text-align: center;
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: #00ff88;
  min-height: 1.2rem;
}
@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* ===== RESUME DOWNLOAD BUTTON ===== */
.btn-resume {
  background: transparent;
  color: #00ff88;
  border: 2px solid #00ff88;
  animation: resumePulse 2s ease-in-out infinite;
}
.btn-resume:hover {
  background: #00ff88;
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(0,255,136,0.5);
  animation: none;
}
@keyframes resumePulse {
  0%, 100% { box-shadow: 0 0 0px rgba(0,255,136,0.3); }
  50% { box-shadow: 0 0 15px rgba(0,255,136,0.6); }
}
