.animated-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    pointer-events: none !important;
    background: linear-gradient(
        125deg, 
        #0a0a0a 0%,
        #1a1b1f 25%,
        #151515 50%,
        #1B1C20 75%,
        #0a0a0a 100%
    ); 
    background-size: 300% 100%;
    animation: borderGlow 12s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #0f1a0a 0%, #0a0f0c 50%, #020602 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.8s ease-out;
    overflow: hidden;
}

#loading-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(127, 222, 42, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Loading Text */
#loading-screen h1 {
    font-size: 3.5rem;
    font-weight: 300;
    background: linear-gradient(135deg, #7fde2a 0%, #61DE2A 25%, #7fde2a 50%, #61DE2A 75%, #7fde2a 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: 0.05em;
    animation: gradientFlow 4s ease-in-out infinite, textFloat 3s ease-in-out infinite;
    position: relative;
}

#loading-screen h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #7fde2a, transparent);
    animation: underlineGlow 2s ease-in-out infinite;
}

/* Progress Bar Container */
.progress-container {
    width: 400px;
    height: 6px;
    background: rgba(10, 15, 10, 0.8);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(127, 222, 42, 0.2);
    border: 1px solid rgba(127, 222, 42, 0.1);
}

/* Progress Bar */
.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #7fde2a, #61DE2A, #7fde2a, #61DE2A);
    background-size: 200% 100%;
    border-radius: 20px;
    animation: progressFill 2s cubic-bezier(0.4, 0, 0.2, 1) forwards, progressShine 2s linear infinite;
    position: relative;
    box-shadow: 0 0 15px rgba(127, 222, 42, 0.6);
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 20px;
    animation: shine 1.5s ease-in-out infinite;
}

/* Professional Welcome Message */
#welcome-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    background: radial-gradient(ellipse at center, #0f1a0a 0%, #0a0f0c 50%, #020602 100%);
    animation: welcomeSequence 3s ease-in-out 2s forwards;
    overflow: hidden;
}

#welcome-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(127, 222, 42, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(97, 222, 42, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(127, 222, 42, 0.05) 0%, transparent 70%);
    animation: backgroundPulse 4s ease-in-out infinite;
}

.welcome-content {
    text-align: center;
    position: relative;
    z-index: 1;
    transform: translateY(50px);
    opacity: 0;
    animation: contentSlideUp 1s ease-out 0.5s forwards;
}

.welcome-title {
    font-size: 4rem;
    font-weight: 200;
    background: linear-gradient(135deg, #7fde2a 0%, #61DE2A 25%, #7fde2a 50%, #61DE2A 75%, #7fde2a 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    animation: titleGradientFlow 3s ease-in-out infinite;
    position: relative;
}

.welcome-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    color: rgba(203, 213, 225, 0.8);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    opacity: 0;
    animation: subtitleFade 1s ease-out 1s forwards;
}

.welcome-divider {
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #7fde2a, transparent);
    margin: 0 auto 2rem;
    opacity: 0;
    animation: dividerExpand 1s ease-out 1.2s forwards;
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(127, 222, 42, 0.1);
    border: 1px solid rgba(127, 222, 42, 0.2);
    border-radius: 50px;
    color: #7fde2a;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px);
    animation: badgeSlideUp 1s ease-out 1.5s forwards;
}

.welcome-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #7fde2a;
    border-radius: 50%;
    box-shadow: 0 0 10px #7fde2a;
    animation: dotPulse 2s ease-in-out infinite;
}

/* === ANIMATIONS === */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes textFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes underlineGlow {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scaleX(0.8); }
    50% { opacity: 1; transform: translateX(-50%) scaleX(1.2); }
}

@keyframes progressFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes progressShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes welcomeSequence {
    0% {
        opacity: 0;
        visibility: hidden;
    }
    10% {
        opacity: 1;
        visibility: visible;
    }
    90% {
        opacity: 1;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

@keyframes contentSlideUp {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

@keyframes titleGradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes subtitleFade {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0px); }
}

@keyframes dividerExpand {
    0% { width: 0px; opacity: 0; }
    100% { width: 200px; opacity: 1; }
}

@keyframes badgeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* === PREMIUM GREEN BUTTONS === */
.btn-gradient-green {
    background: linear-gradient(135deg, #7fde2a 0%, #61DE2A 100%) !important;
    border: 1px solid rgba(127, 222, 42, 0.3) !important;
    color: #0a0a0a !important;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: none;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
    box-shadow: 
        0 4px 20px rgba(127, 222, 42, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-gradient-green::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.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-gradient-green:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 30px rgba(127, 222, 42, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #61DE2A 0%, #50c020 100%) !important;
    border-color: rgba(127, 222, 42, 0.5) !important;
}

.btn-gradient-green:hover::before {
    left: 100%;
}

/* === PREMIUM TEXT GRADIENT === */
.text-gradient-green {
    background: linear-gradient(135deg, #7fde2a 0%, #61DE2A 50%, #7fde2a 100%) !important;
    background-size: 200% 200%;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    font-weight: 700;
    animation: textGradientShift 3s ease-in-out infinite;
}

@keyframes textGradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* === PREMIUM NAVBAR STYLING === */
/* Removed broad navbar styles to prevent conflicts with existing design */

/* === PREMIUM SOCIAL LINKS === */
.socials .social {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 20px 30px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, rgba(127, 222, 42, 0.8), rgba(97, 222, 42, 0.6));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(127, 222, 42, 0.2);
    box-shadow: 
        0 4px 20px rgba(127, 222, 42, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.socials .social::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(97, 222, 42, 0.8), rgba(80, 192, 32, 0.8));
    z-index: 0;
    transition: all 0.4s ease;
    opacity: 0;
}

.socials .social:hover::before {
    opacity: 1;
}

.socials .social:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(127, 222, 42, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.socials .social span {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    letter-spacing: 0.025em;
}

.socials .social .left svg,
.socials .social .right svg {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.socials .social .left svg {
    fill: white;
}

.socials .social .right svg {
    stroke: white;
}

.socials .social:hover .left svg {
    fill: #f0fde4;
    transform: scale(1.1);
}

.socials .social:hover .right svg {
    stroke: #f0fde4;
    transform: scale(1.1);
}

/* === PREMIUM CARDS === */
/* Only apply to cards that need the green theme styling */
.premium-card {
    background: rgba(15, 23, 15, 0.8) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(127, 222, 42, 0.1) !important;
    border-radius: 20px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.premium-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 15px 50px rgba(127, 222, 42, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(127, 222, 42, 0.3) !important;
}

/* === PREMIUM FORM ELEMENTS === */
/* Removed broad form-control styles to prevent conflicts with existing search bar */

/* === PREMIUM MODAL === */
/* Only apply to specific modals if needed */
.premium-modal .modal-content {
    background: rgba(2, 6, 2, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(127, 222, 42, 0.2) !important;
    border-radius: 24px !important;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    #loading-screen h1 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    .progress-container {
        width: 300px;
        height: 5px;
    }
    .welcome-title {
        font-size: 2.5rem;
    }
    .welcome-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    #loading-screen h1 {
        font-size: 2rem;
    }
    .progress-container {
        width: 250px;
        height: 4px;
    }
    .welcome-title {
        font-size: 2rem;
    }
    .welcome-subtitle {
        font-size: 1rem;
    }
    .welcome-divider {
        width: 150px;
    }
}