* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-purple: #8a2be2;
    --accent-cyan: #00fff2;
    --border: rgba(255, 255, 255, 0.08);
}

.slider-row:nth-child(even) {
    animation-direction: reverse;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    width: 100%;
}

.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen;
}

.glow-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-purple), transparent 70%);
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.glow-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
    bottom: -150px;
    left: -150px;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(60px, 40px);
    }
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-primary);
    white-space: nowrap;
}

.dot {
    color: var(--accent-cyan);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: 0.3s ease;
    position: relative;
    padding: 5px 0;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::before {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    gap: 5px;
    z-index: 1001;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: 0.3s;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1002;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.mobile-nav-header h3 {
    font-size: 1.2rem;
    color: var(--accent-cyan);
    letter-spacing: 1px;
}

.close-nav {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-links li {
    opacity: 0;
    transform: translateX(-20px);
    transition: 0.4s ease;
}

.mobile-nav.active .mobile-nav-links li {
    opacity: 1;
    transform: translateX(0);
    transition-delay: calc(0.1s * var(--i));
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 1.5rem 2rem;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 900px;
    width: 100%;
}

.glitch-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
    width: 100%;
}

.glitch {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    position: relative;
    color: white;
    letter-spacing: -0.02em;
    word-break: break-word;
}

/* .glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
} */

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--accent-purple);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--accent-cyan);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(38px, 9999px, 81px, 0);
        transform: skew(0.85deg);
    }

    5% {
        clip: rect(28px, 9999px, 86px, 0);
        transform: skew(0.85deg);
    }

    100% {
        clip: rect(81px, 9999px, 25px, 0);
        transform: skew(0.35deg);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(2px, 9999px, 5px, 0);
        transform: skew(0.85deg);
    }

    5% {
        clip: rect(62px, 9999px, 2px, 0);
        transform: skew(0.85deg);
    }

    100% {
        clip: rect(32px, 9999px, 93px, 0);
        transform: skew(0.35deg);
    }
}

.tagline {
    font-size: clamp(1rem, 4vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 300;
    padding: 0 1rem;
}

.highlight {
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 8px;
    bottom: 2px;
    left: 0;
    background: var(--accent-purple);
    opacity: 0.3;
    z-index: -1;
    transform: skewX(-10deg);
}

.stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    min-width: 160px;
}

.floating {
    animation: float-stat 6s ease-in-out infinite;
}

@keyframes float-stat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.section {
    padding: 5rem 1.5rem;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 800;
    letter-spacing: -1px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lead {
    font-size: clamp(1rem, 3vw, 1.2rem);
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    perspective: 1000px;
}

.feature-card {
    position: relative;
    background: rgba(10, 10, 10, 0.6);
    border-radius: 24px;
    transition: transform 0.1s ease;
    transform-style: preserve-3d;
}

.card-content {
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    border: 1px solid var(--border);
    height: 100%;
    z-index: 2;
    position: relative;
    backdrop-filter: blur(20px);
    overflow: hidden;
    text-align: center;
}

.card-border {
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    background: linear-gradient(45deg, transparent, var(--accent-purple), transparent, var(--accent-cyan));
    background-size: 400% 400%;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.feature-card:hover .card-border {
    opacity: 0.5;
}

.feature-icon {
    font-size: 3rem;
    margin: 0 auto 2rem;
    height: 80px;
    width: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s ease;
}

.feature-card:hover .feature-icon {
    background: var(--accent-purple);
    transform: translateZ(30px);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.4);
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--text-primary);
    fill: none;
    stroke-width: 2;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    transform: translateZ(20px);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    transform: translateZ(10px);
    font-size: 0.95rem;
}

.community-section {
    padding: 6rem 0;
    overflow: hidden;
    position: relative;
}

.community-section::before,
.community-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 10;
    pointer-events: none;
}

.community-section::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary), transparent);
}

.community-section::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary), transparent);
}

#sliderContainer {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.slider-row {
    display: flex;
    gap: 20px;
    width: max-content;
    margin-bottom: 20px;
    animation: scroll-left var(--speed) linear infinite;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.slider-row:hover {
    animation-play-state: paused;
}

.member-card {
    min-width: 260px;
    padding: 1.5rem;
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.member-card:hover {
    background: rgba(40, 40, 40, 0.8);
    border-color: var(--accent-cyan);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 242, 0.1);
}

.member-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--border);
    overflow: hidden;
    flex-shrink: 0;
}

.member-info {
    text-align: left;
}

.member-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.member-role {
    font-size: 0.8rem;
    color: var(--accent-purple);
    white-space: nowrap;
}

.cta-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.cta-button {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.cta-button.primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.cta-button.secondary:hover {
    border-color: var(--text-primary);
    background: var(--text-primary);
    color: black;
}

.shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
    transform: skewX(-20deg) translateX(-150%);
    transition: transform 0.5s;
    pointer-events: none;
}

.cta-button:hover .shimmer {
    transform: skewX(-20deg) translateX(150%);
    transition: transform 0.6s ease-in-out;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.footer {
    background: var(--bg-secondary);
    padding: 4rem 1.5rem 1rem;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
    padding-bottom: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col {
    flex: 1 1 200px;
    min-width: 250px;
}

.footer-logo {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    background-color: var(--accent-cyan);
    height: 2px;
    width: 40px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #b0b0b0;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: #fff;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 40px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid var(--border);
}

.social-links a:hover {
    background: var(--accent-cyan);
    color: #000;
    transform: translateY(-3px);
}

.newsletter-form {
    position: relative;
    margin-top: 1rem;
    display: flex;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    outline: none;
    color: #fff;
    border-radius: 5px;
    font-size: 0.9rem;
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background: var(--accent-cyan);
    border: none;
    width: 35px;
    border-radius: 4px;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-bottom {
    background: #000;
    text-align: center;
    padding: 2rem 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-wrapper {
    width: 90%;
    max-width: 500px;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    margin: 120px 0 60px;
}

.progress-container {
    margin-bottom: 2rem;
}

.progress-text {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
    font-family: monospace;
    text-transform: uppercase;
}

#progress-bar {
    transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#under {
    text-decoration: none;
    color: inherit;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25%,
    75% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.4s ease-in-out;
    border-bottom: 2px solid red !important;
}

.progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.form-step {
    display: none;
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-step.active {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.form-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: #ccc;
    font-weight: 500;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 10px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: 0.3s ease;
    border-radius: 0;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-cyan);
    background: linear-gradient(to top, rgba(0, 255, 242, 0.05), transparent);
}

.input-group select option {
    background: var(--bg-secondary);
    color: white;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 2rem;
    text-align: left;
}

.checkbox-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.checkbox-group input {
    margin-top: 3px;
}

.btn-group {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.btn-group.single {
    justify-content: flex-end;
}

.arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-left: 5px;
}

.cta-button:hover .arrow {
    transform: translateX(5px);
}

.error-message {
    color: #ff3333;
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-container {
        padding: 0 1.5rem;
        justify-content: flex-start;
        gap: 1rem;
    }

    .logo {
        font-size: 1.4rem;
        margin-left: 10px;
    }

    .hero {
        padding-top: 7rem;
    }

    .stats {
        gap: 2rem;
    }

    .stat-item {
        flex: 1;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-col h4::after {
        left: 0;
        transform: none;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 2rem;
    }

    .glitch {
        font-size: 3rem;
    }

    .form-wrapper {
        padding: 1.5rem;
        margin-top: 100px;
        width: 95%;
    }

    .stat-item {
        width: 100%;
    }

    .btn-group {
        flex-direction: column-reverse;
    }

    .btn-group .cta-button {
        width: 100%;
        text-align: center;
    }
}

/* --- Updated Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 70%;
    max-width: 800px;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    /* Added padding around the whole content */
    position: relative;
    box-shadow: 0 0 50px rgba(0, 255, 242, 0.15);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: 0.2s;
    line-height: 1;
}

.close-modal:hover {
    color: var(--accent-cyan);
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    flex-direction: row;
    align-items: center;
    /* Vertically center image and text */
    gap: 2rem;
    /* Bring name closer to image (Just beside) */
    min-height: 300px;
}

/* Left Side: Circular Image Container */
.modal-image-container {
    flex: 0 0 250px;
    /* Fixed width so it doesn't stretch */
    display: flex;
    justify-content: center;
    align-items: center;
}

#modalImage {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 255, 242, 0.2);
}


.modal-details {
    flex: 1;
    text-align: left;
    padding-left: 0;
}

#modalName {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.2rem;
    line-height: 1.1;
    text-transform: capitalize;
}

#modalRole {
    font-size: 1rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.modal-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-purple), transparent);
    margin-bottom: 1.5rem;
}


.nav-links a[href="/signup"] {
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
    color: #000 !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(0, 255, 242, 0.3);
    transition: all 0.3s ease;
    border: none;
}

.nav-links a[href="/signup"]:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 25px rgba(0, 255, 242, 0.6);
    text-shadow: none;
}

.nav-links a[href="/signup"]::before {
    display: none;
}

#modalBio {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 90%;
    /* Keeps text line length readable */
}

/* Responsive Modal for Mobile */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        padding: 1.5rem;
        max-height: 85vh;
        overflow-y: auto;
    }

    .modal-body {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .modal-image-container {
        flex: 0 0 auto;
    }

    #modalImage {
        width: 180px;
        height: 180px;
    }

    .modal-details {
        text-align: center;
    }

    .modal-divider {
        margin: 1.5rem auto;
        /* Center divider on mobile */
    }

    #modalBio {
        max-width: 100%;
        font-size: 0.95rem;
    }
}