/* ============================================================
   SREENATH S — VLSI Design & Verification Portfolio
   Theme: Modern semiconductor dark theme
   Fonts: Poppins (headings), Inter (body)
   ============================================================ */

:root {
  --bg-primary: #0A192F;
  --bg-secondary: #0F2440;
  --bg-card: #112240;
  --bg-card-hover: #173253;
  --cyan: #00E5FF;
  --accent: #3B82F6;
  --white: #F8FAFC;
  --muted: #94A3B8;
  --border: rgba(0, 229, 255, 0.14);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --font-head: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

::selection {
  background: var(--cyan);
  color: var(--bg-primary);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #1E3A5F; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: min(1150px, 92%);
  margin: 0 auto;
}

.accent { color: var(--cyan); }
.highlight { color: var(--cyan); font-weight: 500; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 25, 47, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10, 25, 47, 0.94);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.nav-container {
  width: min(1150px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-chip {
  color: var(--cyan);
  font-size: 1rem;
  animation: pulse 2.4s infinite;
}

.nav-links {
  display: flex;
  gap: 26px;
}

.nav-links a {
  font-size: 0.92rem;
  color: var(--muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--accent));
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--cyan);
  transition: 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px 20px 90px;
  background:
    radial-gradient(ellipse at 20% 15%, rgba(0, 229, 255, 0.10), transparent 55%),
    radial-gradient(ellipse at 85% 85%, rgba(59, 130, 246, 0.12), transparent 55%),
    var(--bg-primary);
  overflow: hidden;
}

.circuit-bg { position: absolute; inset: 0; pointer-events: none; opacity: 0.5; }

.trace {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan));
  animation: dash 8s linear infinite;
}
.t1 { top: 22%; left: -10%; width: 26%; }
.t2 { top: 64%; right: -10%; width: 30%; animation-delay: 2s; }
.t3 { top: 82%; left: 8%; width: 20%; animation-delay: 4s; }

.node {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: blink 3s infinite;
}
.n1 { top: 22%; left: 16%; }
.n2 { top: 64%; right: 20%; animation-delay: 1s; }
.n3 { top: 82%; left: 28%; animation-delay: 2s; }
.n4 { bottom: 18%; left: 12%; animation-delay: 0.5s; }

.hero-content { position: relative; z-index: 2; max-width: 860px; }

.hero-eyebrow {
  color: var(--cyan);
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.hero-name {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 800;
  letter-spacing: 2px;
}

.hero-role {
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  font-weight: 600;
  color: var(--accent);
  margin: 10px 0 14px;
}

.typing-line {
  font-family: 'Courier New', monospace;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: var(--cyan);
  min-height: 1.7em;
  margin-bottom: 20px;
}

.caret {
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background: var(--cyan);
  vertical-align: text-bottom;
  animation: blink 0.9s step-end infinite;
}

.hero-tagline {
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 34px;
  font-style: normal;
  padding: 0 8px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.28s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--accent));
  color: var(--bg-primary);
  box-shadow: 0 10px 26px rgba(0, 229, 255, 0.28);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 229, 255, 0.4);
}

.btn-outline {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-outline:hover {
  background: rgba(0, 229, 255, 0.1);
  transform: translateY(-3px);
}

.btn-ghost {
  border-color: rgba(248, 250, 252, 0.25);
  color: var(--white);
}

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

.chip-stack { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.chip {
  font-size: 0.82rem;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(17, 34, 64, 0.6);
  transition: all 0.25s;
}

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

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--cyan);
  animation: float 2s infinite;
}

/* ---------- Sections ---------- */
.section {
  padding: 110px 0;
  position: relative;
}

.section.alt { background: var(--bg-secondary); }

.section-tag {
  font-family: 'Courier New', monospace;
  color: var(--cyan);
  opacity: 0.65;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 6px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 18px;
}

.section-title::after {
  content: '';
  display: block;
  width: 72px;
  height: 3px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, var(--cyan), var(--accent));
  border-radius: 2px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 44px;
  align-items: start;
  margin-top: 52px;
}

.about-text p { color: var(--muted); margin-bottom: 16px; font-size: 1.02rem; }
.about-text strong { color: var(--white); }

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

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 10px;
  text-align: center;
  transition: all 0.3s;
}

.stat:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
}

.stat-number {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--cyan);
  display: block;
}

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

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 28px;
  text-align: center;
  position: sticky;
  top: 100px;
}

.chip-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 18px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.16), rgba(59, 130, 246, 0.16));
  border: 1px solid var(--border);
  color: var(--cyan);
}

.about-card h3 { font-size: 1.3rem; }
.about-card > p { color: var(--accent); font-size: 0.9rem; margin: 4px 0 18px; }

.about-facts { text-align: left; border-top: 1px solid var(--border); padding-top: 16px; }
.about-facts li { font-size: 0.9rem; color: var(--muted); padding: 6px 0; }
.about-facts strong { color: var(--white); }

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 720px;
  margin: 54px auto 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--accent));
  opacity: 0.5;
}

.timeline-item {
  position: relative;
  padding: 0 0 36px 44px;
}

.timeline-dot {
  position: absolute;
  left: 3px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--cyan);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.6);
}

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

.timeline-card:hover { border-color: var(--cyan); transform: translateX(6px); }

.timeline-year {
  display: inline-block;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.timeline-card h3 { font-size: 1.2rem; }
.timeline-sub { color: var(--accent); font-size: 0.95rem; }
.timeline-org { color: var(--muted); font-size: 0.9rem; }

.timeline-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.meta-pill {
  font-size: 0.8rem;
  color: var(--white);
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  padding: 5px 14px;
  border-radius: 999px;
}

/* ---------- Training ---------- */
.training-card {
  max-width: 820px;
  margin: 50px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}

.training-card:hover { border-color: var(--cyan); }

.training-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 30px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(59, 130, 246, 0.08));
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.training-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  color: var(--cyan);
}

.training-head h3 { font-size: 1.25rem; }
.training-role { color: var(--accent); font-size: 0.95rem; }

.training-duration {
  margin-left: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
}

.training-body { padding: 26px 30px; }
.training-body h4 { font-size: 1.02rem; margin-bottom: 16px; color: var(--white); }

/* ---------- Check lists ---------- */
.check-list { display: grid; gap: 10px; }

.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 0.95rem;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 6px;
  border-left: 2.5px solid var(--cyan);
  border-bottom: 2.5px solid var(--cyan);
  transform: rotate(-45deg);
}

.two-col { grid-template-columns: 1fr 1fr; }

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: all 0.3s;
}

.skill-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: var(--shadow);
}

.skill-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid var(--border);
  color: var(--cyan);
  margin-bottom: 16px;
}

.skill-card h3 { font-size: 1.05rem; margin-bottom: 14px; }
.skill-card ul { display: flex; flex-wrap: wrap; gap: 8px; }

.skill-card ul li {
  font-size: 0.85rem;
  color: var(--muted);
  background: rgba(10, 25, 47, 0.6);
  border: 1px solid var(--border);
  padding: 5px 13px;
  border-radius: 999px;
  transition: all 0.25s;
}

.skill-card ul li:hover { color: var(--cyan); border-color: var(--cyan); }

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 52px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.project-card:hover { transform: translateY(-8px); border-color: var(--cyan); box-shadow: var(--shadow); }
.project-card:hover::before { transform: scaleX(1); }

.project-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }

.project-pin { color: var(--cyan); flex-shrink: 0; }

.project-tools { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

.project-tools span {
  font-size: 0.72rem;
  color: var(--cyan);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  background: rgba(0, 229, 255, 0.06);
}

.project-card h3 { font-size: 1.12rem; }

.project-desc {
  color: var(--muted);
  font-size: 0.92rem;
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}

.project-skills {
  margin-top: auto;
  font-size: 0.78rem;
  color: var(--accent);
  border-top: 1px dashed var(--border);
  padding-top: 14px;
}

/* ---------- Experience cards ---------- */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 52px;
}

.exp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s;
}

.exp-card:hover { transform: translateY(-6px); border-color: var(--cyan); box-shadow: var(--shadow); }

.exp-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--bg-primary);
  background: linear-gradient(135deg, var(--cyan), var(--accent));
  padding: 5px 14px;
  border-radius: 999px;
}

.exp-card h3 { font-size: 1.12rem; }
.exp-org { color: var(--accent); font-weight: 500; }
.exp-duration { color: var(--cyan); font-family: 'Courier New', monospace; font-size: 0.82rem; }
.exp-desc { color: var(--muted); font-size: 0.92rem; }

/* ---------- Certifications ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 52px;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  transition: all 0.3s;
}

.cert-card svg { color: var(--cyan); margin-bottom: 14px; }

.cert-card h3 { font-size: 1rem; margin-bottom: 6px; }
.cert-card p { color: var(--muted); font-size: 0.85rem; }

.cert-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: var(--shadow);
}

/* ---------- Achievements ---------- */
.achievement-card {
  max-width: 760px;
  margin: 52px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 34px;
  display: flex;
  gap: 26px;
  align-items: flex-start;
  transition: all 0.3s;
}

.achievement-card:hover { border-color: var(--cyan); box-shadow: var(--shadow); }

.achieve-icon {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid var(--border);
  color: var(--cyan);
}

.achieve-body h3 { font-size: 1.25rem; margin-bottom: 14px; }

/* ---------- Expertise bars ---------- */
.expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 56px;
  margin-top: 54px;
}

.expertise-bar { padding: 6px 0; }

.bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: var(--white);
}

.bar-val { color: var(--cyan); font-family: 'Courier New', monospace; }

.bar-track {
  height: 10px;
  background: rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--accent));
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Objective ---------- */
.objective-section {
  background:
    radial-gradient(ellipse at center, rgba(0, 229, 255, 0.07), transparent 65%),
    var(--bg-secondary);
}

.objective-quote {
  max-width: 780px;
  margin: 50px auto 0;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius);
  padding: 40px 36px;
  font-style: normal;
}

.objective-quote svg { color: var(--cyan); margin-bottom: 16px; opacity: 0.85; }
.objective-quote p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 52px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  transition: all 0.3s;
}

.contact-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: var(--shadow);
}

.contact-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid var(--border);
  color: var(--cyan);
}

.contact-card h3 { font-size: 1.02rem; margin-bottom: 4px; }
.contact-card p { color: var(--muted); font-size: 0.86rem; word-break: break-word; }

.contact-cta {
  margin-top: 44px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 26px;
}

.contact-cta p { color: var(--muted); margin-bottom: 20px; }

/* ---------- Footer ---------- */
.footer {
  background: #071526;
  border-top: 1px solid var(--border);
  padding: 54px 0 34px;
  text-align: center;
}

.footer-quote {
  color: var(--cyan);
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.02rem;
  margin: 14px 0 22px;
}

.footer-social { display: flex; gap: 16px; justify-content: center; margin-bottom: 24px; }

.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.3s;
}

.footer-social a:hover {
  color: var(--bg-primary);
  background: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-3px);
}

.footer-copy { color: var(--muted); font-size: 0.85rem; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--cyan);
  background: rgba(10, 25, 47, 0.9);
  color: var(--cyan);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all 0.3s;
}

.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--cyan); color: var(--bg-primary); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Keyframes ---------- */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

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

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

@keyframes dash {
  to { transform: translateX(200%); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .skills-grid, .projects-grid, .exp-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-card { position: static; }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 25, 47, 0.98);
    padding: 20px 6%;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .section { padding: 80px 0; }

  .two-col { grid-template-columns: 1fr; }

  .expertise-grid { grid-template-columns: 1fr; }

  .achievement-card { flex-direction: column; }

  .training-duration { margin-left: 0; }
}

@media (max-width: 560px) {
  .skills-grid, .projects-grid, .exp-grid, .cert-grid, .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-stats { grid-template-columns: repeat(2, 1fr); }

  .hero-buttons { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}
