/* ===== ANIMATION FRAMEWORK - app.css ===== */
/* Complete collection of scroll animations, text effects, and hover animations */
/* Version 1.0 - Includes all animation classes from our implementation */

:root {
  /* Color Palette */
  --color-primary: #259991;
  --color-primary-dark: #1e635f;
  --color-cyan: #61c3bc;
  --color-cyan-dark: #278d88;
  --color-white: #ffffff;
  --color-gray-50: #F9F9F9;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  --color-shadow: rgba(0, 0, 0, 0.1);
  --color-danger: #ef4444;
}



/* ===== BASE STYLES ===== */
* {
  /* margin: 0;
  padding: 0; */
  box-sizing: border-box;
}


::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: white;
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--color-cyan-dark);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

.bg-black{
  background: var(--color-gray-800);
}
.text-black{
  color: var(--color-gray-800);
}
.text-white{
  color: #ffffff;
}
.header-bg{
  background-color: #212121;
}
.bg-white{
  background-color:white;
}

/* ===== SCROLL ANIMATION SYSTEM ===== */

/* Base scroll animation class - REQUIRED for all scroll animations */
.scroll-animate {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Animated state - Added by JavaScript when element is in view */
.scroll-animate.animated {
  opacity: 1;
}

/* ===== DIRECTIONAL ANIMATIONS ===== */

/* From Bottom */
.from-bottom { transform: translateY(50px); }
.from-bottom.animated { transform: translateY(0); }

/* From Top */
.from-top { transform: translateY(-50px); }
.from-top.animated { transform: translateY(0); }

/* From Left */
.from-left { transform: translateX(-50px); }
.from-left.animated { transform: translateX(0); }

/* From Right */
.from-right { transform: translateX(50px); }
.from-right.animated { transform: translateX(0); }

/* Diagonal Directions */
.from-bottom-left { transform: translate(-50px, 50px); }
.from-bottom-left.animated { transform: translate(0, 0); }

.from-bottom-right { transform: translate(50px, 50px); }
.from-bottom-right.animated { transform: translate(0, 0); }

.from-top-left { transform: translate(-50px, -50px); }
.from-top-left.animated { transform: translate(0, 0); }

.from-top-right { transform: translate(50px, -50px); }
.from-top-right.animated { transform: translate(0, 0); }

/* Zoom Animations */
.zoom-in { transform: scale(0.8); }
.zoom-in.animated { transform: scale(1); }

.zoom-out { transform: scale(1.2); }
.zoom-out.animated { transform: scale(1); }

/* ===== DELAY CLASSES ===== */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ===== TEXT ANIMATIONS ===== */

/* 1. Typewriter Effect */
.typewriter {
  overflow: hidden;
  border-right: 3px solid var(--color-cyan);
  white-space: nowrap;
  width: 0;
}

.typewriter.animated {
  animation: typing 2s steps(40, end) forwards, blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--color-cyan) }
}

/* 2. Gradient Flow */
.gradient-flow {
  background: linear-gradient(45deg, var(--color-cyan), var(--color-primary), var(--color-cyan-dark));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-flow.animated {
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50% }
  50% { background-position: 100% 50% }
  100% { background-position: 0% 50% }
}

/* 3. Letter Spacing */
.letter-spacing {
  letter-spacing: -5px;
}

.letter-spacing.animated {
  animation: spacing 1.5s ease forwards;
}

@keyframes spacing {
  to { letter-spacing: 2px }
}

/* 4. Text Shadow Glow */
.text-glow {
  text-shadow: 0 0 0px var(--color-cyan);
}

.text-glow.animated {
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 0px var(--color-cyan) }
  to { text-shadow: 0 0 20px var(--color-cyan), 0 0 30px var(--color-cyan-dark) }
}

/* 5. Slide In Words */
.slide-in-words {
  overflow: hidden;
}

.slide-in-words span {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
}

.slide-in-words.animated span {
  animation: slideUp 0.8s ease forwards;
  animation-delay: calc(0.1s * var(--i));
}

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

/* 6. Fade In Stagger */
.fade-stagger span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
}

.fade-stagger.animated span {
  animation: fadeUp 0.6s ease forwards;
  animation-delay: calc(0.05s * var(--i));
}

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

/* 7. Bounce In */
.bounce-in {
  transform: scale(0.3);
}

.bounce-in.animated {
  animation: bounce 1s ease forwards;
}

@keyframes bounce {
  0% { transform: scale(0.3); opacity: 0 }
  50% { transform: scale(1.2); opacity: 1 }
  70% { transform: scale(0.9) }
  100% { transform: scale(1); opacity: 1 }
}

/* 8. Rotate 3D */
.rotate-3d {
  transform: rotateX(90deg) rotateY(90deg);
  transform-style: preserve-3d;
}

.rotate-3d.animated {
  animation: rotate3d 1.5s ease forwards;
}

@keyframes rotate3d {
  to {
    transform: rotateX(0) rotateY(0);
  }
}

/* 9. Text Clip Reveal */
.clip-reveal {
  position: relative;
  background: linear-gradient(45deg, var(--color-cyan), var(--color-primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
}

.clip-reveal.animated {
  opacity: 1;
}

.clip-reveal::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--color-cyan-dark);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  overflow: hidden;
  transition: width 0.8s ease;
}

.clip-reveal.animated::before {
  width: 100%;
}

/* 10. Shake Effect */
.text-shake {
  display: inline-block;
}

.text-shake.animated {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0) }
  25% { transform: translateX(-5px) }
  75% { transform: translateX(5px) }
}

/* 11. Wave Text */
.wave-text {
  display: inline-block;
}

.wave-text.animated {
  animation: wave 1s ease-in-out;
}

@keyframes wave {
  0%, 100% { transform: translateY(0) scale(1) }
  25% { transform: translateY(-10px) scale(1.05) }
  50% { transform: translateY(0) scale(1) }
  75% { transform: translateY(-5px) scale(1.02) }
}

/* 12. Neon Flicker */
.neon-flicker {
  color: var(--color-cyan);
  text-shadow: 0 0 5px var(--color-cyan);
}

.neon-flicker.animated {
  animation: flicker 2s infinite alternate;
}

@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    text-shadow: 0 0 5px var(--color-cyan),
                 0 0 10px var(--color-cyan),
                 0 0 15px var(--color-cyan-dark),
                 0 0 20px var(--color-cyan-dark);
  }
  20%, 24%, 55% {
    text-shadow: none;
  }
}

/* 13. Text Fill */
.text-fill {
  position: relative;
  -webkit-text-stroke: 2px var(--color-cyan);
  color: transparent;
}

.text-fill.animated {
  opacity: 1;
}

.text-fill::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  color: var(--color-cyan);
  overflow: hidden;
  transition: width 0.8s ease;
}

.text-fill.animated::before {
  width: 100%;
}

/* 14. Floating Text */
.floating-text {
  transform: translateY(0);
}

.floating-text.animated {
  animation: float 3s ease-in-out infinite;
}

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

/* 15. Text Morph */
.text-morph {
  font-variation-settings: 'wght' 100;
}

.text-morph.animated {
  animation: morph 2s ease-in-out infinite alternate;
}

@keyframes morph {
  to { font-variation-settings: 'wght' 900 }
}

/* ===== BUTTON ANIMATIONS ===== */

/* Base Button Styles */
.btn {
  position: relative;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s ease;
  background: var(--color-cyan);
  color: var(--color-white);
  z-index: 1;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

/* HOVER EFFECT 1: Left to Right Fill */
.btn-hover-ltr {
  background: var(--color-cyan);
  color: var(--color-white);
}

.btn-hover-ltr::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-white);
  transition: left 0.4s ease;
  z-index: -1;
}

.btn-hover-ltr:hover {
  color: var(--color-cyan);
}

.btn-hover-ltr:hover::before {
  left: 0;
}

/* HOVER EFFECT 2: Right to Left Fill (Reverse) */
.btn-hover-rtl {
  background: var(--color-cyan);
  color: var(--color-white);
}

.btn-hover-rtl::before {
  content: '';
  position: absolute;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-white);
  transition: right 0.4s ease;
  z-index: -1;
}

.btn-hover-rtl:hover {
  color: var(--color-cyan);
}

.btn-hover-rtl:hover::before {
  right: 0;
}

/* HOVER EFFECT 3: Top to Bottom Fill */
.btn-hover-ttb {
  background: var(--color-cyan);
  color: var(--color-white);
}

.btn-hover-ttb::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-white);
  transition: top 0.4s ease;
  z-index: -1;
}

.btn-hover-ttb:hover {
  color: var(--color-cyan);
}

.btn-hover-ttb:hover::before {
  top: 0;
}

/* HOVER EFFECT 4: Bottom to Top Fill */
.btn-hover-btt {
  background: var(--color-cyan);
  color: var(--color-white);
}

.btn-hover-btt::before {
  content: '';
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-white);
  transition: bottom 0.4s ease;
  z-index: -1;
}

.btn-hover-btt:hover {
  color: var(--color-cyan);
}

.btn-hover-btt:hover::before {
  bottom: 0;
}

/* HOVER EFFECT 5: Diagonal Fill */
.btn-hover-diagonal {
  background: var(--color-cyan);
  color: var(--color-white);
}

.btn-hover-diagonal::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, var(--color-white) 50%, transparent 70%);
  transition: left 0.4s ease;
  z-index: -1;
}

.btn-hover-diagonal:hover {
  color: var(--color-cyan);
}

.btn-hover-diagonal:hover::before {
  left: 100%;
}

/* HOVER EFFECT 6: Center Spread */
.btn-hover-center {
  background: var(--color-cyan);
  color: var(--color-white);
}

.btn-hover-center::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--color-white);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
  z-index: -1;
}

.btn-hover-center:hover {
  color: var(--color-cyan);
}

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

/* HOVER EFFECT 7: Dual Direction */
.btn-hover-dual {
  background: var(--color-cyan);
  color: var(--color-white);
}

.btn-hover-dual::before,
.btn-hover-dual::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 100%;
  background: var(--color-white);
  transition: all 0.4s ease;
  z-index: -1;
}

.btn-hover-dual::before {
  top: 0;
  left: -50%;
}

.btn-hover-dual::after {
  top: 0;
  right: -50%;
}

.btn-hover-dual:hover {
  color: var(--color-cyan);
}

.btn-hover-dual:hover::before {
  left: 0;
}

.btn-hover-dual:hover::after {
  right: 0;
}

/* ===== DIAGONAL SHADOW EFFECT ===== */
.diagonal-shadow {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
}

.diagonal-shadow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  transform: translateX(-100%) translateY(-100%);
  transition: transform 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

.diagonal-shadow:hover::before {
  transform: translateX(100%) translateY(100%);
}

/* Image scaling for diagonal shadow containers */
.diagonal-shadow img {
  transition: transform 0.4s ease;
}

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

/* ===== UTILITY CLASSES ===== */

/* Text Sizes */
.text-large { font-size: 2.5rem; font-weight: bold; }
.text-medium { font-size: 2rem; font-weight: 600; }
.text-small { font-size: 1.5rem; }
.text-xs { font-size: 1rem; }

/* Spacing */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Box Styles */
.box {
  width: 100%;
  height: 150px;
  background-color: var(--color-cyan);
  border-radius: 8px;
}

.box-dark {
  background-color: var(--color-cyan-dark);
}

.box-light {
  background-color: var(--color-gray-100);
}

/* Image Styles */
.image {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  object-fit: cover;
}

/* ===== JAVASCRIPT FOR SCROLL ANIMATIONS ===== */
/* Add this to your main JavaScript file */

/*
// Scroll animation observer - triggers when 50% of element is visible
const scrollObserver = new IntersectionObserver((entries) => {
    entries.forEach(entry => {
        if (entry.isIntersecting) {
            entry.target.classList.add('animated');
        }
    });
}, { threshold: 0.5 });

// Observe all scroll-animate elements
document.querySelectorAll('.scroll-animate').forEach(el => {
    scrollObserver.observe(el);
});

// Optional: Reset animations when they leave viewport
const resetObserver = new IntersectionObserver((entries) => {
    entries.forEach(entry => {
        if (!entry.isIntersecting && entry.target.classList.contains('animated')) {
            entry.target.classList.remove('animated');
            scrollObserver.observe(entry.target);
        }
    });
}, { threshold: 0 });

document.querySelectorAll('.scroll-animate').forEach(el => {
    resetObserver.observe(el);
});
*/

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .text-large { font-size: 2rem; }
  .text-medium { font-size: 1.5rem; }
  .text-small { font-size: 1.2rem; }
  
  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .text-large { font-size: 1.8rem; }
  .text-medium { font-size: 1.3rem; }
}