/* ============================================================
   MASTER STYLESHEET
   Prof. Hassabelrasul Yousuf Al-Tom Shahab Al-Din
   Palette: Deep Navy · White · Gold
   Fonts:   Amiri (display) + Cairo (body)
   ============================================================ */

/* ---- CSS VARIABLES ---- */
:root {
  --navy: #0d1f3c;
  --navy-mid: #162b52;
  --navy-light: #1e3a6e;
  --navy-deep: #060e1c;
  --gold: #c5a25c;
  --gold-light: #dfc28a;
  --gold-dark: #9e7d3a;
  --white: #ffffff;
  --off-white: #f8f5ef;
  --cream: #ede8dd;
  --text-dark: #1a1a2e;
  --text-mid: #3d3d5c;
  --text-light: #7a7a9a;
  --border: rgba(197, 162, 92, 0.25);

  --font-display: "Amiri", serif;
  --font-body: "Cairo", sans-serif;

  --shadow-sm: 0 2px 12px rgba(13, 31, 60, 0.08);
  --shadow-md: 0 8px 32px rgba(13, 31, 60, 0.14);
  --shadow-lg: 0 20px 60px rgba(13, 31, 60, 0.2);

  --radius: 4px;
  --transition: 0.3s ease;
}

/* ---- RESET ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-dark);
  background: var(--white);
  direction: rtl;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: #0a1525;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.74rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(197, 162, 92, 0.4);
  letter-spacing: 0.03em;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.topbar .divider {
  color: var(--gold);
  opacity: 0.5;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 18, 36, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(197, 162, 92, 0.3);
  transition:
    box-shadow var(--transition),
    background var(--transition);
}
.navbar.scrolled {
  background: rgba(8, 18, 36, 0.99);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}
.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}
.nav-logo {
  line-height: 1.2;
}
.logo-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.logo-sub {
  display: block;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 300;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}
.nav-links li {
  position: relative;
}
.nav-links a {
  display: block;
  padding: 8px 11px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.81rem;
  font-weight: 600;
  border-radius: 4px;
  transition:
    color var(--transition),
    background var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(197, 162, 92, 0.1);
}
.nav-links .nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  border-radius: 4px;
  font-weight: 700;
  padding: 8px 16px;
}
.nav-links .nav-cta:hover {
  background: var(--gold-light);
}

/* Dropdown arrow */
.dropdown-arrow {
  font-size: 0.65rem;
  color: var(--gold);
  margin-right: 4px;
  display: inline-block;
  transition: transform var(--transition);
}
.has-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
}
.dropdown li a {
  padding: 10px 16px;
  font-size: 0.8rem;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.dropdown li:last-child a {
  border-bottom: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.85rem;
  font-family: var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    background var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(197, 162, 92, 0.4);
}
.btn-primary:hover {
  background: #d4ae6a;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(197, 162, 92, 0.5);
}
.btn-outline {
  display: inline-block;
  border: 1px solid rgba(197, 162, 92, 0.6);
  color: rgba(255, 255, 255, 0.85);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}
.btn-outline:hover {
  background: rgba(197, 162, 92, 0.1);
  border-color: var(--gold);
  color: var(--gold-light);
}
.btn-ghost {
  display: inline-block;
  color: rgba(255, 255, 255, 0.55);
  padding: 14px 24px;
  font-size: 0.82rem;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(197, 162, 92, 0.2);
  text-transform: uppercase;
  transition:
    color var(--transition),
    border-color var(--transition);
}
.btn-ghost:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  margin-bottom: 56px;
}
.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}
.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to left, rgba(197, 162, 92, 0.4), transparent);
  max-width: 160px;
}
.section-line:last-child {
  background: linear-gradient(to right, rgba(197, 162, 92, 0.4), transparent);
}

/* ============================================================
   HERO — FULL BLEED PHOTO BACKGROUND
   ============================================================ */
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}

/*
  TO ADD THE PROFESSOR'S PHOTO:
  Replace .hero-photo-placeholder with:
  <img src="YOUR_PHOTO.jpg" alt="أ.د. حسب الرسول" class="hero-photo-bg" />
*/
.hero-photo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  filter: grayscale(10%) brightness(0.85);
}
.hero-photo-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    160deg,
    #0d1e3c 0%,
    #12294f 35%,
    #0a1525 70%,
    #060e1c 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-photo-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 40px,
      rgba(197, 162, 92, 0.025) 40px,
      rgba(197, 162, 92, 0.025) 41px
    ),
    radial-gradient(
      ellipse 70% 60% at 20% 50%,
      rgba(197, 162, 92, 0.07) 0%,
      transparent 70%
    );
}
.placeholder-silhouette {
  position: relative;
  z-index: 1;
  opacity: 0.12;
}
.placeholder-silhouette svg {
  width: 280px;
  height: auto;
}

/* Gradient: transparent on left (photo shows) → dark on right (text readable) */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to left,
    rgba(6, 14, 30, 0.92) 25%,
    rgba(8, 18, 38, 0.82) 35%,
    rgba(8, 18, 38, 0.25) 60%,
    transparent 100%
  );
}
.hero-accent-line {
  position: absolute;
  top: 15%;
  right: 0;
  width: 3px;
  height: 70%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(197, 162, 92, 0.6),
    transparent
  );
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  margin-right: 6%;
  margin-left: auto;
  max-width: 580px;
  padding: 120px 0 100px;
  animation: heroReveal 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}
@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.hero-ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.hero-ornament-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to left, var(--gold), transparent);
  max-width: 80px;
}
.hero-ornament-diamond {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.hero-ornament-text {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 700;
  font-family: var(--font-body);
  text-transform: uppercase;
  white-space: nowrap;
}
.hero-title {
  font-family: var(--font-display);
  line-height: 1.2;
  margin-bottom: 24px;
}
.title-prefix {
  display: block;
  font-size: 1.1rem;
  color: rgba(197, 162, 92, 0.85);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.title-name {
  display: block;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: #fff;
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
.title-surname {
  display: block;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  color: var(--gold-light);
  font-weight: 400;
  margin-top: 6px;
}
.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  margin-bottom: 28px;
  padding-right: 20px;
  border-right: 2px solid rgba(197, 162, 92, 0.5);
}
.hero-affiliation {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(197, 162, 92, 0.1);
  border: 1px solid rgba(197, 162, 92, 0.3);
  border-radius: var(--radius);
  padding: 8px 18px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 44px;
  backdrop-filter: blur(4px);
}
.affil-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(197, 162, 92, 0.6);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.7);
  }
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 36px;
  right: 50%;
  transform: translateX(50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  animation: heroReveal 1.4s 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}
.scroll-track {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(197, 162, 92, 0.5));
  position: relative;
  overflow: hidden;
}
.scroll-track::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gold);
  animation: scrollDrop 2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0% {
    top: -100%;
  }
  100% {
    top: 200%;
  }
}

/* ============================================================
   INTRO STRIP
   ============================================================ */
.intro-strip {
  background: var(--off-white);
  border-top: 3px solid var(--gold);
  border-bottom: 1px solid rgba(197, 162, 92, 0.2);
  padding: 32px 24px;
}
.strip-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.strip-inner p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: #2a3a58;
  line-height: 1.9;
}

/* ============================================================
   STATS
   ============================================================ */
.stats-section {
  background: #0d1e3c;
  padding: 72px 24px;
  position: relative;
}
.stats-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    -60deg,
    transparent,
    transparent 80px,
    rgba(197, 162, 92, 0.02) 80px,
    rgba(197, 162, 92, 0.02) 81px
  );
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(197, 162, 92, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.stat-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 44px 28px;
  text-align: center;
  border-right: 1px solid rgba(197, 162, 92, 0.1);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    background var(--transition);
  position: relative;
}
.stat-card:last-child {
  border-right: none;
}
.stat-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.stat-card:hover {
  background: rgba(197, 162, 92, 0.06);
}
.stat-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.stat-card:hover::after {
  transform: scaleX(1);
}
.stat-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
}

/* ============================================================
   QUICK LINKS
   ============================================================ */
.quick-section {
  padding: 96px 24px;
  background: var(--off-white);
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(197, 162, 92, 0.2);
  border: 1px solid rgba(197, 162, 92, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
}
.quick-card {
  background: #fff;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    background var(--transition);
}
.quick-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.quick-card:hover {
  background: #fdfbf7;
}
.quick-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--gold-dark), var(--gold));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}
.quick-card:hover::before {
  transform: scaleX(1);
}
.qcard-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: rgba(197, 162, 92, 0.12);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 20px;
  transition: color var(--transition);
}
.quick-card:hover .qcard-num {
  color: rgba(197, 162, 92, 0.22);
}
.quick-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #0d1e3c;
  margin-bottom: 12px;
  line-height: 1.4;
}
.quick-card p {
  font-size: 0.84rem;
  color: var(--text-light);
  line-height: 1.8;
  flex: 1;
}
.qcard-footer {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(197, 162, 92, 0.15);
}
.qcard-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--gold-dark);
  font-weight: 700;
  text-transform: uppercase;
}
.qcard-arrow {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(197, 162, 92, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.9rem;
  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
}
.quick-card:hover .qcard-arrow {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  transform: translateX(-4px);
}

/* ============================================================
   EXPERTISE TAGS
   ============================================================ */
.expertise-section {
  background: #0d1e3c;
  padding: 80px 24px;
  position: relative;
}
.expertise-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 60% 50% at 50% 100%,
    rgba(197, 162, 92, 0.04) 0%,
    transparent 70%
  );
}
.expertise-section .section-heading h2 {
  color: var(--white);
}
.expertise-section .section-line {
  background: linear-gradient(to left, rgba(197, 162, 92, 0.4), transparent);
}
.expertise-section .section-line:last-child {
  background: linear-gradient(to right, rgba(197, 162, 92, 0.4), transparent);
}
.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.tag {
  display: inline-block;
  background: transparent;
  border: 1px solid rgba(197, 162, 92, 0.3);
  color: rgba(255, 255, 255, 0.65);
  padding: 10px 24px;
  border-radius: 2px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  cursor: default;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}
.tag.visible {
  opacity: 1;
  transform: translateY(0);
}
.tag:hover {
  background: rgba(197, 162, 92, 0.1);
  color: var(--gold-light);
  border-color: var(--gold);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--off-white);
  padding: 100px 24px;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.cta-eyebrow {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gold-dark);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--navy);
  margin-bottom: 14px;
  font-weight: 700;
}
.cta-section p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 48px;
  line-height: 1.8;
}
.cta-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 44px;
}
.cta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid rgba(197, 162, 92, 0.25);
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--navy);
  transition:
    box-shadow var(--transition),
    border-color var(--transition),
    transform var(--transition);
  box-shadow: 0 2px 8px rgba(13, 31, 60, 0.06);
}
.cta-item:hover {
  box-shadow: 0 6px 24px rgba(197, 162, 92, 0.18);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.cta-icon {
  font-size: 1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(197, 162, 92, 0.2);
  padding: 64px 24px 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 32px;
}
.footer-logo span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 8px;
}
.footer-logo p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: flex-end;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--gold);
}
.footer-bottom {
  text-align: center;
}
.footer-bottom span {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.04em;
}

/* ============================================================
   SUB-PAGE STYLES (cv, research, teaching, etc.)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.page-hero-label {
  display: inline-block;
  background: rgba(197, 162, 92, 0.15);
  border: 1px solid var(--gold-dark);
  color: var(--gold-light);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--white);
  margin-bottom: 12px;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}
.page-content {
  padding: 60px 24px 80px;
  max-width: 1000px;
  margin: 0 auto;
}
.content-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.content-card:hover {
  box-shadow: var(--shadow-md);
}
.content-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--cream);
  display: flex;
  align-items: center;
  gap: 10px;
}
.content-card h2 .card-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.content-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.content-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cream);
}
.content-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.content-list li::before {
  content: "◆";
  color: var(--gold);
  font-size: 0.5rem;
  margin-top: 7px;
  flex-shrink: 0;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.info-item label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.info-item span {
  display: block;
  font-size: 0.92rem;
  color: var(--navy);
  font-weight: 600;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   RESPONSIVE — TABLET (≤1100px)
   ============================================================ */
@media (max-width: 1100px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-content {
    max-width: 500px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Navbar */
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #0d1e3c;
    padding: 16px 24px 24px;
    border-top: 1px solid var(--border);
    gap: 2px;
    z-index: 999;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    font-size: 0.9rem;
    padding: 11px 14px;
  }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0;
    margin-top: 2px;
  }

  /* Hero: switch gradient to top→bottom so photo shows at top, text sits at bottom */
  .hero {
    min-height: 100svh;
    align-items: flex-end;
  }
  .hero-overlay {
    background: linear-gradient(
      to top,
      rgba(6, 14, 30, 0.97) 0%,
      rgba(6, 14, 30, 0.85) 45%,
      rgba(6, 14, 30, 0.3) 70%,
      transparent 100%
    );
  }
  .hero-content {
    margin-right: 0;
    margin-left: 0;
    max-width: 100%;
    width: 100%;
    padding: 0 24px 60px;
  }
  .hero-accent-line {
    display: none;
  }
  .hero-scroll {
    display: none;
  }
  .title-name {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }
  .title-surname {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }
  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  .btn-primary,
  .btn-outline,
  .btn-ghost {
    text-align: center;
    width: 100%;
    padding: 14px 20px;
  }

  /* Stats — 2 column grid */
  .stats-section {
    padding: 48px 20px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-card {
    padding: 28px 16px;
  }
  .stat-card:nth-child(even) {
    border-right: none;
  }

  /* Quick grid */
  .quick-grid {
    grid-template-columns: 1fr;
  }
  .quick-section {
    padding: 64px 20px;
  }
  .quick-card {
    padding: 28px 24px;
  }

  /* Section headings */
  .section-heading {
    margin-bottom: 36px;
  }

  /* CTA */
  .cta-section {
    padding: 64px 20px;
  }
  .cta-contacts {
    flex-direction: column;
    align-items: center;
  }
  .cta-item {
    width: 100%;
    max-width: 360px;
    justify-content: center;
  }

  /* Footer */
  .footer {
    padding: 48px 20px 24px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-links {
    justify-content: flex-start;
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================================ */
@media (max-width: 480px) {
  .topbar {
    display: none;
  }
  .stat-number {
    font-size: 2rem;
  }
  .strip-inner p {
    font-size: 0.95rem;
  }
  .expertise-section {
    padding: 52px 20px;
  }
  .expertise-tags {
    gap: 8px;
  }
  .tag {
    padding: 8px 16px;
    font-size: 0.78rem;
  }
}
