/* ============================================
   Tim Howell Personal Site - Main Stylesheet
   Font: Inter (Google Fonts)
   Icons: Lucide Icons (via CDN)
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #1a1a2e;
  --color-text-secondary: #4a4a68;
  --color-text-muted: #7c7c96;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-accent-light: #dbeafe;
  --color-border: #e5e7eb;
  --color-dark-bg: #0f172a;
  --color-dark-surface: #1e293b;
  --color-dark-text: #f1f5f9;
  --color-dark-muted: #94a3b8;
  --color-hero-overlay: rgba(15, 23, 42, 0.85);
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 1200px;
  --header-height: 72px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-hover);
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p {
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section--dark {
  background: var(--color-dark-bg);
  color: var(--color-dark-text);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-dark-text);
}

.section--dark p {
  color: var(--color-dark-muted);
}

.section--alt {
  background: #f1f5f9;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-header .label {
  margin-bottom: 12px;
  display: block;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
  transition: color var(--transition);
}

.logo span {
  color: var(--color-accent);
}

.site-header:not(.scrolled) .logo {
  color: #fff;
}

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

.nav-links a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-links a:hover {
  color: var(--color-accent);
  background: var(--color-accent-light);
}

.site-header:not(.scrolled) .nav-links a {
  color: rgba(255,255,255,0.85);
}

.site-header:not(.scrolled) .nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown:hover .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--color-text-secondary) !important;
  border-radius: var(--radius-sm);
}

.nav-dropdown-menu a:hover {
  background: var(--color-accent-light) !important;
  color: var(--color-accent) !important;
}

/* Contact button in nav */
.nav-contact-btn {
  background: var(--color-accent) !important;
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
}

.nav-contact-btn:hover {
  background: var(--color-accent-hover) !important;
  color: #fff !important;
}

/* Social icons in nav */
.nav-socials {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid var(--color-border);
}

.site-header:not(.scrolled) .nav-socials {
  border-left-color: rgba(255,255,255,0.2);
}

.nav-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--color-text-muted);
  padding: 0 !important;
}

.nav-socials a:hover {
  color: var(--color-accent);
  background: var(--color-accent-light);
}

.site-header:not(.scrolled) .nav-socials a {
  color: rgba(255,255,255,0.7);
}

.site-header:not(.scrolled) .nav-socials a:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.nav-socials a svg {
  width: 18px;
  height: 18px;
}

/* Mobile menu toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

.site-header:not(.scrolled) .mobile-toggle span {
  background: #fff;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-primary);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--color-text);
}

.btn-white:hover {
  background: #f1f5f9;
  color: var(--color-text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--color-dark-bg);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.85) 50%, rgba(37, 99, 235, 0.15) 100%);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-text {
  color: #fff;
}

.hero-text .label {
  color: #60a5fa;
  margin-bottom: 16px;
  display: block;
}

.hero-text h1 {
  color: #fff;
  margin-bottom: 20px;
}

.hero-text p {
  color: rgba(255,255,255,0.75);
  font-size: 1.15rem;
  margin-bottom: 32px;
  max-width: 520px;
}

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

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image-wrapper {
  position: relative;
  width: 380px;
  height: 460px;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  top: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(96, 165, 250, 0.3);
  border-radius: var(--radius-lg);
  z-index: -1;
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.2rem;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* --- Focus Areas / Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: all var(--transition);
}

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

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-accent);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  font-size: 0.95rem;
  margin: 0;
}

/* --- About Preview --- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-preview-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-preview-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: top center;
}

.about-preview-text .label {
  margin-bottom: 12px;
  display: block;
}

.about-preview-text h2 {
  margin-bottom: 20px;
}

.about-preview-text p {
  margin-bottom: 16px;
}

.about-preview-text .btn {
  margin-top: 12px;
}

/* --- Ventures / Links Section --- */
.ventures-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.venture-card {
  background: var(--color-dark-surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.venture-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.venture-card h3 {
  color: #fff;
  margin-bottom: 12px;
}

.venture-card p {
  color: var(--color-dark-muted);
  font-size: 0.95rem;
  flex: 1;
}

.venture-card .venture-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #60a5fa;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 20px;
  transition: gap var(--transition);
}

.venture-card .venture-link:hover {
  gap: 10px;
}

.venture-card .venture-link svg {
  width: 16px;
  height: 16px;
}

/* --- Featured Articles --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.article-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

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

.article-card-image {
  height: 200px;
  overflow: hidden;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.article-card:hover .article-card-image img {
  transform: scale(1.05);
}

.article-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-body .label {
  margin-bottom: 8px;
  display: block;
}

.article-card-body h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.article-card-body p {
  font-size: 0.9rem;
  flex: 1;
}

.article-card-body .article-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 16px;
}

.article-card-body .article-link svg {
  width: 16px;
  height: 16px;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--color-dark-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 32px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-dark-bg);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-section h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.footer-section h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.footer-section p {
  color: var(--color-dark-muted);
  font-size: 0.875rem;
  line-height: 1.8;
  margin: 0;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: var(--color-dark-muted);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-section ul li a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--color-dark-muted);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--transition);
}

.footer-social a:hover {
  color: #fff;
  border-color: var(--color-accent);
  background: rgba(37, 99, 235, 0.15);
}

.footer-social a svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom p {
  color: var(--color-dark-muted);
  font-size: 0.8rem;
  margin: 0;
}

.footer-bottom a {
  color: var(--color-dark-muted);
  font-size: 0.8rem;
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: #fff;
}

/* --- Page Hero (Sub-pages) --- */
.page-hero {
  background: var(--color-dark-bg);
  padding: 140px 0 80px;
  text-align: center;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--color-dark-muted);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- About Page --- */
.about-intro {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  align-items: start;
}

.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 100px;
}

.about-photo img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: top center;
}

.about-body h2 {
  margin-bottom: 20px;
}

.about-body p {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.highlight-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.highlight-item .highlight-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--color-accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.highlight-item .highlight-icon svg {
  width: 20px;
  height: 20px;
}

.highlight-item h4 {
  margin-bottom: 4px;
}

.highlight-item p {
  font-size: 0.875rem;
  margin: 0;
}

/* --- Speaking Section --- */
.speaking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.speaking-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.speaking-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* --- Affiliations List (About Page) --- */
.affiliations-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.affiliation-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition);
}

.affiliation-item:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.affiliation-item h4 {
  margin-bottom: 4px;
}

.affiliation-item p {
  font-size: 0.9rem;
  margin: 0;
}

/* --- Experience Page --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  padding-left: 40px;
  padding-bottom: 48px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-accent);
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.timeline-item h3 {
  margin-bottom: 4px;
}

.timeline-org {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 12px;
}

.timeline-item p {
  font-size: 0.95rem;
}

.timeline-item ul {
  margin-top: 8px;
  padding-left: 0;
}

.timeline-item ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.timeline-item ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Skills section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.skill-category h3 {
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

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

.skill-tag {
  background: var(--color-accent-light);
  color: var(--color-accent);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.825rem;
  font-weight: 500;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 16px;
}

.contact-info > p {
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.contact-method {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.contact-method-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--color-accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.contact-method-icon svg {
  width: 22px;
  height: 22px;
}

.contact-method h4 {
  margin-bottom: 4px;
}

.contact-method p {
  margin: 0;
  font-size: 0.95rem;
}

.contact-method a {
  font-weight: 500;
}

.contact-social-links {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.contact-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent-light);
  color: var(--color-accent);
  transition: all var(--transition);
}

.contact-social-links a:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
}

.contact-social-links a svg {
  width: 20px;
  height: 20px;
}

.contact-form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.contact-form-card h3 {
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: var(--font-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* --- Policy Page --- */
.policy-content {
  max-width: 760px;
  margin: 0 auto;
}

.policy-content h2 {
  margin-top: 40px;
  margin-bottom: 16px;
}

.policy-content h3 {
  margin-top: 28px;
  margin-bottom: 12px;
}

.policy-content p {
  margin-bottom: 16px;
}

.policy-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.policy-content ul li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  color: var(--color-text-secondary);
}

.policy-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* --- 404 Page --- */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-dark-bg);
  color: #fff;
}

.error-page h1 {
  font-size: 8rem;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h2 {
  color: #fff;
  margin-bottom: 16px;
}

.error-page p {
  color: var(--color-dark-muted);
  margin-bottom: 32px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image-wrapper {
    width: 300px;
    height: 380px;
  }

  .about-preview {
    grid-template-columns: 1fr;
  }

  .about-intro {
    grid-template-columns: 1fr;
  }

  .about-photo {
    position: static;
    max-width: 380px;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

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

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
    gap: 0;
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links > a,
  .nav-links > .nav-dropdown > .nav-dropdown-toggle {
    color: var(--color-text-secondary) !important;
    padding: 12px 24px !important;
    font-size: 0.95rem;
    width: 100%;
    text-align: left;
    border-radius: 0 !important;
  }

  .nav-links > a:hover,
  .nav-links > .nav-dropdown > .nav-dropdown-toggle:hover {
    background: var(--color-accent-light) !important;
    color: var(--color-accent) !important;
  }

  .nav-contact-btn {
    background: none !important;
    color: var(--color-text-secondary) !important;
    border-radius: 0 !important;
    font-weight: 500 !important;
    padding: 12px 24px !important;
    width: 100%;
    text-align: left !important;
  }

  .nav-contact-btn:hover {
    background: var(--color-accent-light) !important;
    color: var(--color-accent) !important;
  }

  .nav-socials {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    padding: 8px 24px;
    margin-top: 0;
    border-top: 1px solid var(--color-border);
    justify-content: flex-start;
    width: 100%;
    gap: 8px;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    justify-content: flex-start;
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--color-bg);
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    display: none;
    margin-top: 0;
    padding: 0;
    min-width: 0;
  }

  .nav-dropdown.active .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-menu a {
    text-align: left;
    padding: 10px 24px 10px 40px !important;
    font-size: 0.9rem !important;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .card-grid,
  .ventures-grid {
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

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

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .speaking-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

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

@media (max-width: 480px) {
  .hero-image-wrapper {
    width: 260px;
    height: 340px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
