/* ===================================
   MODERN PORTFOLIO STYLES
   Based on Premium Design Principles
   =================================== */

/* === SMOOTH SCROLLING === */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* === NAVIGATION === */
.nav-blur {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link {
  position: relative;
  color: #475569;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  color: #0ea5e9;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0ea5e9, #06b6d4);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: #475569;
  font-weight: 500;
  border-radius: 0.75rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-link:hover {
  background: #f1f5f9;
  color: #0ea5e9;
  transform: translateX(4px);
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  color: white;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: white;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* === GLASS CARD === */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2rem;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* === FLOATING SHAPES === */
.floating-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  bottom: 20%;
  right: 10%;
  animation-delay: 5s;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, #0891b2, #0e7490);
  top: 50%;
  right: 20%;
  animation-delay: 10s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

/* === PULSE DOT === */
.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

/* === TEXT GRADIENT === */
.text-gradient {
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === STAT CARD === */
.stat-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover {
  transform: translateY(-4px);
}

/* === FLOATING BADGE === */
.floating-badge {
  animation: floatBadge 3s ease-in-out infinite;
}

@keyframes floatBadge {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* === SCROLL INDICATOR === */
.scroll-indicator {
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 10px);
  }
}

/* === SKILL CARD === */
.skill-card {
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: white;
  border: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(14, 165, 233, 0.3);
}

/* === BENTO GRID === */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  grid-auto-flow: dense;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .bento-large {
    grid-column: span 2;
    grid-row: span 1;
  }
  
  .bento-medium {
    grid-column: span 1;
    grid-row: span 1;
  }
}

.bento-item {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-item:hover {
  transform: translateY(-8px);
}

/* === INPUT FIELDS === */
.input-field {
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  font-size: 0.9375rem;
  color: #0f172a;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.input-field:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.input-field::placeholder {
  color: #94a3b8;
}

/* === FADE IN ANIMATIONS === */
.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === RESPONSIVE UTILITIES === */
@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-large,
  .bento-medium {
    grid-column: span 1;
  }
}

/* === CUSTOM BADGE COLORS === */
/* Violet for Generative AI */
.bg-violet-50 {
  background-color: #f5f3ff;
}
.text-violet-700 {
  color: #6d28d9;
}

/* Fuchsia for Vibecoding */
.bg-fuchsia-50 {
  background-color: #fdf4ff;
}
.text-fuchsia-700 {
  color: #a21caf;
}

/* Indigo for AI Agents */
.bg-indigo-50 {
  background-color: #eef2ff;
}
.text-indigo-700 {
  color: #4338ca;
}

/* Rose for Epidemiology Analytic */
.bg-rose-50 {
  background-color: #fff1f2;
}
.text-rose-700 {
  color: #be123c;
}

/* Amber for Spatio-temporal Analyses */
.bg-amber-50 {
  background-color: #fffbeb;
}
.text-amber-700 {
  color: #b45309;
}

/* Gradient backgrounds for skill cards */
.from-violet-400 {
  --tw-gradient-from: #a78bfa;
}
.to-purple-500 {
  --tw-gradient-to: #a855f7;
}
.from-fuchsia-400 {
  --tw-gradient-from: #e879f9;
}

/* === SMOOTH TRANSITIONS === */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}
