/* ============================================================
   ARYAN SAINI – AWS Cloud & Security Engineer Portfolio
   Main Stylesheet
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Rajdhani:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500&display=swap');

/* ── CSS Variables ── */
:root {
  --bg-primary: #020b18;
  --bg-secondary: #041223;
  --bg-card: rgba(4, 25, 50, 0.7);
  --accent-cyan: #00f5ff;
  --accent-blue: #0066ff;
  --accent-green: #00ff88;
  --accent-purple: #7b2fff;
  --text-primary: #e8f4ff;
  --text-secondary: #8ab3d4;
  --text-muted: #4a7a9b;
  --border-glow: rgba(0, 245, 255, 0.2);
  --gradient-hero: linear-gradient(135deg, #020b18 0%, #041223 50%, #060d1a 100%);
  --gradient-accent: linear-gradient(135deg, #00f5ff, #0066ff);
  --gradient-green: linear-gradient(135deg, #00ff88, #00b4ff);
  --shadow-glow: 0 0 30px rgba(0, 245, 255, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --font-display: 'Orbitron', monospace;
  --font-body: 'Rajdhani', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 12px;
  --radius-lg: 20px;
}

/* Light mode */
body.light-mode {
  --bg-primary: #f0f4f8;
  --bg-secondary: #e2eaf3;
  --bg-card: rgba(255, 255, 255, 0.85);
  --text-primary: #0a1628;
  --text-secondary: #2d5a8e;
  --text-muted: #5a8ab0;
  --border-glow: rgba(0, 102, 255, 0.2);
  --shadow-glow: 0 0 30px rgba(0, 102, 255, 0.1);
  --shadow-card: 0 8px 32px rgba(0, 30, 80, 0.12);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}

/* ── Scroll Progress Bar ── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-accent);
  z-index: 9999;
  transition: width 0.1s;
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* ── Preloader ── */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.5s, visibility 0.5s;
}
#preloader.hidden { opacity: 0; visibility: hidden; }

.preloader-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse-glow 1.5s ease-in-out infinite;
}

.preloader-bar {
  width: 200px;
  height: 3px;
  background: rgba(0,245,255,0.1);
  border-radius: 99px;
  overflow: hidden;
}
.preloader-bar-fill {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 99px;
  animation: load-bar 1.8s ease forwards;
}
@keyframes load-bar { 0%{width:0} 100%{width:100%} }
@keyframes pulse-glow {
  0%,100%{ text-shadow: 0 0 20px rgba(0,245,255,0.5); }
  50%{ text-shadow: 0 0 40px rgba(0,245,255,0.9), 0 0 60px rgba(0,102,255,0.5); }
}

/* ── Navbar ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(2, 11, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glow);
  transition: var(--transition);
}
body.light-mode #navbar { background: rgba(240,244,248,0.9); }

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  text-decoration: none;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; right: 50%;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 99px;
  transition: var(--transition);
  box-shadow: 0 0 8px var(--accent-cyan);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent-cyan);
  background: rgba(0,245,255,0.05);
}
.nav-links a:hover::after, .nav-links a.active::after {
  left: 16px; right: 16px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Toggle */
#theme-toggle {
  width: 42px; height: 42px;
  border: 1px solid var(--border-glow);
  border-radius: 10px;
  background: rgba(0,245,255,0.05);
  color: var(--accent-cyan);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}
#theme-toggle:hover { background: rgba(0,245,255,0.12); box-shadow: var(--shadow-glow); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--accent-cyan);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Particles Canvas ── */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Page Layout ── */
.page-content { position: relative; z-index: 1; }
main { padding-top: 70px; }

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

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

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  border: 1px solid rgba(0,245,255,0.3);
  border-radius: 99px;
  padding: 0.25rem 1rem;
  margin-bottom: 1rem;
  background: rgba(0,245,255,0.05);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
}
.section-title span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-divider {
  width: 60px; height: 3px;
  background: var(--gradient-accent);
  margin: 1rem auto 0;
  border-radius: 99px;
  box-shadow: 0 0 15px var(--accent-cyan);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--gradient-accent);
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(0,245,255,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,245,255,0.5); }

.btn-secondary {
  background: transparent;
  color: var(--accent-cyan);
  border: 1px solid rgba(0,245,255,0.4);
}
.btn-secondary:hover { background: rgba(0,245,255,0.08); border-color: var(--accent-cyan); transform: translateY(-2px); }

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; border-radius: 8px; }

/* ── Glass Card ── */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.glass-card:hover {
  border-color: rgba(0,245,255,0.4);
  box-shadow: var(--shadow-glow), var(--shadow-card);
  transform: translateY(-4px);
}

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4rem;
  min-height: calc(100vh - 70px);
  padding: 4rem 0;
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(0,245,255,0.08);
  border: 1px solid rgba(0,245,255,0.2);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 0.5rem;
}
.hero-name .first { color: var(--text-primary); }
.hero-name .last {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.hero-title {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.hero-typing {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--accent-cyan);
  margin-bottom: 2rem;
  min-height: 1.8em;
}
.cursor {
  display: inline-block;
  width: 2px; height: 1.1em;
  background: var(--accent-cyan);
  vertical-align: text-bottom;
  animation: cursor-blink 1s step-end infinite;
}
@keyframes cursor-blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-stats {
  display: flex;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glow);
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* Hero Visual */
.hero-visual {
  position: relative;
  width: 380px;
  height: 380px;
  flex-shrink: 0;
}
.hero-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(0,245,255,0.15);
  animation: orbit-spin 20s linear infinite;
}
.hero-orbit:nth-child(2) {
  inset: 30px;
  border-color: rgba(0,102,255,0.15);
  animation-duration: 15s;
  animation-direction: reverse;
}
.hero-orbit:nth-child(3) {
  inset: 60px;
  border-color: rgba(0,255,136,0.1);
  animation-duration: 25s;
}
.orbit-dot {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  top: -4px; left: 50%;
  margin-left: -4px;
  background: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
}
.hero-orbit:nth-child(2) .orbit-dot { background: var(--accent-blue); box-shadow: 0 0 12px var(--accent-blue); }
.hero-orbit:nth-child(3) .orbit-dot { background: var(--accent-green); box-shadow: 0 0 12px var(--accent-green); }
@keyframes orbit-spin { from{transform:rotate(0)} to{transform:rotate(360deg)} }

.hero-center {
  position: absolute;
  inset: 90px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 60px rgba(0,245,255,0.1), inset 0 0 30px rgba(0,245,255,0.05);
}
.hero-shield {
  font-size: 3.5rem;
  filter: drop-shadow(0 0 20px rgba(0,245,255,0.6));
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

/* ── Cert Badges ── */
.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.cert-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.cert-badge:hover { border-color: var(--accent-cyan); box-shadow: 0 0 15px rgba(0,245,255,0.2); transform: translateY(-2px); }
.cert-badge .badge-icon { font-size: 1rem; }
.cert-badge .badge-label { color: var(--accent-cyan); font-weight: 600; }

/* ── Highlights ── */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.highlight-card {
  padding: 2rem 1.5rem;
  text-align: center;
}
.highlight-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.highlight-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}
.highlight-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* ── Skills ── */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.skill-category { padding: 2rem; }
.skill-cat-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--accent-cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.skill-cat-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-glow);
}

.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-tag {
  padding: 0.35rem 0.85rem;
  background: rgba(0,245,255,0.07);
  border: 1px solid rgba(0,245,255,0.15);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.skill-tag:hover { background: rgba(0,245,255,0.15); border-color: var(--accent-cyan); color: var(--accent-cyan); }

/* ── Timeline ── */
.timeline { position: relative; padding-left: 3rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-blue), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.25rem; top: 1.25rem;
  width: 14px; height: 14px;
  background: var(--accent-cyan);
  border: 3px solid var(--bg-primary);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--accent-cyan);
}

.timeline-card { padding: 1.75rem; }
.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}
.timeline-role {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.timeline-company {
  font-size: 0.9rem;
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.timeline-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.timeline-tag {
  padding: 0.2rem 0.65rem;
  background: rgba(0,102,255,0.12);
  border: 1px solid rgba(0,102,255,0.25);
  border-radius: 5px;
  font-size: 0.72rem;
  color: var(--accent-blue);
  font-family: var(--font-mono);
}

/* ── Projects ── */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.project-card {
  padding: 0;
  overflow: hidden;
  cursor: default;
  perspective: 1000px;
}
.project-card-inner {
  padding: 2rem;
  height: 100%;
  transition: transform 0.4s ease;
  transform-style: preserve-3d;
}
.project-card:hover .project-card-inner { transform: translateY(-4px); }

.project-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 0 12px rgba(0,245,255,0.4));
}
.project-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.project-desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1.25rem; }
.project-techs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }
.project-tech {
  padding: 0.2rem 0.6rem;
  background: rgba(0,255,136,0.08);
  border: 1px solid rgba(0,255,136,0.2);
  border-radius: 5px;
  font-size: 0.72rem;
  color: var(--accent-green);
  font-family: var(--font-mono);
}
.project-actions { display: flex; gap: 0.75rem; }

/* ── Certifications ── */
.certs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.cert-card { padding: 2rem; position: relative; overflow: hidden; }
.cert-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 100px; height: 100px;
  background: radial-gradient(circle at top right, rgba(0,245,255,0.08), transparent 70%);
}
.cert-card-header { display: flex; align-items: flex-start; gap: 1.25rem; margin-bottom: 1.25rem; }
.cert-logo {
  width: 60px; height: 60px;
  border-radius: 12px;
  background: rgba(0,245,255,0.08);
  border: 1px solid rgba(0,245,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}
.cert-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.cert-issuer { font-size: 0.85rem; color: var(--accent-cyan); font-weight: 500; }
.cert-desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1.25rem; }
.cert-skills-covered { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cert-skill {
  padding: 0.2rem 0.65rem;
  background: rgba(123,47,255,0.1);
  border: 1px solid rgba(123,47,255,0.25);
  border-radius: 5px;
  font-size: 0.72rem;
  color: var(--accent-purple);
  font-family: var(--font-mono);
}
.cert-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
}
.cert-status.verified {
  background: rgba(0,255,136,0.1);
  border: 1px solid rgba(0,255,136,0.25);
  color: var(--accent-green);
}
.cert-status .status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 2.5rem; align-items: start; }

.contact-info { padding: 2.5rem; }
.contact-info-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.contact-info-desc { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; margin-bottom: 2rem; }

.contact-items { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(0,245,255,0.04);
  border: 1px solid rgba(0,245,255,0.1);
  border-radius: 10px;
  transition: var(--transition);
}
.contact-item:hover { border-color: rgba(0,245,255,0.3); }
.contact-item-icon { font-size: 1.2rem; width: 36px; text-align: center; }
.contact-item-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.contact-item-value { font-size: 0.9rem; color: var(--text-primary); font-weight: 500; }

.social-links { display: flex; gap: 0.75rem; }
.social-link {
  width: 42px; height: 42px;
  border: 1px solid var(--border-glow);
  border-radius: 10px;
  background: rgba(0,245,255,0.05);
  color: var(--accent-cyan);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition);
}
.social-link:hover { background: rgba(0,245,255,0.12); box-shadow: var(--shadow-glow); transform: translateY(-2px); }

/* Contact Form */
.contact-form-card { padding: 2.5rem; }
.form-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  color: var(--accent-cyan);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-group.full { grid-column: 1/-1; }
.form-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 600; }
.form-control {
  padding: 0.8rem 1rem;
  background: rgba(0,245,255,0.04);
  border: 1px solid rgba(0,245,255,0.12);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
  width: 100%;
}
.form-control:focus {
  border-color: var(--accent-cyan);
  background: rgba(0,245,255,0.07);
  box-shadow: 0 0 0 3px rgba(0,245,255,0.1);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 130px; }

.form-submit { width: 100%; justify-content: center; margin-top: 0.5rem; font-size: 1rem; padding: 1rem; }

/* Spinner */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}
.btn.loading .spinner { display: block; }
.btn.loading .btn-text { display: none; }
@keyframes spin { to{transform:rotate(360deg)} }

/* Success popup */
.success-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2,11,24,0.8);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.success-popup.show { opacity: 1; visibility: visible; }
.success-popup-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(0,255,136,0.3);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 60px rgba(0,255,136,0.2);
}
.success-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.success-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent-green);
  margin-bottom: 0.5rem;
}
.success-desc { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1.5rem; }

/* ── Footer ── */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glow);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem;
  align-items: start;
  margin-bottom: 2rem;
}
.footer-brand { max-width: 280px; }
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}
.footer-tagline { color: var(--text-muted); font-size: 0.875rem; line-height: 1.6; }
.footer-nav-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}
.footer-nav { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; transition: color 0.3s; }
.footer-nav a:hover { color: var(--accent-cyan); }
.footer-bottom {
  border-top: 1px solid var(--border-glow);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }
.footer-copy span { color: var(--accent-cyan); }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Page Hero (inner pages) ── */
.page-hero {
  padding: 5rem 0 3rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,245,255,0.05) 0%, transparent 70%);
  border-bottom: 1px solid var(--border-glow);
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
}
.page-hero-desc { color: var(--text-secondary); font-size: 1rem; max-width: 500px; margin: 0 auto; }

/* ── About Grid ── */
.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 4rem;
}
.about-photo-card { padding: 2.5rem; text-align: center; }
.about-avatar {
  width: 160px; height: 160px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  box-shadow: 0 0 40px rgba(0,245,255,0.2);
  position: relative;
}
.about-avatar::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(0,245,255,0.3);
  animation: orbit-spin 10s linear infinite;
}
.about-name-display {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.about-role-display { color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 1.25rem; }
.about-location { display: flex; align-items: center; justify-content: center; gap: 0.4rem; color: var(--text-muted); font-size: 0.8rem; }

.about-summary-card { padding: 2.5rem; }
.about-summary-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--accent-cyan); margin-bottom: 1.25rem; }
.about-summary-text { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.8; margin-bottom: 1rem; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-intro-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn { display: none; }
  .hamburger { display: flex; }
  #mobile-menu {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0; bottom: 0;
    background: rgba(2,11,24,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    z-index: 999;
  }
  #mobile-menu.open { display: flex; }
  #mobile-menu a {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    padding: 1rem 2rem;
    transition: color 0.3s;
  }
  #mobile-menu a:hover { color: var(--accent-cyan); }
  .skills-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .highlights-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-stats { flex-wrap: wrap; justify-content: center; }
}
