/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  --color-primary: #ff7a59;
  --color-secondary: #33475b;
  --color-dark: #1d1d1f;
  --color-darker: #0d0d0d;
  --color-card-bg: rgba(255, 255, 255, 0.05);
  --color-card-border: rgba(255, 255, 255, 0.1);
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.7);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--color-darker);
  color: var(--color-text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Parallax Container */
.parallax-container {
  perspective: 1px;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

.parallax-layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.parallax-back {
  transform: translateZ(-2px) scale(3);
}

.parallax-base {
  transform: translateZ(0);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1d1d1f 0%, #2d2d30 50%, #1d1d1f 100%);
  z-index: -2;
}

/* Hero with image bleed effect */
.hero-with-image {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-image-container {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 45%;
  overflow: hidden;
  z-index: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  filter: grayscale(100%);
  transform: scale(1.05);
}

.hero-image-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to right, rgba(13, 13, 13, 0) 0%, rgba(13, 13, 13, 0.3) 40%, rgba(13, 13, 13, 1) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  margin-left: 45%;
  padding-right: 4rem;
  padding-left: 2rem;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 122, 89, 0.15) 0%, transparent 50%);
  animation: pulse-glow 8s ease-in-out infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
  animation: pulse-glow 10s ease-in-out infinite reverse;
}

/* Floating Particles */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 122, 89, 0.5);
  border-radius: 50%;
  animation: float-up 15s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; }
.particle:nth-child(4) { left: 40%; animation-delay: 6s; }
.particle:nth-child(5) { left: 50%; animation-delay: 8s; }
.particle:nth-child(6) { left: 60%; animation-delay: 10s; }
.particle:nth-child(7) { left: 70%; animation-delay: 12s; }
.particle:nth-child(8) { left: 80%; animation-delay: 14s; }
.particle:nth-child(9) { left: 90%; animation-delay: 1s; }

@keyframes float-up {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) scale(1);
    opacity: 0;
  }
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-card-border);
}

.nav-content {
  padding: 1rem 2rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 4rem;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

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

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Sections */
section {
  padding: 6rem 0;
  width: 100%;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
}

/* Avatar - Portrait shape */
.avatar {
  width: auto;
  height: 280px;
  border-radius: 1rem;
  object-fit: cover;
  border: 4px solid var(--color-primary);
  box-shadow: 0 0 40px rgba(255, 122, 89, 0.3);
  margin: 0 auto 2rem;
  display: block;
}

/* Smaller avatar for about page */
.avatar-small {
  width: auto;
  height: 120px;
  border-radius: 1rem;
  object-fit: cover;
  border: 3px solid var(--color-primary);
  box-shadow: 0 0 20px rgba(255, 122, 89, 0.3);
}

/* Cards */
.card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 1rem;
  padding: 2rem;
  box-sizing: border-box;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--color-primary);
}

/* Contact cards - don't change border on hover to prevent layout shift */
.card.block:hover {
  border-color: var(--color-card-border);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: #ffffff;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s;
}

.btn:hover {
  background: #ff5c3d;
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  transition: all 0.3s;
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #ffffff;
}

/* Footer */
footer {
  background: rgba(13, 13, 13, 0.95);
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid var(--color-card-border);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.social-links a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 1.5rem;
  transition: color 0.3s;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
  }

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

  .card-grid {
    grid-template-columns: 1fr;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .avatar {
    height: 220px;
  }

  .avatar-small {
    height: 80px;
  }

  .container,
  .section-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Mobile: stack hero image on top */
  .hero-with-image {
    flex-direction: column;
    padding-top: 4rem;
  }

  .hero-image-container {
    position: relative;
    width: 100%;
    height: 300px;
  }

  .hero-content {
    margin-left: 0;
    padding: 2rem 1rem;
  }

  .nav-content {
    padding: 1rem;
    gap: 2rem;
  }

  /* Mosaic grid responsive */
  .grid-mosaic {
    display: flex !important;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 0.75rem 1rem;
  }

  .nav-content {
    padding: 0.75rem 1rem;
  }

  .nav-links {
    gap: 0.75rem;
    font-size: 0.875rem;
  }

  section {
    padding: 4rem 1rem;
  }
}

/* Links */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #ff5c3d;
}

/* Card links override */
.card a {
  color: inherit;
  text-decoration: none;
}

.card a:hover {
  color: inherit;
}

/* Cards that are links - prevent double hover effects */
a.card {
  text-decoration: none;
  color: inherit;
}

a.card:hover {
  text-decoration: none;
  color: inherit;
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted {
  color: var(--color-text-muted);
}

.container {
  padding-left: 4rem;
  padding-right: 4rem;
}

.section-content {
  padding-left: 4rem;
  padding-right: 4rem;
}

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

.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }

.flex-shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.gap-2 { gap: 0.5rem; }

.grid { display: grid; }
.md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: 1fr; }
  .md\:grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.max-w-2xl { max-width: 42rem; margin: 0 auto; }
.max-w-3xl { max-width: 48rem; margin: 0 auto; }
.max-w-4xl { max-width: 56rem; margin: 0 auto; }
.max-w-xl { max-width: 36rem; }

.p-4 { padding: 1rem; }

.rounded { border-radius: 0.25rem; }
.rounded-full { border-radius: 9999px; }

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.text-4xl { font-size: 2.25rem; }
.text-2xl { font-size: 1.5rem; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.bg-orange-500\/20 { background: rgba(255, 122, 89, 0.2); }
.bg-white\/10 { background: rgba(255, 255, 255, 0.1); }
.bg-orange-500\/30 { background: rgba(255, 122, 89, 0.3); }

.text-orange-400 { color: #ff7a59; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

.rounded-full { border-radius: 9999px; }
.rounded { border-radius: 0.25rem; }

.flex-shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* Badge styling */
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }

.rounded { border-radius: 0.25rem; }
.rounded-full { border-radius: 9999px; }
.rounded-text { border-radius: 0.25rem; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }

.bg-white\/10 { background: rgba(255, 255, 255, 0.1); }
.bg-orange-500\/20 { background: rgba(255, 122, 89, 0.2); }
.bg-orange-500\/30 { background: rgba(255, 122, 89, 0.3); }

.text-orange-400 { color: #ff7a59; }

.inline-flex { display: inline-flex; }
.flex-wrap { flex-wrap: wrap; }

/* Remove default link styling from card links */
.card a {
  color: inherit;
  text-decoration: none;
}

.card a:hover {
  color: inherit;
}

.min-h-\[60vh\] { min-height: 60vh; }

/* Prose styles for about page */
.prose {
  max-width: 65ch;
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.prose p {
  margin-bottom: 1rem;
  line-height: 1.75;
}

.prose ul {
  list-style: disc inside;
  margin-bottom: 1rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.space-x-2 > * + * { margin-left: 0.5rem; }
.flex-wrap { flex-wrap: wrap; }

/* Background gradients */
.bg-gradient-to-r {
  background: linear-gradient(to right, var(--color-darker) 0%, rgba(255, 122, 89, 0.1) 50%, var(--color-darker) 100%);
}

.from-transparent { }
.via-orange-900\/20 { }
.to-transparent { }

/* Group hover effects */
.group:hover .group-hover\:text-orange-400 {
  color: var(--color-primary);
}

.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}

.opacity-50 { opacity: 0.5; }
.transition { transition: all 0.3s; }
.cursor-pointer { cursor: pointer; }
