/*****************************************
 * UCLA HAND - Modern Effects
 * Inspired by jopecuro.com
 * Keeps turquoise color scheme
 *****************************************/

:root {
  /* Keep original turquoise */
  --primary: #00bfd8;
  --primary-dark: #00a5bc;
  --primary-light: #33cce0;
  --secondary: #0079f9;
}

/* ═══════════════════════════════════════
   SMOOTH SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays for multiple elements */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ═══════════════════════════════════════
   ANIMATED ROTATING TEXT
   ═══════════════════════════════════════ */

.rotating-text-container {
  display: inline-block;
  position: relative;
  height: 1.2em;
  overflow: hidden;
  vertical-align: bottom;
}

.rotating-text {
  display: block;
  animation: rotateWords 8s ease-in-out infinite;
  color: var(--primary);
}

@keyframes rotateWords {
  0%, 20% { transform: translateY(0); }
  25%, 45% { transform: translateY(-100%); }
  50%, 70% { transform: translateY(-200%); }
  75%, 95% { transform: translateY(-300%); }
  100% { transform: translateY(0); }
}

/* ═══════════════════════════════════════
   LARGE BOLD TYPOGRAPHY
   ═══════════════════════════════════════ */

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

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

/* ═══════════════════════════════════════
   SKILLS/TAGS SECTION
   ═══════════════════════════════════════ */

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  padding: 2rem 0;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  background: var(--bg-light);
  border: 1px solid rgba(0, 191, 216, 0.15);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: all 0.3s ease;
  cursor: default;
}

.skill-tag:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 191, 216, 0.3);
}

.skill-tag i {
  margin-right: 0.5rem;
  color: var(--primary);
  transition: color 0.3s ease;
}

.skill-tag:hover i {
  color: white;
}

/* ═══════════════════════════════════════
   MODERN CARDS
   ═══════════════════════════════════════ */

.modern-card {
  background: var(--bg-white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 191, 216, 0.15);
  border-color: var(--primary-light);
}

.modern-card .card-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 1.5rem;
}

.modern-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.modern-card p {
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   NUMBERED LIST (like jopecuro projects)
   ═══════════════════════════════════════ */

.numbered-list {
  counter-reset: item;
}

.numbered-list-item {
  position: relative;
  padding-left: 4rem;
  padding-bottom: 2rem;
  border-left: 2px solid rgba(0, 191, 216, 0.2);
  margin-left: 1rem;
}

.numbered-list-item::before {
  counter-increment: item;
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: -1.5rem;
  top: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
}

.numbered-list-item:last-child {
  border-left: none;
}

/* ═══════════════════════════════════════
   BUTTON ENHANCEMENTS
   ═══════════════════════════════════════ */

.btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-modern:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 191, 216, 0.4);
  color: white;
  text-decoration: none;
}

.btn-modern i {
  transition: transform 0.3s ease;
}

.btn-modern:hover i {
  transform: translateX(4px);
}

.btn-outline-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline-modern:hover {
  background: var(--primary);
  color: white;
  text-decoration: none;
}

/* ═══════════════════════════════════════
   GRADIENT ACCENTS
   ═══════════════════════════════════════ */

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

.gradient-bg {
  background: var(--bg-gradient);
}

.gradient-border {
  position: relative;
}

.gradient-border::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--bg-gradient);
  border-radius: 3px;
}

/* ═══════════════════════════════════════
   SMOOTH SECTION TRANSITIONS
   ═══════════════════════════════════════ */

.section-wave {
  position: relative;
}

.section-wave::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23f8f9fc' d='M0,50 C360,100 1080,0 1440,50 L1440,0 L0,0 Z'/%3E%3C/svg%3E") no-repeat;
  background-size: cover;
}

/* ═══════════════════════════════════════
   MARQUEE ANIMATION (like jopecuro logos)
   ═══════════════════════════════════════ */

.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
}

.marquee-content span {
  display: inline-block;
  padding: 0 2rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════
   COUNTER/STATS SECTION
   ═══════════════════════════════════════ */

.stat-item {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════
   HOVER EFFECTS
   ═══════════════════════════════════════ */

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.hover-glow {
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(0, 191, 216, 0.4);
}

.hover-scale {
  transition: transform 0.3s ease;
}

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

/* ═══════════════════════════════════════
   IMAGES
   ═══════════════════════════════════════ */

.image-modern {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.image-float {
  animation: float 6s ease-in-out infinite;
}

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

/* ═══════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════ */

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .skills-container {
    gap: 0.5rem;
  }

  .skill-tag {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
  }

  .numbered-list-item {
    padding-left: 3rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }
}
