﻿:root {
  --bg-primary: #05050a;
  --bg-secondary: #0f1016;
  --bg-tertiary: #181920;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --navbar-bg: rgba(5, 5, 10, 0.6);
  --brand-purple: #8b5cf6;
  --brand-cyan: #06b6d4;
  --brand-blue: #3b82f6;
}

body.light-mode {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --card-bg: rgba(255, 255, 255, 0.6);
  --card-border: rgba(0, 0, 0, 0.05);
  --navbar-bg: rgba(255, 255, 255, 0.7);
}

body {
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.08), transparent 25%);
  background-attachment: fixed;
  color: var(--text-primary);
  transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.5s ease;
  font-family: 'Outfit', sans-serif;
}

::selection {
  background: rgba(139, 92, 246, 0.3);
  color: white;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.6);
}

.glass {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(-4px);
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Project card styling for homepage featured grid */
.project-tile {
  display: block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.18);
  border-color: rgba(255, 255, 255, 0.18);
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.75rem 0.75rem;
}

.project-card-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.project-card-icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-card-icon i {
  font-size: 1.35rem;
}

.project-card-preview {
  min-height: 190px;
  display: grid;
  place-items: center;
  position: relative;
}

.project-card-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle at top left, rgba(255,255,255,0.14), transparent 25%),
    radial-gradient(circle at bottom right, rgba(255,255,255,0.08), transparent 20%);
}

.project-card-preview-inner {
  position: relative;
  z-index: 1;
  font-size: 3.2rem;
  color: inherit;
}

.project-card-body {
  padding: 1.75rem 1.75rem 2rem;
}

.project-card-body h3 {
  color: #f8fafc;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.project-card-body p {
  color: #cbd5e1;
  line-height: 1.8;
}

.project-card-preview.bg-brand-blue\/5 {
  background: rgba(59, 130, 246, 0.08);
}

.project-card-preview.bg-brand-purple\/5 {
  background: rgba(139, 92, 246, 0.08);
}

.project-card-preview.bg-brand-cyan\/5 {
  background: rgba(6, 182, 212, 0.08);
}

.project-card-icon.bg-brand-blue\/10 {
  background: rgba(59, 130, 246, 0.1);
}

.project-card-icon.bg-brand-purple\/10 {
  background: rgba(139, 92, 246, 0.1);
}

.project-card-icon.bg-brand-cyan\/10 {
  background: rgba(6, 182, 212, 0.1);
}

.project-card-icon.text-brand-blue {
  color: #3b82f6;
}

.project-card-icon.text-brand-purple {
  color: #8b5cf6;
}

.project-card-icon.text-brand-cyan {
  color: #06b6d4;
}

.nav-link {
  position: relative;
  font-weight: 500;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

.skill-card i {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skill-card:hover i {
  transform: scale(1.2) rotate(5deg);
}

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

@keyframes pulse-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 20px rgba(139, 92, 246, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 35px rgba(139, 92, 246, 0.2); }
}

.animate-float { animation: float 8s ease-in-out infinite; }
.animate-float-delayed { animation: float 8s ease-in-out 4s infinite; }
.animate-pulse-glow { animation: pulse-glow 3s infinite; }

#mobile-menu {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
