@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables - Liquid Glass Design System */
:root {
  /* Background - Mesh Gradient Colors */
  --background: 0 0% 100%;
  --foreground: 222 47% 11%;

  /* Glass Card */
  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;

  /* Apple Blue Accent */
  --primary: 221 83% 53%;
  --primary-foreground: 0 0% 100%;

  /* Secondary - Soft Purple */
  --secondary: 270 60% 70%;
  --secondary-foreground: 0 0% 100%;

  --muted: 210 40% 96.1%;
  --muted-foreground: 215 16% 47%;

  /* Accent - Gradient Purple */
  --accent: 262 83% 58%;
  --accent-foreground: 0 0% 100%;

  --border: 0 0% 100%;
  --radius: 1.5rem;

  /* Custom Liquid Glass Variables */
  --glass-bg: rgba(255, 255, 255, 0.4);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-blur: 20px;

  /* Mesh Gradient Colors */
  --mesh-pink: hsl(340 80% 88%);
  --mesh-blue: hsl(210 100% 85%);
  --mesh-purple: hsl(270 80% 88%);
  --mesh-peach: hsl(25 100% 90%);

  /* Text Colors */
  --text-heading: hsl(222 47% 11%);
  --text-body: hsl(215 20% 25%);
  --text-muted: hsl(215 16% 47%);

  /* Glow Effects */
  --glow-primary: rgba(59, 130, 246, 0.4);
  --glow-accent: rgba(139, 92, 246, 0.4);
}

/* Reset and Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: hsl(var(--background));
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.max-w-6xl {
  max-width: 72rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-2xl {
  max-width: 42rem;
}

/* Glass Card */
.glass-card {
  position: relative;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.glass-card-elevated {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.12),
    0 8px 25px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.glass-card.hover-lift,
.glass-card-elevated.hover-lift {
  transition: all 0.3s ease;
}

.glass-card.hover-lift:hover,
.glass-card-elevated.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Pill Button */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 100%);
  box-shadow: 0 4px 20px var(--glow-primary);
  text-decoration: none;
}

.btn-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--glow-primary), 0 4px 15px var(--glow-accent);
}

.btn-pill:active {
  transform: translateY(0);
}

/* Mesh Gradient Background */
.mesh-background {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
}

.mesh-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, var(--mesh-pink) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, var(--mesh-blue) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 80%, var(--mesh-purple) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, var(--mesh-peach) 0%, transparent 50%),
    linear-gradient(180deg, var(--mesh-blue) 0%, var(--mesh-pink) 100%);
  background-size: 200% 200%;
  animation: gradient-shift 15s ease infinite;
}

.floating-orb {
  position: absolute;
  border-radius: 50%;
  animation: float-orb 20s ease-in-out infinite;
}

.orb-pink {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--mesh-pink) 0%, transparent 70%);
  top: 10%;
  left: 5%;
  opacity: 0.4;
}

.orb-blue {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--mesh-blue) 0%, transparent 70%);
  top: 20%;
  right: 10%;
  opacity: 0.5;
  animation-delay: -3s;
}

.orb-purple {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--mesh-purple) 0%, transparent 70%);
  bottom: 10%;
  left: 30%;
  opacity: 0.3;
  animation-delay: -6s;
}

.orb-peach {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--mesh-peach) 0%, transparent 70%);
  bottom: 20%;
  right: 5%;
  opacity: 0.4;
  animation-delay: -9s;
}

/* Section Styles */
.section-heading {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.section-subheading {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* Navigation */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
}

.nav.scrolled {
  padding: 0.75rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

.nav-logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-heading);
  text-decoration: none;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  transition: color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-link:hover {
  color: hsl(var(--primary));
}

.mobile-menu-btn {
  display: flex;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-heading);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 5rem;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 1rem;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
}

.mobile-nav-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-body);
  background: none;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mobile-nav-link:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1rem 4rem;
  text-align: center;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-body);
  margin-bottom: 2rem;
}

.location-badge svg {
  color: hsl(var(--primary));
}

/* Status Dot - Pulsing Green */
.status-dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }

  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
}

/* Nav Logo Image */
.nav-logo img {
  display: block;
  border-radius: 8px;
}

.hero-name {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(1rem, 4vw, 1.875rem);
  font-weight: 500;
  margin-bottom: 1.5rem;
  white-space: nowrap;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.125rem;
  color: var(--text-body);
  max-width: 40rem;
  margin-bottom: 2rem;
}

.typewriter-container {
  height: 2rem;
  margin-bottom: 3rem;
  color: var(--text-body);
}

.typing-cursor::after {
  content: '|';
  animation: blink 1s infinite;
  color: hsl(var(--primary));
  font-weight: 300;
}

.scroll-indicator {
  display: none;
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  justify-content: center;
}

@media (min-width: 1024px) {
  .scroll-indicator {
    display: flex;
  }
}

.scroll-mouse {
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 9999px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0.5rem;
}

.scroll-dot {
  width: 0.375rem;
  height: 0.375rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  animation: scroll-bounce 2s ease-in-out infinite;
}

/* Sections */
.section {
  padding: 6rem 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-1 {
  grid-template-columns: 1fr;
}

/* Cards */
.card {
  padding: 2rem;
  height: 100%;
}

.card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.card-icon svg {
  color: white;
  width: 1.5rem;
  height: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.card-list {
  list-style: none;
}

.card-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-body);
  margin-bottom: 0.5rem;
}

.card-list li::before {
  content: '';
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: hsl(var(--primary));
  margin-top: 0.5rem;
  flex-shrink: 0;
}

/* Quote Card */
.quote-card {
  max-width: 48rem;
  margin: 0 auto 3rem;
  padding: 2rem;
  text-align: center;
}

.quote-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-heading);
}

@media (min-width: 1024px) {
  .quote-text {
    font-size: 1.2rem;
  }
}

/* Tech Badges */
.tech-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-body);
  border-radius: var(--radius);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  transition: transform 0.2s ease;
}

.tech-badge:hover {
  transform: scale(1.05);
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Tech Stack Flexible Grid */
.tech-category h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

/* Project Cards */
.project-card {
  cursor: pointer;
}

.project-card .card-title {
  margin-bottom: 0.5rem;
}

.project-tech {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--primary));
  margin-bottom: 0.75rem;
}

.project-result {
  font-size: 0.875rem;
  color: var(--text-body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
  transition: color 0.2s ease;
}

.project-card:hover .project-hint {
  color: hsl(var(--primary));
}

.project-card:hover .card-icon {
  transform: scale(1.1);
}

.project-card .card-icon {
  transition: transform 0.3s ease;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  width: 100%;
  max-width: 32rem;
  padding: 2rem;
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-close svg {
  color: var(--text-heading);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.modal-tech {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--primary));
  margin-bottom: 1.5rem;
}

.modal-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-detail h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}

.modal-detail p {
  font-size: 0.875rem;
  color: var(--text-body);
}

.modal-detail.result p {
  color: hsl(var(--primary));
  font-weight: 500;
}

/* Contact Section */
.contact-cards {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  text-decoration: none;
}

.contact-card:hover .card-icon {
  transform: scale(1.1);
}

.contact-card .card-icon {
  transition: transform 0.3s ease;
}

.contact-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.contact-value {
  font-weight: 500;
  color: var(--text-heading);
}

.contact-cta {
  text-align: center;
}

/* Footer */
.footer {
  padding: 2rem 1rem;
}

.footer-inner {
  padding: 1rem 1.5rem;
  text-align: center;
}

.footer-text {
  font-size: 0.875rem;
  color: var(--text-body);
}

.footer-heart {
  color: hsl(var(--accent));
}

/* Animations */
@keyframes gradient-shift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes float-orb {

  0%,
  100% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(30px, -20px);
  }

  50% {
    transform: translate(50px, 30px);
  }

  75% {
    transform: translate(-20px, 20px);
  }
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

@keyframes scroll-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

@keyframes glow-pulse {

  0%,
  100% {
    box-shadow: 0 4px 20px var(--glow-primary);
  }

  50% {
    box-shadow: 0 4px 30px var(--glow-primary), 0 0 40px var(--glow-accent);
  }
}

.animate-glow {
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

.delay-5 {
  animation-delay: 0.5s;
}

/* Responsive */
@media (min-width: 640px) {
  .hero-name {
    font-size: 3.75rem;
  }

  .hero-title {
    font-size: 1.875rem;
  }

  .section-heading {
    font-size: 3rem;
  }

  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .hero-name {
    font-size: 4.5rem;
  }

  .hero-title {
    font-size: 1.875rem;
  }

  .grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-heading {
    font-size: 3rem;
  }

  .quote-text {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .hero-name {
    font-size: 6rem;
  }

  .grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Intersection Observer Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger>* {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.visible>* {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(1) {
  transition-delay: 0s;
}

.reveal-stagger.visible>*:nth-child(2) {
  transition-delay: 0.1s;
}

.reveal-stagger.visible>*:nth-child(3) {
  transition-delay: 0.2s;
}

.reveal-stagger.visible>*:nth-child(4) {
  transition-delay: 0.3s;
}

.reveal-stagger.visible>*:nth-child(5) {
  transition-delay: 0.4s;
}

.reveal-stagger.visible>*:nth-child(6) {
  transition-delay: 0.5s;
}

.reveal-stagger.visible>*:nth-child(7) {
  transition-delay: 0.6s;
}

.reveal-stagger.visible>*:nth-child(8) {
  transition-delay: 0.7s;
}