@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ==================== PAGE LOAD ANIMATIONS ==================== */
/* Page load fade-in animation */
body {
  opacity: 0;
  animation: pageLoadFadeIn 1s ease-out forwards;
}

@keyframes pageLoadFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Staggered fade-in for main sections */
section {
  opacity: 0;
  animation: sectionFadeIn 0.8s ease-out forwards;
}

@keyframes sectionFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger delays for each section */
#hero { animation-delay: 0.1s; }
#gallery-section { animation-delay: 0.2s; }
#tech-stack { animation-delay: 0.3s; }
#projects { animation-delay: 0.4s; }
#contact { animation-delay: 0.5s; }

/* Navigation fade-in */
.bubble-menu {
  opacity: 0;
  animation: navFadeIn 0.6s ease-out 0.2s forwards;
}

@keyframes navFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dot grid background fade-in */
#dot-grid-bg {
  opacity: 0;
  animation: bgFadeIn 1.5s ease-out 0.3s forwards;
}

@keyframes bgFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Footer fade-in */
footer {
  opacity: 0;
  animation: sectionFadeIn 0.8s ease-out 0.6s forwards;
}

/* Profile picture animation */
.about-me__profile-picture--mask {
  opacity: 0;
  animation: profileFadeIn 1s ease-out 0.4s forwards;
}

@keyframes profileFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Social links animation */
.about-me__links {
  opacity: 0;
  animation: linksFadeIn 0.6s ease-out 0.7s forwards;
}

@keyframes linksFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Language/tech stack items stagger */
.language {
  opacity: 0;
  animation: itemFadeIn 0.5s ease-out forwards;
}

.language:nth-child(1) { animation-delay: 0.5s; }
.language:nth-child(2) { animation-delay: 0.6s; }
.language:nth-child(3) { animation-delay: 0.7s; }
.language:nth-child(4) { animation-delay: 0.8s; }
.language:nth-child(5) { animation-delay: 0.9s; }
.language:nth-child(6) { animation-delay: 1s; }
.language:nth-child(7) { animation-delay: 1.1s; }
.language:nth-child(8) { animation-delay: 1.2s; }

@keyframes itemFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Project cards fade-in */
.project__wrapper {
  opacity: 0;
  animation: cardFadeIn 0.8s ease-out 0.6s forwards;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  body, section, .bubble-menu, #dot-grid-bg, footer,
  .about-me__profile-picture--mask, .about-me__links,
  .language, .project__wrapper {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }
}
/* ==================== END PAGE LOAD ANIMATIONS ==================== */


:root {
  /* palette - Index Proselytes inspired */
  --bg: #0a0f1a;         /* deep navy/black */
  --bg-2: #0f172a;       /* slate */
  --panel: rgba(212,165,116,0.08);  /* gold tint */
  --panel-2: rgba(96,165,250,0.06); /* blue tint */
  --border: rgba(212,165,116,0.15); /* gold border */

  --text: #e5e7eb;       /* light gray */
  --text-muted: #aab3c2;
  --title: #dbeafe;      /* pale blue */

  --accent-gold: #d4a574;   /* Index logo gold */
  --accent-blue: #60a5fa;   /* Index logo blue */
  --accent-blue-light: #93c5fd;
  --accent-green: #34d399;
  --accent-purple: #a78bfa;
  --accent-yellow: #fbbf24;
  --accent-red: #ef4444;

  --primary-accent: #d4a574;    /* Gold as primary */
  --secondary-accent: #60a5fa;  /* Blue as secondary */

  --shadow: 0 18px 40px rgba(0,0,0,0.35);

  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 40px;

  --transition-fast: 0.25s ease;
  --transition-med: 0.45s ease;
  --transition-slow: 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Lora', serif;
  background: radial-gradient(1200px 800px at 50% 30%, rgba(96,165,250,0.08), transparent 60%),
              radial-gradient(900px 700px at 70% 60%, rgba(212,165,116,0.06), transparent 55%),
              var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, span { font-family: 'Lora', serif; }
p { line-height: 1.7; font-size: 16px; }
li { list-style: none; }

/* ==========================
   Dot Grid Background
   ========================== */
#dot-grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.dot-grid__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* Co-op Availability Banner - Eye-catching for Recruiters */
.coop-banner {
  position: relative;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(59, 130, 246, 0.1));
  border: 3px solid #60a5fa;
  border-radius: 20px;
  padding: 2rem;
  margin: 2.5rem auto;
  max-width: 900px;
  display: flex;
  align-items: center;
  gap: 2rem;
  overflow: hidden;
  box-shadow: 
    0 0 20px rgba(96, 165, 250, 0.4),
    0 0 40px rgba(96, 165, 250, 0.2),
    0 10px 30px rgba(0, 0, 0, 0.3);
  animation: bannerPulse 3s ease-in-out infinite;
  transition: all 0.3s ease;
}

@keyframes bannerPulse {
  0%, 100% {
    box-shadow: 
      0 0 20px rgba(96, 165, 250, 0.4),
      0 0 40px rgba(96, 165, 250, 0.2),
      0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: #60a5fa;
  }
  50% {
    box-shadow: 
      0 0 30px rgba(96, 165, 250, 0.6),
      0 0 60px rgba(96, 165, 250, 0.4),
      0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: #93c5fd;
  }
}

.coop-banner:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 0 40px rgba(96, 165, 250, 0.6),
    0 0 80px rgba(96, 165, 250, 0.4),
    0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Animated pulsing background */
.coop-banner-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.2), transparent 70%);
  transform: translate(-50%, -50%);
  animation: pulse 2s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

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

/* Icon container */
.coop-banner-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: rgba(96, 165, 250, 0.2);
  border: 3px solid #60a5fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

.coop-banner-icon i {
  font-size: 2.5rem;
  color: #60a5fa;
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Content */
.coop-banner-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.coop-banner-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #60a5fa;
  margin-bottom: 0.75rem;
  font-family: 'Lora', serif;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-shadow: 
    0 0 10px rgba(96, 165, 250, 0.5),
    0 0 20px rgba(96, 165, 250, 0.3);
}

.coop-banner-title i {
  font-size: 1.5rem;
  animation: starTwinkle 1.5s ease-in-out infinite;
}

@keyframes starTwinkle {
  0%, 100% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: rotate(180deg) scale(1.2);
  }
}

.coop-banner-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e2e8f0;
  margin: 0;
}

/* Glowing highlighted text */
.coop-highlight {
  color: #60a5fa;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 0.25rem 0.75rem;
  background: rgba(96, 165, 250, 0.15);
  border-radius: 8px;
  display: inline-block;
  position: relative;
  text-shadow: 
    0 0 10px rgba(96, 165, 250, 0.8),
    0 0 20px rgba(96, 165, 250, 0.6),
    0 0 30px rgba(96, 165, 250, 0.4);
  animation: highlightGlow 2s ease-in-out infinite;
  border: 2px solid rgba(96, 165, 250, 0.3);
}

@keyframes highlightGlow {
  0%, 100% {
    text-shadow: 
      0 0 10px rgba(96, 165, 250, 0.8),
      0 0 20px rgba(96, 165, 250, 0.6),
      0 0 30px rgba(96, 165, 250, 0.4);
    border-color: rgba(96, 165, 250, 0.3);
    background: rgba(96, 165, 250, 0.15);
  }
  50% {
    text-shadow: 
      0 0 15px rgba(96, 165, 250, 1),
      0 0 30px rgba(96, 165, 250, 0.8),
      0 0 45px rgba(96, 165, 250, 0.6),
      0 0 60px rgba(96, 165, 250, 0.4);
    border-color: rgba(96, 165, 250, 0.6);
    background: rgba(96, 165, 250, 0.25);
    transform: scale(1.02);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .coop-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .coop-banner-icon {
    width: 70px;
    height: 70px;
  }

  .coop-banner-icon i {
    font-size: 2rem;
  }

  .coop-banner-title {
    font-size: 1.5rem;
    justify-content: center;
  }

  .coop-banner-text {
    font-size: 1rem;
  }

  .coop-highlight {
    font-size: 1.1rem;
    padding: 0.2rem 0.6rem;
  }
}

@media (max-width: 480px) {
  .coop-banner {
    padding: 1.25rem;
    margin: 2rem auto;
  }

  .coop-banner-icon {
    width: 60px;
    height: 60px;
  }

  .coop-banner-icon i {
    font-size: 1.75rem;
  }

  .coop-banner-title {
    font-size: 1.25rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .coop-banner-text {
    font-size: 0.95rem;
  }

  .coop-highlight {
    font-size: 1rem;
    display: block;
    margin-top: 0.5rem;
  }
}

/* About Me Section Styles */
.about-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, rgba(11, 16, 32, 0.8), rgba(30, 35, 58, 0.6));
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(96, 165, 250, 0.05), transparent 60%);
  pointer-events: none;
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.about-intro {
  text-align: center;
  margin-bottom: 4rem;
  padding: 0 2rem;
}

.about-paragraph {
  font-size: 1.25rem;
  line-height: 1.8;
  color: #e2e8f0;
  max-width: 900px;
  margin: 0 auto;
  font-weight: 400;
}

.highlight {
  color: #60a5fa;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #60a5fa, transparent);
  opacity: 0.5;
}

/* About Cards Grid */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
  padding: 0 1rem;
}

.about-card {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.08), rgba(30, 35, 58, 0.4));
  border: 2px solid rgba(96, 165, 250, 0.2);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.about-card:hover {
  transform: translateY(-8px);
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 10px 40px rgba(96, 165, 250, 0.2);
}

.about-card:hover::before {
  opacity: 1;
}

.about-card-icon {
  width: 60px;
  height: 60px;
  background: rgba(96, 165, 250, 0.15);
  border: 2px solid rgba(96, 165, 250, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
}

.about-card:hover .about-card-icon {
  background: rgba(96, 165, 250, 0.25);
  border-color: rgba(96, 165, 250, 0.5);
  transform: scale(1.1) rotate(5deg);
}

.about-card-icon i {
  font-size: 1.75rem;
  color: #60a5fa;
}

.about-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #60a5fa;
  margin-bottom: 1rem;
  font-family: 'Lora', serif;
}

.about-card-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #cbd5e1;
}

/* Values Section */
.about-values {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(96, 165, 250, 0.05);
  border-radius: 20px;
  border: 2px solid rgba(96, 165, 250, 0.15);
  margin-top: 2rem;
}

.about-values-title {
  font-size: 2rem;
  font-weight: 700;
  color: #60a5fa;
  margin-bottom: 2rem;
  font-family: 'Lora', serif;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.value-item:hover {
  background: rgba(96, 165, 250, 0.15);
  border-color: rgba(96, 165, 250, 0.4);
  transform: translateY(-4px);
}

.value-item i {
  font-size: 2rem;
  color: #60a5fa;
  transition: transform 0.3s ease;
}

.value-item:hover i {
  transform: scale(1.2);
}

.value-item span {
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .about-section {
    padding: 4rem 0;
  }

  .about-paragraph {
    font-size: 1.1rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-card {
    padding: 1.5rem;
  }

  .about-values {
    padding: 2rem 1.5rem;
  }

  .about-values-title {
    font-size: 1.75rem;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .about-intro {
    margin-bottom: 3rem;
    padding: 0 1rem;
  }

  .about-paragraph {
    font-size: 1rem;
  }

  .about-card-title {
    font-size: 1.25rem;
  }

  .about-card-text {
    font-size: 0.95rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .value-item {
    padding: 1.25rem;
  }
}

/* Glowing Co-op Text Effect */
.coop-glow {
  color: #60a5fa;
  font-weight: 600;
  text-shadow: 
    0 0 10px rgba(96, 165, 250, 0.8),
    0 0 20px rgba(96, 165, 250, 0.6),
    0 0 30px rgba(96, 165, 250, 0.4),
    0 0 40px rgba(96, 165, 250, 0.2);
  animation: pulseGlow 2s ease-in-out infinite;
  position: relative;
  display: inline-block;
}

@keyframes pulseGlow {
  0%, 100% {
    text-shadow: 
      0 0 10px rgba(96, 165, 250, 0.8),
      0 0 20px rgba(96, 165, 250, 0.6),
      0 0 30px rgba(96, 165, 250, 0.4),
      0 0 40px rgba(96, 165, 250, 0.2);
    color: #60a5fa;
  }
  50% {
    text-shadow: 
      0 0 15px rgba(96, 165, 250, 1),
      0 0 30px rgba(96, 165, 250, 0.8),
      0 0 45px rgba(96, 165, 250, 0.6),
      0 0 60px rgba(96, 165, 250, 0.4);
    color: #93c5fd;
  }
}

/* Alternative: More intense glow */
.coop-glow-intense {
  color: #60a5fa;
  font-weight: 700;
  text-shadow: 
    0 0 5px rgba(96, 165, 250, 1),
    0 0 10px rgba(96, 165, 250, 0.9),
    0 0 20px rgba(96, 165, 250, 0.7),
    0 0 30px rgba(96, 165, 250, 0.5),
    0 0 40px rgba(96, 165, 250, 0.3),
    0 0 50px rgba(96, 165, 250, 0.2);
  animation: intensePulseGlow 1.5s ease-in-out infinite;
}

@keyframes intensePulseGlow {
  0%, 100% {
    text-shadow: 
      0 0 5px rgba(96, 165, 250, 1),
      0 0 10px rgba(96, 165, 250, 0.9),
      0 0 20px rgba(96, 165, 250, 0.7),
      0 0 30px rgba(96, 165, 250, 0.5),
      0 0 40px rgba(96, 165, 250, 0.3),
      0 0 50px rgba(96, 165, 250, 0.2);
  }
  50% {
    text-shadow: 
      0 0 10px rgba(96, 165, 250, 1),
      0 0 20px rgba(96, 165, 250, 1),
      0 0 30px rgba(96, 165, 250, 0.9),
      0 0 40px rgba(96, 165, 250, 0.7),
      0 0 60px rgba(96, 165, 250, 0.5),
      0 0 80px rgba(96, 165, 250, 0.3);
  }
}

/* subtle shimmer effect */
.coop-glow-shimmer {
  color: #60a5fa;
  font-weight: 600;
  background: linear-gradient(
    90deg,
    #60a5fa 0%,
    #93c5fd 25%,
    #60a5fa 50%,
    #93c5fd 75%,
    #60a5fa 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerAnimation 3s linear infinite;
  text-shadow: 
    0 0 20px rgba(96, 165, 250, 0.5),
    0 0 30px rgba(96, 165, 250, 0.3);
  filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.6));
}

@keyframes shimmerAnimation {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}
/* ==========================
   Layout Containers
   ========================== */
.row {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.container {
  margin-top: 80px;
  padding: 60px 20px;
  text-align: center;
}

section {
  position: relative;
}

.about-me-section {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
}

.about-me__header {
  display: flex;
  align-items: center;
  text-align: center;
  flex-direction: column;
  max-width: 980px;
  margin: 0 auto;
  padding: var(--spacing-xl) 20px;
}

/* About Me Section Styles */
.about-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, rgba(11, 16, 32, 0.8), rgba(30, 35, 58, 0.6));
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(96, 165, 250, 0.05), transparent 60%);
  pointer-events: none;
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.about-intro {
  text-align: center;
  margin-bottom: 4rem;
  padding: 0 2rem;
}

.about-paragraph {
  font-size: 1.25rem;
  line-height: 1.8;
  color: #e2e8f0;
  max-width: 900px;
  margin: 0 auto;
  font-weight: 400;
}

.highlight {
  color: #60a5fa;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #60a5fa, transparent);
  opacity: 0.5;
}

/* About Cards Grid */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
  padding: 0 1rem;
}

.about-card {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.08), rgba(30, 35, 58, 0.4));
  border: 2px solid rgba(96, 165, 250, 0.2);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.about-card:hover {
  transform: translateY(-8px);
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 10px 40px rgba(96, 165, 250, 0.2);
}

.about-card:hover::before {
  opacity: 1;
}

.about-card-icon {
  width: 60px;
  height: 60px;
  background: rgba(96, 165, 250, 0.15);
  border: 2px solid rgba(96, 165, 250, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
}

.about-card:hover .about-card-icon {
  background: rgba(96, 165, 250, 0.25);
  border-color: rgba(96, 165, 250, 0.5);
  transform: scale(1.1) rotate(5deg);
}

.about-card-icon i {
  font-size: 1.75rem;
  color: #60a5fa;
}

.about-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #60a5fa;
  margin-bottom: 1rem;
  font-family: 'Lora', serif;
}

.about-card-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #cbd5e1;
}

/* Values Section */
.about-values {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(96, 165, 250, 0.05);
  border-radius: 20px;
  border: 2px solid rgba(96, 165, 250, 0.15);
  margin-top: 2rem;
}

.about-values-title {
  font-size: 2rem;
  font-weight: 700;
  color: #60a5fa;
  margin-bottom: 2rem;
  font-family: 'Lora', serif;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.value-item:hover {
  background: rgba(96, 165, 250, 0.15);
  border-color: rgba(96, 165, 250, 0.4);
  transform: translateY(-4px);
}

.value-item i {
  font-size: 2rem;
  color: #60a5fa;
  transition: transform 0.3s ease;
}

.value-item:hover i {
  transform: scale(1.2);
}

.value-item span {
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .about-section {
    padding: 4rem 0;
  }

  .about-paragraph {
    font-size: 1.1rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-card {
    padding: 1.5rem;
  }

  .about-values {
    padding: 2rem 1.5rem;
  }

  .about-values-title {
    font-size: 1.75rem;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .about-intro {
    margin-bottom: 3rem;
    padding: 0 1rem;
  }

  .about-paragraph {
    font-size: 1rem;
  }

  .about-card-title {
    font-size: 1.25rem;
  }

  .about-card-text {
    font-size: 0.95rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .value-item {
    padding: 1.25rem;
  }
}

/* ==========================
   Bubble Menu
   ========================== */
.bubble-menu {
  position: fixed;
  top: 2em;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding: 0 2em;
  pointer-events: none;
  z-index: 99;
}

.bubble-menu .bubble {
  --bubble-size: 52px;
  width: var(--bubble-size);
  height: var(--bubble-size);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.22), 0 0 0 1px rgba(212,165,116,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  border: 1px solid rgba(212,165,116,0.3);
  transition: transform var(--transition-fast);
}

.bubble-menu .logo-bubble {
  width: auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.bubble-menu .logo-bubble:hover .logo-icon {
  transform: rotate(15deg) scale(1.1);
}

.nav-bar__logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-gold);
  margin: 0;
  white-space: nowrap;
}

.bubble-menu .toggle-bubble { cursor: pointer; }
.bubble-menu .toggle-bubble:hover { transform: scale(1.06); }

.bubble-menu .menu-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  width: 100%;
  height: 100%;
}

.bubble-menu .menu-line {
  width: 26px;
  height: 2px;
  background: #b91c1c;
  border-radius: 2px;
  margin: 0 auto;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  transform-origin: center;
}

.bubble-menu .menu-line + .menu-line { margin-top: 6px; }

.bubble-menu .menu-btn.open .menu-line:first-child {
  transform: translateY(4px) rotate(45deg);
}
.bubble-menu .menu-btn.open .menu-line:nth-child(2) { opacity: 0; }
.bubble-menu .menu-btn.open .menu-line:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ==========================
   Menu Overlay
   ========================== */
.bubble-menu-items {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 98;
  background: rgba(8, 12, 26, 0.92);
  backdrop-filter: blur(18px);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.bubble-menu-items.active {
  opacity: 1;
  pointer-events: auto;
}

.bubble-menu-items .pill-list {
  padding: 0 var(--spacing-lg);
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1200px;
}

.bubble-menu-items .pill-col {
  flex: 0 0 calc(100% / 3);
  padding: var(--spacing-sm);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.bubble-menu-items.active .pill-col { opacity: 1; transform: translateY(0); }
.bubble-menu-items.active .pill-col:nth-child(1) { transition-delay: 0.08s; }
.bubble-menu-items.active .pill-col:nth-child(2) { transition-delay: 0.14s; }
.bubble-menu-items.active .pill-col:nth-child(3) { transition-delay: 0.20s; }
.bubble-menu-items.active .pill-col:nth-child(4) { transition-delay: 0.26s; }
.bubble-menu-items.active .pill-col:nth-child(5) { transition-delay: 0.32s; }
.bubble-menu-items.active .pill-col:nth-child(6) { transition-delay: 0.38s; }

.bubble-menu-items .pill-link {
  width: 100%;
  min-height: 140px;
  padding: 2rem;
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  font-weight: 700;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0,0,0,0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  font-style: italic;
}

.bubble-menu-items .pill-link:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 38px rgba(0,0,0,0.45);
}

@media (max-width: 899px) {
  .bubble-menu-items { padding-top: 120px; align-items: flex-start; }
  .bubble-menu-items .pill-col { flex: 0 0 100%; }
  .bubble-menu-items .pill-link { min-height: 84px; font-size: 1.5rem; }
}

/* ==========================
   Hero
   ========================== */
.about-me__profile-picture--mask {
  border-radius: 50%;
  max-width: 250px;
  min-height: 250px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  border: 2px solid rgba(96,165,250,0.25);
  background: rgba(255,255,255,0.03);
}

.about-me__profile-picture { width: 100%; height: auto; display: block; }

.about-me__info--title {
  margin: 18px 0 18px 0;
  font-weight: 700;
  color: var(--title);
  letter-spacing: 0.2px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  text-shadow: 0 2px 18px rgba(0,0,0,0.45);
}

.hero-typing {
  margin-top: 14px;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--text-muted);
  text-align: center;
  width: 100%;
  display: block;
}

/* Variable proximity uses Roboto Flex for the letters */
.variable-proximity {
  font-family: "Roboto Flex", sans-serif;
}

.about-me__links {
  display: flex;
  gap: var(--spacing-md);
  margin-top: 18px;
}

.about-me__link {
  font-size: 28px;
  text-decoration: none;
  color: var(--text);
  padding: 0 var(--spacing-md);
  transition: transform var(--transition-fast), opacity var(--transition-fast), color var(--transition-fast);
}

.about-me__link:hover {
  opacity: 0.85;
  transform: translateY(-1px) scale(0.98);
  color: var(--accent-gold);
}

/* ==========================
   Gallery Section
   ========================== */
#gallery-section {
  position: relative;
  padding: 80px 0;
}

.gallery-wrapper {
  height: 600px;
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 60px auto 0;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.circular-gallery {
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
  position: relative;
}

.circular-gallery:active {
  cursor: grabbing;
}

.circular-gallery canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ==========================
   Titles
   ========================== */
.section__title {
  text-align: center;
  margin: 10px 0 var(--spacing-xl) 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--title);
  font-weight: 700;
  text-shadow: 0 2px 18px rgba(0,0,0,0.45);
}

.text--blue { color: var(--accent-blue); }

/* ==========================
   Card Navigation Buttons
   ========================== */
.card-nav-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  position: relative;
  z-index: 10;
}

.card-nav-btn {
  background: rgba(96, 165, 250, 0.15);
  border: 2px solid var(--accent-blue);
  color: var(--accent-blue);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.2);
  position: relative;
  overflow: hidden;
}

.card-nav-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(96, 165, 250, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.card-nav-btn:hover::before {
  width: 100%;
  height: 100%;
}

.card-nav-btn:hover {
  background: rgba(96, 165, 250, 0.25);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(96, 165, 250, 0.4);
}

.card-nav-btn:active {
  transform: scale(0.95);
}

.card-nav-btn i {
  position: relative;
  z-index: 1;
}

.card-nav-prev:hover {
  transform: scale(1.1) translateX(-2px);
}

.card-nav-next:hover {
  transform: scale(1.1) translateX(2px);
}

/* ==========================
   Tech Stack
   ========================== */
.language { width: 25%; display: flex; justify-content: center; position: relative; }
.language__img { width: 100%; max-width: 100px; transition: transform var(--transition-fast), opacity var(--transition-fast); }
.language:hover .language__img { opacity: 0.88; transform: scale(0.95); }

.language__img--wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 25px var(--spacing-md);
}

.language__list { display: flex; width: 100%; flex-wrap: wrap; }

.language__name {
  position: absolute;
  bottom: 0;
  transform: scale(0.95);
  font-size: 18px;
  opacity: 0;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  color: var(--text);
}

.language:hover .language__name { transform: scale(1); opacity: 1; }

/* ==========================
   Text Type (Typing Effect)
   ========================== */
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ==========================
   Project Cards
   ========================== */
.projects-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

.shuffle-btn {
  background: rgba(96, 165, 250, 0.15);
  border: 2px solid var(--accent-blue);
  color: var(--accent-blue);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.2);
  flex-shrink: 0;
}

.shuffle-btn:hover {
  background: rgba(96, 165, 250, 0.25);
  transform: rotate(180deg) scale(1.1);
  box-shadow: 0 6px 20px rgba(96, 165, 250, 0.4);
}

.shuffle-btn:active {
  transform: rotate(180deg) scale(0.95);
}

.card-swap-container {
  height: 600px;
  position: relative;
  max-width: 900px;
  margin: 60px auto;
}

.project__wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
  border-radius: 20px;
  overflow: hidden;
  position: absolute;
  min-height: 400px;
  width: 100%;
  max-width: 600px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: all var(--transition-slow);
  background: var(--panel-2);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
}

.project__img { width: 100%; height: auto; transition: transform 500ms ease, filter 500ms ease; }

.project__wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(11, 16, 32, 0.75);
  transition: opacity var(--transition-med);
  z-index: 2;
}

.project__wrapper:hover::before { opacity: 1; }
.project__wrapper:hover .project__img { transform: scale(1.08); filter: blur(6px); }

.project__description {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 100%);
  max-width: 85%;
  width: 100%;
  z-index: 3;
  opacity: 0;
  transition: transform var(--transition-med), opacity 300ms;
  padding: 0 20px;
}

.project__wrapper:hover .project__description {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.project__description--title { font-size: 36px; margin-bottom: var(--spacing-xs); color: var(--text); text-align: left; }
.project__description--sub-title { margin-bottom: var(--spacing-md); color: var(--text-muted); text-align: left; }
.project__description--paragraph { margin: var(--spacing-md) 0; line-height: 1.6; color: var(--text); text-align: left; }

.project__description--links { display: flex; gap: var(--spacing-md); }

.project__description--link {
  font-size: 20px;
  text-decoration: none;
  color: var(--text);
  transition: transform var(--transition-fast), color var(--transition-fast);
}
.project__description--link:hover { color: var(--accent-blue); transform: scale(1.08); }

/* ==========================
   Contact + Footer
   ========================== */
.contact-section {
  text-align: center;
  padding: 8rem 2rem;
}

.contact__description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

.contact-email {
  font-size: 1.4rem;
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 700;
  transition: opacity var(--transition-fast);
}
.contact-email:hover { opacity: 0.85; }

footer {
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.footer__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.footer__social--list { display: flex; gap: 20px; }

.footer__social--link {
  font-size: 22px;
  color: var(--text);
  transition: transform var(--transition-fast), opacity var(--transition-fast), color var(--transition-fast);
  position: relative;
  padding-bottom: 3px;
}

.footer__social--link::after {
  content: "";
  position: absolute;
  height: 3px;
  width: 0;
  bottom: 0;
  right: 0;
  background-color: var(--accent-purple);
  transition: all 300ms ease;
}

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

.footer__social--link:hover {
  color: var(--accent-purple);
  transform: translateY(-1px);
  opacity: 0.9;
}

.footer__copyright { color: var(--text-muted); font-size: 14px; }

/* ==========================
   Accessibility utilities
   ========================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.reveal-text {
  display: inline-block;
  white-space: nowrap;
  text-align: center;
}

/* ==========================
   Responsive
   ========================== */
@media (max-width: 768px) {
  .language { width: 50%; }
  .card-swap-container { height: 500px; }
  .project__wrapper { min-height: 350px; }
  .project__description--title { font-size: 28px; }
  .about-me__profile-picture--mask { max-width: 200px; min-height: 200px; }
  .projects-header {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  .gallery-wrapper {
    height: 450px;
    margin: 40px auto 0;
  }
  .card-nav-buttons {
    gap: 15px;
    margin-top: 20px;
  }
  .card-nav-btn {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .language { width: 100%; }
  .gallery-wrapper {
    height: 350px;
    margin: 30px auto 0;
  }
}

/* If user prefers reduced motion, disable animated effects */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}