/* ============================================================
   NABUATH ULLA KHAN — Personal Portfolio
   Corporate / Consulting Theme
   Colors: Navy #1B2A4A | Gold #C8A96E | Light Grey #F5F6F8
   ============================================================ */

/* ============================================================
   INTERACTIVE ELEMENTS
   ============================================================ */

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(to right, var(--gold), var(--gold-light));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(200,169,110,0.6);
}

/* Back to Top */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  border: 2px solid var(--gold);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
#back-to-top:hover {
  background: var(--gold);
  color: var(--navy-dark);
}

/* Hero Typewriter */
.hero-typewriter {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
  min-height: 26px;
  font-style: italic;
  letter-spacing: 0.3px;
}
#typewriter-text {
  color: var(--gold);
  font-style: normal;
  font-weight: 600;
}
.typewriter-cursor {
  color: var(--gold);
  animation: blink 0.75s step-end infinite;
  font-weight: 300;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Expand / Collapse experience details */
.timeline-details {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1), opacity 0.35s ease;
  opacity: 0;
}
.timeline-details.open {
  max-height: 1200px;
  opacity: 1;
}
.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  background: none;
  border: 1px solid var(--grey-line);
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}
.toggle-btn:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.toggle-btn .arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
  display: inline-block;
}
.toggle-btn.open .arrow {
  transform: rotate(180deg);
}

/* 3D lift on project cards */
.project-card {
  transform-style: preserve-3d;
  perspective: 600px;
}
.project-card:hover {
  transform: translateY(-6px) rotateX(1deg);
  box-shadow: 0 16px 48px rgba(27,42,74,0.16);
}

/* Section intro invite text */
.section-invite {
  text-align: center;
  font-size: 15px;
  color: var(--text-light);
  margin-top: -40px;
  margin-bottom: 48px;
  font-style: italic;
}

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

:root {
  --navy:       #1B2A4A;
  --navy-dark:  #111D35;
  --navy-mid:   #243558;
  --gold:       #C8A96E;
  --gold-light: #DFC28E;
  --grey-bg:    #F5F6F8;
  --grey-mid:   #E8EAED;
  --grey-line:  #D0D4DC;
  --text:       #2D2D2D;
  --text-mid:   #555F6E;
  --text-light: #8896A5;
  --white:      #FFFFFF;
  --radius:     8px;
  --shadow:     0 4px 24px rgba(27,42,74,0.09);
  --shadow-lg:  0 8px 48px rgba(27,42,74,0.14);
  --transition: 0.3s ease;
  --font-body:  'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 100px 0; }
.section-alt { background: var(--grey-bg); }

/* ---------- SECTION HEADERS ---------- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,169,110,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ---------- FADE-IN ANIMATION ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: var(--navy-dark);
  padding: 12px 0;
  box-shadow: 0 2px 24px rgba(0,0,0,0.25);
}

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
}
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.3px;
  transition: color var(--transition);
  position: relative;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy-dark) !important;
  padding: 9px 22px;
  border-radius: var(--radius);
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }
.nav-cta::after { display: none !important; }

.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(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #1E3A6E 100%);
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(200,169,110,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(200,169,110,0.05) 0%, transparent 60%);
  pointer-events: none;
}

/* Subtle grid pattern */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Two-column hero layout */
.hero-layout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 64px;
  width: 100%;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

/* Photo column */
.hero-photo {
  flex-shrink: 0;
  position: relative;
  width: 340px;
}

.hero-photo-frame {
  width: 320px;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid rgba(200,169,110,0.4);
  box-shadow: 0 24px 64px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.06);
  position: relative;
}

.hero-photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(17,29,53,0.55) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-photo-badge {
  position: absolute;
  bottom: -18px;
  right: -18px;
  background: var(--gold);
  color: var(--navy-dark);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 24px rgba(200,169,110,0.4);
}

.badge-num {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 2px;
}

.badge-text {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.4;
}

.hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(200,169,110,0.4);
  padding: 7px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-title {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 48px;
  font-weight: 400;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 24px;
}

.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(200,169,110,0.7));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.15); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-open-to {
  margin-top: 20px;
  padding: 14px 20px;
  background: rgba(27,42,74,0.04);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}

.about-open-to strong {
  color: var(--navy);
}

.about-text .lead {
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.75;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-mid);
  margin-bottom: 16px;
  font-size: 15px;
}

.highlight-card {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius);
  margin-bottom: 16px;
  background: var(--white);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.highlight-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.highlight-icon {
  font-size: 10px;
  color: var(--gold);
  margin-top: 6px;
  flex-shrink: 0;
}

.highlight-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.highlight-card p {
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.6;
  margin: 0;
}

/* ---------- INDUSTRY STRIP ---------- */
.industry-strip {
  margin-top: 48px;
  padding: 24px 32px;
  background: var(--navy);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.industry-strip-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.industry-tags span {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 5px 14px;
  border-radius: 100px;
  transition: var(--transition);
}

.industry-tags span:hover {
  background: rgba(200,169,110,0.2);
  border-color: var(--gold);
  color: var(--white);
}

/* ============================================================
   EXPERIENCE / TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--navy), var(--grey-line));
}

.timeline-item {
  position: relative;
  padding-bottom: 52px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -38px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}

.timeline-content {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius);
  padding: 28px 32px;
  transition: box-shadow var(--transition);
}
.timeline-content:hover { box-shadow: var(--shadow); }

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.timeline-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.company {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
}

.timeline-meta {
  text-align: right;
  flex-shrink: 0;
}

.period {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
}

.location {
  font-size: 12.5px;
  color: var(--text-light);
}

.role-subtitle {
  font-size: 13px;
  color: var(--text-mid);
  font-style: italic;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--grey-mid);
}

.timeline-points {
  list-style: none;
  padding: 0;
}

.timeline-points li {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.65;
  padding: 5px 0 5px 20px;
  position: relative;
}

.timeline-points li::before {
  content: '›';
  position: absolute;
  left: 4px;
  color: var(--gold);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.skill-group {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius);
  padding: 28px 28px;
  transition: box-shadow var(--transition);
}
.skill-group:hover { box-shadow: var(--shadow); }

.skill-group h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
}

.skill-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--navy);
  background: var(--grey-bg);
  border: 1px solid var(--grey-mid);
  padding: 5px 13px;
  border-radius: 100px;
  transition: var(--transition);
}
.tag:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--gold);
}

.project-value {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200,169,110,0.1);
  border: 1px solid rgba(200,169,110,0.3);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
  width: fit-content;
}

.project-card h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.4;
}

.project-card p {
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.project-tags span {
  font-size: 11px;
  font-weight: 600;
  color: var(--navy);
  background: var(--grey-bg);
  padding: 3px 10px;
  border-radius: 100px;
}

/* ============================================================
   RECENT CLIENT ENGAGEMENTS
   ============================================================ */
.engagements-wrap {
  margin-bottom: 64px;
}

.engagements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.engagement-card {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.engagement-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.engagement-industry {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 6px;
}

.engagement-outcome {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200,169,110,0.1);
  border: 1px solid rgba(200,169,110,0.3);
  padding: 3px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.engagement-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.4;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--grey-mid);
}

.engagement-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.engagement-block-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 6px;
}

.engagement-block p {
  font-size: 12.5px;
  color: var(--text-mid);
  line-height: 1.6;
  margin: 0;
}

.engagement-block-benefit {
  background: rgba(27,42,74,0.03);
  border-radius: 6px;
  padding: 10px 12px;
  border-left: 2px solid var(--gold);
}

.engagement-block-benefit .engagement-block-label {
  color: var(--gold);
}

.engagement-block-benefit p {
  color: var(--navy);
  font-weight: 500;
}

.featured-solutions-heading {
  margin-bottom: 32px;
}

/* Engagement tiles inside projects-grid */
.engagement-tile .tile-industry {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
}

.tile-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  flex: 1;
}

.tile-detail {
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--grey-bg);
  border-left: 2px solid var(--grey-line);
}

.tile-detail span {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 3px;
}

.tile-detail p {
  font-size: 12.5px;
  color: var(--text-mid);
  line-height: 1.55;
  margin: 0;
}

.tile-detail-outcome {
  background: rgba(200,169,110,0.07);
  border-left: 2px solid var(--gold);
}

.tile-detail-outcome span {
  color: var(--gold);
}

.tile-detail-outcome p {
  color: var(--navy);
  font-weight: 600;
}

@media (max-width: 900px) {
  .engagements-grid { grid-template-columns: 1fr; }
  .engagement-row { grid-template-columns: 1fr; gap: 12px; }
}

/* ============================================================
   PAST TRANSFORMATION PROJECTS
   ============================================================ */
.past-projects {
  margin-top: 64px;
}

.past-projects-heading {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--grey-mid);
  display: flex;
  align-items: center;
  gap: 12px;
}

.past-projects-heading::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background: var(--gold);
  border-radius: 2px;
  flex-shrink: 0;
}

.past-projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.past-card {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.past-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.past-card-value {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200,169,110,0.1);
  border: 1px solid rgba(200,169,110,0.25);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.past-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.4;
}

.past-card ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.past-card ul li {
  font-size: 12.5px;
  color: var(--text-mid);
  line-height: 1.6;
  padding: 3px 0 3px 16px;
  position: relative;
}

.past-card ul li::before {
  content: '›';
  position: absolute;
  left: 2px;
  color: var(--gold);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
}

.past-card p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.55;
  margin: 0;
}

.past-card-compact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (max-width: 1024px) {
  .past-projects-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .past-projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .past-projects-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   EDUCATION
   ============================================================ */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.edu-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold);
  width: fit-content;
}

.edu-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.edu-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.edu-item h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.4;
}

.edu-org {
  font-size: 13px;
  color: var(--text-mid);
  font-weight: 500;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-wrapper {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.contact-open-to {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  border-radius: var(--radius);
  padding: 20px 32px;
  margin-bottom: 32px;
  width: 100%;
}

.contact-open-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-open-to p {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

.contact-open-to p strong {
  color: var(--white);
}

.contact-intro {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 48px;
}

.contact-cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius);
  min-width: 180px;
  flex: 1;
  max-width: 220px;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}

.contact-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
}

.contact-card-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy-dark);
  padding: 40px 0;
}

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

.footer-logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.footer-logo span { color: var(--gold); }

footer p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.footer-tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-layout {
    flex-direction: column-reverse;
    gap: 40px;
    align-items: center;
    text-align: center;
  }
  .hero-photo { width: auto; }
  .hero-photo-frame { width: 220px; height: 275px; }
  .hero-photo-badge { bottom: -14px; left: -14px; padding: 10px 14px; }
  .badge-num { font-size: 20px; }
  .hero-stats { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-tag { margin: 0 auto 28px; }
}

@media (max-width: 768px) {
  section { padding: 72px 0; }
  .container { padding: 0 20px; }

  /* Nav mobile */
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 40px 32px;
    transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
    box-shadow: -4px 0 32px rgba(0,0,0,0.3);
  }
  .nav-links.open { right: 0; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .nav-cta {
    margin-top: 16px;
    display: inline-block;
    padding: 12px 24px !important;
  }

  /* Hero */
  .hero-stats {
    gap: 20px;
  }
  .stat-divider { display: none; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 40px; }

  /* Timeline */
  .timeline { padding-left: 24px; }
  .timeline-marker { left: -30px; }
  .timeline-header { flex-direction: column; gap: 8px; }
  .timeline-meta { text-align: left; }
  .timeline-content { padding: 20px; }

  /* Skills */
  .skills-grid { grid-template-columns: 1fr; }

  /* Projects */
  .projects-grid { grid-template-columns: 1fr; }

  /* Education */
  .edu-grid { grid-template-columns: 1fr; gap: 40px; }

  /* Contact */
  .contact-cards { flex-direction: column; align-items: center; }
  .contact-card { max-width: 100%; width: 100%; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 36px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   MAGAZINE / EDITORIAL STYLE LAYER
   ============================================================ */

/* ---------- HERO MASTHEAD ---------- */
.hero-masthead {
  position: absolute;
  top: 74px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 32px;
  pointer-events: none;
}

.masthead-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(200,169,110,0.45));
  max-width: 280px;
}

.masthead-rule:last-child {
  background: linear-gradient(to left, transparent, rgba(200,169,110,0.45));
}

.masthead-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: rgba(200,169,110,0.7);
  white-space: nowrap;
}

/* ---------- SECTION CHAPTER NUMBERS ---------- */
.section-header {
  position: relative;
  padding-top: 20px;
}

.section-header[data-chapter]::before {
  content: attr(data-chapter);
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: clamp(80px, 12vw, 130px);
  font-weight: 900;
  color: rgba(27,42,74,0.045);
  line-height: 1;
  letter-spacing: -4px;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.section-alt .section-header[data-chapter]::before {
  color: rgba(27,42,74,0.055);
}

.section-header > * {
  position: relative;
  z-index: 1;
}

/* ---------- EDITORIAL SECTION LABEL ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-label::before,
.section-label::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

/* ---------- EDITORIAL H2 RULE ---------- */
.section-header h2 {
  position: relative;
  padding-bottom: 20px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* ---------- PULL QUOTE ---------- */
.pull-quote {
  font-family: var(--font-serif);
  font-size: clamp(16px, 2.2vw, 20px);
  font-style: italic;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.6;
  border-left: 3px solid var(--gold);
  padding: 14px 24px;
  margin: 28px 0 0 0;
  background: rgba(200,169,110,0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.pull-quote::before {
  content: '\201C';
  font-size: 2em;
  color: var(--gold);
  line-height: 0;
  vertical-align: -0.4em;
  margin-right: 4px;
  font-style: normal;
}

/* ---------- DROP CAP ---------- */
.drop-cap::first-letter {
  font-family: var(--font-serif);
  font-size: 4.2em;
  font-weight: 700;
  color: var(--navy);
  float: left;
  line-height: 0.78;
  margin: 6px 10px 0 0;
  padding: 0;
}

/* ---------- EDITORIAL SECTION DIVIDER ---------- */
section::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--grey-line) 20%, var(--grey-line) 80%, transparent);
  margin: 0 auto;
  max-width: 960px;
}

#hero::before { display: none; }

/* ---------- MAGAZINE TYPOGRAPHY REFINEMENTS ---------- */
.hero-name {
  font-weight: 900;
  letter-spacing: -2px;
}

.past-projects-heading,
.featured-solutions-heading h3 {
  font-family: var(--font-serif);
  font-style: italic;
}

.section-header h2 {
  font-size: clamp(30px, 4.5vw, 46px);
  letter-spacing: -0.5px;
}

/* ---------- RESPONSIVE MAGAZINE ADJUSTMENTS ---------- */
@media (max-width: 768px) {
  .hero-masthead { top: 68px; gap: 12px; }
  .masthead-text { font-size: 9px; letter-spacing: 2px; }
  .masthead-rule { max-width: 80px; }
  .section-header[data-chapter]::before { top: -20px; }
  .drop-cap::first-letter { font-size: 3.2em; }
}

@media (max-width: 480px) {
  .section-label::before,
  .section-label::after { width: 16px; }
}
