/* Pulsing login button animation */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(0, 194, 255, 0.5); transform: translateY(0); }
    50% { box-shadow: 0 0 0 10px rgba(0, 194, 255, 0); transform: translateY(-1px); }
    100% { box-shadow: 0 0 0 0 rgba(0, 194, 255, 0); transform: translateY(0); }
}
/* Animations & Transitions */

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide In Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Float Animation for Cards */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(1deg);
    }
    75% {
        transform: translateY(5px) rotate(-1deg);
    }
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Reveal on Scroll Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    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(-30px);
    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(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Stagger Animation */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-container.active .stagger-item {
    animation: fadeIn 0.6s forwards;
}

.stagger-container.active .stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-container.active .stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-container.active .stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-container.active .stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-container.active .stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-container.active .stagger-item:nth-child(6) { animation-delay: 0.6s; }

/* Floating Cards Animation */
/* floating-cards animation removed */

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

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

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

/* Magnetic Hover Effect */
.magnetic {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary);
    border-radius: 15px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 2px;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(10px);
    }
    60% {
        transform: translateX(-50%) translateY(5px);
    }
}

/* Loading Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.loader-logo {
    width: 96px;
    height: auto;
    filter: drop-shadow(0 4px 14px rgba(0,0,0,0.15));
    margin-bottom: 12px;
}

.loader-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}

.loader-dot {
    width: 12px;
    height: 12px;
    background-color: var(--accent);
    border-radius: 50%;
    animation: loaderPulse 1.4s ease-in-out infinite;
}

.loader-dot:nth-child(1) { animation-delay: -0.32s; }
.loader-dot:nth-child(2) { animation-delay: -0.16s; }
.loader-dot:nth-child(3) { animation-delay: 0; }

@keyframes loaderPulse {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Text Reveal Animation */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-reveal.active span {
    transform: translateY(0);
}

.text-reveal span:nth-child(1) { transition-delay: 0.1s; }
.text-reveal span:nth-child(2) { transition-delay: 0.2s; }
.text-reveal span:nth-child(3) { transition-delay: 0.3s; }
.text-reveal span:nth-child(4) { transition-delay: 0.4s; }

/* Parallax Effect */
.parallax {
    transform: translateY(0);
    transition: transform 0s linear;
}

/* Cursor Effects */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease, opacity 0.2s ease;
    transform: translate(-50%, -50%);
}

.custom-cursor.hover {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0.5;
}

/* Smooth Transitions */
* {
    transition-property: background-color, color, border-color;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

/* Image Loading Effect */
.lazy-image {
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.5s ease, filter 0.5s ease;
}

.lazy-image.loaded {
    opacity: 1;
    filter: blur(0);
}

/* Card Tilt Effect */
/* tilt effect removed */

/* Smooth Page Transitions */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
}

.page-transition.active {
    transform: scaleY(1);
    transform-origin: top;
}

/* Interactive Hover States */
.interactive {
    position: relative;
    overflow: hidden;
}

.interactive::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 107, 107, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.interactive:hover::before {
    width: 300%;
    height: 300%;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 5px;
    background-color: var(--accent);
    z-index: 1001;
    transition: width 0.1s linear;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

/* Mobile Menu Animation */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-primary);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Button Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
    opacity: 0;
}

/* Enhanced animations for new sections */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Animation classes for new sections */
.slide-in-right {
    animation: slideInFromRight 0.8s ease-out forwards;
}

.slide-in-left {
    animation: slideInFromLeft 0.8s ease-out forwards;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Stagger animations for icon grid */
.icon-grid .icon-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.icon-grid .icon-item:nth-child(1) { animation-delay: 0.1s; }
.icon-grid .icon-item:nth-child(2) { animation-delay: 0.2s; }
.icon-grid .icon-item:nth-child(3) { animation-delay: 0.3s; }
.icon-grid .icon-item:nth-child(4) { animation-delay: 0.4s; }
.icon-grid .icon-item:nth-child(5) { animation-delay: 0.5s; }
.icon-grid .icon-item:nth-child(6) { animation-delay: 0.6s; }

/* Code snippet typing effect */
.code-snippet code {
    position: relative;
}

.code-snippet code::after {
    content: '|';
    position: absolute;
    right: -2px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Slack message animation */
.slack-message {
    animation: slideInFromRight 0.8s ease-out 0.5s both;
}

/* Discount code pulse animation */
.discount-code {
    animation: pulse 2s ease-in-out infinite;
}

/* Floating menu removed to match reference */
