/* Advanced interactive animations and effects */

/* === Custom cursor styles === */
/* .custom-cursor rules removed as JS cursor is disabled */

/* --- Custom Cursor Elements (Removed) --- */
/*
.cursor-inner {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
    pointer-events: none;
    z-index: 1100;
    transition: transform 0.1s ease-out, opacity 0.2s ease, background-color 0.2s ease;
}

.cursor-outer {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--primary-light);
    background-color: rgba(8, 127, 140, 0.1);
    pointer-events: none;
    z-index: 1100;
    transition: transform 0.2s ease-out, opacity 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, width 0.3s ease, height 0.3s ease;
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(90, 170, 149, 0.1);
    pointer-events: none;
    z-index: 1099;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s ease, background-color 0.3s ease;
}

.cursor-inner.cursor-hover {
    transform: scale(1.5);
    background-color: var(--accent-color);
}

.cursor-outer.cursor-hover {
    width: 40px;
    height: 40px;
    border-color: var(--accent-color);
    background-color: rgba(247, 184, 1, 0.15);
}

.cursor-follower.cursor-hover {
    transform: scale(1.2);
    background-color: rgba(247, 184, 1, 0.1);
}
*/

/* === Floating Particles === */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2) 0%, rgba(var(--primary-rgb), 0) 70%);
    border-radius: 50%;
    animation: float 30s infinite linear;
    pointer-events: none;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(20px, 30px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translate(-20px, 50px) rotate(180deg) scale(0.9);
    }
    75% {
        transform: translate(-40px, 20px) rotate(270deg) scale(1.2);
    }
    100% {
        transform: translate(0, 0) rotate(360deg) scale(1);
    }
}

/* Create more complex particles */
.particle:nth-child(2n) {
    background: linear-gradient(135deg, rgba(var(--secondary-rgb, 90, 170, 149), 0.15) 0%, transparent 70%);
    animation-direction: reverse;
}

.particle:nth-child(3n) {
    background: linear-gradient(135deg, rgba(var(--accent-rgb, 247, 184, 1), 0.1) 0%, transparent 70%);
    animation-duration: 25s;
}

.particle:nth-child(5n) {
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    background: transparent;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

/* === Enhanced Button Effects === */
.btn {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.3s ease, 
                background-color 0.3s ease,
                color 0.3s ease;
    overflow: hidden;
    position: relative; /* Ensure this is set for position:absolute child */
    z-index: 1; /* Ensure button content stays above pseudo-elements */
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.7s ease;
    z-index: 1;
}

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

.btn-primary {
    box-shadow: 0 10px 20px -10px rgba(var(--primary-rgb), 0.5);
}

.btn-primary:hover {
    box-shadow: 0 15px 25px -10px rgba(var(--primary-rgb), 0.7);
    transform: translateY(-5px) scale(1.03);
}

.btn-secondary {
    position: relative;
    z-index: 1;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--secondary-color);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 4px;
}

.btn-secondary:hover::after {
    opacity: 0.15;
}

/* === Enhanced Feature Cards === */
.feature-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.feature-card .feature-icon {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.feature-card:hover .feature-icon {
    transform: translateZ(30px) scale(1.1);
}

.feature-card:hover h3 {
    transform: translateZ(20px);
}

.feature-card:hover p {
    transform: translateZ(10px);
}

.feature-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 
        -10px 10px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(var(--primary-rgb), 0.05);
}

/* === Typography Effects === */
.hero h1 {
    position: relative;
    perspective: 1000px;
}

.hero h1 .word {
    display: inline-block;
    transform-style: preserve-3d;
}

.hero h1 .word.special {
    position: relative;
}

.hero h1 .word.special::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0); /* Start scaled down */
    transform-origin: left;
    animation: 
        underlineInstantly 1s cubic-bezier(0.19, 1, 0.22, 1) 3s forwards, /* Underline animation with 3s delay */
        gradientShift 3s linear infinite; /* Keep existing gradient shift */
}

/* Define the keyframes for the underline animation */
@keyframes underlineInstantly {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* Media queries for mobile */
@media (max-width: 768px) {
    /*
    .cursor-inner, .cursor-outer, .cursor-follower {
        display: none;
    }
    */
    
    .btn:hover {
        transform: translateY(-3px);
    }
    
    .feature-card:hover {
        transform: translateY(-5px);
    }
}

/* Define RGB variables for additional colors */
:root {
    --secondary-rgb: 90, 170, 149;
    --accent-rgb: 247, 184, 1;
}
