/* Modern Effects CSS for GlucoCorp Website - Enhanced Version */

/* Glassmorphism Effects with improved aesthetics */
.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transition: all 0.8s ease;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 45px 0 rgba(31, 38, 135, 0.3);
}

.glass-card:hover::before {
    left: 100%;
}

.glass-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px 0 rgba(31, 38, 135, 0.15);
    transition: all 0.3s ease;
}

/* Neomorphism Effects - Enhanced */
.neo-button {
    background: linear-gradient(145deg, #f5f5f5, #e0e0e0);
    border-radius: 50px;
    box-shadow: 8px 8px 16px #bebebe, -8px -8px 16px #ffffff;
    border: none;
    padding: 14px 32px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.neo-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, rgba(240, 98, 146, 0.2), rgba(74, 145, 226, 0.2));
    transition: all 0.4s ease;
    z-index: -1;
    border-radius: 50px;
}

.neo-button:hover {
    box-shadow: 5px 5px 10px #bebebe, -5px -5px 10px #ffffff;
    transform: scale(0.98) translateY(-2px);
    color: #333;
}

.neo-button:hover::before {
    width: 100%;
}

/* 3D Container Styles - Enhanced for modern effects */
.three-d-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    perspective: 1000px;
}

#hero-3d-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    transform-style: preserve-3d;
}

.hero-content {
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

/* Parallax effect for hero content */
.hero:hover .hero-content {
    transform: translateZ(20px);
}

/* Gradient overlay for 3D container */
.three-d-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Modern Card Styles */
.modern-card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Animated Underline */
.animated-underline {
    position: relative;
    display: inline-block;
}

.animated-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.animated-underline:hover::after {
    width: 100%;
}

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

.floating {
    animation: float 4s ease-in-out infinite;
}

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

.pulse {
    animation: pulse 2s infinite;
}

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

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

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(240, 98, 146, 0.5); }
    50% { box-shadow: 0 0 20px rgba(240, 98, 146, 0.8), 0 0 30px rgba(74, 145, 226, 0.4); }
    100% { box-shadow: 0 0 5px rgba(240, 98, 146, 0.5); }
}

.glow {
    animation: glow 3s infinite;
}

/* Scroll Reveal Animation - Enhanced */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* Staggered reveal for multiple elements */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-stagger.active > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }

/* Modern Scrollbar - Enhanced */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

/* Mobile Optimizations - Enhanced */
@media (max-width: 768px) {
    .glass-card {
        padding: 20px;
        margin: 10px;
    }
    
    .three-d-container {
        height: 70vh;
    }
    
    .neo-button {
        padding: 12px 25px;
    }
    
    .hero .heading {
        font-size: 2.5rem;
    }
}

/* Additional Modern Effects */
.gradient-text {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.animated-border {
    position: relative;
}

.animated-border::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.animated-border:hover::after {
    width: 100%;
}

.animated-underline {
    position: relative;
    text-decoration: none;
}

.animated-underline::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.animated-underline:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* 3D Card Effect */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.card-3d:hover {
    transform: rotateY(10deg) rotateX(10deg);
}

/* Backdrop blur for modals */
.modal-backdrop {
    backdrop-filter: blur(8px);
    background-color: rgba(0, 0, 0, 0.5);
}