/* ===== CSS Variables ===== */
:root {
  --bg-primary: #0a0f1e;
  --bg-secondary: #0f1629;
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --accent-lighter: #c4b5fd;
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --border: rgba(124, 58, 237, 0.2);
  --border-hover: rgba(124, 58, 237, 0.5);
}

/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6d28d9;
}

/* ===== Loading Screen ===== */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
}

.loading-spinner {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}

.spinner-ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(124, 58, 237, 0.3);
  border-radius: 50%;
  animation: spin 2s linear infinite;
}

.spinner-ring::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.spinner-ring-inner {
  position: absolute;
  inset: 16px;
  border: 2px solid rgba(167, 139, 250, 0.3);
  border-radius: 50%;
  animation: spin-reverse 1.5s linear infinite;
}

.spinner-ring-inner::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent-light);
  border-radius: 50%;
}

.spinner-center {
  position: absolute;
  inset: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
}

.loading-text {
  font-size: 24px;
  font-weight: bold;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.loading-bar {
  width: 192px;
  height: 4px;
  background: rgba(124, 58, 237, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.loading-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  animation: progress 1.8s ease-in-out forwards;
}

.loading-subtext {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  to { transform: rotate(-360deg); }
}

@keyframes progress {
  from { width: 0%; }
  to { width: 100%; }
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.navbar.hidden {
  transform: translateY(-100%);
}

.navbar.scrolled {
  background: rgba(10, 15, 30, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

@media (min-width: 768px) {
  .nav-container {
    height: 80px;
  }
}

.nav-logo {
  font-size: 20px;
  font-weight: bold;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: none;
  gap: 32px;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

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

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 24px;
  background: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.nav-mobile-link {
  padding: 12px 0;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.nav-mobile-link:hover {
  color: var(--text-primary);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.spline-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Watermark Mask */
.spline-container::after {
  content: '';
  position: absolute;
  bottom: 10px;
  right: 15px;
  width: 150px;
  height: 50px;
  background: var(--bg-primary);
  border-radius: 8px;
  z-index: 99;
}

.spline-container spline-viewer {
  width: 100%;
  height: 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg-primary), rgba(10, 15, 30, 0.8), transparent);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero-content > div,
.hero-content > h1,
.hero-content > p {
  max-width: 768px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--border);
  border-radius: 9999px;
  color: var(--accent-light);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 48px;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 60px;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 72px;
  }
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-light), var(--accent-lighter));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-text {
  text-shadow: 0 0 10px rgba(124, 58, 237, 0.5),
               0 0 20px rgba(124, 58, 237, 0.3),
               0 0 30px rgba(124, 58, 237, 0.2);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  height: 32px;
}

@media (min-width: 640px) {
  .hero-subtitle {
    font-size: 20px;
  }
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 24px;
  }
}

.typing-cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-description {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 576px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .hero-description {
    font-size: 18px;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3),
              0 0 40px rgba(124, 58, 237, 0.2),
              0 0 60px rgba(124, 58, 237, 0.1);
}

.btn-primary:hover {
  background: #6d28d9;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: var(--border-hover);
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  animation: bounce 2s ease-in-out infinite;
  transition: color 0.3s ease;
}

.scroll-indicator:hover {
  color: var(--accent);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== Decorative Glows ===== */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
}

.hero-glow-1 {
  top: 80px;
  right: 80px;
  width: 288px;
  height: 288px;
  background: rgba(124, 58, 237, 0.1);
}

.hero-glow-2 {
  bottom: 80px;
  left: 40px;
  width: 384px;
  height: 384px;
  background: rgba(124, 58, 237, 0.05);
}

/* ===== Fade In Animations ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

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

/* ===== Section Styles ===== */
.section {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .section {
    padding: 100px 0;
  }
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--border);
  border-radius: 9999px;
  color: var(--accent-light);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}

.section-title {
  font-size: 30px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 16px;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 36px;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 48px;
  }
}

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

@media (min-width: 640px) {
  .section-description {
    font-size: 18px;
  }
}

.highlight {
  color: var(--accent-light);
  font-weight: 500;
}

/* ===== Scroll Reveal ===== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== About Section ===== */
.about-glow {
  position: absolute;
  top: 160px;
  right: 0;
  width: 320px;
  height: 320px;
  background: rgba(124, 58, 237, 0.05);
  border-radius: 50%;
  filter: blur(60px);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.about-photo-container {
  position: relative;
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .about-photo-container {
    justify-content: flex-start;
  }
}

.photo-glow-ring {
  position: absolute;
  inset: -16px;
  background: linear-gradient(to right, var(--accent), var(--accent-light));
  border-radius: 50%;
  opacity: 0.3;
  filter: blur(16px);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.5; }
}

.about-photo {
  position: relative;
  width: 256px;
  height: 256px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(124, 58, 237, 0.3);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.5),
              0 0 60px rgba(124, 58, 237, 0.3),
              inset 0 0 30px rgba(124, 58, 237, 0.1);
}

@media (min-width: 640px) {
  .about-photo {
    width: 320px;
    height: 320px;
  }
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-badge {
  position: absolute;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 50%;
  padding: 12px;
  color: var(--accent);
  font-size: 20px;
}

.badge-top {
  top: -16px;
  right: 20%;
  animation: float 3s ease-in-out infinite;
}

.badge-bottom {
  bottom: -8px;
  left: 15%;
  animation: float 3s ease-in-out infinite reverse;
}

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

.about-content {
  text-align: center;
}

@media (min-width: 1024px) {
  .about-content {
    text-align: left;
  }
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 32px;
}

@media (min-width: 640px) {
  .about-text {
    font-size: 18px;
  }
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .about-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.about-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: border-color 0.3s ease;
}

.about-card:hover {
  border-color: var(--border-hover);
}

.about-card i {
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 8px;
}

.about-card h3 {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ===== Projects Section ===== */
.projects-glow {
  position: absolute;
  bottom: 160px;
  left: 0;
  width: 384px;
  height: 384px;
  background: rgba(124, 58, 237, 0.05);
  border-radius: 50%;
  filter: blur(60px);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.5s ease;
  overflow: hidden;
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.4),
              0 0 60px rgba(124, 58, 237, 0.2);
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(124, 58, 237, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

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

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.project-icon {
  width: 48px;
  height: 48px;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 20px;
}

.project-links {
  display: flex;
  gap: 8px;
}

.project-link {
  width: 40px;
  height: 40px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.project-link:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  transform: scale(1.1);
}

.project-name {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.project-card:hover .project-name {
  color: var(--accent-light);
}

.project-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-badge {
  padding: 4px 12px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--border);
  border-radius: 9999px;
  color: var(--accent-light);
  font-size: 12px;
  font-weight: 500;
}

.projects-more {
  text-align: center;
  margin-top: 48px;
}

/* ===== Skills Section ===== */
.skills-glow-1 {
  position: absolute;
  top: 80px;
  right: 80px;
  width: 320px;
  height: 320px;
  background: rgba(124, 58, 237, 0.05);
  border-radius: 50%;
  filter: blur(60px);
}

.skills-glow-2 {
  position: absolute;
  bottom: 80px;
  left: 80px;
  width: 240px;
  height: 240px;
  background: rgba(167, 139, 250, 0.05);
  border-radius: 50%;
  filter: blur(60px);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.skill-item {
  transition: transform 0.3s ease;
}

.skill-card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.skill-card:hover {
  border-color: var(--border-hover);
  background: rgba(15, 22, 41, 0.8);
  transform: scale(1.05);
}

.skill-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon {
  animation: wiggle 0.5s ease;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

.skill-name {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s ease;
}

@media (min-width: 640px) {
  .skill-name {
    font-size: 16px;
  }
}

.skill-card:hover .skill-name {
  color: var(--accent-light);
}

.skill-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, currentColor 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

.skills-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 64px;
}

@media (min-width: 640px) {
  .skills-categories {
    gap: 32px;
  }
}

.category {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.category-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

/* ===== Contact Section ===== */
.contact-glow-1 {
  position: absolute;
  top: 160px;
  left: 40px;
  width: 320px;
  height: 320px;
  background: rgba(124, 58, 237, 0.05);
  border-radius: 50%;
  filter: blur(60px);
}

.contact-glow-2 {
  position: absolute;
  bottom: 80px;
  right: 40px;
  width: 240px;
  height: 240px;
  background: rgba(167, 139, 250, 0.05);
  border-radius: 50%;
  filter: blur(60px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 896px;
  margin: 0 auto 48px;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.contact-card:hover {
  border-color: var(--border-hover);
  transform: scale(1.02);
}

.contact-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.contact-arrow {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.contact-card:hover .contact-arrow {
  color: var(--accent);
}

.contact-name {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  transition: color 0.3s ease;
}

.contact-card:hover .contact-name {
  color: var(--accent-light);
}

.contact-label {
  color: var(--text-secondary);
  font-size: 14px;
}

.contact-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, currentColor 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.contact-card:hover::after {
  opacity: 0.08;
}

.contact-resume {
  text-align: center;
}

.resume-box {
  display: inline-block;
  background: linear-gradient(to right, rgba(124, 58, 237, 0.2), rgba(167, 139, 250, 0.2));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.resume-box h3 {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.resume-box p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ===== Footer ===== */
.footer {
  position: relative;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 384px;
  height: 128px;
  background: rgba(124, 58, 237, 0.05);
  border-radius: 50%;
  filter: blur(60px);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copy {
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-made {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-made i {
  color: #ef4444;
  animation: heartbeat 1.25s ease-out infinite;
}

@keyframes heartbeat {
  0%, 70%, 100% { opacity: 1; }
  20%, 50% { opacity: 0; }
}

.back-to-top {
  width: 40px;
  height: 40px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: var(--border-hover);
  transform: scale(1.1) translateY(-2px);
}

/* ===== Stagger Animation Delays ===== */
.scroll-reveal:nth-child(1) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.4s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.5s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.6s; }
.scroll-reveal:nth-child(7) { transition-delay: 0.7s; }
.scroll-reveal:nth-child(8) { transition-delay: 0.8s; }
.scroll-reveal:nth-child(9) { transition-delay: 0.9s; }
.scroll-reveal:nth-child(10) { transition-delay: 1s; }

/* === Overrides === */
spline-viewer::part(logo) {
  display: none !important;
}
