:root {
  --red: #ef4444;
  --red-dark: #dc2626;
  --red-glow: rgba(239, 68, 68, 0.4);
  --dark-bg: #0a0a0a;
  --card-bg: #111111;
  --border-color: rgba(255, 255, 255, 0.06);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  cursor: default;
}

/* Background Effects */
.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(239, 68, 68, 0.15), transparent),
              radial-gradient(ellipse 60% 50% at 50% 120%, rgba(239, 68, 68, 0.1), transparent);
  pointer-events: none;
  z-index: 0;
  animation: gradientShift 10s ease infinite alternate;
}

@keyframes gradientShift {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Floating particles */
.floating-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--red);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 15s infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 15s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 18s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 14s; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; animation-duration: 16s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 13s; }
.particle:nth-child(7) { left: 70%; animation-delay: 2s; animation-duration: 17s; }
.particle:nth-child(8) { left: 80%; animation-delay: 4s; animation-duration: 19s; }
.particle:nth-child(9) { left: 90%; animation-delay: 1s; animation-duration: 15s; }

@keyframes float {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% {
    transform: translateY(-100vh) scale(1);
    opacity: 0;
  }
}

/* Mouse Light Effect - Luz que segue o mouse */
.mouse-light {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(239, 68, 68, 0.15) 0%,
    rgba(239, 68, 68, 0.08) 25%,
    rgba(239, 68, 68, 0.03) 50%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 2;
  filter: blur(40px);
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

.mouse-light.active {
  opacity: 1;
}

/* Navigation */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  animation: slideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.3s ease;
}

.nav-wrapper.scrolled {
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: translateX(4px);
}

.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: all 0.3s ease;
  animation: logoFloat 3s ease-in-out infinite;
}

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

.nav-logo:hover img {
  box-shadow: 0 0 20px var(--red-glow);
  animation: logoSpin 0.6s ease;
}

@keyframes logoSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, var(--red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShine 3s ease-in-out infinite;
  background-size: 200% auto;
}

@keyframes textShine {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active::after {
  width: 100%;
}

.btn {
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--red);
  color: white;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--red);
  transform: translateY(-2px);
}

/* Main Content */
main {
  position: relative;
  z-index: 1;
  padding-top: 80px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  position: relative;
  padding: 4rem 0;
}

.hero-content {
  max-width: 800px;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 1.5rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientMove 3s ease infinite;
  background-size: 200% auto;
}

@keyframes gradientMove {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin: 3rem 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  position: relative;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(135deg, var(--red-glow), transparent);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.stat-item:hover::before {
  opacity: 1;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.5rem;
  animation: countUp 1s ease-out;
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Section Styling */
.section {
  padding: 8rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeInUp 0.8s ease both;
}

.section-label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: labelFloat 2s ease-in-out infinite;
}

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

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

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

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.about-image-wrapper {
  position: relative;
  animation: fadeInLeft 0.8s ease both;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.about-image {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.about-image:hover {
  transform: scale(1.02) rotate(1deg);
  box-shadow: 0 30px 80px rgba(239, 68, 68, 0.3);
}

.about-image:hover::after {
  opacity: 1;
}

.about-content {
  animation: fadeInRight 0.8s ease both;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.about-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.info-item {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.info-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.1), transparent);
  transition: left 0.6s ease;
}

.info-item:hover::before {
  left: 100%;
}

.info-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--red);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.2);
}

.info-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.skill-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.skill-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(239, 68, 68, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.skill-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--red);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(239, 68, 68, 0.2);
}

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

.skill-card:hover::after {
  opacity: 1;
}

.skill-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  z-index: 1;
}

.skill-card:hover .skill-icon {
  transform: rotateY(360deg) scale(1.1);
}

.skill-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.skill-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.skill-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* =========================================
   PROJECTS CAROUSEL REDESIGN
   ========================================= */
.projects-carousel {
  position: relative;
  margin-top: 3rem;
  padding: 2rem 0;
}

.carousel-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

/* Layout Grid Principal: Imagem (Esq) - Conteúdo (Dir) */
.carousel-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr; /* Coluna da esquerda maior */
  gap: 3rem;
  padding: 0;
  background: transparent;
  border: none;
  align-items: start;
  min-height: 500px;
  position: relative;
}

/* Coluna Esquerda: Imagem + Controles */
.carousel-left-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Container da Imagem */
.project-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10; /* Widescreen */
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
}

#projImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-image-container:hover #projImg {
  transform: scale(1.05);
}

/* Controles de Navegação (Abaixo da Imagem) */
.carousel-controls-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50px;
  border: 1px solid var(--border-color);
  width: fit-content;
  margin: 0 auto;
  backdrop-filter: blur(10px);
}

.carouselBtn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carouselBtn:hover {
  background: var(--red);
  border-color: var(--red);
  transform: scale(1.1);
}

/* Dots de Navegação */
.carousel-dots {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--red);
  width: 24px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* Coluna Direita: Conteúdo */
.project-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 0.5rem;
}

/* Título do Projeto */
.project-header {
  margin-bottom: 0.5rem;
}

.project-icon-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bracket {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 1.5rem;
}

#projTitle {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ff8a8a;
  background: none;
  -webkit-text-fill-color: initial;
  margin: 0;
  line-height: 1.2;
}

#projTitle.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

/* Estatísticas (CCU e Visitas) */
#projMeta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

#projMeta.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

.stat-block {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: #151515;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ccu-stat {
  border-left: 4px solid var(--red);
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.05), #151515 40%);
}

.stat-block:hover {
  transform: translateX(5px);
  border-color: #444;
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.ccu-stat .stat-icon {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red);
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.ccu-stat .stat-value {
  color: var(--red);
}

.stat-label {
  font-size: 0.75rem;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Seção Sobre o Jogo */
.project-details {
  margin-top: 1rem;
}

.about-game-label {
  font-size: 0.85rem;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

#projDesc {
  font-size: 1rem;
  color: #aaa;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

#projDesc.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

/* Botão Visit Project */
.project-footer {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  padding-top: 1rem;
}

/* Autoplay Progress Bar */
.autoplay-progress-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 2rem;
}

.autoplay-progress-container.active {
  opacity: 1;
  transform: scaleX(1);
}

.autoplay-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--red-dark));
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
  position: relative;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.autoplay-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
  animation: progressShine 1s ease-in-out infinite;
}

@keyframes progressShine {
  0% {
    transform: translateX(-20px);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(20px);
    opacity: 0;
  }
}

.carousel-main:hover ~ .autoplay-progress-container {
  opacity: 0.3;
}

/* Contact Section */
.contact-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.contact-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.2), transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.contact-card:hover::before {
  width: 400px;
  height: 400px;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--red);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(239, 68, 68, 0.2);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  z-index: 1;
}

.contact-card:hover .contact-icon {
  transform: rotateY(360deg) scale(1.1);
}

.contact-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}

.contact-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
  position: relative;
  z-index: 1;
}

/* Footer */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.3);
  position: relative;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--red);
  transform: translateX(3px);
  display: inline-block;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.25rem;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.social-link:hover::before {
  transform: translateY(0);
}

.social-link span {
  position: relative;
  z-index: 1;
}

.social-link:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.footer-bottom {
  max-width: 1400px;
  margin: 2rem auto 0;
  padding: 2rem 2rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-credit {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
}

.footer-email {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0.5rem 0 0 0;
}

.footer-email a {
  color: var(--red);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-email a:hover {
  opacity: 0.8;
}

/* Twitter/X Icon Animation */
.contact-card:hover svg,
.social-link:hover svg {
  animation: twitterSpin 0.6s ease;
}

@keyframes twitterSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-dark));
  z-index: 9999;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* Loading skeleton */
.loading-skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Responsive */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .carousel-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .project-content {
    order: 2;
  }
  
  .carousel-left-col {
    order: 1;
  }

  .project-footer {
    justify-content: flex-start;
  }
  
  .ccu-stat .stat-value {
    font-size: 2rem;
  }
  
  .visits-stat .stat-value {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 2rem;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .autoplay-progress-container {
    height: 3px;
  }
  
  .stat-block {
    padding: 1.25rem;
  }
  
  .stat-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
  
  .ccu-stat .stat-value {
    font-size: 1.75rem;
  }
  
  .visits-stat .stat-value {
    font-size: 1.5rem;
  }
  
  #projTitle {
    font-size: 1.5rem;
  }
}
