/* Custom Styles for Modern Landing Page */
@import "tailwindcss";

/* Glassmorphism Effects */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Navbar Glassmorphism */
.navbar-glass {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link:focus {
  outline: none;
}

/* Random Sparkling Stars Background Animation */
.stars-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.stars-background::before,
.stars-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.stars-background::before {
    background: 
        radial-gradient(2px 2px at 15% 25%, #0055FE, transparent),
        radial-gradient(1px 1px at 85% 15%, rgba(0, 85, 254, 0.8), transparent),
        radial-gradient(1px 1px at 45% 75%, #4A90E2, transparent),
        radial-gradient(2px 2px at 75% 45%, rgba(74, 144, 226, 0.6), transparent),
        radial-gradient(1px 1px at 25% 85%, #0055FE, transparent),
        radial-gradient(2px 2px at 95% 65%, rgba(0, 85, 254, 0.7), transparent),
        radial-gradient(1px 1px at 35% 35%, #4A90E2, transparent),
        radial-gradient(2px 2px at 65% 85%, rgba(74, 144, 226, 0.8), transparent),
        radial-gradient(1px 1px at 55% 15%, #0055FE, transparent),
        radial-gradient(2px 2px at 5% 55%, rgba(0, 85, 254, 0.6), transparent);
    animation: sparkle1 3s ease-in-out infinite;
}

.stars-background::after {
    background: 
        radial-gradient(1px 1px at 20% 60%, #4A90E2, transparent),
        radial-gradient(2px 2px at 80% 30%, rgba(74, 144, 226, 0.7), transparent),
        radial-gradient(1px 1px at 40% 90%, #0055FE, transparent),
        radial-gradient(2px 2px at 90% 80%, rgba(0, 85, 254, 0.8), transparent),
        radial-gradient(1px 1px at 10% 40%, #4A90E2, transparent),
        radial-gradient(2px 2px at 60% 20%, rgba(74, 144, 226, 0.6), transparent),
        radial-gradient(1px 1px at 70% 70%, #0055FE, transparent),
        radial-gradient(2px 2px at 30% 50%, rgba(0, 85, 254, 0.7), transparent),
        radial-gradient(1px 1px at 50% 95%, #4A90E2, transparent),
        radial-gradient(2px 2px at 85% 5%, rgba(74, 144, 226, 0.8), transparent);
    animation: sparkle2 4.5s ease-in-out infinite reverse;
}

@keyframes sparkle1 {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(0) translateY(0) scale(1);
    }
    20% {
        opacity: 1;
        transform: translateX(-5px) translateY(-8px) scale(1.2);
    }
    40% {
        opacity: 0.4;
        transform: translateX(3px) translateY(-15px) scale(0.8);
    }
    60% {
        opacity: 0.9;
        transform: translateX(-2px) translateY(-10px) scale(1.1);
    }
    80% {
        opacity: 0.6;
        transform: translateX(4px) translateY(-5px) scale(0.9);
    }
}

@keyframes sparkle2 {
    0%, 100% {
        opacity: 0.4;
        transform: translateX(0) translateY(0) scale(0.9);
    }
    15% {
        opacity: 0.8;
        transform: translateX(6px) translateY(-12px) scale(1.3);
    }
    35% {
        opacity: 0.2;
        transform: translateX(-4px) translateY(-20px) scale(0.7);
    }
    55% {
        opacity: 1;
        transform: translateX(2px) translateY(-8px) scale(1.1);
    }
    75% {
        opacity: 0.5;
        transform: translateX(-3px) translateY(-3px) scale(0.8);
    }
}

/* Enhanced Broker Cards */
.broker-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.broker-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 85, 254, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.broker-card:hover::before {
    opacity: 1;
}

.broker-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(0, 85, 254, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 85, 254, 0.3);
}

.broker-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0055FE, #4A90E2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 85, 254, 0.3);
}

.broker-icon::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 18px;
    pointer-events: none;
}

.broker-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-align: center;
}

.broker-description {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Enhanced Feature Cards */
.feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    border-radius: 16px;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Modern FAQ Section */
.faq-container {
    /* max-width: 900px; */
    margin: 0 auto;
    /* background-color: red; */
    display: flex;
    flex-direction: row;
}

.faq-header {
    text-align: left;
    margin-bottom: 3rem;
    width: 40%;
}

.faq-content {
    flex: 1;
}

.faq-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, #e5e7eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 85, 254, 0.2);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    text-align: left;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    background: none;
    border: none;
    outline: none;
    appearance: none;
}

.faq-question span {
    width: 90%;
}

.faq-question:hover {
    color: #0055FE;
}

.faq-question.active {
    color: #0055FE;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transform: none;
    box-shadow: none;
}

.faq-icon {
    width: 24px;
    height: 24px;
    background: rgba(0, 85, 254, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-question.active .faq-icon {
    background: #0055FE;
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 2rem;   /* no vertical padding initially */
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-size: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer.active {
    max-height: 200px;
    padding: 1rem 2rem 1.5rem;  /* add top/bottom padding on expand */
}

/* CTA Button Enhancements */
.hero-cta-btn {
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 85, 254, 0.3);
}

.hero-cta-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.5s;
    z-index: 1;
}

.hero-cta-btn:hover::before {
    left: 100%;
}

.join-cta-btn {
    position: relative;
    overflow: hidden;
    /* box-shadow: 0 15px 35px rgba(0, 85, 254, 0.4); */
    box-shadow: rgba(0, 85, 254, 0.4) 0px 3px 8px;
}

.join-cta-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.6s;
}

.join-cta-btn:hover::before {
    left: 100%;
}

/* Join Us Card Special Effects */
.join-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

/* Social Links Hover Effects */
.social-link {
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 85, 254, 0.3);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #0055FE, #4A90E2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #0044CC, #3A80D2);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .stars-background::before {
        animation: sparkle1Mobile 2.5s ease-in-out infinite;
    }
    
    .stars-background::after {
        animation: sparkle2Mobile 3.5s ease-in-out infinite reverse;
    }
    
    .faq-title {
        font-size: 2rem;
    }
    
    .broker-icon {
        width: 64px;
        height: 64px;
    }
}

@keyframes sparkle1Mobile {
    0%, 100% {
        opacity: 0.4;
        transform: translateX(0) translateY(0) scale(0.8);
    }
    50% {
        opacity: 0.8;
        transform: translateX(2px) translateY(-5px) scale(1);
    }
}

@keyframes sparkle2Mobile {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(0) translateY(0) scale(0.7);
    }
    50% {
        opacity: 0.9;
        transform: translateX(-2px) translateY(-3px) scale(0.9);
    }
}

/* Loading Animation for Icons */
.loading-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Enhanced Focus States for Accessibility */
/* button:focus, 
a:focus {
    outline: 2px solid #0055FE;
    outline-offset: 2px;
} */

/* Additional Gradient Text Effects */
.gradient-text-blue {
    background: linear-gradient(135deg, #0055FE, #4A90E2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-teal {
    background: linear-gradient(135deg, #4A90E2, #00BFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.broker-link-ctr {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 0.5rem;
}

.broker-link-ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 70%;
}

.broker-link-ul li {
    display: flex;
    flex-direction: row;
    align-items: center;
    transition: all 0.3s ease;
}

.broker-link-ul li i {
    color: #4A90E2;
}

.broker-link-ul li:hover {
    color: #4A90E2;
}

#animatedLine {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: drawLine 6s ease-in-out infinite alternate;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}