/* Fonts loaded via HTML <head> for faster, more reliable loading */

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

:root {
  /* Colors */
  --background: hsl(210, 40%, 98%);
  --foreground: hsl(222, 47%, 11%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(222, 47%, 11%);
  --primary: hsl(199, 89%, 48%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(210, 30%, 94%);
  --secondary-foreground: hsl(222, 47%, 11%);
  --muted: hsl(210, 25%, 92%);
  --muted-foreground: hsl(215, 16%, 47%);
  --accent: hsl(38, 92%, 50%);
  --accent-foreground: hsl(0, 0%, 100%);
  --border: hsl(214, 32%, 91%);
  --zinc-800: hsl(240, 6%, 20%);
  --zinc-600: hsl(240, 4%, 46%);
  --zinc-300: hsl(240, 5%, 84%);
  
  /* Gradients */
  --gradient-subtle: linear-gradient(180deg, hsl(210, 40%, 98%) 0%, hsl(210, 35%, 96%) 100%);
  --gradient-card: linear-gradient(145deg, hsl(0, 0%, 100%) 0%, hsl(210, 30%, 98%) 100%);
  
  /* Shadows */
  --shadow-card: 0 4px 24px hsla(222, 47%, 11%, 0.08);
  --shadow-elevated: 0 8px 32px hsla(222, 47%, 11%, 0.12);
  --shadow-glow: 0 0 60px hsla(199, 89%, 48%, 0.15);
  
  /* Spacing */
  --radius: 0.75rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.2;
}

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

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

ul {
  list-style: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: var(--zinc-800);
  transition: border-color 0.3s ease;
}

.header.scrolled {
  border-bottom: 1px solid var(--zinc-600);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 768px) {
  .nav {
    height: 5rem;
  }
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  transition: color 0.2s ease;
}

.logo:hover {
  color: var(--primary);
}

.logo-dot {
  color: var(--primary);
}

/* Desktop Nav */
.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--zinc-300);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: white;
}

.nav-link.active {
  color: var(--primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid var(--zinc-600);
  animation: fadeIn 0.3s ease;
}

.mobile-nav.open {
  display: block;
}

@media (min-width: 768px) {
  .mobile-nav {
    display: none !important;
  }
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--zinc-300);
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.mobile-nav-link:hover {
  color: white;
}

.mobile-nav-link.active {
  color: var(--primary);
}

/* ===== MAIN CONTENT ===== */
main {
  padding-top: 4rem;
}

@media (min-width: 768px) {
  main {
    padding-top: 5rem;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

@media (min-width: 768px) {
  .hero {
    padding: 8rem 0;
  }
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: float 3s ease-in-out infinite;
}

.hero-orb-1 {
  top: 25%;
  left: 25%;
  width: 24rem;
  height: 24rem;
  background: hsla(199, 89%, 48%, 0.1);
}

.hero-orb-2 {
  bottom: 25%;
  right: 25%;
  width: 20rem;
  height: 20rem;
  background: hsla(38, 92%, 50%, 0.1);
  animation-delay: 0.3s;
}

.hero-content {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.hero-greeting {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1rem;
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.1s;
}

.hero-name {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

@media (min-width: 768px) {
  .hero-name {
    font-size: 4.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-name {
    font-size: 6rem;
  }
}

.hero-title {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.3s;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 1.875rem;
  }
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto 3rem;
  line-height: 1.75;
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.4s;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.25rem;
  }
}

.hero-description p {
  margin-bottom: 1rem;
}

.hero-description p:last-child {
  margin-bottom: 0;
}

.hero-link {
  color: var(--primary);
}

.hero-link:hover {
  text-decoration: underline;
}

.hero-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.6s;
}

.social-link {
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.social-link:hover {
  color: var(--primary);
}

.social-link svg {
  width: 24px;
  height: 24px;
}

/* ===== SECTION STYLES ===== */
.section {
  padding: 6rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 8rem 0;
  }
}

.section-subtle {
  background: var(--gradient-subtle);
}

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

.section-label {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
}

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.about-image-container {
  aspect-ratio: 1;
  border-radius: 1rem;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-text {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.75;
}

.about-text a {
  color: var(--primary);
}

.about-text a:hover {
  text-decoration: underline;
}

.about-text.highlight {
  font-weight: 500;
  color: var(--foreground);
}

/* Highlights Grid */
.highlights-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .highlights-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.highlight-card {
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.highlight-card:hover {
  border-color: hsla(199, 89%, 48%, 0.5);
  box-shadow: var(--shadow-glow);
}

.highlight-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: hsla(199, 89%, 48%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background 0.3s ease;
}

.highlight-card:hover .highlight-icon {
  background: hsla(199, 89%, 48%, 0.2);
}

.highlight-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.highlight-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.highlight-description {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

/* ===== EXPERIENCE SECTION ===== */
.timeline {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
}

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

@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 2rem;
}

@media (min-width: 768px) {
  .timeline-item {
    width: 50%;
    padding-left: 0;
  }
  
  .timeline-item:nth-child(odd) {
    padding-right: 3rem;
    text-align: right;
  }
  
  .timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-left: 3rem;
  }
}

.timeline-dot {
  position: absolute;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: var(--shadow-glow);
  top: 0.5rem;
  left: -0.5rem;
}

@media (min-width: 768px) {
  .timeline-item:nth-child(odd) .timeline-dot {
    left: auto;
    right: -0.5rem;
  }
  
  .timeline-item:nth-child(even) .timeline-dot {
    left: -0.5rem;
  }
}

.timeline-card {
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.timeline-card:hover {
  border-color: hsla(199, 89%, 48%, 0.5);
  box-shadow: var(--shadow-elevated);
}

.timeline-period {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.875rem;
}

.timeline-role {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.timeline-company {
  color: var(--primary);
  font-weight: 500;
}

.timeline-description {
  color: var(--muted-foreground);
  margin-top: 1rem;
  font-size: 0.875rem;
  text-align: left;
}

.timeline-achievements {
  margin-top: 1rem;
  text-align: left;
}

.timeline-achievement {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.timeline-achievement-bullet {
  color: var(--primary);
  margin-top: 0.25rem;
}

/* ===== PROJECTS SECTION ===== */
.projects-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

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

.project-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .project-card {
    padding: 2rem;
  }
}

.project-card:hover {
  border-color: hsla(199, 89%, 48%, 0.5);
  box-shadow: var(--shadow-elevated);
}

.project-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: hsla(38, 92%, 50%, 0.2);
  color: var(--accent);
  border-radius: 9999px;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  padding-right: 5rem;
  transition: color 0.3s ease;
}

.project-card:hover .project-title {
  color: var(--primary);
}

.project-description {
  color: var(--muted-foreground);
  margin-top: 1rem;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.project-tag {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--secondary);
  color: var(--secondary-foreground);
  border-radius: 9999px;
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.project-metric {
  text-align: center;
}

.project-metric-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.project-metric-value svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

.project-metric-number {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
}

.project-metric-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ===== PERSONAL PAGE ===== */
.aviation-banner {
  margin-bottom: 4rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}

.aviation-banner img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 768px) {
  .aviation-banner img {
    height: 16rem;
  }
}

@media (min-width: 1024px) {
  .aviation-banner img {
    height: 20rem;
  }
}

.aviation-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.aviation-icon {
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: hsla(199, 89%, 48%, 0.1);
}

.aviation-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
}

.aviation-title {
  font-size: 1.875rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .aviation-title {
    font-size: 2.25rem;
  }
}

.aviation-subtitle {
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

.audiobooks-grid {
  display: grid;
  gap: 2rem;
}

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

.audiobook-card {
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .audiobook-card {
    padding: 2rem;
  }
}

.audiobook-card:hover {
  border-color: hsla(199, 89%, 48%, 0.5);
  box-shadow: var(--shadow-elevated);
}

.audiobook-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.audiobook-icon {
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: hsla(199, 89%, 48%, 0.1);
  flex-shrink: 0;
}

.audiobook-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.audiobook-title {
  font-size: 1.25rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

.audiobook-card:hover .audiobook-title {
  color: var(--primary);
}

.audiobook-author {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.audiobook-description {
  color: var(--muted-foreground);
  margin-top: 1rem;
  line-height: 1.6;
}

.audiobook-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.audiobook-tag {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--secondary);
  color: var(--secondary-foreground);
  border-radius: 9999px;
}

.audiobook-cta {
  margin-top: 1rem;
}

/* Consulting Section */
.consulting-section {
  padding: 3rem 0;
  background: var(--gradient-subtle);
  text-align: center;
}

@media (min-width: 768px) {
  .consulting-section {
    padding: 4rem 0;
  }
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  position: relative;
  overflow: hidden;
}

.contact-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.contact-orb-1 {
  top: 0;
  left: 25%;
  width: 24rem;
  height: 24rem;
  background: hsla(199, 89%, 48%, 0.05);
}

.contact-orb-2 {
  bottom: 0;
  right: 25%;
  width: 20rem;
  height: 20rem;
  background: hsla(38, 92%, 50%, 0.05);
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 42rem;
  margin: 0 auto 3rem;
}

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

.contact-card {
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  display: block;
}

.contact-card:hover {
  border-color: hsla(199, 89%, 48%, 0.5);
  box-shadow: var(--shadow-glow);
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: hsla(199, 89%, 48%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background 0.3s ease;
}

.contact-card:hover .contact-icon {
  background: hsla(199, 89%, 48%, 0.2);
}

.contact-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.contact-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.contact-card:hover .contact-title {
  color: var(--primary);
}

.contact-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.contact-action {
  display: flex;
  align-items: center;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
}

.contact-action svg {
  width: 1rem;
  height: 1rem;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.contact-card:hover .contact-action svg {
  transform: translateX(0.25rem);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  opacity: 0.9;
}

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

.btn-outline:hover {
  background: var(--secondary);
}

.btn svg {
  width: 1rem;
  height: 1rem;
}

/* ===== FOOTER ===== */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-logo-dot {
  color: var(--primary);
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: center;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-social-link {
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.footer-social-link:hover {
  color: var(--primary);
}

.footer-social-link svg {
  width: 20px;
  height: 20px;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* ===== UTILITIES ===== */
.max-w-6xl {
  max-width: 72rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.text-center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
