/* ===========================
   ROOT / DESIGN TOKENS
   =========================== */
:root {
  --blue-dark: #1e3a8a;
  --blue-mid: #2563eb;
  --blue-light-bg: #eff6ff;
  --blue-icon-bg: #1e3a8a;
  --orange: #ea580c;
  --orange-light-bg: #fff7ed;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --card-border: #e2e8f0;
  --card-bg: #ffffff;
  --section-alt: #f8fafc;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* ===========================
   LAYOUT UTILITIES
   =========================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5.5rem 0;
}

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

.section-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 3.5rem;
  letter-spacing: -0.01em;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-mid), var(--orange));
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

/* ===========================
   SCROLL REVEAL
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===========================
   NAVBAR
   =========================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  height: 64px;
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.96);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--blue-dark);
  letter-spacing: -0.02em;
  position: relative;
  padding: 0.2rem 0;
}

.nav-logo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-dark), var(--orange));
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-logo:hover::after {
  transform: scaleX(1);
}

.nav-links {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  position: relative;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--blue-dark);
  background: rgba(30, 58, 138, 0.05);
}

.nav-links a.active {
  color: var(--blue-dark);
  font-weight: 600;
  background: var(--blue-light-bg);
}

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===========================
   HERO
   =========================== */
.hero {
  min-height: calc(100vh - 64px);
  background:
    linear-gradient(
      to bottom,
      rgba(7, 15, 40, 0.82) 0%,
      rgba(10, 20, 55, 0.75) 50%,
      rgba(7, 15, 40, 0.88) 100%
    ),
    /* url('img/bg.webp') center center / cover no-repeat; */
    url('img/bg2.png') center center / cover no-repeat;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

/* subtle vignette edges */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: none;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.45rem 1.3rem;
  border-radius: 999px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  animation: fadeSlideDown 0.8s ease-out both;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 4.75rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  animation: fadeSlideDown 0.8s ease-out 0.15s both;
}

/* ---- Hero title: "AI · ML · Data" grouped + "Enthusiast" styled ---- */
.hero-title {
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  animation: fadeSlideDown 0.8s ease-out 0.3s both;
  flex-wrap: wrap;
}

.hero-title-keywords {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 40%, #fb923c 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
}

.hero-title-role {
  font-family: var(--font-heading);
  font-weight: 500;
  font-style: italic;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.4rem;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-bio {
  max-width: 680px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  animation: fadeSlideDown 0.8s ease-out 0.45s both;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
  animation: fadeSlideDown 0.8s ease-out 0.6s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--blue-dark);
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(30, 58, 138, 0.35);
}

.btn-primary:hover {
  background: #1e40af;
  box-shadow: 0 4px 18px rgba(30, 58, 138, 0.45);
  transform: translateY(-1px);
}

/* Hero-specific overrides: white bg on dark image */
.hero .btn-primary {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  backdrop-filter: blur(6px);
  box-shadow: none;
}

.hero .btn-primary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: none;
  transform: translateY(-1px);
}

.btn-outline-orange {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}

.btn-outline-orange:hover {
  background: var(--orange-light-bg);
  transform: translateY(-1px);
}

/* Hero orange outline on dark bg */
.hero .btn-outline-orange {
  color: #fb923c;
  border-color: #fb923c;
  background: transparent;
}

.hero .btn-outline-orange:hover {
  background: rgba(251, 146, 60, 0.15);
}

.btn-outline-gray {
  background: transparent;
  color: var(--text-secondary);
  border-color: #cbd5e1;
}

.btn-outline-gray:hover {
  background: var(--section-alt);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* Medium button — on hero (dark bg) */
.btn-outline-medium {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-medium:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Glass CTA on dark hero */
.btn-outline-glass {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
}

.btn-outline-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Medium button — on light bg (contact section) */
.btn-outline-medium-dark {
  background: transparent;
  color: #1a1a1a;
  border-color: #b0b0b0;
}

.btn-outline-medium-dark:hover {
  background: #f3f3f3;
  border-color: #1a1a1a;
  transform: translateY(-1px);
}

.hero-scroll {
  margin-top: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  animation: bounce 2.5s ease-in-out infinite, fadeSlideDown 0.8s ease-out 0.75s both;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.hero-scroll:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ===========================
   ABOUT
   =========================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.about-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.about-card:hover {
  box-shadow: var(--shadow-md);
}

.about-card.orange-accent {
  border-color: #fed7aa;
}

.about-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.about-icon.blue {
  background: var(--blue-dark);
  color: #ffffff;
}

.about-icon.orange {
  background: var(--orange);
  color: #ffffff;
}

.about-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.about-card.blue-card h3 {
  color: var(--blue-dark);
}

.about-card.orange-accent h3 {
  color: var(--orange);
}

.about-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===========================
   EXPERIENCE
   =========================== */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.exp-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.exp-card.blue-card {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.06) 0%, #ffffff 40%);
}

.exp-card.orange-card {
  border-color: #fed7aa;
  background: linear-gradient(180deg, rgba(234, 88, 12, 0.07) 0%, #ffffff 40%);
}

.exp-card:hover {
  box-shadow: var(--shadow-md);
}

.exp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.exp-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.exp-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.exp-icon.blue {
  background: var(--blue-dark);
  color: #ffffff;
}

.exp-icon.orange {
  background: var(--orange);
  color: #ffffff;
}

.exp-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.exp-card.blue-card .exp-title {
  color: var(--blue-dark);
}

.exp-card.orange-card .exp-title {
  color: var(--orange);
}

.exp-company {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.exp-date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.exp-date.blue {
  background: #eff6ff;
  color: var(--blue-dark);
}

.exp-date.orange {
  background: var(--orange-light-bg);
  color: var(--orange);
}

.exp-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.exp-bullet {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.exp-bullet svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--blue-mid);
}

.exp-card.orange-card .exp-bullet svg {
  color: var(--orange);
}

/* ===========================
   SKILLS
   =========================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.skill-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.skill-card.orange-card {
  border-color: #fed7aa;
}

.skill-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.skill-card.blue-card h3 {
  color: var(--blue-dark);
}

.skill-card.orange-card h3 {
  color: var(--orange);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.tag.blue {
  background: var(--blue-light-bg);
  color: var(--blue-mid);
  border: 1px solid #bfdbfe;
}

.tag.orange {
  background: var(--orange-light-bg);
  color: var(--orange);
  border: 1px solid #fed7aa;
}

/* ===========================
   PROJECTS
   =========================== */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.project-card:hover {
  box-shadow: var(--shadow-md);
}

.project-card.orange-card {
  border-color: #fed7aa;
}

.project-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.project-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.project-icon.blue {
  background: var(--blue-dark);
  color: #ffffff;
}

.project-icon.orange {
  background: var(--orange);
  color: #ffffff;
}

.project-info h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.project-card.blue-card .project-info h3 {
  color: var(--blue-dark);
}

.project-card.orange-card .project-info h3 {
  color: var(--orange);
}

.project-info p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.project-highlights {
  margin-bottom: 1.25rem;
}

.project-highlights h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.project-highlights ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.project-highlights li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--blue-mid);
}

.project-card.orange-card .project-highlights li svg {
  color: var(--orange);
}

.project-divider {
  border: none;
  border-top: 1px solid var(--card-border);
  margin: 1.25rem 0;
}

.rag-techniques h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 1rem;
}

.techniques-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.technique-item {
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
}

.technique-item.blue {
  background: var(--blue-light-bg);
}

.technique-item.orange {
  background: var(--orange-light-bg);
}

.technique-item h5 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.technique-item.blue h5 {
  color: var(--blue-dark);
}

.technique-item.orange h5 {
  color: var(--orange);
}

.technique-item p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.project-footer {
  margin-top: 1.25rem;
}

.btn-project {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid var(--card-border);
  color: var(--text-secondary);
  background: transparent;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-project:hover {
  border-color: var(--blue-mid);
  color: var(--blue-mid);
}

.project-card.orange-card .btn-project:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ===========================
   EDUCATION
   =========================== */
.edu-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.edu-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: var(--blue-dark);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.edu-info h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.3rem;
}

.edu-info .edu-school {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.edu-badges {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.edu-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

.edu-badge.year {
  background: #f1f5f9;
  color: var(--text-secondary);
}

.edu-badge.cgpa {
  background: var(--orange-light-bg);
  color: var(--orange);
  border: 1px solid #fed7aa;
}

/* ===========================
   PUBLICATIONS
   =========================== */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pub-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.pub-card:hover {
  box-shadow: var(--shadow-md);
}

.pub-card.orange-card {
  border-color: #fed7aa;
}

.pub-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.pub-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pub-icon.blue {
  background: var(--blue-dark);
  color: #ffffff;
}

.pub-icon.orange {
  background: var(--orange);
  color: #ffffff;
}

.pub-info h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  line-height: 1.5;
}

.pub-info .pub-meta {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
}

.pub-info .pub-meta span {
  font-weight: 600;
  color: var(--text-primary);
}

.btn-pub {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid var(--card-border);
  color: var(--text-secondary);
  background: transparent;
  transition: all var(--transition);
}

.btn-pub:hover {
  border-color: var(--blue-mid);
  color: var(--blue-mid);
}

.pub-card.orange-card .btn-pub:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ===========================
   CONTACT
   =========================== */
.contact-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.contact-card p {
  font-size: 1rem;
  color: var(--orange);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 2rem;
}

.contact-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: linear-gradient(135deg, #0f1d4b 0%, #1e3a8a 50%, #1e40af 100%);
  color: rgba(255, 255, 255, 0.9);
  padding: 3rem 0 1.5rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-mid), var(--orange), var(--blue-mid));
  background-size: 200% 100%;
  animation: gradientShift 4s ease-in-out infinite;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.footer-nav {
  display: flex;
  gap: 1.75rem;
}

.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  transition: color 0.25s ease;
  letter-spacing: 0.01em;
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-brand .footer-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.footer-brand .footer-role {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.25rem;
}

.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.02em;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-lg);
  }

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

  .nav-links a {
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
  }

  .nav-toggle {
    display: flex;
  }

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

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

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

  .edu-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .exp-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-nav {
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-name {
    font-size: 2.4rem;
  }

  .hero-title {
    font-size: 1.2rem;
  }

  .hero-title-keywords {
    font-size: 1.1rem;
  }

  .hero-title-role {
    font-size: 1.15rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 260px;
  }

  .contact-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-title {
    flex-direction: column;
    gap: 0.25rem;
  }
}
