/* =============================================
   Valentine Bassey Portfolio — style.css
   A refined, editorial design with navy & gold
   ============================================= */

/* ---- CSS Variables ---- */
:root {
  --navy:       #0D1B2A;
  --navy-mid:   #1B2E42;
  --blue:       #2563EB;
  --blue-light: #3B82F6;
  --gold:       #C9A84C;
  --gold-light: #E5C97C;
  --cream:      #F8F5EF;
  --white:      #FFFFFF;
  --gray-100:   #F1F5F9;
  --gray-200:   #E2E8F0;
  --gray-500:   #64748B;
  --gray-700:   #334155;
  --text:       #1A2332;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm:  6px;
  --radius-md:  14px;
  --radius-lg:  24px;

  --shadow-sm:  0 2px 10px rgba(13,27,42,0.08);
  --shadow-md:  0 8px 30px rgba(13,27,42,0.12);
  --shadow-lg:  0 20px 60px rgba(13,27,42,0.18);

  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

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

/* ---- Utility Classes ---- */
.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border-left: 3px solid var(--gold);
  padding-left: 0.75rem;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-title em {
  font-style: italic;
  color: var(--blue);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header .section-label {
  border-left: none;
  border-bottom: 2px solid var(--gold);
  padding: 0 0 0.4rem 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,99,235,0.35);
}

.btn-primary:hover {
  background: #1D4ED8;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,99,235,0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-ghost:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
  font-size: 0.88rem;
  padding: 0.6rem 1.4rem;
}

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

.btn-full { width: 100%; justify-content: center; }

/* ---- Tags ---- */
.tag {
  display: inline-block;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  border: 1px solid var(--gray-200);
}

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: var(--shadow-sm);
  padding: 0.85rem 0;
  backdrop-filter: blur(10px);
}

.nav-container {
  width: min(1160px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  transition: var(--transition);
}

.navbar.scrolled .nav-logo { color: var(--navy); }

.dot { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.03em;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

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

.navbar.scrolled .nav-link { color: var(--gray-500); }
.navbar.scrolled .nav-link:hover { color: var(--navy); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar.scrolled .hamburger span { background: var(--navy); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1E3A5F 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 7rem 0 4rem;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(201,168,76,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(37,99,235,0.12) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-container {
  width: min(1160px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero-name em {
  font-style: italic;
  color: var(--gold);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
  margin-bottom: 1.25rem;
  font-weight: 400;
  font-style: italic;
}

.hero-intro {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Image */
.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-img-frame {
  position: relative;
  width: 380px;
  height: 470px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(201,168,76,0.3);
}

.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}

.hero-img-frame:hover .hero-img { transform: scale(1.03); }

/* Floating Badges */
.hero-badge {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow-md);
  animation: float 4s ease-in-out infinite;
}

.hero-badge i { color: var(--blue); font-size: 1rem; }

.hero-badge--1 { top: 10%; left: -10%; animation-delay: 0s; }
.hero-badge--2 { bottom: 12%; right: -10%; animation-delay: 2s; }

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

/* Scroll Hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.3; transform: scaleY(0.6); }
}

/* =============================================
   ABOUT
   ============================================= */
.about {
  padding: 7rem 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.about-img-wrap {
  position: relative;
  width: fit-content;
}

.about-img {
  width: 380px;
  height: 480px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.about-img-accent {
  position: absolute;
  width: 100%; height: 100%;
  top: 18px; left: 18px;
  border-radius: var(--radius-lg);
  background: var(--gold);
  opacity: 0.2;
  z-index: 0;
}

.about-stat-cards {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-card {
  flex: 1;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

.stat-num sup { font-size: 1rem; }
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.65); margin-top: 0.2rem; display: block; }

.about-text {
  color: var(--gray-500);
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.85;
}

.about-text strong { color: var(--navy); font-weight: 600; }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

/* =============================================
   ADVOCACY
   ============================================= */
.advocacy {
  position: relative;
  padding: 7rem 0;
  background: var(--cream);
  overflow: hidden;
}

.advocacy-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 0% 100%, rgba(37,99,235,0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 100% 0%, rgba(201,168,76,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.advocacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.advocacy-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.advocacy-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--gray-200);
  transition: var(--transition);
}

.advocacy-card:hover::before { background: var(--blue); }
.advocacy-card--featured::before { background: var(--gold) !important; }

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

.advocacy-card--featured {
  background: var(--navy);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.advocacy-card--featured h3,
.advocacy-card--featured p { color: var(--white); }
.advocacy-card--featured p { opacity: 0.75; }

.adv-icon-wrap {
  width: 58px; height: 58px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--blue);
  margin-bottom: 1.5rem;
}

.advocacy-card--featured .adv-icon-wrap {
  background: rgba(255,255,255,0.1);
  color: var(--gold);
}

.advocacy-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.9rem;
}

.advocacy-card p {
  font-size: 0.93rem;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.adv-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--gray-700);
  padding: 0.3rem 0;
}

.adv-list li i {
  color: var(--blue);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.advocacy-card--featured .adv-list li { color: rgba(255,255,255,0.75); }
.advocacy-card--featured .adv-list li i { color: var(--gold); }

/* =============================================
   BOOKS
   ============================================= */
.books {
  padding: 7rem 0;
  background: var(--white);
}

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

.book-card {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

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

/* Book Cover */
.book-cover {
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.book-cover--1 { background: linear-gradient(135deg, #1B4F72, #2980B9); }
.book-cover--2 { background: linear-gradient(135deg, #1B2631, var(--navy-mid)); }
.book-cover--3 { background: linear-gradient(135deg, #6C3483, #9B59B6); }

.book-spine {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 18px;
  background: rgba(0,0,0,0.25);
}

.book-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  color: var(--white);
  margin-left: 18px;
}

.book-icon {
  font-size: 2.2rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.75rem;
}

.book-front h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.book-front span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.05em;
}

.book-info {
  padding: 1.75rem;
}

.book-info h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.book-info p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
  position: relative;
  padding: 7rem 0;
  background: var(--cream);
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 100% 100%, rgba(37,99,235,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.25rem;
}

.contact-value {
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 500;
  transition: color 0.2s;
}

a.contact-value:hover { color: var(--blue); }

/* Social Icons */
.social-links { margin-top: 2.5rem; }

.social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.social-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--blue);
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--gray-100);
  transition: border-color 0.25s, background 0.25s;
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: var(--white);
}

.form-success {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: #16A34A;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 1rem;
}

.form-success.show { display: flex; }
.form-success i { font-size: 1.1rem; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 0 2.5rem;
}

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
}

.footer-tagline {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.55);
  font-style: italic;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--gold); }

.footer-divider {
  width: 60px; height: 1px;
  background: rgba(255,255,255,0.15);
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(37,99,235,0.4);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--navy); transform: translateY(-3px); }

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
[data-animate] {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate="fade-up"]    { transform: translateY(35px); }
[data-animate="fade-left"]  { transform: translateX(35px); }
[data-animate="fade-right"] { transform: translateX(-35px); }

[data-animate].in-view {
  opacity: 1;
  transform: none;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .advocacy-grid { grid-template-columns: 1fr 1fr; }
  .books-grid    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-text { order: 2; }
  .hero-image-wrap { order: 1; }
  .hero-intro { margin: 0 auto 2.5rem; }
  .hero-cta-group { justify-content: center; }
  .hero-badge--1 { left: 0; }
  .hero-badge--2 { right: 0; }
  .hero-img-frame { width: 280px; height: 340px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img { width: 100%; height: 380px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 260px; height: 100vh;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -8px 0 30px rgba(0,0,0,0.3);
    transition: right 0.35s ease;
    z-index: 999;
  }

  .nav-links.open { right: 0; }
  .nav-link { color: rgba(255,255,255,0.85) !important; font-size: 1rem; }

  .hamburger { display: flex; z-index: 1001; }

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

  .advocacy-grid,
  .books-grid { grid-template-columns: 1fr; }

  .hero-badge { display: none; }

  .section-title { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .hero { padding: 6rem 0 4rem; }
  .contact-form { padding: 1.75rem; }
  .about-stat-cards { flex-direction: column; }
  .hero-img-frame { width: 240px; height: 300px; }
}
