/* ==================== 237Web - Global Styles ==================== */

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ==================== Navigation ==================== */
#main-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#main-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* Nav Link Underline Animation */
.nav-underline {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563EB, #F59E0B);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover .nav-underline {
    width: 80%;
}

/* Nav Link ::after decoration */
.nav-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%) scaleX(0);
    width: 100%;
    height: 100%;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 12px;
    transition: transform 0.3s ease;
    z-index: -1;
}

.nav-link:hover::after {
    transform: translateY(-50%) scaleX(1);
}

/* Hamburger Animation */
#mobile-menu-btn.active .hamburger-lines span:nth-child(1),
#mobile-menu-btn-login.active .hamburger-lines span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
#mobile-menu-btn.active .hamburger-lines span:nth-child(2),
#mobile-menu-btn-login.active .hamburger-lines span:nth-child(2) {
    opacity: 0;
}
#mobile-menu-btn.active .hamburger-lines span:nth-child(3),
#mobile-menu-btn-login.active .hamburger-lines span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 24px;
}

/* ==================== Glass Card ==================== */
.glass-card {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

/* ==================== Floating Elements ==================== */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(2deg); }
    66% { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes float-delay {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(-2deg); }
    66% { transform: translateY(-10px) rotate(1deg); }
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

.floating-element-delay {
    animation: float-delay 8s ease-in-out infinite;
    animation-delay: 1s;
}

/* ==================== Animations ==================== */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ==================== Form Steps Transition ==================== */
.form-step {
    animation: fadeInUp 0.4s ease-out;
}

/* Step indicator active state */
.step-dot.active {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* ==================== Input Focus Effects ==================== */
input:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

input[type="checkbox"] {
    accent-color: #2563EB;
}

/* ==================== Password Strength Colors ==================== */
.str-weak { background-color: #EF4444 !important; }
.str-fair { background-color: #F59E0B !important; }
.str-good { background-color: #3B82F6 !important; }
.str-strong { background-color: #10B981 !important; }

/* ==================== Modal Animation ==================== */
#response-modal.show .bg-black\/50 {
    opacity: 1;
}

#response-modal.show #modal-content {
    transform: scale(1);
    opacity: 1;
}

/* ==================== Cookie Consent ==================== */
#cookie-consent.show {
    transform: translateY(0);
}

/* ==================== Back to Top ==================== */
#back-to-top.visible,
#back-to-top-login.visible {
    opacity: 1;
    visibility: visible;
}

/* ==================== Google Sign-In Button Override ==================== */
.g_id_signin {
    display: flex;
    justify-content: center;
}

.g_id_signin > div {
    width: 100% !important;
}

/* ==================== Responsive Adjustments ==================== */
@media (max-width: 1024px) {
    .glass-card {
        margin-top: 2rem;
    }
}

@media (max-width: 640px) {
    .glass-card {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }
}

/* ==================== Shimmer Loading Effect ==================== */
.shimmer {
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ==================== Particle Background (subtle) ==================== */
@keyframes particle-float {
    0% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    50% { transform: translate(20px, -30px) scale(1.2); opacity: 0.6; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
}

/* ==================== Selection Color ==================== */
::selection {
    background: rgba(37, 99, 235, 0.2);
    color: #1E293B;
}