/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background: radial-gradient(circle at center, #1a0033, #000000 70%);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}
h1, h2, h3 {
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    word-wrap: break-word; /* Prevent overflow on mobile */
    overflow-wrap: break-word;
}
/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}
/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 50;
    backdrop-filter: blur(10px);
    animation: slideDown 0.5s ease-out;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    overflow: hidden; /* Prevent overflow stacking */
}
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}
nav .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row; /* Force horizontal layout */
    justify-content: space-between; /* Logo left, button right */
    align-items: center; /* Vertically align */
    width: 100%;
    flex-wrap: nowrap; /* Absolutely no wrapping */
}
nav .logo {
    height: 40px;
    width: auto;
    max-width: 50%;
    flex-shrink: 0;
    object-fit: contain; /* Preserve aspect ratio */
}

nav a.join-btn {
    background: linear-gradient(135deg, #4b0082, #00b7eb);
    color: #000000;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 183, 235, 0.5);
    white-space: nowrap; /* Prevent text wrapping */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Prevent shrinking */
}
nav a.join-btn:hover {
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 183, 235, 0.8);
    animation: pulse 1s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 15px rgba(0, 183, 235, 0.5); }
    50% { box-shadow: 0 0 25px rgba(0, 183, 235, 0.8); }
    100% { box-shadow: 0 0 15px rgba(0, 183, 235, 0.5); }
}
/* Media Queries for Mobile */
@media (max-width: 768px) {
    nav {
        padding: 0.5rem;
    }
    nav .container {
        flex-direction: row; /* Reinforce horizontal layout */
        justify-content: space-between;
        align-items: center;
    }
    nav .logo {
  
        height: 35px; /* Slightly larger for better visibility */
        max-width: 40%;
        object-fit: contain;
    }
}
@media (max-width: 480px) {
    nav .logo {
        height: 30px; /* Adjusted for mobile clarity */
        max-width: 35%;
        object-fit: contain;
    }
}
    }
    nav a.join-btn {
        padding: 0.3rem 0.8rem;
        height: 30px;
        font-size: 0.9rem;
    }
}
@media (max-width: 480px) {
    nav {
        padding: 0.25rem; /* Reduce padding further */
    }

    nav .logo {
        height: 30px; /* Adjusted for mobile clarity */
        max-width: 35%;
        object-fit: contain;
    }

    nav a.join-btn {
        padding: 0.2rem 0.6rem;
        height: 25px;
        font-size: 0.8rem;
    }
}
/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"%3E%3Ccircle cx="50" cy="50" r="40" fill="none" stroke="%2300b7eb" stroke-width="1" opacity="0.1"/%3E%3C/svg%3E') repeat;
}
.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    width: 100%;
    padding: 0 1rem;
}
.hero h1 {
    font-size: 4rem;
    font-weight: 400;
    letter-spacing: 4px;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeIn 1s ease-out forwards;
}
.hero h1 span {
    color: #00b7eb;
}
.hero p {
    font-size: 1.5rem;
    margin: 0 auto 2rem;
    max-width: 100%;
}
.hero .btn {
    animation: fadeIn 1s ease-out forwards;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
    .hero .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.btn {
    background: linear-gradient(135deg, #4b0082, #00b7eb);
    color: #000000;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 183, 235, 0.5);
    cursor: pointer;
}
.btn:hover {
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 183, 235, 0.8);
    animation: pulse 1s infinite;
}
/* Particle Background with Parallax */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    transform: translateZ(0);
}
/* Section Styles */
section {
    padding: 6rem 2rem;
    position: relative;
    animation: fadeInSection 0.8s ease-out forwards;
}
@keyframes fadeInSection {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-shadow: 0 0 10px rgba(0, 183, 235, 0.5);
    max-width: 90%; /* Prevent overflow on mobile */
}
@media (max-width: 768px) {
    h2 {
        font-size: 2rem; /* Smaller on mobile */
    }
}
@media (max-width: 480px) {
    h2 {
        font-size: 1.5rem; /* Even smaller on small screens */
    }
}
/* Modern Dividers */
.divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #ffd700, transparent);
    margin: 4rem auto;
    width: 50%;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
    transform: skew(-20deg);
    animation: fadeInDivider 1s ease-out forwards;
}
@keyframes fadeInDivider {
    from { opacity: 0; width: 0; }
    to { opacity: 1; width: 50%; }
}
/* Pain Points Section */
.pain-points {
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
}
.pain-points p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}
/* Formula Section */
.formula-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.formula-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(192, 192, 192, 0.2));
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    min-width: 180px;
    border: 1px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: cardPop 0.5s ease-out forwards;
    position: relative;
}
.formula-card:nth-child(1) { animation-delay: 0.1s; }
.formula-card:nth-child(2) { animation-delay: 0.2s; }
.formula-card:nth-child(3) { animation-delay: 0.3s; }
.formula-card:nth-child(4) { animation-delay: 0.4s; }
@keyframes cardPop {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.formula-card:hover {
    transform: scale(1.1) translateY(-10px);
    box-shadow: 0 0 30px rgba(192, 192, 192, 0.7);
}
.formula-card h3 {
    color: #ffd700;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
.formula-card p {
    font-size: 1rem;
    color: #ffffff;
}
.formula-card i {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 1rem; /* Adjusted from margin-top */
    display: block;
}
.formula-equation {
    font-size: 2rem;
    font-weight: 900;
    color: #c0c0c0;
    text-shadow: 0 0 15px rgba(192, 192, 192, 0.7);
    margin-bottom: 2rem;
}
/* Updated Verticals Section */
.vertical {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 4rem;
    animation: fadeInVertical 0.6s ease-out forwards;
    max-width: 1000px;
    width: 100%;
}
.vertical:nth-child(1) { animation-delay: 0.1s; }
.vertical:nth-child(2) { animation-delay: 0.2s; }
.vertical:nth-child(3) { animation-delay: 0.3s; }
.vertical:nth-child(4) { animation-delay: 0.4s; }
@keyframes fadeInVertical {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.vertical:nth-child(even) {
    flex-direction: row-reverse;
}
.vertical-text, .vertical-icon {
    flex: 1;
    padding: 2rem;
    text-align: left;
}
.vertical-text h3 {
    font-size: 2rem;
    color: #00b7eb;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 183, 235, 0.5);
    text-align: left;
}
/* Updated Vertical Icon Styling */
.vertical-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px; /* Adds 3D effect for modern feel */
}
.vertical-icon img {
    width: 100%;
    max-width: 250px; /* Larger size on desktop */
    height: auto;
    border-radius: 20px; /* Rounded corners for modern look */
    box-shadow: 0 10px 30px rgba(0, 183, 235, 0.3); /* Subtle glow shadow */
    transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
    transform: translateZ(0); /* Prepares for 3D effect */
    object-fit: cover; /* Ensures images fill the space nicely */
    filter: brightness(90%); /* Slightly muted for hover contrast */
}
.vertical-icon:hover img {
    transform: scale(1.15) translateZ(20px); /* Slight 3D pop and scale */
    box-shadow: 0 15px 40px rgba(0, 183, 235, 0.6); /* Enhanced glow on hover */
    filter: brightness(110%); /* Brightens on hover */
}
/* Responsive Adjustments for Verticals */
@media (max-width: 768px) {
    .vertical {
        flex-direction: column;
        align-items: center;
    }
    .vertical-text, .vertical-icon {
        flex: none;
        width: 100%;
        text-align: center;
    }
    .vertical-text h3 {
        text-align: center;
    }
    .vertical:nth-child(even) {
        flex-direction: column;
    }
    .vertical-icon img {
        max-width: 200px; /* Slightly smaller on tablets */
    }
}
@media (max-width: 480px) {
    .vertical-icon img {
        max-width: 150px; /* Even smaller on mobile */
    }
}
/* Why Join Section */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 1000px;
}
.why-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: cardPop 0.5s ease-out forwards;
}
.why-card:nth-child(1) { animation-delay: 0.1s; }
.why-card:nth-child(2) { animation-delay: 0.2s; }
.why-card:nth-child(3) { animation-delay: 0.3s; }
.why-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(0, 183, 235, 0.5);
}
.why-card i {
    font-size: 2.5rem;
    color: #00b7eb;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}
.why-card:hover i {
    transform: scale(1.1);
}
.why-join p {
    font-size: 1.25rem;
    margin: 0 auto 2rem;
    max-width: 800px;
}
/* Final CTA */
.final-cta {
    padding: 6rem 2rem;
    text-align: center;
}
.final-cta .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.final-cta p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}
/* Footer */
footer {
    background: #1a1a1a;
    padding: 2rem;
    text-align: center;
    font-size: 0.9rem;
    animation: fadeInSection 0.8s ease-out forwards;
}
footer em {
    color: #00b7eb;
}
/* Popup Form */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100;
    justify-content: center;
    align-items: center;
}
.popup-content {
    background: linear-gradient(135deg, #1a0033, #000000);
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 0 30px rgba(0, 183, 235, 0.5);
    position: relative;
    animation: popupFadeIn 0.5s ease-out;
}
@keyframes popupFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.popup-step {
    display: none;
}
.popup-step.active {
    display: block;
}
.popup-content h3 {
    font-size: 1.5rem;
    color: #00b7eb;
    margin-bottom: 1.5rem;
}
.popup-content input[type="text"],
.popup-content input[type="email"],
.popup-content input[type="password"],
.popup-content select {
    width: 100%;
    padding: 0.75rem 1rem; /* Balanced padding */
    margin-bottom: 1rem;
    border: 1px solid #00b7eb;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    box-sizing: border-box; /* Ensure padding doesn't affect width */
}
.popup-content select {
    appearance: none;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    padding-right: 2rem;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10"%3E%3Cpath fill="%2300b7eb" d="M0 3h10L5 8z"/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}
.popup-content label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
/* Custom Checkbox Styling */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: #ffffff;
}
.checkbox-group input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #00b7eb;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}
.checkbox-group input[type="checkbox"]:checked {
    background: #00b7eb;
    border-color: #00b7eb;
}
.checkbox-group input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: 'FontAwesome';
    color: #ffffff;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.checkbox-group input[type="checkbox"]:hover {
    box-shadow: 0 0 10px rgba(0, 183, 235, 0.5);
}
.popup-content .radio-group {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}
.popup-content .radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.popup-content .radio-group input[type="radio"] {
    margin-right: 0.5rem;
}
.popup-content button {
    background: linear-gradient(135deg, #4b0082, #00b7eb);
    color: #000000;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 183, 235, 0.5);
}
.popup-content button:hover {
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 183, 235, 0.8);
}
.popup-content .step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}
.popup-content .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: #00b7eb;
    cursor: pointer;
}
/* Cursor Trail */
.cursor-trail {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(0, 183, 235, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    transition: transform 0.1s ease, opacity 0.2s ease;
    opacity: 0;
}