/* ============================================================
   Fahad Parvez Mahdi — Personal Academic Website
   style.css
   ============================================================ */

/* ── Variables ───────────────────────────────────────────── */
:root {
  --red:        #e53935;
  --dark:       #0f0f1a;
  --dark2:      #161628;
  --dark3:      #1e1e35;
  --white:      #ffffff;
  --off-white:  #f5f5f7;
  --muted:      rgba(255,255,255,0.65);
  --line:       rgba(255,255,255,0.1);
  --nav-h:      60px;
  --font:       'Roboto', sans-serif;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: #222; background: #fff; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  height: var(--nav-h);
  box-shadow: 0 1px 6px rgba(0,0,0,0.12);
}
.nav-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
}
.brand {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
  padding-right: 20px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  list-style: none;
  height: 100%;
  align-items: stretch;
  flex: 1;
}
.nav-links > li { height: 100%; position: relative; }
.nav-links > li > a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 10px;
  font-size: 0.78rem;
  color: #222;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-links > li > a:hover,
.nav-links > li.active > a {
  background: #222;
  color: #fff;
}

/* Dropdown */
.nav-links .has-drop { position: relative; }
.drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  min-width: 140px;
  list-style: none;
  z-index: 999;
}
.has-drop:hover .drop-menu { display: block; }
.drop-menu li a {
  display: block;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: #222;
  transition: background 0.15s;
}
.drop-menu li a:hover { background: #f0f0f0; }

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  margin-left: auto;
  line-height: 1;
  padding: 4px 8px;
}

/* ── Hero — Inner Pages ───────────────────────────────────── */
.hero {
  position: relative;
  height: 280px;
  background-size: cover;
  background-position: center;
  background-color: #2a2a42;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.52);
}
.hero-inner {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}
.hero-inner h1 {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  line-height: 1.2;
}
.red-bar {
  width: 200px;
  height: 4px;
  background: var(--red);
  margin: 14px auto 0;
}

/* ── Hero — Home ──────────────────────────────────────────── */
.hero-home {
  position: relative;
  height: 100vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  background-color: #111;
  display: flex;
  align-items: center;
}
.hero-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.hero-home-content {
  position: relative;
  z-index: 1;
  margin-left: 46%;
  padding: 36px 40px;
  color: #fff;
  max-width: 520px;
  background: rgba(0,0,0,0.52);
  border-left: 4px solid var(--red);
  backdrop-filter: blur(3px);
}
.hero-home-content h1 {
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.25;
}
.hero-home-content .red-bar {
  margin: 14px 0 18px;
  width: 100%;
  max-width: 300px;
}
.hero-home-content h2 {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
  color: #fff;
}
.hero-home-content .role-details p {
  font-size: 0.92rem;
  line-height: 2;
  opacity: 0.88;
  margin: 0;
}

/* ── Sections ─────────────────────────────────────────────── */
.section-dark {
  background: var(--dark);
  color: #fff;
  padding: 60px 0;
}
.section-dark2 {
  background: var(--dark2);
  color: #fff;
  padding: 60px 0;
}
.section-light {
  background: var(--off-white);
  padding: 60px 0;
}
.section-white {
  background: #fff;
  padding: 60px 0;
}

/* Container */
.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section heading */
.sec-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  margin-bottom: 28px;
  display: inline-block;
}
.sec-title-dark {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #222;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  margin-bottom: 28px;
  display: inline-block;
}

/* ── Home: Profile Logos ──────────────────────────────────── */
.logos-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px 56px;
  padding: 44px 24px;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
}
.logos-row a {
  display: flex;
  align-items: center;
  transition: transform 0.2s, opacity 0.2s;
  opacity: 0.8;
}
.logos-row a:hover { transform: scale(1.08); opacity: 1; }
.logos-row img { height: 38px; object-fit: contain; }

/* ── Home: Recent News ────────────────────────────────────── */
.news-wrap {
  background: #fff;
  padding: 48px 24px 64px;
}
.news-inner { max-width: 820px; margin: 0 auto; }
.news-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 28px;
}
.news-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid #efefef;
  font-size: 0.92rem;
  line-height: 1.6;
}
.news-item:last-child { border-bottom: none; }
.news-date { color: var(--red); font-weight: 500; font-size: 0.88rem; }
.news-text a { color: #1a73e8; }
.news-text a:hover { text-decoration: underline; }
.news-text strong { font-style: italic; }

/* ── Academic Qualifications ──────────────────────────────── */
.degree-block {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.degree-block:last-child { border-bottom: none; }
.degree-num {
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.degree-field {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-top: 6px;
  font-weight: 400;
}
.degree-uni {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  margin-top: 10px;
}
.degree-note {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
  line-height: 1.6;
}
.degree-note span { color: rgba(255,255,255,0.8); font-weight: 600; }

/* ── Publications ─────────────────────────────────────────── */
.pub-group { margin-bottom: 48px; }
.pub-group-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  border-bottom: 2px solid var(--red);
  padding-bottom: 8px;
  margin-bottom: 22px;
}
.pub-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.pub-list li {
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
  padding-left: 28px;
  position: relative;
}
.pub-list li::before {
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}
.pub-list li a { color: #64b5f6; }
.pub-list li a:hover { text-decoration: underline; }

/* ── Achievements ─────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.ach-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 22px;
}
.ach-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.ach-list li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.82);
  padding-left: 24px;
  position: relative;
  line-height: 1.55;
}
.ach-list li::before {
  content: attr(data-n) ".";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

/* ── Conferences ──────────────────────────────────────────── */
.conf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.conf-full { margin-top: 48px; }
.conf-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.conf-list li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.82);
  padding-left: 30px;
  position: relative;
  line-height: 1.55;
}
.conf-list li::before {
  content: attr(data-n) ".";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 600;
}

/* ── Additional Items ─────────────────────────────────────── */
.add-block { margin-bottom: 44px; }
.add-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #222;
  border-bottom: 2px solid var(--red);
  padding-bottom: 8px;
  margin-bottom: 20px;
}
.add-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.add-list li {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.6;
  padding-left: 24px;
  position: relative;
}
.add-list li::before {
  content: attr(data-n) ".";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}
.add-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.add-para {
  font-size: 0.88rem;
  color: #333;
  line-height: 1.8;
}

/* ── Hobby Photo Gallery ──────────────────────────────────── */
.hobby-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.hobby-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.2s;
  cursor: pointer;
}
.hobby-gallery img:hover { transform: scale(1.02); }

/* ── Hobbies ──────────────────────────────────────────────── */
.hobby-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 52px;
}
.hobby-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #222;
  margin-bottom: 16px;
}
.hobby-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #c9d6df, #e2ebf0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #888;
  border-radius: 4px;
}
.travel-section { margin-top: 12px; }
.travel-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  color: #222;
  margin-bottom: 28px;
}
.country-block { margin-bottom: 24px; }
.country-name {
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #222;
  margin-bottom: 6px;
}
.city-list {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.city-list li { font-size: 0.87rem; color: #555; }
.city-list li a { color: var(--red); }

/* ── About Me ─────────────────────────────────────────────── */
.about-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.about-list li {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  padding-left: 30px;
  position: relative;
  line-height: 1.6;
}
.about-list li::before {
  content: attr(data-n) ".";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}
.about-list li.bold-item { font-weight: 700; color: #fff; font-size: 1rem; }

/* ── Contact Me ───────────────────────────────────────────── */
.contact-block {
  background: var(--dark2);
  padding: 64px 0;
  color: #fff;
}
.contact-label {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 10px;
}
.contact-value {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
}
.contact-value a { color: #64b5f6; }
.contact-value a:hover { text-decoration: underline; }

/* ── Halal Food Placeholder ───────────────────────────────── */
.placeholder-notice {
  text-align: center;
  padding: 80px 24px;
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
}
.placeholder-notice span {
  display: block;
  font-size: 3rem;
  margin-bottom: 16px;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: #111;
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 20px 24px;
  font-size: 0.82rem;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1200px) {
  .nav-links > li > a { padding: 0 7px; font-size: 0.72rem; }
}
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    height: auto;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    border-top: 1px solid #eee;
  }
  .nav-links.open { display: flex; }
  .nav-links > li { height: auto; }
  .nav-links > li > a { padding: 13px 20px; font-size: 0.9rem; }
  .has-drop:hover .drop-menu { display: none; }
  .has-drop.open .drop-menu {
    display: block;
    position: static;
    box-shadow: none;
    background: #f7f7f7;
  }
  .hero-home-content { margin-left: 0; padding: 24px 20px; max-width: 100%; width: calc(100% - 40px); }
  .two-col, .conf-grid, .add-grid, .hobby-grid { grid-template-columns: 1fr; gap: 32px; }
  .news-item { grid-template-columns: 1fr; gap: 3px; }
}
@media (max-width: 600px) {
  .hero-home-content h1 { font-size: 1.3rem; }
  .hero-inner h1 { letter-spacing: 2px; }
  .logos-row { gap: 24px 32px; }
  .logos-row img { height: 28px; }
}
