.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.hero.reveal.active .hero-title {
  animation: slideUp 0.8s ease forwards;
}

.hero.reveal.active .hero-subtitle {
  animation: slideUp 0.8s ease 0.1s forwards;
}

.hero.reveal.active .hero-description {
  animation: slideUp 0.8s ease 0.2s forwards;
}

.hero.reveal.active .hero-actions {
  animation: slideUp 0.8s ease 0.3s forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Floating Icons Container */
.floating-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Icon Base */
.floating-icons i {
  position: absolute;
  font-size: 2rem;
  color: var(--accent);
  opacity: 0.25;
}

/* Individual Positions */
.floating-icons i:nth-child(1) {
  top: 15%;
  left: 10%;
}
.floating-icons i:nth-child(2) {
  top: 25%;
  right: 15%;
}
.floating-icons i:nth-child(3) {
  bottom: 20%;
  left: 20%;
}
.floating-icons i:nth-child(4) {
  bottom: 15%;
  right: 25%;
}
.floating-icons i:nth-child(5) {
  top: 50%;
  left: 5%;
}
.floating-icons i:nth-child(6) {
  top: 60%;
  right: 8%;
}
.floating-icons i:nth-child(7) {
  top: 40%;
  right: 35%;
}
.floating-icons i:nth-child(8) {
  bottom: 35%;
  left: 40%;
}

/* Floating Animation */
.float {
  animation: floatY 6s ease-in-out infinite;
}

.float.slow {
  animation-duration: 8s;
}

.float.medium {
  animation-duration: 6s;
}

.float.fast {
  animation-duration: 4.5s;
}

@keyframes floatY {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* Hide on small screens */
@media (max-width: 900px) {
  .floating-icons {
    display: none;
  }
}
/* =========================
   BRAND ICON COLORS
========================= */

.floating-icons i {
  opacity: 0.35;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.3));
  transition: opacity 0.3s ease;
}

body[data-theme="light"] .floating-icons i {
  opacity: 0.65; /* Higher opacity for light backgrounds */
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.15));
}

/* Git */
.floating-icons .git {
  color: #f1502f;
}

/* GitHub */
.floating-icons .github {
  color: var(--text);
}

/* HTML */
.floating-icons .html {
  color: #e34f26;
}

/* CSS */
.floating-icons .css {
  color: #1572b6;
}

/* JavaScript */
.floating-icons .js {
  color: #e6cd00; /* Slightly darker gold/yellow for better visibility */
}

/* Python */
.floating-icons .python {
  color: #3776ab;
}

/* C / C++ */
.floating-icons .cpp {
  color: #00599c;
}

/* Postman */
.floating-icons .postman {
  color: #ff6c37;
}
.floating-icons i {
  text-shadow: 0 0 18px currentColor;
}
/* =========================
   ADVANCED SCROLL ANIMATIONS
========================= */

/* Keyframes */
@keyframes scaleUpFade {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Staggered Grid/List Items */
/* Add .reveal class to parent, .stagger-item to children */
.reveal .stagger-item {
  opacity: 0; /* Align start state */
}

/* Parent .reveal.active triggers children */
.reveal.active .stagger-item {
  animation: scaleUpFade 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Delays for children (up to 10 items) */
.reveal.active .stagger-item:nth-child(1) {
  animation-delay: 0.1s;
}
.reveal.active .stagger-item:nth-child(2) {
  animation-delay: 0.2s;
}
.reveal.active .stagger-item:nth-child(3) {
  animation-delay: 0.3s;
}
.reveal.active .stagger-item:nth-child(4) {
  animation-delay: 0.4s;
}
.reveal.active .stagger-item:nth-child(5) {
  animation-delay: 0.5s;
}
.reveal.active .stagger-item:nth-child(6) {
  animation-delay: 0.6s;
}
.reveal.active .stagger-item:nth-child(7) {
  animation-delay: 0.7s;
}
.reveal.active .stagger-item:nth-child(8) {
  animation-delay: 0.8s;
}

/* Specific Section Animations */
.reveal.slide-left.active {
  animation: slideInLeft 0.8s ease forwards;
}

.reveal.slide-right.active {
  animation: slideInRight 0.8s ease forwards;
}

/* Project Cards Special Hover */
.project-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.project-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
