/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #06060f;
  --bg2: #0d0d1a;
  --bg3: #111128;
  --card: #13132a;
  --card-border: rgba(255,255,255,0.07);
  --cyan: #00d4ff;
  --purple: #7b2fff;
  --grad: linear-gradient(135deg, #00d4ff, #7b2fff);
  --grad-text: linear-gradient(135deg, #00d4ff 0%, #a855f7 50%, #7b2fff 100%);
  --text: #e2e8f0;
  --muted: #8892a4;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
strong { color: var(--white); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== GRADIENT TEXT ===== */
.grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== SECTION COMMON ===== */
section {
  padding: 100px 0;
}

.section-label {
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 60px;
  line-height: 1.2;
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
  padding: 0;
}

#navbar.scrolled {
  background: rgba(6,6,15,0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 22px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: default;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
  pointer-events: none;
}

.glow-1 {
  width: 600px; height: 600px;
  background: var(--purple);
  top: -200px; left: -100px;
  animation: float 8s ease-in-out infinite;
}

.glow-2 {
  width: 500px; height: 500px;
  background: var(--cyan);
  bottom: -100px; right: -100px;
  animation: float 10s ease-in-out infinite reverse;
}

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

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-tag {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 400;
}

.hero-name {
  font-size: clamp(44px, 8vw, 80px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: -2px;
}

.hero-title {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 600;
  margin-bottom: 24px;
  min-height: 2em;
}

.typed {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.typed-cursor {
  -webkit-text-fill-color: var(--cyan);
  animation: blink 1s infinite;
}

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

.hero-desc {
  font-size: 17px;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--grad);
  color: var(--white);
  box-shadow: 0 4px 24px rgba(123,47,255,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(123,47,255,0.6);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.2);
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.hero-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  padding: 6px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  font-size: 13px;
  color: var(--muted);
  font-family: 'Fira Code', monospace;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.3; }
}

/* ===== ABOUT ===== */
#about {
  background: var(--bg2);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}

.about-text p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.9;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.stat {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 26px;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.about-card {
  position: sticky;
  top: 100px;
}

.card-inner {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.profile-icon {
  width: 90px; height: 90px;
  margin: 0 auto 16px;
}

.profile-icon svg { width: 100%; height: 100%; }

.card-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.card-role {
  font-size: 14px;
  color: var(--cyan);
  margin-bottom: 24px;
  font-family: 'Fira Code', monospace;
}

.card-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.card-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
  word-break: break-all;
}

.card-link svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--cyan); }
.card-link:hover { color: var(--white); }

/* ===== SKILLS ===== */
#skills {
  background: var(--bg);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.skill-group {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s;
}

.skill-group:hover {
  border-color: rgba(0,212,255,0.3);
  transform: translateY(-4px);
}

.skill-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.skill-icon { font-size: 24px; }

.skill-group-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags span {
  padding: 5px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50px;
  font-size: 13px;
  color: var(--muted);
  font-family: 'Fira Code', monospace;
  transition: all 0.2s;
}

.skill-tags span:hover {
  background: rgba(0,212,255,0.1);
  border-color: var(--cyan);
  color: var(--cyan);
}

.skill-tags span.highlight {
  background: rgba(123,47,255,0.12);
  border-color: rgba(123,47,255,0.35);
  color: #c084fc;
}

/* ===== EXPERIENCE ===== */
#experience {
  background: var(--bg2);
}

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 16px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan), var(--purple), transparent);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-dot {
  position: absolute;
  left: -36px;
  top: 22px;
  width: 14px; height: 14px;
  background: var(--grad);
  border-radius: 50%;
  border: 3px solid var(--bg2);
  box-shadow: 0 0 12px rgba(0,212,255,0.5);
}

.timeline-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 32px;
  transition: border-color 0.3s;
}

.timeline-card:hover { border-color: rgba(0,212,255,0.2); }

.tl-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}

.tl-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.tl-company {
  font-size: 14px;
  color: var(--cyan);
  font-family: 'Fira Code', monospace;
}

.tl-date {
  font-size: 13px;
  color: var(--muted);
  background: rgba(255,255,255,0.05);
  padding: 4px 14px;
  border-radius: 50px;
  white-space: nowrap;
}

.tl-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tl-list li {
  font-size: 14.5px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.7;
}

.tl-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 12px;
}

/* ===== PROJECTS ===== */
#projects {
  background: var(--bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover {
  border-color: rgba(0,212,255,0.2);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

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

.project-card.featured {
  border-color: rgba(123,47,255,0.3);
}

.project-card.featured::before { opacity: 1; }

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-badge {
  font-size: 11px;
  font-family: 'Fira Code', monospace;
  color: #c084fc;
  background: rgba(123,47,255,0.15);
  border: 1px solid rgba(123,47,255,0.3);
  padding: 3px 10px;
  border-radius: 50px;
  letter-spacing: 1px;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  transition: all 0.2s;
}

.project-links a:hover {
  background: rgba(0,212,255,0.1);
  color: var(--cyan);
}

.project-links a svg { width: 16px; height: 16px; }

.project-icon {
  font-size: 36px;
  margin: 4px 0;
}

.project-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

.project-sub {
  font-size: 12px;
  color: var(--cyan);
  font-family: 'Fira Code', monospace;
}

.project-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.project-tags span {
  padding: 4px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 50px;
  font-size: 11px;
  color: var(--muted);
  font-family: 'Fira Code', monospace;
}

/* ===== EDUCATION & CERTS ===== */
#education {
  background: var(--bg2);
}

.edu-certs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.block-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--card-border);
}

.edu-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  transition: border-color 0.3s;
}

.edu-item:hover { border-color: rgba(0,212,255,0.2); }

.edu-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.edu-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.edu-org {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.edu-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.edu-meta span {
  font-size: 12px;
  color: var(--muted);
  font-family: 'Fira Code', monospace;
}

.edu-cgpa {
  background: rgba(0,212,255,0.1);
  color: var(--cyan) !important;
  padding: 2px 10px;
  border-radius: 50px;
  border: 1px solid rgba(0,212,255,0.2);
}

.certs-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cert-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  transition: border-color 0.3s;
}

.cert-item:hover { border-color: rgba(0,212,255,0.2); }

.cert-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.cert-dot.azure { background: #0078d4; box-shadow: 0 0 8px #0078d4; }
.cert-dot.aws { background: #ff9900; box-shadow: 0 0 8px #ff9900; }
.cert-dot.anthropic { background: var(--purple); box-shadow: 0 0 8px var(--purple); }

.cert-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.cert-issuer {
  font-size: 12px;
  color: var(--muted);
  font-family: 'Fira Code', monospace;
}

/* ===== CONTACT ===== */
#contact {
  background: var(--bg);
  text-align: center;
}

.contact-desc {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  margin: -30px auto 60px;
  line-height: 1.8;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 20px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.contact-card:hover {
  border-color: rgba(0,212,255,0.3);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.cc-icon {
  width: 48px; height: 48px;
  background: var(--grad);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cc-icon svg {
  width: 22px; height: 22px;
  color: white;
}

.cc-label {
  font-size: 12px;
  color: var(--muted);
  font-family: 'Fira Code', monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cc-value {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  word-break: break-all;
  text-align: center;
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--card-border);
  padding: 32px 0;
  text-align: center;
}

footer p {
  font-size: 14px;
  color: var(--muted);
}

.footer-copy {
  font-size: 12px;
  margin-top: 6px;
  color: rgba(136,146,164,0.5) !important;
}

/* ===== ANIMATIONS ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-card { position: static; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .edu-certs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: rgba(6,6,15,0.97); padding: 20px; gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  section { padding: 72px 0; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .tl-header { flex-direction: column; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 400px) {
  .contact-cards { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: center; }
}
