/* ========================================
   Modern Portfolio - Justus Oluoch
   Inspired by Tim Mujong's design
   ======================================== */

/* CSS Variables */
:root {
  /* Colors */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #10b981;
  --accent: #f59e0b;
  
  /* Dark Theme */
  --bg-dark: #0a0a0f;
  --bg-darker: #050508;
  --bg-card: #111118;
  --bg-card-hover: #1a1a24;
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --gradient-hero: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
  --gradient-card: linear-gradient(145deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.02) 100%);
  
  /* Borders */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --border-radius-lg: 24px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

/* Selection */
::selection {
  background: var(--primary);
  color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

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

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

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

strong {
  color: var(--text-primary);
  font-weight: 600;
}

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

/* ========================================
   Navigation - Floating Pill Style
   ======================================== */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.navbar.scrolled {
  top: 16px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  background: rgba(20, 20, 28, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  padding: 8px 12px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 50px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link i {
  font-size: 1rem;
  opacity: 0.8;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.12);
}

.nav-link.active i {
  opacity: 1;
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  background: rgba(20, 20, 28, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  z-index: 1001;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 2px;
}

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

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

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

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .navbar {
    top: 80px;
    left: 20px;
    right: 20px;
    transform: none;
    width: calc(100% - 40px);
  }

  .nav-menu {
    width: 100%;
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-radius: 24px;
    transform: translateY(-200%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-link {
    width: 100%;
    justify-content: center;
    padding: 16px;
  }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  padding-top: 100px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.hero-container.hero-centered {
  text-align: left;
}

.hero-container.hero-centered .hero-content {
  max-width: 650px;
  flex: 1;
}

.hero-container.hero-centered .hero-description {
  max-width: 550px;
}

.hero-container.hero-centered .hero-buttons {
  justify-content: flex-start;
}

.hero-greeting {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
}

.hero-greeting .wave {
  font-size: 1.2rem;
}

.hero-greeting::before {
  display: none;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 600px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(249, 115, 22, 0.6);
  color: white;
}

.btn-primary.btn-glow {
  animation: btn-pulse 2s ease-in-out infinite;
}

@keyframes btn-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(249, 115, 22, 0.6);
  }
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
  color: var(--text-primary);
}

.btn-large {
  padding: 18px 48px;
  font-size: 1.1rem;
}

/* Hero Social Links */
.hero-social {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}

/* Hero Image - Hidden for centered layout */
.hero-image {
  display: none;
}

.hero-centered + .hero-image {
  display: none;
}

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

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--border-color);
  position: relative;
  z-index: 2;
}

.image-decoration {
  position: absolute;
  inset: -20px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.05); opacity: 0.5; }
}

/* Scroll Indicator - Hidden for centered hero */
.scroll-indicator {
  display: none;
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid var(--border-color);
  border-radius: 20px;
  position: relative;
}

.scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
  0%, 100% { top: 8px; opacity: 1; }
  50% { top: 20px; opacity: 0.3; }
}

/* ========================================
   Floating Profile Picture
   ======================================== */
.hero-profile-float {
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  width: 280px;
  height: 280px;
  border-radius: 50%;
  z-index: 5;
}

.hero-profile-float .profile-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, rgba(139, 92, 246, 0.2) 40%, transparent 70%);
  border-radius: 50%;
  animation: float-glow 4s ease-in-out infinite;
  z-index: -1;
}

.hero-profile-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 0 60px rgba(99, 102, 241, 0.3),
    0 20px 40px rgba(0, 0, 0, 0.4);
  animation: float-profile 6s ease-in-out infinite;
}

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

@keyframes float-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@media (max-width: 1200px) {
  .hero-profile-float {
    width: 220px;
    height: 220px;
    right: 5%;
  }
}

@media (max-width: 992px) {
  .hero-profile-float {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    margin: 40px auto 0;
    width: 200px;
    height: 200px;
  }
  
  .hero-container.hero-centered {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .hero-profile-float {
    width: 160px;
    height: 160px;
    margin-top: 30px;
  }
}

/* ========================================
   Two-Row Showcase Grid (In Hero)
   ======================================== */
.showcase-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  padding-bottom: 30px;
  margin-top: 40px;
}

.showcase-row {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgb(0, 0, 0) 5%,
    rgb(0, 0, 0) 95%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgb(0, 0, 0) 5%,
    rgb(0, 0, 0) 95%,
    rgba(0, 0, 0, 0) 100%
  );
}

.showcase-track {
  display: flex;
  gap: 20px;
  width: max-content;
  align-items: center;
}

.showcase-track.track-left {
  animation: scroll-left 60s linear infinite;
}

.showcase-track.track-right {
  animation: scroll-right 60s linear infinite;
}

.showcase-track:hover {
  animation-play-state: paused;
}

.showcase-item {
  flex-shrink: 0;
  width: 280px;
  height: 200px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Varied sizes like the template */
.showcase-item.item-wide {
  width: 400px;
  height: 240px;
}

.showcase-item.item-tall {
  width: 220px;
  height: 300px;
}

.showcase-item:hover {
  transform: scale(1.03);
  z-index: 10;
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
}

.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  filter: brightness(0.9) contrast(1.1);
}

.showcase-item:hover img {
  transform: scale(1.08);
  filter: brightness(1) contrast(1.1);
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scroll-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .showcase-item {
    width: 200px;
    height: 150px;
  }

  .showcase-item.item-wide {
    width: 280px;
    height: 175px;
  }

  .showcase-item.item-tall {
    width: 160px;
    height: 210px;
  }

  .showcase-grid {
    gap: 14px;
    margin-top: 30px;
  }

  .showcase-track {
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .showcase-item {
    width: 160px;
    height: 120px;
    border-radius: 14px;
  }

  .showcase-item.item-wide {
    width: 220px;
    height: 140px;
  }

  .showcase-item.item-tall {
    width: 130px;
    height: 170px;
  }

  .showcase-grid {
    gap: 10px;
    margin-top: 20px;
  }

  .showcase-track {
    gap: 10px;
  }
}

/* ========================================
   Showcase Carousel (legacy - can remove)
   ======================================== */
.showcase-carousel {
  width: 100%;
  padding: 60px 0;
  background: var(--bg-darker);
  overflow: hidden;
  position: relative;
}

.carousel-wrapper {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgb(0, 0, 0) 10%,
    rgb(0, 0, 0) 90%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgb(0, 0, 0) 10%,
    rgb(0, 0, 0) 90%,
    rgba(0, 0, 0, 0) 100%
  );
}

.carousel-track {
  display: flex;
  gap: 20px;
  animation: carousel-scroll 30s linear infinite;
  width: max-content;
}

.carousel-track:hover {
  animation-play-state: paused;
}

.carousel-item {
  flex-shrink: 0;
  width: 380px;
  height: 260px;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.carousel-item:hover {
  transform: scale(1.02);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.carousel-item:hover img {
  transform: scale(1.05);
}

@keyframes carousel-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .showcase-carousel {
    padding: 40px 0;
  }

  .carousel-item {
    width: 280px;
    height: 190px;
  }

  .carousel-track {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .carousel-item {
    width: 220px;
    height: 150px;
  }
}

@media (max-width: 968px) {
  .hero-container {
    text-align: center;
  }

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

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .hero-image {
    display: none;
  }

  .image-wrapper {
    width: 280px;
    height: 280px;
  }
}

/* ========================================
   Sections
   ======================================== */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   About Section
   ======================================== */
.about {
  background: var(--bg-darker);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
  padding-top: 50px;
  border-top: 1px solid var(--border-color);
}

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

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .about-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ========================================
   Skills Section
   ======================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 32px;
  transition: var(--transition);
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  background: var(--gradient-card);
}

.skill-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--border-radius-sm);
  margin-bottom: 20px;
}

.skill-icon i {
  font-size: 1.5rem;
  color: var(--primary-light);
}

.skill-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.skill-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========================================
   Tools Section
   ======================================== */
.tools {
  background: var(--bg-darker);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.tool-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.tool-item i {
  font-size: 2.5rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.tool-item:hover i {
  color: var(--primary-light);
}

.tool-item span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ========================================
   Experience Section (Timeline)
   ======================================== */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

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

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

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

.timeline-marker {
  position: absolute;
  left: -6px;
  top: 0;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg-dark);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 28px;
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: var(--primary);
}

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

.timeline-header h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

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

.timeline-header .date {
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.timeline-content > p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

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

.timeline-tags span {
  padding: 6px 14px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-light);
  font-size: 0.85rem;
  border-radius: 50px;
  font-weight: 500;
}

@media (max-width: 600px) {
  .timeline-header {
    flex-direction: column;
  }
}

/* ========================================
   Projects Section
   ======================================== */
.projects {
  background: var(--bg-darker);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
}

.project-image {
  height: 200px;
  background: var(--gradient-card);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.project-image::before {
  content: '< / >';
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary);
  opacity: 0.3;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(99, 102, 241, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  background: rgba(99, 102, 241, 0.8);
}

.project-link {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  color: var(--primary);
  font-size: 1.2rem;
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition);
}

.project-card:hover .project-link {
  opacity: 1;
  transform: scale(1);
}

.project-content {
  padding: 28px;
}

.project-year {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-light);
  font-size: 0.85rem;
  border-radius: 50px;
  margin-bottom: 12px;
  font-weight: 500;
}

.project-content h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.project-content > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

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

.project-tags span {
  padding: 4px 12px;
  background: var(--bg-dark);
  color: var(--text-secondary);
  font-size: 0.8rem;
  border-radius: 50px;
}

/* ========================================
   Education Section
   ======================================== */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.education-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
}

.education-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.education-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 50%;
  margin: 0 auto 20px;
}

.education-icon i {
  font-size: 1.8rem;
  color: var(--primary-light);
}

.education-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.education-card .institution {
  display: block;
  color: var(--primary-light);
  font-weight: 500;
  margin-bottom: 6px;
}

.education-card .period {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.education-card > p {
  color: var(--text-secondary);
}

.awards-list {
  list-style: none;
  text-align: left;
}

.awards-list li {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ========================================
   Interests Section
   ======================================== */
.interests {
  background: var(--bg-darker);
}

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

.interest-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
}

.interest-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.interest-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.interest-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.interest-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
  background: var(--gradient-hero);
  text-align: center;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-content h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 20px;
}

.contact-content > p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.contact-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 50px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
}

.contact-item i {
  color: var(--primary-light);
  font-size: 1.2rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--bg-darker);
  padding: 80px 0 30px;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-brand .logo-text {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
}

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

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-column h4 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--primary-light);
}

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

.footer-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .section {
    padding: 60px 0;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .skills-grid,
  .projects-grid,
  .education-grid,
  .interests-grid {
    grid-template-columns: 1fr;
  }
}
