/* Glassmorphism Variables */
:root {
    --glass-bg: rgba(230, 200, 255, 0.1);
    --glass-border: 1px solid rgba(230, 200, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(100, 50, 200, 0.15);
    --glass-blur: blur(10px);
    --text-glow: 0 0 10px rgba(200, 160, 255, 0.5);
    --card-hover-transform: translateY(-5px) scale(1.02);
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 15px;
}

.glass-card {
    background: rgba(230, 200, 255, 0.05);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(230, 200, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(100, 50, 200, 0.1);
    border-radius: 12px;
    transition: all 0.4s ease;
    overflow: hidden;
}

.glass-card:hover {
    transform: var(--card-hover-transform);
    box-shadow: 0 15px 45px rgba(100, 50, 200, 0.2);
    border-color: rgba(230, 200, 255, 0.6);
}

.glass-btn {
    background: rgba(230, 200, 255, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(230, 200, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: inherit;
    transition: all 0.3s ease;
}

.glass-btn:hover {
    background: rgba(230, 200, 255, 0.4);
    box-shadow: 0 0 15px rgba(230, 200, 255, 0.4);
    transform: translateY(-2px);
}

/* Navbar Glass Effect */
.glass-nav {
    background: rgba(231, 221, 153, 0.7) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(230, 200, 255, 0.3);
    transition: all 0.3s ease;
}

nav.navbar.validnavs.glass-nav {
    background-color: rgba(228, 221, 84, 0.244) !important;
}

/* Active Navigation Link Highlight */
nav.navbar.validnavs ul.nav li a.active,
nav.navbar.validnavs ul.nav li.active > a,
nav ul li a.active,
nav ul li.active > a {
    background: rgba(255, 255, 255, 0.5) !important;
    border-radius: 8px;
    padding: 5px 15px !important;
    font-weight: 700 !important;
    color: #2b7a36 !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Vertically center the logo image */
nav.navbar a.navbar-brand {
    display: flex !important;
    align-items: center !important;
    height: 100%;
    top: 0 !important;
    /* Override style.css absolute top */
    padding: 0 !important;
    /* Reset padding */
}

nav.navbar a.navbar-brand img.logo {
    max-height: 80px;
    margin: auto 0;
}

/* Animations */
/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

/* Pulse Glow */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(200, 100, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(200, 100, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(200, 100, 255, 0);
    }
}

.pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* Text Glow Hover */
.text-glow-hover:hover {
    text-shadow: var(--text-glow);
}

/* Blobs for Background Depth */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: float 10s infinite ease-in-out alternate;
}

.blob-1 {
    top: 10%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: rgba(150, 50, 255, 0.4);
}

.blob-2 {
    bottom: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 100, 255, 0.4);
    animation-delay: -5s;
}

/* Staggered Delay for Lists */
.stagger-delay-1 {
    transition-delay: 0.1s;
}

.stagger-delay-2 {
    transition-delay: 0.2s;
}

.stagger-delay-3 {
    transition-delay: 0.3s;
}

.stagger-delay-4 {
    transition-delay: 0.4s;
}

/* Micro-interaction for Inputs */
.glass-input {
    background: rgba(230, 200, 255, 0.1);
    border: 1px solid rgba(230, 200, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.glass-input:focus {
    background: rgba(230, 200, 255, 0.25);
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(200, 100, 255, 0.3);
    transform: scale(1.01);
}

/* Custom Preloader Logo Animation */
.preloader-logo {
    max-width: 180px;
    margin: 0 auto;
    animation: blink-logo 1.5s infinite alternate ease-in-out;
}

@keyframes blink-logo {
    0% {
        opacity: 0.5;
        transform: scale(0.85);
    }

    100% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Floating Contact Button */
.floating-contact-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.9), rgba(18, 140, 126, 0.9));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.floating-contact-btn:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Full-Screen Glass Modal */
.glass-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    padding: 40px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    /* Glass effect */
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    text-align: center;
    color: var(--white);
    animation: modal-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-modal-content h3 {
    margin-bottom: 20px;
    color: var(--color-primary);
    font-weight: 700;
}

.glass-modal-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #ffffff;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--color-primary);
    transform: scale(1.1) rotate(90deg);
}

@keyframes modal-pop {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Center Top Bar Information */
@media (min-width: 992px) {
    .top-bar-style-one .container .row.align-center {
        position: relative;
        justify-content: center;
    }

    .top-bar-style-one .col-lg-8 {
        flex: 0 0 auto;
        width: auto;
    }

    .top-bar-style-one .col-lg-4 {
        position: absolute;
        right: 0px;
        top: 50%;
        transform: translateY(-50%);
        width: auto;
    }
}

/* Reduce size of product cards on product page */
.services-style-one-area .service-style-one-item.glass-card {
    transform: scale(0.9);
    margin: 0 auto;
}

.services-style-one-area .service-style-one-item.glass-card:hover {
    transform: translateY(-5px) scale(0.92);
}