:root {
    --primary: #d32f2f;
    --secondary: #c62828;
    --accent: #ff5252;
    --dark: #1a1a2e;
    --light: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

/* Language Switcher */
.lang-switcher {
    position: fixed;
    top: 120px;
    right: 20px;
    z-index: 1000;
    background: white;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-width: calc(100vw - 40px);
}

.lang-btn {
    border: none;
    background: white;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    color: #666;
}

.lang-btn.active {
    background: var(--primary);
    color: white;
}

.lang-btn:hover:not(.active) {
    background: var(--light);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="white" opacity="0.03"/></svg>') repeat;
    animation: slide 30s linear infinite;
}

@keyframes slide {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(100px, 100px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.timer-display {
    font-size: 5rem;
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary) !important;
    font-size: 1.4rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary) !important;
}

/* Buttons */
.btn-primary {
    background: var(--accent);
    border: none;
    padding: 14px 36px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 82, 82, 0.3);
}

.btn-primary:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 82, 82, 0.4);
}

/* Cards */
.info-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    background: white;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin: 0 auto 1.5rem;
}

.criteria-box {
    background: white;
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.criteria-box:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.criteria-number {
    display: inline-flex;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-item {
    padding: 1.5rem 0 1.5rem 3rem;
    position: relative;
    border-left: 3px solid var(--primary);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 2rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary);
}

.timeline-item.highlight::before {
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--accent);
    animation: pulse-timeline 2s infinite;
}

@keyframes pulse-timeline {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

/* Alert Box */
.alert-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 15px;
    padding: 2rem;
}

/* Section Styling */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-subtitle {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: white;
}

/* FAQ Accordion */
.accordion-button:not(.collapsed) {
    background-color: var(--primary);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary);
}

/* Conference Logo */
.conference-logo {
    max-height: 60px;
    width: auto;
}

/* Registration Modal */
.registration-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    margin: 0 auto;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.countdown-badge {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.modal-content {
    border-radius: 20px;
    overflow: hidden;
}

/* Airtable Form Styling */
.modal-dialog.form-active {
    max-width: 800px;
}

.airtable-form-container {
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.airtable-embed {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
    }

    .section-title {
        font-size: 2rem;
    }

    .timer-display {
        font-size: 3rem;
    }

    .lang-switcher {
        top: 110px;
        right: 15px;
        transform: translateX(0);
        max-width: calc(100vw - 30px);
        width: auto;
        min-width: 120px;
    }
    
    .lang-btn {
        padding: 8px 16px;
        font-size: 14px;
        width: 60px;
        text-align: center;
    }
}