/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--ted-red);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(235, 0, 40, 0.3);
}

.btn-primary:hover {
    background-color: var(--ted-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 0, 40, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 1px solid var(--ted-red);
}

.btn-outline:hover {
    background: var(--ted-red);
    color: var(--color-white);
}

/* Card Styles */
.glass-card {
    background: #0a0a0a; /* Darker solid background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    transition: border-color 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(235, 0, 40, 0.3); /* Subtle red glow on hover */
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    z-index: 100;
    transition: background-color var(--transition-normal);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.nav-brand span {
    color: var(--ted-red);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--ted-red);
    transition: width var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-menu-items {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

@media (max-width: 1200px) {
    .nav-menu-items {
        gap: 1.25rem;
    }
    .nav-link {
        font-size: 0.8rem;
    }
}

/* Make Register link look like a button on desktop */
.nav-menu-items a:last-child {
    border: 1px solid var(--ted-red);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.nav-menu-items a:last-child::after {
    display: none;
}

.nav-menu-items a:last-child:hover {
    background: var(--ted-red);
    color: white;
}

/* Hide mobile footer on desktop */
.mobile-nav-footer { display: none; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
        flex-direction: column;
        justify-content: flex-start;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #030303;
        padding: 6rem 2.5rem 2.5rem;
        z-index: 1000;
        box-sizing: border-box;
        overflow-y: auto;
    }
    .nav-links.nav-active {
        display: flex;
    }
    .nav-menu-items {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    .nav-link {
        font-family: var(--font-body), sans-serif;
        font-size: clamp(2.5rem, 9vw, 3.5rem);
        font-weight: 400;
        text-align: left;
        line-height: 1.1;
        text-transform: capitalize;
        letter-spacing: -1px;
        color: white;
    }
    .nav-link.text-ted-red {
        color: white !important;
    }
    .nav-link::after {
        display: none;
    }
    .nav-menu-items a:last-child {
        border: none;
        padding: 0;
        background: transparent;
    }
    .nav-menu-items a:last-child:hover {
        background: transparent;
        color: var(--ted-red) !important;
    }
    .mobile-nav-footer {
        display: flex;
        flex-direction: column;
        margin-top: auto;
        padding-top: 3rem;
        gap: 1.5rem;
    }
    .nav-details-row {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    .nav-detail-group {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
    }
    .nav-detail-label {
        font-size: 0.7rem;
        color: rgba(255, 255, 255, 0.4);
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    .nav-detail-text {
        font-size: 0.85rem;
        color: white;
        line-height: 1.4;
        text-decoration: none;
    }
    .nav-detail-text:hover {
        color: var(--ted-red);
    }
    .mobile-nav-socials {
        display: flex;
        gap: 0.8rem;
        margin-top: 0.5rem;
    }
    .mobile-nav-socials a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        background: white;
        color: black;
        border-radius: 50%;
        text-decoration: none;
        font-size: 1.1rem;
        transition: transform 0.3s, background 0.3s;
    }
    .mobile-nav-socials a:hover {
        transform: scale(1.1);
        background: var(--ted-red);
        color: white;
    }
    .mobile-nav-cta {
        background: #f0f0f0;
        border-radius: 4px;
        padding: 1.5rem;
        margin-top: 1rem;
        color: black;
    }
    .cta-header {
        font-size: 0.75rem;
        font-weight: 800;
        text-transform: uppercase;
        margin-bottom: 0.5rem;
        letter-spacing: 0.5px;
    }
    .cta-desc {
        font-size: 0.85rem;
        line-height: 1.4;
        color: #333;
        margin-bottom: 1.25rem;
        max-width: 80%;
    }
    .cta-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: black;
        color: white;
        padding: 0.7rem 1.5rem;
        font-size: 0.8rem;
        font-weight: 500;
        border-radius: 2px;
        text-decoration: none;
        transition: background 0.3s;
    }
    .cta-btn:hover {
        background: var(--ted-red);
    }
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: transparent;
        color: white;
        border-radius: 0;
        font-size: 1.5rem;
    }
}

/* Custom Footer */
.custom-footer { background: #0a0a0a; padding: 4rem 0 2rem; border-top: 1px solid var(--glass-border); margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand { font-weight: 700; font-size: 1.5rem; margin-bottom: 1rem; color: white; font-family: var(--font-heading); }
.footer-brand span { color: var(--ted-red); }
.footer-socials { display: flex; gap: 1.5rem; margin-bottom: 1rem; }
.footer-socials a { color: white; font-size: 1.2rem; transition: color 0.3s; }
.footer-socials a:hover { color: var(--ted-red); }
.footer-address { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; }
.footer-heading { color: var(--ted-red); font-weight: 600; margin-bottom: 1.5rem; font-size: 1.1rem; }
.footer-link { display: block; color: var(--text-secondary); margin-bottom: 0.75rem; font-size: 0.9rem; transition: color 0.3s; }
.footer-link:hover { color: white; }

@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-socials { justify-content: center; }
}


/* Neon Speakers Grid */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 4rem 2rem;
    padding: 2rem 0 4rem; /* Reduced massive top padding */
    min-height: 50vh;
    justify-items: center;
}

.speaker-card-neon {
    position: relative;
    width: 100%;
    max-width: 300px;
    cursor: pointer;
    text-align: center;
    margin-top: 2rem;
}

.neon-frame {
    position: absolute;
    top: 0;
    left: 5%;
    width: 90%;
    height: 350px;
    border: 3px solid #ff003c;
    transform: skewX(-12deg);
    z-index: 1;
    box-shadow: inset 0 0 10px rgba(255, 0, 60, 0.2), 0 0 15px rgba(255, 0, 60, 0.3);
    transition: all var(--transition-normal);
}

.speaker-card-neon:hover .neon-frame {
    box-shadow: inset 0 0 20px rgba(255, 0, 60, 0.4), 0 0 30px rgba(255, 0, 60, 0.6);
    background: linear-gradient(135deg, rgba(255,0,60,0.1) 0%, transparent 100%);
}

.speaker-img-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

.speaker-img-neon {
    max-width: 90%;
    max-height: 110%;
    object-fit: contain;
    transform: translateY(-5%);
    transition: transform var(--transition-normal);
    filter: grayscale(80%) contrast(1.2);
}

.speaker-card-neon:hover .speaker-img-neon {
    transform: translateY(-8%) scale(1.05);
    filter: grayscale(0%) contrast(1.1);
}

.speaker-info-neon {
    position: relative;
    z-index: 3;
    padding: 0 1rem;
}

.speaker-name-neon {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #ff003c;
    text-shadow: 0 0 10px rgba(255,0,60,0.4);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.speaker-role-neon {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

.speaker-company-neon {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
    font-style: italic;
}

#loading-indicator {
    text-align: center;
    padding: var(--spacing-xl);
    grid-column: 1 / -1;
    color: var(--text-secondary);
}
