/* Custom cursor styling */
.custom-cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: var(--z-cursor);
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, width 0.3s, height 0.3s;
}

.custom-cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: var(--z-cursor-dot);
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease;
}

.custom-cursor-trail {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 193, 7, 0.6);
    pointer-events: none;
    z-index: var(--z-cursor);
    transition: width 0.3s, height 0.3s, opacity 0.5s;
}

/* Hover effect for cursor */
.link-hover .custom-cursor {
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary-color);
    background-color: rgba(255, 193, 7, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1.5);
}

/* Floating code animations */
.floating-code {
    animation: float 8s ease-in-out infinite;
    transition: transform 0.3s, box-shadow 0.3s, color 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.floating-code:hover {
    transform: translateY(-5px) scale(1.05);
    color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
    cursor: none;
}

.code-element-1 {
    animation-delay: 0s;
}

.code-element-2 {
    animation-delay: 1s;
}

.code-element-3 {
    animation-delay: 0.5s;
}

.code-element-4 {
    animation-delay: 1.5s;
}

.code-element-5 {
    animation-delay: 0.8s;
}

/* Author image animations */
.author-image {
    transition: transform 0.4s, box-shadow 0.4s;
    opacity: 0;
    transform: scale(0.9);
    box-shadow: 0 0 25px rgba(255, 193, 7, 0.8);
}

.author-image:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(255, 193, 7, 1);
    cursor: none;
    animation: box-pulse-glow 1.5s infinite;
}

/* Keyframe animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes box-pulse-glow {
    0% {
        box-shadow: 0 0 25px rgba(255, 193, 7, 0.8);
    }
    50% {
        box-shadow: 0 0 35px rgba(255, 193, 7, 1);
    }
    100% {
        box-shadow: 0 0 25px rgba(255, 193, 7, 0.8);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes rotate-scale {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Trail effect for cursor */
@keyframes trail-fade {
    0% {
        opacity: 0.8;
        width: 8px;
        height: 8px;
    }
    100% {
        opacity: 0;
        width: 2px;
        height: 2px;
    }
}

/* Scroll-triggered animations - applied via JS */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s, transform 1s;
}

.scroll-fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.scroll-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s, transform 1s;
}

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

.scroll-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1s, transform 1s;
}

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

.scroll-zoom-in {
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 1s, transform 1s;
}

.scroll-zoom-in.active {
    opacity: 1;
    transform: scale(1);
}

/* Perspective card hover effects */
.perspective-card {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.perspective-card:hover {
    transform: translateY(-10px) rotateX(5deg);
}

/* Instructor card animations */
.instructor-card {
    transition: transform 0.5s, box-shadow 0.5s;
}

.instructor-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Instructor image animations - updated to match author images */
.instructor-image {
    transition: transform 0.4s, box-shadow 0.4s;
    box-shadow: 0 0 25px rgba(255, 193, 7, 0.8);
}

.instructor-image:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(255, 193, 7, 1);
    cursor: none;
    animation: box-pulse-glow 1.5s infinite;
}

/* Accessibility: Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations */
    .floating-code,
    .author-image,
    .scroll-fade-in,
    .scroll-slide-left,
    .scroll-slide-right,
    .scroll-zoom-in {
        animation: none !important;
        transition: none !important;
    }
    
    /* Keep functional transforms but remove animations */
    .floating-code:hover,
    .author-image:hover,
    .instructor-image:hover,
    .perspective-card:hover,
    .instructor-card:hover {
        transform: none !important;
        animation: none !important;
    }
    
    /* Disable cursor effects */
    .custom-cursor,
    .custom-cursor-dot,
    .custom-cursor-trail {
        display: none;
    }
}

/* For mobile devices - disable certain animations */
@media (max-width: 768px) {
    .floating-code:hover {
        transform: none;
    }

    .perspective-card:hover {
        transform: translateY(-5px);
    }

    .instructor-card:hover {
        transform: translateY(-5px);
    }
}

/* ============================================
   LIST ANIMATIONS AND STYLING
   ============================================ */

/* Custom styling for list items with static bullets */
.offer-section li, 
.feature-list li, 
.pricing-features li,
.webinar-list li {
    position: relative;
    padding-left: 30px !important; /* Make room for custom bullet */
}

/* Custom bullet point styling - static yellow */
.bullet-point {
    position: absolute;
    left: 0;
    top: 0.35em; /* Align with text */
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 1; /* Fully visible */
}

/* Remove default bullet for feature lists that already have custom styling */
.feature-list li:before,
.pricing-features li:before {
    display: none !important;
}

/* ============================================
   SCROLL INDICATOR / ARROW
   ============================================ */

.scroll-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.scroll-indicator:hover {
    transform: translateX(-50%) scale(1.15);
}

.scroll-arrow {
    font-size: 96px;
    background: linear-gradient(180deg,
        #ffd966 0%,
        #ffc107 50%,
        #ff9800 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 8px rgba(255, 193, 7, 0.8))
            drop-shadow(0 0 15px rgba(255, 193, 7, 0.6))
            drop-shadow(0 0 25px rgba(255, 193, 7, 0.4));
    animation: bounce-arrow 2s ease-in-out infinite, pulse-glow-arrow 3s ease-in-out infinite;
    line-height: 1;
}

@keyframes bounce-arrow {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-15px);
        opacity: 1;
    }
}

@keyframes pulse-glow-arrow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(255, 193, 7, 0.8))
                drop-shadow(0 0 15px rgba(255, 193, 7, 0.6))
                drop-shadow(0 0 25px rgba(255, 193, 7, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(255, 193, 7, 1))
                drop-shadow(0 0 30px rgba(255, 193, 7, 0.8))
                drop-shadow(0 0 45px rgba(255, 193, 7, 0.6));
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 20px;
    }

    .scroll-arrow {
        font-size: 72px;
    }
}

/* Disable animation for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .scroll-indicator {
        animation: none !important;
    }

    .scroll-arrow {
        animation: none !important;
    }
}
