/* ============================================================
   Om Vitole Portfolio — style.css
   Theme: Dark Engineering · Syne + DM Sans · Blueprint Grid
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --bg:          #080c14;
  --bg-2:        #0d1220;
  --bg-3:        #111827;
  --accent:      #1d6ef5;
  --accent-glow: rgba(29, 110, 245, 0.35);
  --accent-2:    #7eb8fa;
  --orange:      #f97316;
  --teal:        #0fd4bf;
  --gold:        #e4b55a;
  --white:       #f1f5f9;
  --muted:       #64748b;
  --border:      rgba(255,255,255,0.07);
  --card-bg:     rgba(255,255,255,0.03);
  --card-hover:  rgba(37,99,235,0.08);
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --radius:       16px;
  --radius-sm:    8px;
  --shadow:       0 0 40px rgba(37,99,235,0.12);
  --transition:   all 0.35s cubic-bezier(0.4,0,0.2,1);
}

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

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

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---- Utility ---- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}

.accent { color: var(--accent-2); }

.section {
  padding: 7rem 0;
  position: relative;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-label::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--accent-2);
  display: inline-block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.section-title span.accent {
  font-style: italic;
  color: var(--accent-2);
  font-weight: 600;
}
.section-title.centered { text-align: center; }
.section-title.centered::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 3.5rem;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8,12,20,0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled {
  padding: 0.75rem 2.5rem;
  background: rgba(8,12,20,0.92);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}
.nav-link {
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent-2);
  transition: width 0.3s;
}
.nav-link:hover,
.nav-link.active { color: var(--white); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

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

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 7rem 2rem 4rem;
}

/* Blueprint grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.07) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
}

/* Floating orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: floatOrb 10s ease-in-out infinite alternate;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(37,99,235,0.25) 0%, transparent 70%);
  top: -100px; right: -100px;
  animation-duration: 12s;
}
.orb-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(20,184,166,0.18) 0%, transparent 70%);
  bottom: 50px; left: 10%;
  animation-duration: 9s;
  animation-delay: -3s;
}
.orb-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(249,115,22,0.15) 0%, transparent 70%);
  top: 40%; left: 40%;
  animation-duration: 14s;
  animation-delay: -6s;
}
@keyframes floatOrb {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(30px, 40px); }
}

.hero-content {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37,99,235,0.12);
  border: 1px solid rgba(37,99,235,0.3);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--accent-2);
  margin-bottom: 2rem;
  letter-spacing: 0.03em;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 6px #22c55e; }
  50%      { box-shadow: 0 0 16px #22c55e; }
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 13vw, 9rem);
  font-weight: 700;
  font-style: italic;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-firstname {
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(241,245,249,0.75);
  font-size: 0.75em;
}
.hero-lastname {
  font-style: italic;
  font-weight: 700;
}

.hero-title {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.hero-tagline {
  font-size: 1.15rem;
  color: rgba(241,245,249,0.65);
  font-style: italic;
  margin-bottom: 2.5rem;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: var(--transition);
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: #1d4ed8;
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-2px);
}
.btn-primary.large { padding: 1rem 2.5rem; font-size: 1rem; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition);
}
.btn-ghost:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  transform: translateY(-2px);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  font-style: italic;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounceHint 2.5s ease-in-out infinite;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--muted), transparent);
}
@keyframes bounceHint {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-section { background: var(--bg-2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: center;
  margin-top: 2rem;
}

.about-portrait { position: relative; }
.portrait-frame {
  position: relative;
  width: 280px;
  height: 320px;
  margin: 0 auto;
}
.portrait-inner {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(20,184,166,0.1));
  border: 1px solid rgba(37,99,235,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.portrait-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(37,99,235,0.03) 10px,
    rgba(37,99,235,0.03) 11px
  );
  z-index: 0;
  pointer-events: none;
}
.portrait-icon {
  font-size: 6rem;
  color: rgba(37,99,235,0.5);
  position: relative;
  z-index: 1;
}

.about-text .section-label { margin-bottom: 0.5rem; }
.about-para {
  color: rgba(241,245,249,0.72);
  margin-bottom: 1rem;
}
.about-para strong { color: var(--white); font-weight: 500; }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.tag {
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.25);
  color: var(--accent-2);
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

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

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.skill-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.skill-card:hover {
  background: var(--card-hover);
  border-color: rgba(37,99,235,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.skill-card:hover::before { transform: scaleX(1); }

.skill-icon-wrap {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(37,99,235,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent-2);
  margin-bottom: 1rem;
}

.skill-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  font-style: italic;
  margin-bottom: 0.4rem;
}
.skill-card p {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.skill-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}
.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 10px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.skill-pct {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-section { background: var(--bg-2); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: rgba(37,99,235,0.35);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.project-card.featured {
  border-color: rgba(37,99,235,0.3);
  background: linear-gradient(135deg, rgba(37,99,235,0.06), rgba(8,12,20,0.6));
}

/* Glow effect */
.project-glow {
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
  transition: opacity 0.4s;
  opacity: 0.5;
}
.project-glow.glow-orange {
  background: radial-gradient(circle, rgba(249,115,22,0.2), transparent 70%);
}
.project-glow.glow-teal {
  background: radial-gradient(circle, rgba(20,184,166,0.2), transparent 70%);
}
.project-card:hover .project-glow { opacity: 1; }

.project-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.project-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(37,99,235,0.15);
  color: var(--accent-2);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.project-icon-wrap.orange { background: rgba(249,115,22,0.15); color: var(--orange); }
.project-icon-wrap.teal   { background: rgba(20,184,166,0.15); color: var(--teal); }

.project-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.project-tag {
  background: rgba(37,99,235,0.12);
  border: 1px solid rgba(37,99,235,0.2);
  color: var(--accent-2);
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.project-tag.orange { background: rgba(249,115,22,0.1); border-color: rgba(249,115,22,0.2); color: var(--orange); }
.project-tag.teal   { background: rgba(20,184,166,0.1); border-color: rgba(20,184,166,0.2); color: var(--teal); }

.project-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  font-style: italic;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.project-points {
  margin-bottom: 1.2rem;
  flex: 1;
}
.project-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.84rem;
  color: rgba(241,245,249,0.75);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.project-points li i { color: #22c55e; margin-top: 3px; flex-shrink: 0; font-size: 0.75rem; }

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}
.project-tech span {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  color: var(--muted);
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.project-date, .project-team {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ============================================================
   INTERNSHIP
   ============================================================ */
.internship-section { background: var(--bg); }

.internship-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  gap: 2rem;
  transition: var(--transition);
}
.internship-card:hover {
  border-color: rgba(37,99,235,0.3);
  box-shadow: var(--shadow);
}

.intern-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.intern-logo {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(20,184,166,0.12);
  color: var(--teal);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.intern-line {
  width: 2px;
  flex: 1;
  background: var(--border);
  margin-top: 1rem;
}

.intern-body { flex: 1; }
.intern-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.intern-company {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.intern-badge {
  background: rgba(20,184,166,0.12);
  border: 1px solid rgba(20,184,166,0.25);
  color: var(--teal);
  padding: 0.15rem 0.6rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 500;
  font-family: var(--font-body);
}
.intern-badge.blue {
  background: rgba(37,99,235,0.12);
  border-color: rgba(37,99,235,0.25);
  color: var(--accent-2);
}
.intern-role { font-size: 0.88rem; color: var(--muted); margin-top: 0.2rem; }
.intern-date {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  font-weight: 500;
}
.intern-desc {
  font-size: 0.88rem;
  color: rgba(241,245,249,0.7);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.cert-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(20,184,166,0.07);
  border: 1px solid rgba(20,184,166,0.15);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}
.cert-card i { color: var(--teal); font-size: 1.2rem; flex-shrink: 0; }
.cert-card strong { display: block; font-size: 0.8rem; font-weight: 600; line-height: 1.3; }
.cert-card span { font-size: 0.72rem; color: var(--muted); }

.intern-tools { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tool-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--muted);
}
.tool-chip i { font-size: 0.55rem; color: var(--accent-2); }

/* ============================================================
   EDUCATION
   ============================================================ */
.education-section { background: var(--bg-2); }

.edu-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.edu-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.edu-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.edu-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
  transition: var(--transition);
}
.edu-dot.active {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}
.edu-connector {
  width: 2px;
  flex: 1;
  background: var(--border);
  margin-top: 4px;
  min-height: 60px;
}

.edu-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: var(--transition);
  margin-top: -4px;
}
.edu-card.active {
  border-color: rgba(37,99,235,0.3);
  background: rgba(37,99,235,0.05);
}
.edu-card:hover {
  transform: translateX(4px);
  border-color: rgba(37,99,235,0.25);
}

.edu-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.edu-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(37,99,235,0.12);
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.edu-year {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}
.edu-year.current {
  color: var(--accent-2);
  background: rgba(37,99,235,0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  border: 1px solid rgba(37,99,235,0.2);
}

.edu-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  font-style: italic;
  margin-bottom: 0.3rem;
}
.edu-degree {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.edu-grade {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.grade-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.grade-val {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}
.edu-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.5rem;
  font-style: italic;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { background: var(--bg); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}
.contact-card:hover {
  border-color: rgba(37,99,235,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.contact-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(37,99,235,0.12);
  color: var(--accent-2);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.contact-card h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.contact-card a, .contact-card span {
  font-size: 0.92rem;
  color: var(--white);
  transition: color 0.2s;
}
.contact-card a:hover { color: var(--accent-2); }

.contact-form {
  max-width: 920px;
  margin: 0 auto 2rem;
  padding: 1.3rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, rgba(21,32,67,0.55), rgba(16,22,52,0.6));
}
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-field span {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
}
.contact-field input,
.contact-field textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--white);
  padding: 0.95rem 1rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}
.contact-field textarea {
  resize: vertical;
  min-height: 140px;
}
.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(148,163,184,0.85);
}
.contact-field input:focus,
.contact-field textarea:focus {
  border-color: rgba(96,165,250,0.7);
  box-shadow: 0 0 0 3px rgba(96,165,250,0.14);
}
.contact-field.full {
  margin-bottom: 1rem;
}
.contact-form .btn-primary {
  border: 0;
  cursor: pointer;
}
.form-note {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.contact-cta { text-align: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
}
.footer p { font-size: 0.88rem; color: var(--muted); }
.footer-sub { font-size: 0.78rem; margin-top: 0.4rem; }

/* ============================================================
   HERO SOCIAL ICONS
   ============================================================ */
.hero-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.hero-social-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1rem;
  transition: var(--transition);
}
.hero-social-icon:hover {
  background: rgba(37,99,235,0.15);
  border-color: var(--accent-2);
  color: var(--accent-2);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37,99,235,0.25);
}

/* ============================================================
   ABOUT PORTRAIT
   ============================================================ */
.portrait-photo {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* ============================================================
   CONTACT SECTION — IMPROVED
   ============================================================ */
.contact-section { background: var(--bg); position: relative; overflow: hidden; }
.contact-bg-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Social link cards */
.social-links-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s;
  border-radius: inherit;
}
.social-link.linkedin::before {
  background: linear-gradient(135deg, rgba(10,102,194,0.12), transparent);
}
.social-link.github::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.06), transparent);
}
.social-link:hover { transform: translateY(-4px); }
.social-link.linkedin:hover {
  border-color: rgba(10,102,194,0.5);
  box-shadow: 0 12px 40px rgba(10,102,194,0.2);
}
.social-link.github:hover {
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 12px 40px rgba(255,255,255,0.06);
}
.social-link:hover::before { opacity: 1; }

.social-icon-wrap {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: var(--transition);
}
.linkedin .social-icon-wrap {
  background: rgba(10,102,194,0.15);
  color: #60a5fa;
}
.github .social-icon-wrap {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}
.social-link:hover .social-icon-wrap {
  transform: scale(1.1);
}
.social-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.social-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
}
.social-handle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.social-arrow {
  color: var(--muted);
  font-size: 0.75rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.social-link:hover .social-arrow {
  color: var(--accent-2);
  transform: translate(2px, -2px);
}

/* Updated contact grid – 3 col default */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA with two buttons */
.contact-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-ghost.large { padding: 1rem 2.5rem; font-size: 1rem; }

/* Footer social links */
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.footer-social {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer-social:hover {
  color: var(--accent-2);
  border-color: var(--accent-2);
}

@media (max-width: 600px) {
  .social-links-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; max-width: 100%; }
  .contact-form-grid { grid-template-columns: 1fr; }
}

.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.75s cubic-bezier(0.4,0,0.2,1),
              transform 0.75s cubic-bezier(0.4,0,0.2,1);
}
.reveal-up    { transform: translateY(40px); }
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Delay helpers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .about-text .section-label { justify-content: center; }
  .about-tags { justify-content: center; }
  .portrait-frame { margin: 0 auto; }

  .internship-card {
    flex-direction: column;
    gap: 1rem;
  }
  .intern-left { flex-direction: row; }
  .intern-line { display: none; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8,12,20,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-link { font-size: 1.3rem; }

  .section { padding: 4rem 0; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid   { grid-template-columns: 1fr 1fr; }
  .contact-grid  { grid-template-columns: 1fr; }

  .hero-stats { gap: 1.5rem; }
  .hero-cta { flex-direction: column; align-items: center; }

  .intern-top { flex-direction: column; gap: 0.4rem; }

  .edu-item { grid-template-columns: 32px 1fr; gap: 1rem; }
}

@media (max-width: 480px) {
  .skills-grid { grid-template-columns: 1fr; }
  .cert-grid   { grid-template-columns: 1fr; }
  .hero-name { font-size: 3rem; }
  .navbar { padding: 1rem 1.25rem; }
  .container { padding: 0 1.25rem; }
  .portrait-frame { width: 220px; height: 260px; }
}