/*
Theme Name: Veteran Politic
Theme URI: https://veteranpolitc.com
Author: Veteran Politic
Author URI: https://veteranpolitc.com
Description: Personal landing page theme for Veteran Politic — a seasoned Egyptian political commentator.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: veteran-politic
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Noto+Kufi+Arabic:wght@400;700&family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: hsl(43, 30%, 92%);
  --fg: hsl(0, 0%, 9%);
  --fg-80: hsla(0, 0%, 9%, 0.8);
  --fg-70: hsla(0, 0%, 9%, 0.7);
  --fg-40: hsla(0, 0%, 9%, 0.4);
  --fg-30: hsla(0, 0%, 9%, 0.3);
  --fg-20: hsla(0, 0%, 9%, 0.2);
  --fg-10: hsla(0, 0%, 9%, 0.1);
  --font-sans: "Inter", sans-serif;
  --font-serif: "Playfair Display", serif;
  --font-arabic: "Noto Kufi Arabic", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background-color: var(--fg);
  color: var(--bg);
}

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

/* ── NOISE OVERLAY ── */
.noise-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.03;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── HEADER ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 3rem;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

.site-logo {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.05em;
  opacity: 0;
  animation: fadeDown 0.8s ease-out 0.1s forwards;
}

/* ── HEADER X LINK ── */
.header-x-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: opacity 0.2s ease;
  animation: fadeDown 0.8s ease-out 0.2s both;
}

.header-x-link:hover {
  opacity: 0.6;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 3rem;
  gap: 3rem;
}

.hero-text {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  z-index: 20;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-name {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 1rem;
}

.hero-arabic-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-line {
  height: 2px;
  width: 4rem;
  background-color: var(--fg);
  flex-shrink: 0;
}

.hero-arabic {
  font-family: var(--font-arabic);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--fg);
  direction: rtl;
}

.hero-tagline {
  margin-top: 3rem;
  max-width: 36rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--fg-80);
  line-height: 1.7;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.hero-image-wrap {
  width: 100%;
  max-width: 28rem;
  height: 55vh;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.35);
  opacity: 0;
  animation: fadeScale 1.5s ease-out 0.3s forwards;
}

.hero-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: hsla(0,0%,9%,0.1);
  mix-blend-mode: overlay;
  z-index: 1;
  pointer-events: none;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) contrast(1.25) brightness(0.9);
  display: block;
}

/* ── BIO SECTION ── */
.bio-section {
  position: relative;
  padding: 6rem 1.5rem;
  background-color: var(--fg);
  color: var(--bg);
}

.bio-inner {
  max-width: 56rem;
  margin: 0 auto;
  position: relative;
}

.bio-quote-mark {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(5rem, 12vw, 9rem);
  color: hsla(43, 30%, 92%, 0.15);
  position: absolute;
  top: -2rem;
  left: -1rem;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.bio-quote {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.5vw, 3rem);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--bg);
}

/* ── MANIFESTO ── */
.manifesto {
  padding: 6rem 1.5rem;
  border-bottom: 1px solid var(--fg-10);
}

.manifesto-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.manifesto-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

.manifesto-heading-bar {
  width: 3rem;
  height: 4px;
  background-color: var(--fg);
  margin-top: 1.5rem;
}

.manifesto-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.manifesto-card h4 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.manifesto-card p {
  color: var(--fg-70);
  line-height: 1.75;
  font-weight: 300;
}

/* ── FOOTER ── */
.site-footer {
  padding: 6rem 1.5rem;
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.footer-arabic {
  font-family: var(--font-arabic);
  font-size: 1.5rem;
  color: var(--fg-80);
  direction: rtl;
  display: block;
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.footer-link:hover {
  opacity: 0.6;
}

.footer-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--fg-20);
  border-radius: 50%;
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}

.footer-link:hover .footer-link-icon {
  border-color: var(--fg-60);
}

.footer-link-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.footer-copy {
  color: var(--fg-40);
  font-size: 0.875rem;
  margin-top: 2rem;
}

/* ── ANIMATIONS ── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeScale {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ── RESPONSIVE ── */
@media (min-width: 1024px) {
  .hero {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 6rem 6rem 3rem;
    gap: 0;
  }

  .hero-text {
    width: 50%;
  }

  .hero-image-wrap {
    width: 45%;
    max-width: none;
    height: 80vh;
  }

  .manifesto-inner {
    grid-template-columns: 1fr 2fr;
    align-items: start;
  }

  .manifesto-cards {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

@media (min-width: 768px) {
  .site-header {
    padding: 3rem;
  }
  .bio-section {
    padding: 10rem 3rem;
  }
  .manifesto {
    padding: 10rem 3rem;
  }
  .site-footer {
    padding: 6rem 3rem;
  }
}
