/* ============================================================================
   PORTFOLIO CI4 - UNIFIED DARK GRADIENT THEME
   Premium Design with Morphing Animations
   ============================================================================ */

/* --------------------------------------------------------------------------
   DESIGN TOKENS - DARK GRADIENT PALETTE
   -------------------------------------------------------------------------- */
:root {
  /* Primary Gradient Colors */
  --color-primary: #8B5CF6;
  --color-primary-light: #A78BFA;
  --color-primary-dark: #7C3AED;
  --color-secondary: #06B6D4;
  --color-accent: #F472B6;
  --color-accent-alt: #34D399;

  /* Background Colors - Dark Theme */
  --color-bg-dark: #0a0a0f;
  --color-bg-card: rgba(20, 20, 30, 0.8);
  --color-bg-glass: rgba(255, 255, 255, 0.03);
  --color-bg-glass-hover: rgba(255, 255, 255, 0.06);

  /* Text Colors */
  --color-text-primary: #F8FAFC;
  --color-text-secondary: rgba(248, 250, 252, 0.7);
  --color-text-muted: rgba(248, 250, 252, 0.4);

  /* Borders & Glass Effect */
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(139, 92, 246, 0.4);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #8B5CF6 0%, #06B6D4 100%);
  --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0f0f1a 100%);
  --gradient-card: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
  --gradient-glow: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);

  /* Status Colors */
  --color-success: #34D399;
  --color-warning: #FBBF24;
  --color-error: #F87171;
  --color-info: #60A5FA;

  /* Shadows & Glows */
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 20px 40px rgba(139, 92, 246, 0.2);

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   BASE STYLES - DARK THEME
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-bg-dark);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(244, 114, 182, 0.05) 0%, transparent 60%);
  animation: backgroundPulse 20s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes backgroundPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-top: 0;
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
}

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

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

/* --------------------------------------------------------------------------
   NAVBAR - GLASSMORPHISM DARK
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  padding: var(--space-4) 0;
}

.navbar-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transition: all var(--transition-base);
}

.navbar-brand:hover {
  transform: scale(1.02);
  filter: brightness(1.2);
}

.navbar-brand svg {
  color: var(--color-primary);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.nav-link svg {
  width: 18px;
  height: 18px;
  opacity: 0.7;
  transition: all var(--transition-base);
}

.nav-link:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-glass);
}

.nav-link:hover svg {
  opacity: 1;
  color: var(--color-primary);
}

.nav-link.active {
  color: var(--color-text-primary);
  background: var(--gradient-card);
  border: 1px solid var(--color-border-hover);
}

.nav-link.active svg {
  opacity: 1;
  color: var(--color-primary);
}

.btn-login {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--gradient-primary);
  color: white !important;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
  transition: all var(--transition-base);
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.btn-login svg {
  width: 16px;
  height: 16px;
}

/* Mobile Menu */
.navbar-toggle {
  display: none;
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.navbar-toggle:hover {
  background: var(--color-bg-glass-hover);
}

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

  .navbar-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    padding: var(--space-4);
    gap: var(--space-2);
    border-bottom: 1px solid var(--color-border);
  }

  .navbar-nav.active {
    display: flex;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: var(--space-3) var(--space-4);
  }
}

/* --------------------------------------------------------------------------
   HERO SECTION - MORPHING BLOB
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gradient-hero);
}

/* Morphing Blob Background */
.hero::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  right: -200px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg,
      rgba(139, 92, 246, 0.4) 0%,
      rgba(6, 182, 212, 0.3) 50%,
      rgba(244, 114, 182, 0.2) 100%);
  filter: blur(80px);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morphBlob 15s ease-in-out infinite;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  left: -100px;
  bottom: -100px;
  background: linear-gradient(135deg,
      rgba(52, 211, 153, 0.2) 0%,
      rgba(6, 182, 212, 0.3) 100%);
  filter: blur(60px);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: morphBlob2 18s ease-in-out infinite;
  z-index: 0;
}

@keyframes morphBlob {

  0%,
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: translateY(-50%) rotate(0deg);
  }

  25% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
  }

  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    transform: translateY(-50%) rotate(90deg);
  }

  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  }
}

@keyframes morphBlob2 {

  0%,
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: rotate(0deg) scale(1);
  }

  33% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }

  66% {
    border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
    transform: rotate(180deg) scale(1.1);
  }
}

/* Hero Content - FULL WIDTH */
.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: var(--space-8) var(--space-8);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.hero-text {
  max-width: 650px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  color: var(--color-primary-light);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-6);
  animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  color: var(--color-success);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-primary-light) 50%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientText 5s ease-in-out infinite;
  background-size: 200% 200%;
}

@keyframes gradientText {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.hero-description {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  line-height: 1.8;
}

.hero-skills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  transition: all var(--transition-base);
}

.skill-tag:hover {
  background: var(--gradient-card);
  border-color: var(--color-border-hover);
  color: var(--color-text-primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.2);
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Hero Visual Side */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-3d-container {
  width: 100%;
  height: 500px;
  position: relative;
}

@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-8);
  }

  .hero-text {
    max-width: 100%;
  }

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

  .hero-visual {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   BUTTONS - GRADIENT STYLE
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}

.btn-primary:hover::before {
  left: 100%;
}

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

.btn-secondary:hover {
  background: var(--color-bg-glass-hover);
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: 1rem;
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   SECTIONS
   -------------------------------------------------------------------------- */
.section {
  padding: var(--space-16) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-4);
  color: var(--color-primary);
  animation: iconFloat 4s ease-in-out infinite;
}

@keyframes iconFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

.section-icon svg {
  width: 28px;
  height: 28px;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: var(--space-4);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* FULL WIDTH Container */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 var(--space-8);
}

/* Optional narrow container for specific sections */
.container-narrow {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-8);
}

/* --------------------------------------------------------------------------
   CARDS - GLASSMORPHISM DARK
   -------------------------------------------------------------------------- */
.card {
  background: var(--color-bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

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

.card:hover::before {
  transform: scaleX(1);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--color-bg-card) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.card-body {
  padding: var(--space-6);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--color-text-primary);
}

.card-text {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.card-meta svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   TAGS
   -------------------------------------------------------------------------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  color: var(--color-primary-light);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.tag:hover {
  border-color: var(--color-border-hover);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

/* --------------------------------------------------------------------------
   GRID LAYOUTS
   -------------------------------------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-8);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  gap: var(--space-8);
}

@media (max-width: 480px) {

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   FILTER BAR - DARK GLASS
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  padding: var(--space-5);
  background: var(--color-bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.search-box {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-10);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--color-text-primary);
  transition: all var(--transition-fast);
}

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

.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.search-icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
}

.filter-select {
  padding: var(--space-3) var(--space-4);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--color-text-primary);
  cursor: pointer;
  min-width: 150px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.filter-select option {
  background: var(--color-bg-dark);
  color: var(--color-text-primary);
}

/* --------------------------------------------------------------------------
   PAGINATION
   -------------------------------------------------------------------------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.pagination a:hover {
  background: var(--gradient-card);
  border-color: var(--color-border-hover);
  color: var(--color-text-primary);
  transform: translateY(-2px);
}

.pagination .active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

/* --------------------------------------------------------------------------
   EMPTY STATE
   -------------------------------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-8);
}

.empty-state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  margin-bottom: var(--space-6);
  color: var(--color-text-muted);
}

.empty-state-icon svg {
  width: 40px;
  height: 40px;
}

.empty-state-title {
  font-size: 1.5rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.empty-state-text {
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   FOOTER - DARK GRADIENT
   -------------------------------------------------------------------------- */
.footer {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
  border-top: 1px solid var(--color-border);
  padding: var(--space-12) 0 var(--space-6);
  margin-top: var(--space-16);
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-8);
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-4);
}

.footer-text {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: all var(--transition-fast);
}

.footer-links a svg {
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-primary-light);
  transform: translateX(5px);
}

.footer-links a:hover svg {
  opacity: 1;
  transform: translateX(0);
}

.footer-bottom {
  max-width: 1280px;
  margin: var(--space-8) auto 0;
  padding: var(--space-6) var(--space-6) 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.social-links {
  display: flex;
  gap: var(--space-3);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

/* --------------------------------------------------------------------------
   FORMS
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--color-text-secondary);
}

.form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-text-primary);
  transition: all var(--transition-fast);
}

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

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* --------------------------------------------------------------------------
   ALERTS
   -------------------------------------------------------------------------- */
.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  backdrop-filter: blur(10px);
  animation: alertIn 0.4s ease;
}

@keyframes alertIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.alert-success {
  background: rgba(52, 211, 153, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.alert-error {
  background: rgba(248, 113, 113, 0.15);
  color: var(--color-error);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.alert-warning {
  background: rgba(251, 191, 36, 0.15);
  color: var(--color-warning);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.alert-info {
  background: rgba(96, 165, 250, 0.15);
  color: var(--color-info);
  border: 1px solid rgba(96, 165, 250, 0.3);
}

/* --------------------------------------------------------------------------
   PAGE HEADER WITH ICON
   -------------------------------------------------------------------------- */
.page-header {
  text-align: center;
  padding: var(--space-12) 0;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: var(--gradient-glow);
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
}

.page-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: var(--radius-2xl);
  margin-bottom: var(--space-5);
  animation: iconBounce 2s ease-in-out infinite;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

@keyframes iconBounce {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-10px) scale(1.05);
  }
}

.page-icon svg {
  width: 36px;
  height: 36px;
  color: white;
}

.page-title {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  color: var(--color-text-secondary);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   ABOUT PAGE STYLES
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-12);
  align-items: start;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.about-photo {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
  border-radius: var(--radius-2xl);
  object-fit: cover;
  border: 3px solid var(--color-border);
  box-shadow: var(--shadow-glow);
  animation: photoGlow 4s ease-in-out infinite;
}

@keyframes photoGlow {

  0%,
  100% {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
  }

  50% {
    box-shadow: 0 0 60px rgba(6, 182, 212, 0.4);
  }
}

.about-photo-placeholder {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

.about-photo-placeholder svg {
  width: 80px;
  height: 80px;
}

.about-content h2 {
  margin-bottom: var(--space-6);
}

.about-bio {
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-8);
}

.about-skills {
  margin-bottom: var(--space-8);
}

.about-skills h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.about-skills h3 svg {
  color: var(--color-primary);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.skill-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  transition: all var(--transition-base);
}

.skill-item:hover {
  background: var(--gradient-card);
  border-color: var(--color-border-hover);
  color: var(--color-text-primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.2);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

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

.contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

.contact-item a:hover {
  color: var(--color-primary-light);
}

/* --------------------------------------------------------------------------
   DETAIL PAGE
   -------------------------------------------------------------------------- */
.detail-header {
  margin-bottom: var(--space-8);
}

.detail-cover {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-6);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.detail-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.detail-meta-item svg {
  width: 16px;
  height: 16px;
}

.detail-content {
  color: var(--color-text-secondary);
  line-height: 1.8;
  font-size: 1.0625rem;
}

.detail-content p {
  margin-bottom: var(--space-4);
}

.share-buttons {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.share-btn:hover {
  background: var(--gradient-card);
  border-color: var(--color-border-hover);
  color: var(--color-primary);
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   RELATED ITEMS
   -------------------------------------------------------------------------- */
.related-section {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.related-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-6);
}

/* --------------------------------------------------------------------------
   NOTION EMBED
   -------------------------------------------------------------------------- */
.notion-embed {
  width: 100%;
  min-height: 600px;
  border: none;
  border-radius: var(--radius-xl);
  background: var(--color-bg-card);
}

.notion-disabled {
  text-align: center;
  padding: var(--space-16);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

/* --------------------------------------------------------------------------
   ANIMATIONS
   -------------------------------------------------------------------------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation for grids */
.grid-3 .card:nth-child(1) {
  transition-delay: 0ms;
}

.grid-3 .card:nth-child(2) {
  transition-delay: 100ms;
}

.grid-3 .card:nth-child(3) {
  transition-delay: 200ms;
}

.grid-3 .card:nth-child(4) {
  transition-delay: 300ms;
}

.grid-3 .card:nth-child(5) {
  transition-delay: 400ms;
}

.grid-3 .card:nth-child(6) {
  transition-delay: 500ms;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   UTILITIES
   -------------------------------------------------------------------------- */
.text-center {
  text-align: center;
}

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

.mb-0 {
  margin-bottom: 0;
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-8 {
  margin-top: var(--space-8);
}