/* ===========================
   SPEAKERS SECTION STYLES
   TEDx Sanjivani University
   Enhanced Premium Version
   =========================== */

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(235, 0, 40, 0.3); }
    50% { box-shadow: 0 0 40px rgba(235, 0, 40, 0.6); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   WHAT IS TEDx SECTION - PREMIUM
   =========================== */
.about-tedx {
    background: linear-gradient(160deg, #000000 0%, #0a0a0a 30%, #111111 70%, #000000 100%);
    padding: 120px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Animated Background Pattern */
.about-tedx::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(235, 0, 40, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(235, 0, 40, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

/* Decorative Line */
.about-tedx::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, #EB0028, transparent);
}

.tedx-explanation {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.tedx-content {
    max-width: 900px;
    text-align: center;
}

.tedx-intro {
    font-size: 20px;
    line-height: 2;
    margin-bottom: 60px;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    padding: 0 20px;
}

.tedx-intro strong {
    color: #EB0028;
    font-weight: 700;
}

.tedx-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 0;
    width: 100%;
}

.tedx-detail-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Card Glow Effect */
.tedx-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #EB0028, transparent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.tedx-detail-card:hover::before {
    transform: scaleX(1);
}

/* Card Background Glow */
.tedx-detail-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(235, 0, 40, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
    pointer-events: none;
}

.tedx-detail-card:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.tedx-detail-card:hover {
    background: linear-gradient(145deg, rgba(235, 0, 40, 0.1) 0%, rgba(235, 0, 40, 0.05) 100%);
    border-color: rgba(235, 0, 40, 0.3);
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(235, 0, 40, 0.2);
}

.tedx-detail-card .detail-icon {
    font-size: 50px;
    margin-bottom: 20px;
    display: block;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 2;
}

.tedx-detail-card:hover .detail-icon {
    transform: scale(1.15) rotate(5deg);
}

.tedx-detail-card h4 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 2;
}

.tedx-detail-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

/* Responsive */
@media (max-width: 992px) {
    .tedx-details {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .about-tedx {
        padding: 80px 0;
    }
    
    .tedx-intro {
        font-size: 17px;
        line-height: 1.8;
    }
    
    .tedx-detail-card {
        padding: 30px 25px;
    }
    
    .tedx-detail-card .detail-icon {
        font-size: 40px;
    }
    
    .tedx-detail-card h4 {
        font-size: 20px;
    }
}

/* Hero Theme */
.hero-theme {
    font-size: 24px;
    font-weight: 300;
    margin: 20px 0 30px;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* Speakers Section */
.speakers {
    background: #fff;
    padding: 100px 0;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-top: -20px;
    margin-bottom: 50px;
}

.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.speaker-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.speaker-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(235, 0, 40, 0.2);
}

.speaker-image {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.speaker-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.speaker-card:hover .speaker-image img {
    transform: scale(1.1);
}

.speaker-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.speaker-card:hover .speaker-overlay {
    opacity: 1;
}

.speaker-icon {
    font-size: 40px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.speaker-info {
    padding: 25px;
    text-align: center;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    color: #fff;
}

.speaker-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.speaker-title {
    font-size: 14px;
    color: #EB0028;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Group Photo */
.speakers-group {
    text-align: center;
    margin-top: 60px;
    padding-top: 60px;
    border-top: 2px solid #f0f0f0;
}

.speakers-group h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #000;
}

.group-photo-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.group-photo-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Theme Section Enhanced */
.theme-tagline {
    text-align: center;
    font-size: 24px;
    color: #EB0028;
    margin-top: -20px;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Info Card Highlight */
.info-highlight {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #EB0028 !important;
    margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .tedx-logo-large {
        font-size: 50px;
    }
    
    .tedx-intro {
        font-size: 16px;
    }
    
    .speakers-grid {
        grid-template-columns: 1fr;
    }
    
    .speaker-image {
        height: 280px;
    }
    
    .hero-theme {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .tedx-logo-large {
        font-size: 40px;
    }
    
    .speaker-image {
        height: 250px;
    }
}


/* ===========================
   ENHANCED PREMIUM FEATURES
   =========================== */

/* Countdown Timer */
.countdown-section {
    background: linear-gradient(135deg, #EB0028 0%, #8B0000 100%);
    padding: 60px 0;
    text-align: center;
    color: #fff;
}

.countdown-title {
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 300;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px 35px;
    min-width: 120px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.countdown-item:hover {
    transform: scale(1.1);
}

.countdown-number {
    font-size: 48px;
    font-weight: 900;
    display: block;
    line-height: 1;
}

.countdown-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
    opacity: 0.8;
}

/* Enhanced Speaker Cards */
.speaker-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.speaker-card:nth-child(1) { animation-delay: 0.1s; }
.speaker-card:nth-child(2) { animation-delay: 0.2s; }
.speaker-card:nth-child(3) { animation-delay: 0.3s; }
.speaker-card:nth-child(4) { animation-delay: 0.4s; }
.speaker-card:nth-child(5) { animation-delay: 0.5s; }
.speaker-card:nth-child(6) { animation-delay: 0.6s; }
.speaker-card:nth-child(7) { animation-delay: 0.7s; }
.speaker-card:nth-child(8) { animation-delay: 0.8s; }

.speaker-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #EB0028, #ff4444, #EB0028);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.speaker-card:hover::before {
    opacity: 1;
}

/* Speaker Number Badge */
.speaker-number {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background: #EB0028;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(235, 0, 40, 0.4);
}

/* Social Links for Speakers */
.speaker-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.speaker-social a {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.speaker-social a:hover {
    background: #EB0028;
    transform: translateY(-3px);
}

/* Stats Section */
.stats-section {
    background: #000;
    padding: 80px 0;
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 30px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(235, 0, 40, 0.1);
    border-color: #EB0028;
    transform: translateY(-5px);
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    color: #EB0028;
    display: block;
}

.stat-label {
    font-size: 16px;
    color: #999;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Schedule Timeline */
.schedule-section {
    background: #f8f8f8;
    padding: 100px 0;
}

.timeline {
    max-width: 800px;
    margin: 50px auto 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #EB0028, #000);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: #EB0028;
    border-radius: 50%;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -35px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -35px;
}

.timeline-time {
    font-size: 14px;
    color: #EB0028;
    font-weight: 700;
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 14px;
    color: #666;
}

/* Floating Action Button */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.fab {
    width: 60px;
    height: 60px;
    background: #EB0028;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(235, 0, 40, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: float 3s ease-in-out infinite;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(235, 0, 40, 0.6);
}

/* Parallax Effect */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.parallax-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

/* Quote Section */
.quote-section {
    background: #000;
    padding: 100px 0;
    text-align: center;
}

.quote-text {
    font-size: 36px;
    font-weight: 300;
    color: #fff;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
    font-style: italic;
}

.quote-text::before {
    content: '"';
    font-size: 80px;
    color: #EB0028;
    display: block;
    line-height: 0.5;
    margin-bottom: 20px;
}

.quote-author {
    margin-top: 30px;
    font-size: 18px;
    color: #EB0028;
    font-weight: 700;
}

/* Responsive Enhancements */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: row;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -35px;
        right: auto;
    }
}

@media (max-width: 768px) {
    .countdown-timer {
        gap: 15px;
    }
    
    .countdown-item {
        padding: 15px 20px;
        min-width: 80px;
    }
    
    .countdown-number {
        font-size: 32px;
    }
    
    .quote-text {
        font-size: 24px;
        padding: 0 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .stat-number {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .countdown-item {
        min-width: 70px;
        padding: 12px 15px;
    }
    
    .countdown-number {
        font-size: 28px;
    }
    
    .fab {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}


/* FAB Initial State */
.fab {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Section Titles Enhanced */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #EB0028;
    border-radius: 2px;
}

/* Loading Animation for Images */
.speaker-image img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.speaker-image img[src] {
    animation: none;
    background: none;
}


/* ===========================
   CENTERED HEADERS & MORE ENHANCEMENTS
   =========================== */

/* Center All Section Titles */
.section-title {
    text-align: center !important;
    width: 100%;
    display: block !important;
    margin-bottom: 50px;
}

.section-subtitle {
    text-align: center !important;
}

/* Enhanced Section Title Styling */
.section-title::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* Container Centering */
.container {
    text-align: center;
}

/* Info Grid Centering */
.info-grid {
    justify-content: center;
}

.info-card {
    text-align: center;
}

/* Theme Grid Centering */
.theme-grid {
    justify-content: center;
}

.theme-card {
    text-align: center;
}

/* About Grid Centering */
.about-grid {
    justify-content: center;
}

.about-card {
    text-align: center;
}

.about-card ul {
    text-align: left;
    display: inline-block;
}

/* Speakers Grid Centering */
.speakers-grid {
    justify-content: center;
}

/* TEDx Details Centering */
.tedx-details {
    justify-content: center;
}

/* ===========================
   MORE PREMIUM ENHANCEMENTS
   =========================== */

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #EB0028 0%, #ff6b6b 50%, #EB0028 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glowing Border Effect */
.glow-border {
    position: relative;
}

.glow-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #EB0028, #ff6b6b, #EB0028, #ff6b6b);
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    animation: glowBorder 3s ease infinite;
}

@keyframes glowBorder {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Enhanced Speaker Cards */
.speaker-card {
    position: relative;
    overflow: visible;
}

.speaker-card::after {
    content: '🎤';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 50px;
    height: 50px;
    background: #EB0028;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(235, 0, 40, 0.4);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.speaker-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* Ribbon Badge for Featured */
.ribbon {
    position: absolute;
    top: 20px;
    left: -10px;
    background: #EB0028;
    color: #fff;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(235, 0, 40, 0.4);
    z-index: 10;
}

.ribbon::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    border-left: 10px solid transparent;
    border-top: 10px solid #8B0000;
}

/* Particle Background Effect */
.particles-bg {
    position: relative;
    overflow: hidden;
}

.particles-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(235, 0, 40, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(235, 0, 40, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 30%);
    pointer-events: none;
}

/* Enhanced Info Cards */
.info-card {
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(235, 0, 40, 0.1), transparent);
    transition: left 0.5s ease;
}

.info-card:hover::before {
    left: 100%;
}

/* Enhanced Theme Cards */
.theme-card {
    position: relative;
    overflow: hidden;
}

.theme-card .theme-icon {
    transition: transform 0.3s ease;
}

.theme-card:hover .theme-icon {
    transform: scale(1.2) rotate(10deg);
}

/* Animated Underline for Links */
.animated-link {
    position: relative;
    text-decoration: none;
}

.animated-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #EB0028;
    transition: width 0.3s ease;
}

.animated-link:hover::after {
    width: 100%;
}

/* Pulsing Dot Indicator */
.pulse-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #EB0028;
    border-radius: 50%;
    margin-right: 10px;
    animation: pulseDot 1.5s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(235, 0, 40, 0.7);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(235, 0, 40, 0);
    }
}

/* Enhanced Stats Numbers */
.stat-number {
    position: relative;
    display: inline-block;
}

.stat-item:hover .stat-number {
    animation: countUp 0.5s ease;
}

@keyframes countUp {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #EB0028, #ff6b6b);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Enhanced Quote Section */
.quote-section {
    position: relative;
}

.quote-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(235, 0, 40, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(235, 0, 40, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

/* Typing Effect for Quote */
.typing-effect {
    overflow: hidden;
    border-right: 3px solid #EB0028;
    white-space: nowrap;
    animation: typing 4s steps(50) 1s forwards, blink 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Card Tilt Effect */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.tilt-card:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

/* Neon Glow Text */
.neon-text {
    text-shadow: 
        0 0 5px #EB0028,
        0 0 10px #EB0028,
        0 0 20px #EB0028,
        0 0 40px #EB0028;
}

/* Enhanced Countdown */
.countdown-item {
    position: relative;
    overflow: hidden;
}

.countdown-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* Morphing Background */
.morph-bg {
    background: 
        linear-gradient(45deg, #000 25%, transparent 25%),
        linear-gradient(-45deg, #000 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #1a1a1a 75%),
        linear-gradient(-45deg, transparent 75%, #1a1a1a 75%);
    background-size: 20px 20px;
    animation: morphBg 20s linear infinite;
}

@keyframes morphBg {
    0% { background-position: 0 0, 10px 0, 10px -10px, 0 10px; }
    100% { background-position: 20px 20px, 30px 20px, 30px 10px, 20px 30px; }
}

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hover Lift Effect */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Text Reveal Animation */
.text-reveal {
    position: relative;
    overflow: hidden;
}

.text-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #EB0028;
    transform: translateX(-101%);
    animation: textReveal 1s ease forwards;
}

@keyframes textReveal {
    0% { transform: translateX(-101%); }
    50% { transform: translateX(0); }
    100% { transform: translateX(101%); }
}


/* ===========================
   FIX VISIBILITY ISSUES
   =========================== */

/* What is TEDx Section Title Fix */
.about-tedx .section-title {
    color: #ffffff !important;
    text-shadow: none;
}

.about-tedx .section-title span {
    color: #EB0028 !important;
}

/* Ensure all section titles are visible */
section .section-title {
    position: relative;
    z-index: 10;
}

/* Dark section titles should be white */
.about-tedx .section-title,
.stats-section .section-title,
.quote-section .section-title {
    color: #ffffff !important;
}

/* Light section titles should be black */
.speakers .section-title,
.event-info .section-title,
.theme .section-title,
.about .section-title {
    color: #000000 !important;
}

/* Fix the underline position */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #EB0028;
    border-radius: 2px;
}

/* TEDx Logo in About Section */
.tedx-logo-large {
    margin-bottom: 30px;
}

/* Fix countdown section visibility */
.countdown-section {
    position: relative;
    z-index: 1;
}

/* Ensure proper contrast */
.about-tedx {
    position: relative;
}

.about-tedx .container {
    position: relative;
    z-index: 2;
}

/* Stats section title */
.stats-section h2 {
    color: #ffffff !important;
}

/* Quote section visibility */
.quote-section .quote-text {
    color: #ffffff;
}

.quote-section .quote-author {
    color: #EB0028;
}


/* ===========================
   STUDENT AMBASSADORS SECTION
   Ultimate Premium Version
   =========================== */

.ambassadors {
    background: linear-gradient(180deg, #000000 0%, #0a0a0a 50%, #111111 100%);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

/* Floating Decorations */
.ambassadors-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(235, 0, 40, 0.15) 0%, transparent 70%);
}

.deco-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    animation: floatDeco 8s ease-in-out infinite;
}

.deco-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    right: -50px;
    animation: floatDeco 10s ease-in-out infinite reverse;
}

@keyframes floatDeco {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 30px); }
}

/* Section Header */
.ambassadors-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 5;
}

.section-badge {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, rgba(235, 0, 40, 0.2) 0%, rgba(235, 0, 40, 0.1) 100%);
    border: 1px solid rgba(235, 0, 40, 0.3);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    color: #EB0028;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.ambassadors .section-title {
    color: #ffffff !important;
    font-size: 48px;
    margin-bottom: 15px;
}

.ambassadors .section-subtitle {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 18px;
}

.ambassadors .container {
    position: relative;
    z-index: 2;
}

/* Ambassadors Grid */
.ambassadors-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Ambassador Card */
.ambassador-card {
    background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

/* Glowing Border Effect */
.ambassador-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #EB0028, #ff4444, #EB0028, #ff6666);
    background-size: 400% 400%;
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: glowRotate 3s linear infinite;
}

@keyframes glowRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.ambassador-card:hover::before {
    opacity: 1;
}

.ambassador-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(235, 0, 40, 0.25),
        0 0 30px rgba(235, 0, 40, 0.1);
    z-index: 20;
}

/* Ambassador Image Container */
.ambassador-image {
    position: relative;
    overflow: hidden;
}

.ambassador-image img,
.ambassador-card > img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease, filter 0.4s ease;
}

.ambassador-card:hover .ambassador-image img,
.ambassador-card:hover > img {
    transform: scale(1.1);
}

/* Overlay with Badge */
.ambassador-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.ambassador-card:hover .ambassador-overlay {
    opacity: 1;
    transform: translateY(0);
}

.ambassador-badge {
    padding: 8px 20px;
    background: linear-gradient(135deg, #EB0028 0%, #ff3333 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 30px;
    box-shadow: 0 5px 20px rgba(235, 0, 40, 0.4);
}

/* Staggered Animation */
.ambassador-card {
    animation: ambassadorEntrance 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
    transform: translateY(40px) scale(0.9);
}

.ambassador-card:nth-child(1) { animation-delay: 0.1s; }
.ambassador-card:nth-child(2) { animation-delay: 0.15s; }
.ambassador-card:nth-child(3) { animation-delay: 0.2s; }
.ambassador-card:nth-child(4) { animation-delay: 0.25s; }
.ambassador-card:nth-child(5) { animation-delay: 0.3s; }
.ambassador-card:nth-child(6) { animation-delay: 0.35s; }
.ambassador-card:nth-child(7) { animation-delay: 0.4s; }
.ambassador-card:nth-child(8) { animation-delay: 0.45s; }
.ambassador-card:nth-child(9) { animation-delay: 0.5s; }
.ambassador-card:nth-child(10) { animation-delay: 0.55s; }

@keyframes ambassadorEntrance {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===========================
   RESPONSIVE AMBASSADORS
   =========================== */

/* Tablet Landscape */
@media (max-width: 1200px) {
    .ambassadors-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 18px;
    }
    
    .deco-1, .deco-2 {
        display: none;
    }
}

/* Tablet Portrait */
@media (max-width: 992px) {
    .ambassadors {
        padding: 80px 0;
    }
    
    .ambassadors .section-title {
        font-size: 40px;
    }
    
    .ambassadors-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .ambassador-card:nth-child(10) {
        grid-column: 2;
    }
    
    .section-badge {
        font-size: 12px;
        padding: 8px 20px;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .ambassadors {
        padding: 60px 0;
    }
    
    .ambassadors .section-title {
        font-size: 32px;
    }
    
    .ambassadors .section-subtitle {
        font-size: 15px;
    }
    
    .ambassadors-header {
        margin-bottom: 40px;
    }
    
    .ambassadors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 10px;
    }
    
    .ambassador-card {
        border-radius: 14px;
    }
    
    .ambassador-card:nth-child(10) {
        grid-column: auto;
    }
    
    .ambassador-card:hover {
        transform: translateY(-8px);
    }
    
    .ambassador-overlay {
        padding: 15px;
    }
    
    .ambassador-badge {
        font-size: 9px;
        padding: 6px 14px;
    }
    
    .ambassador-card:nth-child(10) {
        grid-column: auto;
    }
    
    .ambassador-card:hover {
        transform: translateY(-8px) scale(1.02);
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .ambassadors {
        padding: 50px 0;
    }
    
    .ambassadors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 8px;
    }
    
    .ambassador-card {
        border-radius: 10px;
    }
    
    .ambassador-card:hover {
        transform: translateY(-5px);
    }
}

/* Very Small Screens */
@media (max-width: 360px) {
    .ambassadors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0 5px;
    }
    
    .ambassador-card {
        border-radius: 8px;
    }
}


/* ===========================
   ULTRA SMOOTH FLIP CARD ANIMATION
   Premium Speaker Cards
   =========================== */

/* Speakers Grid */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    perspective: 2000px;
}

/* Flip Card Container */
.speaker-flip-card {
    height: 450px;
    cursor: pointer;
    perspective: 2000px;
    transform-style: preserve-3d;
}

/* Inner Container for Flip */
.speaker-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    border-radius: 20px;
}

/* Flip Animation */
.speaker-flip-card.flipped .speaker-flip-inner {
    transform: rotateY(180deg);
}

/* Front and Back Faces */
.speaker-flip-front,
.speaker-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Front Face */
.speaker-flip-front {
    background: #fff;
    z-index: 2;
    transform: rotateY(0deg);
}

.speaker-flip-front .speaker-image {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.speaker-flip-front .speaker-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.speaker-flip-card:hover .speaker-flip-front .speaker-image img {
    transform: scale(1.05);
}

/* Overlay with Click Hint */
.speaker-flip-front .speaker-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.speaker-flip-card:hover .speaker-flip-front .speaker-overlay {
    opacity: 1;
}

.click-hint {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 25px;
    background: rgba(235, 0, 40, 0.9);
    border-radius: 30px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(235, 0, 40, 0.5); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px 5px rgba(235, 0, 40, 0.3); }
}

/* Speaker Info on Front */
.speaker-flip-front .speaker-info {
    padding: 25px;
    text-align: center;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    color: #fff;
}

.speaker-flip-front .speaker-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.speaker-flip-front .speaker-info .speaker-title {
    font-size: 13px;
    color: #EB0028;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Back Face */
.speaker-flip-back {
    background: linear-gradient(135deg, #EB0028 0%, #8B0000 100%);
    transform: rotateY(180deg);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.speaker-flip-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.back-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.back-content h3 {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

.back-content h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

.back-bio {
    font-size: 13px;
    line-height: 1.7;
    margin: 25px 0;
    text-align: justify;
    opacity: 0.95;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 5px;
}

.back-bio::-webkit-scrollbar {
    width: 4px;
}

.back-bio::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.back-bio::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

.back-close {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.speaker-flip-card.flipped:hover .back-close {
    background: #fff;
    color: #EB0028;
    border-color: #fff;
}

/* Card Hover Effects */
.speaker-flip-card:not(.flipped):hover .speaker-flip-inner {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 30px 60px rgba(235, 0, 40, 0.2);
}

.speaker-flip-card.flipped:hover .speaker-flip-inner {
    transform: rotateY(180deg) translateY(-10px);
}

/* Staggered Animation */
.speaker-flip-card {
    animation: cardAppear 0.6s ease forwards;
    opacity: 0;
}

.speaker-flip-card:nth-child(1) { animation-delay: 0.1s; }
.speaker-flip-card:nth-child(2) { animation-delay: 0.2s; }
.speaker-flip-card:nth-child(3) { animation-delay: 0.3s; }
.speaker-flip-card:nth-child(4) { animation-delay: 0.4s; }
.speaker-flip-card:nth-child(5) { animation-delay: 0.5s; }
.speaker-flip-card:nth-child(6) { animation-delay: 0.6s; }
.speaker-flip-card:nth-child(7) { animation-delay: 0.7s; }
.speaker-flip-card:nth-child(8) { animation-delay: 0.8s; }

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(50px) rotateX(-10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

/* Glowing Border on Hover */
.speaker-flip-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #EB0028, #ff6b6b, #EB0028, #ff6b6b);
    background-size: 400% 400%;
    border-radius: 23px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: glowBorder 3s ease infinite;
}

.speaker-flip-card:hover::before {
    opacity: 1;
}

@keyframes glowBorder {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Responsive Flip Cards */
@media (max-width: 768px) {
    .speakers-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .speaker-flip-card {
        height: 420px;
    }
    
    .speaker-flip-front .speaker-image {
        height: 280px;
    }
    
    .back-bio {
        font-size: 12px;
        max-height: 220px;
    }
    
    .back-content h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .speaker-flip-card {
        height: 400px;
    }
    
    .speaker-flip-front .speaker-image {
        height: 260px;
    }
    
    .speaker-flip-back {
        padding: 20px;
    }
    
    .back-bio {
        font-size: 11px;
        max-height: 200px;
    }
}
