/* ===== CSS Variables ===== */
:root {
    --primary: #1a5f7a;
    --primary-dark: #0d3d4d;
    --secondary: #57c5b6;
    --accent: #159895;
    --gold: #c9a227;
    --light: #f8f9fa;
    --dark: #1a1a2e;
    --gradient-primary: linear-gradient(135deg, #1a5f7a 0%, #159895 100%);
    --gradient-gold: linear-gradient(135deg, #c9a227 0%, #daa520 100%);
}

/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; line-height: 1.6; color: #333; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; }

/* ===== Splash Screen ===== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}
.splash-screen img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: splashFadeIn 0.5s ease;
}
@keyframes splashFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    background: transparent;
}
.navbar.scrolled {
    background: rgba(26, 95, 122, 0.98);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-text {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
}
.logo-text .accent { color: var(--secondary); }
.logo-text .gold { color: var(--gold); }
.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}
.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}
.nav-menu a:hover { color: var(--secondary); }
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}
.nav-menu a:hover::after { width: 100%; }

/* Language Switcher */
.lang-switch {
    display: flex;
    gap: 8px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(255,255,255,0.3);
}
.lang-switch a {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.lang-switch a:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}
.lang-switch a.active {
    color: var(--dark);
    background: var(--gold);
}
.lang-switch a::after { display: none; }

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.92) 0%, rgba(13, 61, 77, 0.95) 100%),
                url('https://images.unsplash.com/photo-1596484552834-6a58f850e0a1?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}
.hero-badge {
    display: inline-block;
    background: var(--gradient-gold);
    color: var(--dark);
    padding: 8px 25px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.3;
}
.hero h2 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0.95;
}
.hero-info {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}
.hero-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.hero-info-item i {
    font-size: 2.2rem;
    color: var(--secondary);
}
.hero-info-item .info-text { text-align: left; }
.hero-info-item .info-label {
    font-size: 0.8rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hero-info-item .info-value {
    font-size: 1.2rem;
    font-weight: 600;
}
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
}
.btn-primary {
    background: var(--gradient-gold);
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.4);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(201, 162, 39, 0.5);
}
.btn-outline {
    border: 2px solid white;
    color: white;
    background: transparent;
}
.btn-outline:hover {
    background: white;
    color: var(--primary);
}

/* ===== Countdown ===== */
.countdown-section {
    background: var(--primary-dark);
    padding: 40px 0;
}
.countdown-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.countdown-item { text-align: center; color: white; }
.countdown-value {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: var(--secondary);
    line-height: 1;
}
.countdown-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    margin-top: 10px;
}

/* ===== Sections ===== */
section { padding: 80px 0; }
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-gold);
}
.section-header p {
    color: #666;
    font-size: 1rem;
    max-width: 600px;
    margin: 20px auto 0;
}

/* ===== About Section ===== */
.about { background: var(--light); }
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}
.about-image { position: relative; }
.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--secondary);
    border-radius: 10px;
    z-index: -1;
}
.about-text h3 {
    font-size: 1.6rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}
.about-text p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.8;
}
.about-signature {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}
.about-signature strong {
    display: block;
    font-size: 1rem;
    color: var(--primary-dark);
}
.about-signature span {
    color: #666;
    font-size: 0.9rem;
}

/* ===== Stats ===== */
.stats {
    background: var(--gradient-primary);
    padding: 50px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}
.stat-item { text-align: center; color: white; }
.stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--secondary);
}
.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}
.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Speakers ===== */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.speaker-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.speaker-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.speaker-image {
    position: relative;
    padding-top: 120%;
    overflow: hidden;
}
.speaker-image img {
    position: absolute;
    top: 0;
    left: 0;
    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;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}
.speaker-country {
    display: inline-block;
    background: var(--gold);
    color: var(--dark);
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
}
.speaker-info {
    padding: 15px;
    text-align: center;
}
.speaker-info h4 {
    color: var(--primary-dark);
    font-size: 1rem;
    margin-bottom: 5px;
}
.speaker-info p {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* ===== Topics ===== */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.topic-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
}
.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.topic-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}
.topic-icon i { font-size: 1.8rem; color: white; }
.topic-card h4 {
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-size: 1.1rem;
}
.topic-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== Program ===== */
.program { background: var(--light); }
.program-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.program-tab {
    padding: 12px 30px;
    border: 2px solid var(--primary);
    border-radius: 50px;
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 0.95rem;
}
.program-tab.active,
.program-tab:hover {
    background: var(--primary);
    color: white;
}
.program-content {
    background: white;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.program-day { display: none; }
.program-day.active { display: block; }
.program-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 25px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}
.program-item:last-child { border-bottom: none; }
.program-time {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
}
.program-details h4 {
    color: var(--primary-dark);
    margin-bottom: 5px;
    font-size: 1rem;
}
.program-details p { color: #666; font-size: 0.9rem; }
.program-break {
    background: var(--light);
    padding: 12px 20px;
    border-radius: 10px;
    margin: 8px 0;
}
.program-break .program-details h4 { color: var(--accent); }

/* ===== Registration ===== */
.registration {
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.95) 0%, rgba(13, 61, 77, 0.97) 100%),
                url('https://images.unsplash.com/photo-1596484552834-6a58f850e0a1?w=2000');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.registration .section-header h2,
.registration .section-header p { color: white; }
.registration .section-header h2::after { background: var(--gold); }
.registration-form {
    max-width: 550px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.registration-deadline {
    text-align: center;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 25px;
    padding: 10px;
    background: rgba(201, 162, 39, 0.1);
    border-radius: 10px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.form-group { margin-bottom: 20px; }
.form-group.full-width { grid-column: span 2; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.9rem;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: inherit;
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26, 95, 122, 0.1);
}
.registration-form .btn {
    width: 100%;
    justify-content: center;
    padding: 15px;
    font-size: 1rem;
}

/* ===== Venue ===== */
.venue-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.venue-info h3 {
    font-size: 1.6rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}
.venue-info p {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.7;
}
.venue-details { list-style: none; }
.venue-details li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}
.venue-details li:last-child { border-bottom: none; }
.venue-details i {
    width: 35px;
    height: 35px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.venue-map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.venue-map iframe {
    width: 100%;
    height: 350px;
    border: none;
}

/* ===== Partners ===== */
.partners { background: var(--light); }
.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.partner-logo {
    max-width: 150px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}
.partner-logo-box {
    width: 150px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.partner-logo-box span {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
}
.partner-logo-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(26, 95, 122, 0.3);
}

/* ===== Footer ===== */
footer {
    background: var(--dark);
    color: white;
    padding: 50px 0 25px;
}
.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}
.footer-about h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary);
}
.footer-about p {
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 0.9rem;
}
.footer-social { display: flex; gap: 12px; }
.footer-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: white;
    transition: all 0.3s ease;
    text-decoration: none;
}
.footer-social a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}
.footer-links h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1rem;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}
.footer-contact i {
    color: var(--secondary);
    margin-top: 3px;
}
.footer-bottom {
    text-align: center;
    padding-top: 25px;
    margin-top: 35px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 30px;
    padding-right: 30px;
}
.footer-bottom a {
    color: var(--secondary);
    text-decoration: none;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2rem; }
    .speakers-grid,
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .topics-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--primary-dark);
        flex-direction: column;
        justify-content: center;
        padding: 50px;
        transition: right 0.3s ease;
    }
    .nav-menu.active { right: 0; }
    .nav-menu a { font-size: 1.1rem; }
    .lang-switch {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 30px;
        padding-top: 30px;
        border-top: 1px solid rgba(255,255,255,0.2);
        justify-content: center;
    }
    .hero h1 { font-size: 1.6rem; }
    .hero h2 { font-size: 1rem; }
    .hero-info { gap: 30px; }
    .about-content,
    .venue-content { grid-template-columns: 1fr; }
    .about-image::before { display: none; }
    .speakers-grid,
    .topics-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .form-group.full-width { grid-column: span 1; }
    .registration-form { padding: 25px; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-social,
    .footer-contact li { justify-content: center; }
    .program-item { grid-template-columns: 1fr; gap: 8px; }
    .countdown-container { gap: 25px; }
    .countdown-value { font-size: 2.5rem; }
}
