/* Custom Styles for Charles Zapata Landing Page */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

body {
  font-family: var(--font-body);
  scroll-behavior: smooth;
  background-color: #030712;
  color: #f3f4f6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #030712;
}
::-webkit-scrollbar-thumb {
  background: #1f2937;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #374151;
}

/* Tech Grid Background Effect */
.tech-grid {
  background-image: 
    radial-gradient(rgba(59, 130, 246, 0.08) 1px, transparent 0),
    radial-gradient(rgba(6, 182, 212, 0.05) 1.5px, transparent 0);
  background-size: 40px 40px, 20px 20px;
  background-position: 0 0, 10px 10px;
}

/* Glassmorphism utility */
.glass-panel {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-panel-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-panel-hover:hover {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.2);
  transform: translateY(-4px);
}

/* Text glow effects */
.text-glow-cyan {
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}
.text-glow-yellow {
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

/* Glow Borders */
.glow-border-cyan {
  position: relative;
}
.glow-border-cyan::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(to bottom right, rgba(6, 182, 212, 0.5), transparent, rgba(59, 130, 246, 0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.glow-border-cyan:hover::after {
  opacity: 1;
}

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

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

@keyframes pulse-slow {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
}

.animate-pulse-slow {
  animation: pulse-slow 8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Fade In On Scroll Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Accordion Active Styling */
.active-accordion i {
  color: #06b6d4 !important;
}

/* Modal Open Transitions */
#pillar-modal {
  transition: opacity 0.3s ease-out;
}

#pillar-modal.active {
  display: flex !important;
  animation: fadeIn 0.2s forwards;
}

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

#pillar-modal > div {
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#pillar-modal.active > div {
  transform: scale(1);
}

/* Play Button Pulse Animation */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.5);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 15px rgba(6, 182, 212, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
  }
}

.animate-pulse-ring {
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Video Lightbox Modal */
#video-modal {
  transition: opacity 0.3s ease-out;
}

#video-modal.active {
  display: flex !important;
  animation: fadeIn 0.2s forwards;
}

#video-modal > div {
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#video-modal.active > div {
  transform: scale(1);
}

/* Aspect Ratio Wrapper for Video Player (16:9) */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 16px;
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Image Lightbox Modal */
#image-modal {
  transition: opacity 0.3s ease-out;
}

#image-modal.active {
  display: flex !important;
  animation: fadeIn 0.2s forwards;
}

#image-modal > div {
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#image-modal.active > div {
  transform: scale(1);
}


