/* =========================================================
   Portfolio — M. Shahriar Hasan Limon
   Clean, beginner-friendly CSS. Edit the variables below
   to change colors, spacing, and fonts across the site.
   ========================================================= */

:root {
  --navy-950: #07111f;
  --navy-900: #0b1220;
  --navy-800: #111b2e;
  --navy-700: #1a2740;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --accent: #38bdf8;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --text: #0f172a;
  --text-muted: #475569;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 72px;
  --container: 1120px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: var(--blue-600);
  text-decoration: none;
}

a:hover {
  color: var(--blue-700);
}

h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--navy-900);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 1rem; }

ul { margin: 0; padding: 0; list-style: none; }

button, input, textarea {
  font-family: inherit;
  font-size: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* ---------- Reusable buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.35rem;
  border-radius: 10px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--blue-700);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-small {
  padding: 0.6rem 1rem;
  font-size: 0.92rem;
}

/* ---------- Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 17, 31, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.navbar {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  color: var(--white);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.logo:hover { color: var(--accent); }

.nav-menu {
  display: flex;
  gap: 0.2rem 1.15rem;
  align-items: center;
}

.nav-link {
  color: var(--gray-300);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.3rem 0;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--white);
  margin: 5px auto;
  border-radius: 2px;
  transition: 0.25s ease;
}

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-900);
  color: var(--white);
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 4.5rem 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.18), transparent 32%),
    radial-gradient(circle at 85% 70%, rgba(56, 189, 248, 0.12), transparent 30%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 42px 42px, 42px 42px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-kicker {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.75rem;
}

.hero h1 { color: var(--white); margin-bottom: 0.55rem; }

.hero-subtitle {
  color: var(--blue-100);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 1.1rem;
}

.hero-intro {
  color: var(--gray-300);
  max-width: 38rem;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.profile-frame {
  position: relative;
  width: 320px;
  height: 320px;
}

.profile-ring {
  position: absolute;
  inset: -10px;
  border: 1px dashed rgba(56, 189, 248, 0.35);
  border-radius: 50%;
}

.profile-photo {
  width: 280px;
  height: 280px;
  margin: 20px auto 0;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  background: var(--navy-800);
  position: relative;
}

.profile-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.profile-photo:hover img {
  transform: scale(1.04);
}

.img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: var(--white);
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  z-index: 0;
}

/* Author `display: flex` otherwise wins over the hidden attribute. */
.img-fallback[hidden] {
  display: none !important;
}

.img-fallback span {
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: 0.04em;
}

.img-fallback small {
  color: var(--gray-400);
  font-size: 0.75rem;
}

.profile-photo img.is-hidden,
.project-image img.is-hidden,
.about-photo-wrap img.is-hidden {
  display: none;
}

.float-tag {
  position: absolute;
  background: rgba(17, 27, 46, 0.92);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  animation: float 5s ease-in-out infinite;
}

.tag-1 { top: 18px; left: -8px; }
.tag-2 { top: 8px; right: 12px; animation-delay: 0.6s; }
.tag-3 { bottom: 42px; left: -18px; animation-delay: 1.1s; }
.tag-4 { bottom: 18px; right: -6px; animation-delay: 0.3s; }
.tag-5 { top: 46%; right: -28px; animation-delay: 0.9s; }

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

/* ---------- Sections ---------- */
.section {
  padding: 5.2rem 0;
}

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

.section-header {
  margin-bottom: 2.4rem;
  max-width: 44rem;
}

.section-kicker {
  color: var(--blue-600);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 0.8rem;
}

.section-header h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  background: var(--blue-600);
  border-radius: 3px;
  margin-top: 0.55rem;
}

.section-intro {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.subheading {
  margin: 2.6rem 0 1.1rem;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: start;
}

.about-photo-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 380px;
  background: var(--navy-800);
  box-shadow: var(--shadow);
}

.about-photo-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.about-photo-wrap:hover img {
  transform: scale(1.03);
}

.about-fallback {
  min-height: 380px;
}

.about-content p {
  color: var(--gray-700);
}

.info-card {
  margin-top: 1.4rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.info-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0.8rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--gray-100);
}

.info-row:last-child { border-bottom: 0; }

.info-label {
  color: var(--gray-500);
  font-size: 0.85rem;
  font-weight: 600;
}

.info-value {
  font-weight: 600;
  color: var(--navy-900);
}

/* ---------- Education ---------- */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.edu-simple {
  background: var(--white);
  border-radius: 16px;
  padding: 1.6rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.edu-simple h3 {
  color: var(--blue-700);
  font-size: 1.05rem;
  margin-bottom: 0.7rem;
}

.edu-simple p {
  color: var(--gray-700);
  margin-bottom: 0.2rem;
}

.edu-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.6rem 2rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--blue-600);
  margin-bottom: 2rem;
}

.edu-degree-label {
  color: var(--blue-600);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.edu-school {
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 0.25rem;
}

.edu-faculty,
.edu-dept {
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.coursework h3 { margin-bottom: 0.4rem; }
.coursework-note { color: var(--text-muted); margin-bottom: 1rem; }

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.badge-list li {
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--navy-800);
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
}

.section-alt .badge-list li,
.skill-card .badge-list li,
.project-card .badge-list li {
  background: var(--gray-50);
}

.badge-list.compact li {
  font-size: 0.8rem;
}

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

.skill-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.skill-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--blue-100);
  color: var(--blue-700);
  margin-bottom: 0.9rem;
}

.skill-icon svg {
  width: 22px;
  height: 22px;
}

.skill-card h3 { margin-bottom: 0.9rem; }

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

.project-simple .project-body {
  text-align: center;
  padding: 1.5rem 1.2rem 1.4rem;
}

.project-simple h3 {
  color: var(--blue-700);
  font-size: 1.08rem;
  margin-bottom: 0.65rem;
}

.project-simple .btn {
  align-self: center;
  margin-top: 1rem;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.project-image {
  position: relative;
  height: 210px;
  background: var(--navy-800);
  overflow: hidden;
}

.project-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-fallback {
  color: var(--gray-200);
  gap: 0.5rem;
}

.project-fallback svg {
  width: 42px;
  height: 42px;
}

.project-fallback span {
  font-size: 0.9rem;
  font-weight: 600;
}

.fallback-web { background: linear-gradient(160deg, #1e3a5f, #0b1220); }
.fallback-robot { background: linear-gradient(160deg, #1e3a4c, #123047); }
.fallback-security { background: linear-gradient(160deg, #1b2d4a, #0f1b30); }
.fallback-java { background: linear-gradient(160deg, #2a3344, #151b27); }
.fallback-game { background: linear-gradient(160deg, #1a3554, #0c1a2e); }

.project-body {
  padding: 1.25rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.project-body p { color: var(--gray-700); }

.project-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin: 0.55rem 0 0.2rem;
}

.feature-list {
  display: grid;
  gap: 0.28rem;
  margin-bottom: 0.5rem;
}

.feature-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--gray-700);
  font-size: 0.92rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-600);
}

.project-contributors {
  font-size: 0.92rem;
  color: var(--gray-600);
}

.project-body .btn {
  margin-top: auto;
  align-self: flex-start;
}
.project-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.project-actions .btn {
  margin-top: 0;
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy-800);
  border: 2px solid var(--gray-300);
}

.btn-outline-dark:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
}

.project-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    align-self: flex-start;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--blue-100);
    color: var(--blue-700);
    font-size: 0.8rem;
    font-weight: 600;
}
/* ---------- Research ---------- */
.interest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.interest-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  font-weight: 600;
  color: var(--navy-800);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.interest-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue-500);
}

.featured-research,
.survey-card,
.goal-card {
  background: var(--navy-900);
  color: var(--gray-200);
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
}

.featured-research h3,
.survey-card h3,
.goal-card h3 {
  color: var(--white);
}

.featured-label {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.flow-caption {
  margin: 1.2rem 0 0.7rem;
  font-weight: 600;
  color: var(--gray-300);
}

.research-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.flow-step {
  background: var(--navy-700);
  color: var(--white);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.55rem 0.8rem;
  border-radius: 9px;
  font-size: 0.86rem;
  font-weight: 600;
}

.flow-arrow {
  color: var(--accent);
  font-weight: 700;
}

.other-research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.other-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.other-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.other-card p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.survey-card {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}
.survey-card {
    margin-bottom: 1.5rem;
}

.survey-card:last-child {
    margin-bottom: 0;
}

.survey-card h3 { color: var(--navy-900); }
.survey-card .featured-label { color: var(--blue-600); }

/* ---------- Experience ---------- */
.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.experience-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.exp-type {
  color: var(--blue-600);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.exp-duration {
  font-weight: 600;
  color: var(--navy-800);
}

.goal-card p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.contact-lead {
  color: var(--text-muted);
}

.contact-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.95rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  margin-bottom: 0.8rem;
  color: inherit;
  background: var(--white);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.contact-item:hover {
  border-color: var(--blue-500);
  transform: translateY(-2px);
  color: inherit;
}

.contact-item strong {
  display: block;
  color: var(--navy-900);
}

.contact-item span span {
  color: var(--gray-600);
  font-size: 0.95rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-100);
  color: var(--blue-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
}

.contact-form {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 1.4rem;
}

.form-group {
  margin-bottom: 0.95rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--navy-800);
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-status {
  margin: 0.9rem 0 0;
  font-weight: 600;
  color: var(--navy-800);
  min-height: 1.3em;
}

.form-status.is-error {
  color: #b91c1c;
}

.honey-pot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .btn:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: var(--gray-300);
  padding: 2.4rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.4rem;
}

.footer-name {
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.footer-tagline { color: var(--gray-400); margin: 0; }

.footer-links,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.1rem;
}

.footer-links a,
.footer-social a {
  color: var(--gray-300);
}

.footer-links a:hover,
.footer-social a:hover {
  color: var(--white);
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.1rem;
  margin: 0;
  color: var(--gray-500);
  font-size: 0.9rem;
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: none;
}

.fade-in.is-visible {
  animation: fadeUp 0.7s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 3.5rem 0 4rem;
  }

  .hero-visual { order: -1; }

  .profile-frame {
    width: 280px;
    height: 280px;
  }

  .profile-photo {
    width: 240px;
    height: 240px;
  }

  .skills-grid,
  .interest-grid,
  .edu-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-menu {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--navy-900);
    flex-direction: column;
    align-items: stretch;
    padding: 1.2rem 1.4rem 2rem;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.28s ease;
  }

  .nav-menu.is-open {
    transform: translateX(0);
  }

  .nav-link {
    display: block;
    padding: 0.85rem 0.2rem;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-link.active::after { display: none; }

  .projects-grid,
  .experience-grid,
  .other-research-grid,
  .skills-grid,
  .interest-grid,
  .edu-grid {
    grid-template-columns: 1fr;
  }
  .certifications-grid {
  grid-template-columns: 1fr;
}
  .info-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .research-flow {
    flex-direction: column;
    align-items: stretch;
  }

  .flow-arrow {
    transform: rotate(90deg);
    text-align: center;
  }

  body.menu-open { overflow: hidden; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 1.5rem, var(--container)); }

  .hero-actions,
  .btn { width: 100%; }

  .section { padding: 3.6rem 0; }

  .profile-frame {
    width: 240px;
    height: 240px;
  }

  .profile-photo {
    width: 200px;
    height: 200px;
  }

  .tag-5 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}
/* ---------- Certifications ---------- */

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.3rem;
}

.certification-card {
  display: flex;
  gap: 1.1rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.certification-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.cert-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-weight: 700;
}

.cert-content {
  flex: 1;
}

.cert-platform {
  margin-bottom: 0.35rem;
  color: var(--blue-600);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cert-content h3 {
  margin-bottom: 0.55rem;
  color: var(--navy-900);
}

.cert-content p:not(.cert-platform) {
  color: var(--gray-600);
  font-size: 0.92rem;
}

.cert-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.cert-year {
  color: var(--gray-500);
  font-size: 0.85rem;
  font-weight: 600;
}

.cert-link {
  color: var(--blue-600);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.cert-link:hover {
  color: var(--blue-700);
  text-decoration: underline;
}
