/* ============================================================
   DESIGN SYSTEM — Sayed Sohanul Islam Portfolio v2.0
   Clean, professional, human-crafted aesthetic
   ============================================================ */
:root {
  /* Background layers */
  --bg: #0b1121;
  --bg-1: #0f172a;
  --bg-2: #1e293b;
  --bg-card: rgba(15, 23, 42, 0.55);
  --bg-card-hover: rgba(30, 41, 59, 0.7);

  /* Accent — warm teal, confident but not neon */
  --accent: #2dd4bf;
  --accent-bright: #5eead4;
  --accent-glow: rgba(45, 212, 191, 0.12);
  --accent-dim: rgba(45, 212, 191, 0.06);

  --accent2: #38bdf8;
  --accent3: #f59e0b;
  --accent4: #f472b6;

  /* Text */
  --text: #e2e8f0;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --white: #f8fafc;

  /* Borders */
  --border: rgba(148, 163, 184, 0.12);
  --border-s: rgba(148, 163, 184, 0.06);

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-m: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing & Shapes */
  --r: 12px;
  --r-sm: 8px;
  --r-lg: 16px;
  --max-w: 1120px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(45, 212, 191, 0.25);
  color: var(--white);
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.section {
  padding: clamp(5rem, 10vw, 8rem) 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: var(--r-sm);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45, 212, 191, 0.25);
}
.btn-outline {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  border-radius: 6px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(11, 17, 33, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
#navbar.scrolled {
  background: rgba(11, 17, 33, 0.92);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  transition: color 0.3s;
}
.nav-logo span {
  color: var(--accent);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}
.nav-links a.active {
  background: rgba(255, 255, 255, 0.04);
}
.nav-links .nav-cta {
  background: var(--accent);
  color: var(--bg) !important;
  font-weight: 600;
  margin-left: 0.5rem;
  border-radius: var(--r-sm);
}
.nav-links .nav-cta:hover {
  background: var(--accent-bright);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.eyebrow {
  display: inline-block;
  font-family: var(--font-m);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 500;
}
.s-title {
  font-family: var(--font);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}
.s-title em {
  font-style: normal;
  color: var(--accent);
}
.s-desc {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 520px;
  line-height: 1.8;
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
  overflow: hidden;
}
/* Subtle grain texture via pseudo-element */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 20% 50%, rgba(45, 212, 191, 0.04) 0%, transparent 70%),
              radial-gradient(ellipse 50% 60% at 80% 60%, rgba(56, 189, 248, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: center;
}

.avail-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-dim);
  border: 1px solid rgba(45, 212, 191, 0.15);
  padding: 0.35rem 0.9rem 0.35rem 0.65rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  width: fit-content;
}
.avail-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.avail-text {
  font-family: var(--font-m);
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  font-weight: 500;
}

.hero-name {
  font-family: var(--font);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.04em;
}
.name-accent {
  color: var(--accent);
}

.hero-role {
  font-family: var(--font-m);
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  color: var(--text-2);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 1.5em;
}
.typewriter-text {
  color: var(--accent);
  font-weight: 500;
}
.tw-cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 500px;
}
.hero-desc strong {
  color: var(--white);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-socials {
  display: flex;
  gap: 0.4rem;
}
.soc-btn {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-s);
  color: var(--text-3);
  transition: all 0.2s;
}
.soc-btn:hover {
  color: var(--accent);
  border-color: rgba(45, 212, 191, 0.2);
  background: var(--accent-dim);
  transform: translateY(-2px);
}
.soc-btn svg {
  width: 16px;
  height: 16px;
}

/* Photo */
.hero-photo-wrap {
  position: relative;
}
.photo-frame {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-3);
  font-family: var(--font-m);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-mouse {
  width: 18px; height: 28px;
  border: 1.5px solid var(--text-3);
  border-radius: 9px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}
.scroll-dot {
  width: 2px; height: 5px;
  background: var(--accent);
  border-radius: 1px;
  animation: scroll-drop 1.8s ease-in-out infinite;
}
@keyframes scroll-drop {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(7px); opacity: 0; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-layout {
  max-width: 720px;
}
.about-text p {
  font-size: 1.02rem;
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: 1rem;
}
.about-text p strong {
  color: var(--white);
  font-weight: 600;
}
.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.5rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.chip:hover {
  color: var(--accent);
  border-color: rgba(45, 212, 191, 0.2);
  background: var(--accent-dim);
}
.chip-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-s);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}
.proj-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.proj-thumb-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.proj-thumb-icon {
  font-size: 2.25rem;
  display: block;
  opacity: 0.8;
}
.proj-feat {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  z-index: 2;
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent3);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  font-family: var(--font-m);
  letter-spacing: 0.04em;
}
.proj-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.proj-year {
  font-family: var(--font-m);
  font-size: 0.68rem;
  color: var(--text-3);
  margin-bottom: 0.35rem;
}
.proj-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.proj-blurb {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 1rem;
  flex: 1;
}
.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 1rem;
}
.proj-tags span {
  font-size: 0.65rem;
  font-family: var(--font-m);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-3);
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--border-s);
}
.proj-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: auto;
}

/* ============================================================
   RESUME
   ============================================================ */
.resume-hub-layout {
  display: flex;
  justify-content: center;
}
.resume-card-wrapper {
  max-width: 520px;
  width: 100%;
}
.resume-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}
.resume-card:hover {
  border-color: rgba(45, 212, 191, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
.rc-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--accent-dim);
  border: 1px solid rgba(45, 212, 191, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
}
.rc-icon svg {
  width: 20px;
  height: 20px;
}
.rc-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.rc-desc {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.rc-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}
.rc-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.4;
}
.rc-bullets li svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
}
.rc-actions {
  display: flex;
  gap: 0.5rem;
}

/* ============================================================
   CERTIFICATES
   ============================================================ */
.certs-count {
  font-size: 1rem;
  color: var(--text-2);
  margin-bottom: 2rem;
}
.certs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.cert-cat {
  background: var(--bg-card);
  border: 1px solid var(--border-s);
  border-radius: var(--r-lg);
  padding: 1.5rem;
}
.cert-cat-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.cert-cat-icon {
  font-size: 1.1rem;
}
.cert-cat-label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--white);
}
.cert-cat-count {
  font-family: var(--font-m);
  font-size: 0.65rem;
  color: var(--text-3);
  margin-left: auto;
}
.cert-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.cert-chip {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-2);
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  border: 1px solid var(--border-s);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.cert-provider {
  font-family: var(--font-m);
  font-size: 0.55rem;
  font-weight: 600;
  background: rgba(45, 212, 191, 0.1);
  color: var(--accent);
  padding: 0.05rem 0.2rem;
  border-radius: 3px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2.5rem;
}
.contact-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-s);
  border-radius: var(--r);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: all 0.2s;
}
.contact-card:hover {
  border-color: var(--border);
  background: var(--bg-card-hover);
}
.contact-icon {
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}
.cl {
  font-size: 0.68rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.cv {
  font-size: 0.82rem;
  color: var(--text-2);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-s);
  border-radius: var(--r-lg);
  padding: 2rem;
}
.contact-form-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.01em;
}
.form-group label .req {
  color: var(--accent4);
}
.form-group input,
.form-group textarea {
  background: rgba(11, 17, 33, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.65rem 0.85rem;
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--text);
  transition: all 0.2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-3);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.08);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--border-s);
  padding: 2.5rem 0;
  margin-top: 2rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.footer-logo {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
}
.footer-logo span {
  color: var(--accent);
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-3);
}
.footer-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-3);
}
.footer-links a:hover {
  color: var(--accent);
}

/* ============================================================
   PROJECT MODAL
   ============================================================ */
.modal-bg {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.modal-bg.active {
  opacity: 1;
  visibility: visible;
}
.modal-panel {
  position: fixed;
  top: 0; right: -100%; bottom: 0;
  z-index: 2001;
  width: min(500px, 100%);
  background: var(--bg-1);
  border-left: 1px solid var(--border-s);
  overflow-y: auto;
  transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  padding-bottom: 3rem;
}
.modal-bg.active .modal-panel {
  right: 0;
}
.modal-top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-1);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-s);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-label {
  font-family: var(--font-m);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  font-weight: 500;
}
.modal-close-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s;
  line-height: 1;
}
.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}
.modal-content {
  padding: 1.75rem 1.5rem;
}
.project-year {
  font-family: var(--font-m);
  font-size: 0.7rem;
  color: var(--text-3);
  margin-bottom: 0.3rem;
}
.modal-content h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}
.modal-role {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent2);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.12);
  padding: 0.15rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 1.75rem;
}
.modal-tags span {
  font-size: 0.68rem;
  font-family: var(--font-m);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-s);
}
.modal-section {
  margin-bottom: 1.75rem;
}
.modal-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.65rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--accent);
}
.modal-section p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.7;
}
.modal-section ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.modal-section li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.5;
}
.modal-section li::before {
  content: '→';
  position: absolute;
  left: 0; top: 0;
  color: var(--accent);
  font-size: 0.8rem;
}
.modal-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

/* ============================================================
   PDF VIEWER MODAL
   ============================================================ */
.pdf-modal-bg {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 2rem;
}
.pdf-modal-bg.active {
  opacity: 1;
  visibility: visible;
}
.pdf-modal-card {
  width: 100%;
  max-width: 860px;
  height: 88%;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.3s ease;
}
.pdf-modal-bg.active .pdf-modal-card {
  transform: scale(1);
}
.pdf-modal-header {
  padding: 0.85rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-s);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pdf-modal-header h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
}
.pdf-modal-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.pdf-modal-body {
  flex: 1;
  position: relative;
  background: #0f0f0f;
}
.pdf-viewer-container {
  width: 100%;
  height: 100%;
  display: block;
}
.pdf-mobile-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  padding: 2rem;
}
.pdf-mobile-fallback h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.pdf-mobile-fallback p {
  font-size: 0.85rem;
  color: var(--text-2);
  max-width: 260px;
  margin-bottom: 1.25rem;
}

/* ============================================================
   TOAST
   ============================================================ */
#toast {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 9999;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(100px);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#toast.show {
  transform: translateY(0);
}
.t-icon { font-size: 1rem; }
.t-msg {
  font-size: 0.8rem;
  color: var(--text-2);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
#back-top {
  position: fixed;
  bottom: 1.5rem; left: 1.5rem;
  z-index: 100;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-1);
  color: var(--text-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  opacity: 0;
  visibility: hidden;
}
#back-top.visible {
  opacity: 1;
  visibility: visible;
}
#back-top:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
#back-top svg {
  width: 14px;
  height: 14px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 20px;
  }
  .hero-photo-wrap {
    max-width: 280px;
    margin: 0 auto;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }

  #navbar { background: rgba(11, 17, 33, 0.95); }

  .hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    top: 64px; left: 100%; bottom: 0;
    width: 100%;
    background: var(--bg);
    z-index: 999;
    padding: 2.5rem 1.5rem;
    transition: left 0.35s var(--ease);
    border-top: 1px solid var(--border-s);
  }
  .nav-menu.open { left: 0; }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .nav-links a {
    font-size: 1.05rem;
    display: block;
    padding: 0.5rem 0.75rem;
    text-align: center;
  }
  .nav-links .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .certs-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .rc-actions { flex-direction: column; }

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

@media (max-width: 480px) {
  .hero-name {
    font-size: 2.4rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
}
