/* ============================================================
   J. THARMASEELAN — Portfolio Stylesheet
   Engineering · Research · Innovation · Professional
   ============================================================ */

:root {
  --bg: #f6f8fb;
  --bg-alt: #eef2f7;
  --surface: #ffffff;
  --dark: #0b1220;
  --dark-2: #101a2e;
  --dark-3: #16233c;
  --primary: #067daf;
  --primary-bright: #0aa5d8;
  --accent: #e9d9a0;
  --text: #1d2b3a;
  --text-muted: #5a6b7e;
  --border: #dfe6ef;
  --shadow-sm: 0 1px 3px rgba(11, 18, 32, 0.07);
  --shadow-md: 0 6px 24px rgba(11, 18, 32, 0.09);
  --shadow-lg: 0 18px 50px rgba(11, 18, 32, 0.14);
  --radius: 14px;
  --radius-sm: 9px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Sora", "Inter", "Segoe UI", system-ui, sans-serif;
  --maxw: 1160px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(6, 125, 175, 0.25); color: var(--dark); }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--primary), var(--primary-bright)); border-radius: 99px; border: 3px solid var(--dark); }
::-webkit-scrollbar-thumb:hover { background: var(--primary-bright); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary-bright);
  outline-offset: 2px;
}

img { max-width: 100%; display: block; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
}
.skip-link:focus {
  left: 0;
}

a { color: var(--primary); text-decoration: none; overflow-wrap: break-word; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.research-card, .reference-card, .skill-category, .activity-card, .language-card,
.contact-form-wrap, .contact-info, .timeline-card, .about-card { min-width: 0; }
.research-meta > div { min-width: 0; }
.research-authors span, .research-venue span { overflow-wrap: break-word; }

.section { padding: 100px 0; position: relative; }

.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #e8eef5; }
.section-dark .section-title { color: #fff; }
.section-dark .section-tag { color: var(--primary-bright); background: rgba(10, 165, 216, 0.12); }

.section-header { margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(6, 125, 175, 0.1);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-title::after {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-bright));
  margin-top: 16px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  font-family: var(--font);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-full { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-bright));
  color: #fff;
  box-shadow: 0 6px 20px rgba(6, 125, 175, 0.35);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(6, 125, 175, 0.45); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.6); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ============ NAVIGATION ============ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 18px 0;
  background: transparent;
}
#navbar.scrolled {
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 0;
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-bright));
  color: #fff; font-weight: 800; font-size: 14px;
  border-radius: 10px;
  flex-shrink: 0;
}
.logo-text { color: #fff; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }

.nav-links { display: flex; list-style: none; gap: 4px; }
.nav-links a {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.nav-links a.active { color: #fff; background: rgba(255, 255, 255, 0.14); }

.nav-actions .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.nav-actions .btn-outline:hover { background: #fff; color: var(--dark); border-color: #fff; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}
.hamburger span {
  width: 26px; height: 2.5px;
  background: #fff;
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(9, 15, 28, 0.98);
  backdrop-filter: blur(10px);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu ul { list-style: none; text-align: center; }
.mobile-menu li { margin: 6px 0; }
.mobile-menu a {
  display: inline-block;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  padding: 10px 18px;
}
.mobile-menu a:hover { color: var(--primary-bright); }
.mobile-menu .btn { font-size: 16px; margin-top: 12px; color: var(--primary); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(6, 125, 175, 0.28), transparent 60%),
    radial-gradient(ellipse at 85% 80%, rgba(10, 165, 216, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(11, 18, 32, 0.9) 0%, rgba(11, 18, 32, 0.55) 60%, rgba(11, 18, 32, 0.95) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 140px 24px 80px;
  width: 100%;
  animation: heroFade 1s ease;
}
@keyframes heroFade {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 64px;
}
.hero-text { max-width: 640px; }
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1.15;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}
.hero-image-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(10, 165, 216, 0.4), transparent 65%);
  z-index: -1;
  filter: blur(4px);
  pointer-events: none;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-image-wrap::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  pointer-events: none;
}
.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(11, 18, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  z-index: 2;
}
.hero-chip-top {
  top: 26px;
  right: -14px;
  color: var(--primary-bright);
  border-color: rgba(10, 165, 216, 0.4);
  background: rgba(10, 20, 34, 0.72);
}
.hero-chip-top::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-bright));
}
.hero-chip-bottom {
  bottom: 26px;
  left: -14px;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(48px, 7.5vw, 88px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 18px;
  background: linear-gradient(120deg, #ffffff 30%, var(--primary-bright) 65%, #9be1fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-title-wrap { margin-bottom: 18px; }
.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 21px);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  margin-bottom: 6px;
}
.hero-roles {
  font-size: clamp(15px, 1.9vw, 18px);
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}
.hero-roles-text { color: var(--primary-bright); font-weight: 600; }
.hero-roles-caret {
  display: inline-block;
  width: 2px; height: 1em;
  margin-left: 3px;
  vertical-align: text-bottom;
  background: var(--primary-bright);
  animation: caretBlink 1s steps(2, start) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }
.hero-desc {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 16.5px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: start;
}
.about-text p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 18px;
}
.about-text p:first-of-type {
  font-size: 17.5px;
  color: var(--text);
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 8px;
}
.card-inner { padding: 8px; }
.highlight-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}
.highlight-item:hover { background: var(--bg-alt); }
.highlight-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6, 125, 175, 0.1);
  color: var(--primary);
  border-radius: 12px;
}
.highlight-icon svg { width: 24px; height: 24px; }
.highlight-item strong { display: block; font-size: 15.5px; color: var(--text); }
.highlight-item span { font-size: 13.5px; color: var(--text-muted); }

/* ============ EDUCATION ============ */
.education-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  max-width: 960px;
  margin: 0 auto;
}
.education-card {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px 30px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.education-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.education-accent {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 5px;
}
.edu-c-1 { background: linear-gradient(180deg, var(--primary), var(--primary-bright)); }
.edu-c-2 { background: linear-gradient(180deg, #b8860b, #d4a017); }
.edu-c-3 { background: linear-gradient(180deg, #2563eb, #60a5fa); }
.education-icon {
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  color: var(--primary);
  background: rgba(6, 125, 175, 0.1);
}
.education-icon svg { width: 28px; height: 28px; }
.education-body { min-width: 0; }
.education-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.education-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(6, 125, 175, 0.09);
  padding: 5px 13px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.education-award {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 999px;
}
.award-gold {
  color: #8a6a00;
  background: rgba(212, 160, 23, 0.14);
  border: 1px solid rgba(212, 160, 23, 0.45);
}
.education-body h3 { font-size: 21px; font-weight: 700; color: var(--text); }
.education-body h4 { font-size: 15px; font-weight: 600; color: var(--primary); margin: 4px 0 6px; }
.education-institution { font-size: 13.5px; color: var(--text-muted); font-weight: 500; }
.education-foot {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 16px;
}
.education-cgpa-num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.education-cgpa-total { font-size: 18px; font-weight: 700; color: var(--text-muted); }
.education-cgpa-label {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  align-self: flex-end;
  padding-bottom: 4px;
}
.education-result {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #14532d;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 7px 16px;
  border-radius: 999px;
}

/* ============ TIMELINE ============ */
.timeline {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--primary-bright), transparent);
  opacity: 0.35;
}
.timeline-item {
  position: relative;
  padding-left: 68px;
  margin-bottom: 36px;
}
.timeline-dot {
  position: absolute;
  left: 15px;
  top: 26px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--primary-bright);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 4px rgba(10, 165, 216, 0.22);
  z-index: 1;
}
.section-alt .timeline-dot { border-color: var(--bg-alt); }
.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.timeline-date {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(6, 125, 175, 0.09);
  padding: 5px 13px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.timeline-card h3 { font-size: 21px; font-weight: 700; color: var(--text); }
.timeline-card h4 { font-size: 15px; font-weight: 600; color: var(--primary); margin: 4px 0 6px; }
.timeline-institution { font-size: 13.5px; color: var(--text-muted); font-weight: 500; }
.timeline-desc { font-size: 14.5px; color: var(--text-muted); margin-top: 12px; }

/* ============ RESEARCH ============ */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.research-card {
  position: relative;
  background: var(--dark-2);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.research-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-bright));
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.research-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(80% 60% at 50% 0%, rgba(10, 165, 216, 0.08), transparent 70%);
  pointer-events: none;
}
.research-card:hover {
  transform: translateY(-6px);
  border-color: rgba(10, 165, 216, 0.45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.research-card:hover::before { opacity: 1; }
.research-year {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 34px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.07);
  line-height: 1;
}
.research-status {
  display: inline-block;
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 13px;
  border-radius: 999px;
}
.status-full { color: #86efac; background: rgba(34, 197, 94, 0.14); border: 1px solid rgba(34, 197, 94, 0.3); }
.status-abstract { color: #7dd3fc; background: rgba(10, 165, 216, 0.14); border: 1px solid rgba(10, 165, 216, 0.3); }
.status-published { color: #fde68a; background: rgba(234, 179, 8, 0.14); border: 1px solid rgba(234, 179, 8, 0.3); }
.research-card h3 {
  font-size: 17.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.research-meta { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.research-authors, .research-venue {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}
.research-authors svg, .research-venue svg { flex-shrink: 0; margin-top: 2px; width: 16px; height: 16px; color: var(--primary-bright); opacity: 0.8; }
.icon-sm { width: 16px; height: 16px; }

/* ============ SKILLS ============ */
.skills-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
}
.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.skill-category:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.skill-category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.skill-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-bright));
  border-radius: 12px;
  color: #fff;
}
.skill-icon svg { width: 24px; height: 24px; }
.skill-category-header h3 { font-size: 18px; font-weight: 700; color: var(--text); }
.skill-logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 14px;
}
.skill-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 8px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.skill-logo:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 125, 175, 0.4);
  box-shadow: var(--shadow-md);
}
.skill-logo-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(11, 18, 32, 0.08);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  overflow: hidden;
}
.skill-logo-icon img { width: 60%; height: 60%; object-fit: contain; }
.sw-word { background: #2b579a; }
.sw-excel { background: #217346; }
.sw-powerpoint { background: #d24726; }
.sw-access { background: #a4373a; }
.sw-solidworks { background: #d81f26; font-size: 17px; }
.skill-logo span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  line-height: 1.25;
}

/* ============ LANGUAGES ============ */
.languages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.language-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px 22px 26px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.language-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.language-ring {
  position: relative;
  width: 124px; height: 124px;
  margin-bottom: 16px;
}
.language-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.language-ring circle { fill: none; stroke-width: 11; }
.ring-bg { stroke: var(--bg-alt); }
.ring-fill {
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.language-card:nth-child(1) .ring-fill { stroke: url(#langGrad1); }
.language-card:nth-child(2) .ring-fill { stroke: url(#langGrad2); }
.language-card:nth-child(3) .ring-fill { stroke: url(#langGrad3); }
.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ring-value {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
  color: var(--primary);
}
.language-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
}
.language-level {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(6, 125, 175, 0.09);
  padding: 5px 12px;
  border-radius: 999px;
}
:root:not(.js) .ring-fill { stroke-dashoffset: 0; }
:root:not(.js) .ring-value { color: var(--primary); }

/* ============ ACTIVITIES ============ */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.activity-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  border-left: 4px solid var(--primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.activity-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.activity-year {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(6, 125, 175, 0.09);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.activity-card h3 { font-size: 16.5px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.activity-card p { font-size: 14px; color: var(--text-muted); }

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-info h3 { color: #fff; font-size: 26px; font-weight: 800; margin-bottom: 14px; }
.contact-info > p { color: rgba(255, 255, 255, 0.66); font-size: 15.5px; margin-bottom: 30px; }
.contact-details { display: flex; flex-direction: column; gap: 14px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, background 0.2s ease;
}
a.contact-item:hover { border-color: rgba(10, 165, 216, 0.5); background: rgba(10, 165, 216, 0.08); }
.contact-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 165, 216, 0.14);
  color: var(--primary-bright);
  border-radius: 10px;
}
.contact-icon svg { width: 20px; height: 20px; }

.contact-form-wrap {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 34px;
  backdrop-filter: blur(8px);
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 7px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255, 255, 255, 0.35); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-bright);
  background: rgba(255, 255, 255, 0.1);
}
.form-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  display: none;
}
.form-status.success { display: block; color: #86efac; background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.3); }
.form-status.error { display: block; color: #fca5a5; background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.3); }

/* ============ REFERENCES ============ */
.references-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  max-width: 880px;
  margin: 0 auto;
}
.reference-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.reference-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.reference-avatar {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-bright));
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(6, 125, 175, 0.3);
}
.reference-card h3 { font-size: 18.5px; font-weight: 700; color: var(--text); }
.reference-title { font-size: 14px; font-weight: 600; color: var(--primary); margin: 4px 0 2px; }
.reference-org { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.reference-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.reference-contact a { font-size: 14px; font-weight: 500; }
.reference-contact a:hover { text-decoration: underline; }

/* ============ FOOTER ============ */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 34px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-left { display: flex; align-items: center; gap: 12px; }
.footer-logo {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-bright));
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  border-radius: 8px;
}
.footer p { font-size: 13.5px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: rgba(255, 255, 255, 0.6); font-size: 13.5px; }
.footer-links a:hover { color: #fff; }

/* ============ REVEAL ANIMATIONS (JS-gated) ============ */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.js .reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .ring-fill { transition: none; }
  .hero-roles-caret { animation: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .section { padding: 78px 0; }
  .research-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-inner { gap: 48px; }
  .hero-image-wrap { max-width: 340px; }
  .hero-chip { font-size: 12px; padding: 8px 13px; }
  .hero-chip-top { right: -6px; top: 20px; }
  .hero-chip-bottom { left: -6px; bottom: 20px; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .skills-grid { grid-template-columns: 1fr; }
  .languages-grid { grid-template-columns: 1fr; }
  .activities-grid { grid-template-columns: 1fr; }
  .references-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-text { max-width: 100%; }
  .hero-visual { order: -1; justify-content: center; }
  .hero-image-wrap { max-width: 300px; }
  .hero-actions { justify-content: center; }
  .hero-chip-top { right: -4px; top: 16px; }
  .hero-chip-bottom { left: -4px; bottom: 16px; }
  .section-title { font-size: 30px; }
}

@media (max-width: 560px) {
  .section { padding: 62px 0; }
  .container { padding: 0 18px; }
  .education-card { grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 18px; }
  .education-icon { width: 42px; height: 42px; border-radius: 11px; }
  .education-icon svg { width: 22px; height: 22px; }
  .education-cgpa-label { width: 100%; padding: 0; align-self: flex-start; margin-top: 4px; }
  .timeline-item { padding-left: 56px; }
  .timeline::before { left: 18px; }
  .timeline-dot { left: 11px; }
  .timeline-card { padding: 22px; }
  .research-grid { grid-template-columns: 1fr; }
  .hero-content { padding-top: 120px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-name { font-size: clamp(40px, 11vw, 56px); }
  .hero-chip { padding: 7px 11px; font-size: 11px; }
  .hero-chip-top { right: 0; }
  .hero-chip-bottom { left: 0; }
  .contact-form-wrap { padding: 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
}