/* ICMME Conference Website - Custom Styles */

/* ========================================
   Countdown Timer
   ======================================== */
.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    min-width: 80px;
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
    display: block;
}

.countdown-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    margin-top: 0.5rem;
    opacity: 0.9;
}

/* ========================================
   Speaker Cards
   ======================================== */
.speaker-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.speaker-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.speaker-card .card-img-top {
    transition: opacity 0.3s ease;
}

.speaker-card:hover .card-img-top {
    opacity: 0.9;
}

/* ========================================
   Schedule Items
   ======================================== */
.schedule-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #667eea;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.schedule-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.schedule-time {
    font-weight: 600;
    color: #667eea;
    font-size: 1.1rem;
}

.schedule-location {
    color: #6c757d;
    font-size: 0.9rem;
}

/* ========================================
   Committee Members
   ======================================== */
.committee-section {
    margin-bottom: 3rem;
}

.committee-member {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.committee-member:last-child {
    border-bottom: none;
}

.committee-chairman {
    font-weight: 600;
    color: #667eea;
}

/* ========================================
   Important Dates Timeline
   ======================================== */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #667eea;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #667eea;
}

.timeline-date {
    font-weight: 600;
    color: #667eea;
    font-size: 1.1rem;
}

.timeline-event {
    font-size: 1rem;
    color: #333;
}

/* ========================================
   Contact Cards
   ======================================== */
.contact-card {
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%;
}

.contact-card:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ========================================
   Venue Section
   ======================================== */
.venue-map {
    border-radius: 10px;
    overflow: hidden;
    height: 400px;
}

.venue-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ========================================
   Modals
   ======================================== */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* ========================================
   Scholarship Section
   ======================================== */
#scholarship {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

/* ========================================
   Mathematics Themed Animation
   ======================================== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Math Particles */
/* Math Particles */
.math-particle {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Cover viewport but only pointer-events:none allows clicks through */
    width: auto;
    height: auto;
    /* Reset to auto because we position individual particles with left/top is handled by JS but we need base */
    /* Wait, JS sets left. We just need it to start at a predictable vertical place for translateY to work. */
    top: 0;
    /* left is set by JS */
    color: #4a69bd;
    /* Darker blue solid color for maximum visibility test */
    font-weight: bold;
    font-family: 'Times New Roman', serif;
    pointer-events: none;
    z-index: 9999;
    user-select: none;
    animation: float-particle linear infinite;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

@keyframes float-particle {
    0% {
        transform: translateY(110vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
        /* Full opacity */
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-20vh) rotate(360deg);
        opacity: 0;
    }
}

/* Math Hover Effects */
.math-hoverable {
    position: relative;
    overflow: hidden;
}

.math-hoverable::after {
    content: "∫";
    position: absolute;
    bottom: -30px;
    right: -20px;
    font-size: 8rem;
    /* Made bigger */
    color: rgba(102, 126, 234, 0.2);
    /* Increased opacity */
    font-family: 'Times New Roman', serif;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.math-hoverable:hover::after {
    bottom: -15px;
    right: -5px;
    opacity: 1;
    transform: rotate(-20deg);
}

.math-hoverable>* {
    position: relative;
    z-index: 1;
    /* Ensure content stays on top */
}

.math-surprise-icon {
    transition: transform 0.5s ease;
}

.math-surprise-icon:hover {
    transform: rotate(360deg) scale(1.2);
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    .countdown-item {
        min-width: 60px;
        padding: 0.5rem;
    }

    .countdown-number {
        font-size: 1.75rem;
    }

    .countdown-label {
        font-size: 0.75rem;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-item::before {
        left: -2rem;
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}