/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #333;
    direction: rtl;
    text-align: right;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #e74c3c;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    right: 0;
    background: #e74c3c;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.register-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white !important;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
    animation: glow 1s ease infinite;
}

.register-btn::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/finearts03.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.8), rgba(52, 73, 94, 0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #f39c12;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-date {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-location {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.8s both;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 1s both;
    box-shadow: 0 5px 20px rgba(243, 156, 18, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.6);
    animation: pulse 0.6s ease;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

/* Simple Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 5px 20px rgba(231, 76, 60, 0.4);
    }
    50% {
        box-shadow: 0 5px 30px rgba(231, 76, 60, 0.6);
    }
    100% {
        box-shadow: 0 5px 20px rgba(231, 76, 60, 0.4);
    }
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 0;
    height: 4px;
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: expandLine 0.8s ease forwards 0.5s;
}

@keyframes expandLine {
    to {
        width: 80px;
    }
}

/* About Section */
.about {
    background: #f8f9fa;
}

.welcome-section {
    margin-bottom: 60px;
}

.welcome-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.welcome-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

.signature {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.signature h4 {
    color: #e74c3c;
    margin-bottom: 10px;
}

.welcome-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.welcome-image img:hover {
    transform: scale(1.05);
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.overview-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Simple entrance animation for cards */
.overview-card {
    animation: fadeIn 0.6s ease forwards;
}

.overview-card:nth-child(1) { animation-delay: 0.1s; }
.overview-card:nth-child(2) { animation-delay: 0.2s; }
.overview-card:nth-child(3) { animation-delay: 0.3s; }

.card-icon {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.card-icon:hover {
    transform: scale(1.1) rotate(5deg);
    color: #f39c12;
}

.overview-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.overview-card p {
    color: #666;
    line-height: 1.6;
}

/* Objectives */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.objective-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.objective-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Simple staggered animation for objectives */
.objective-card {
    animation: slideInRight 0.5s ease forwards;
}

.objective-card:nth-child(1) { animation-delay: 0.1s; }
.objective-card:nth-child(2) { animation-delay: 0.2s; }
.objective-card:nth-child(3) { animation-delay: 0.3s; }
.objective-card:nth-child(4) { animation-delay: 0.4s; }

.objective-icon {
    font-size: 2rem;
    color: #f39c12;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.objective-card:hover .objective-icon {
    transform: scale(1.2);
    color: #e74c3c;
}

.objective-card p {
    color: #555;
    line-height: 1.6;
}

/* Themes */
.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.theme-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    transition: opacity 0.3s ease;
    opacity: 0;
}

.theme-card:hover::before {
    opacity: 1;
}

.theme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

/* Gentle entrance animation for theme cards */
.theme-card {
    animation: fadeInUp 0.6s ease forwards;
}

.theme-card:nth-child(1) { animation-delay: 0.1s; }
.theme-card:nth-child(2) { animation-delay: 0.2s; }
.theme-card:nth-child(3) { animation-delay: 0.3s; }
.theme-card:nth-child(4) { animation-delay: 0.4s; }
.theme-card:nth-child(5) { animation-delay: 0.5s; }
.theme-card:nth-child(6) { animation-delay: 0.6s; }

.theme-number {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 15px;
    opacity: 0.8;
}

.theme-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Committees */
.committees {
    background: #f8f9fa;
}

.committees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.committee-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.committee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Simple slide animation for committee cards */
.committee-card {
    animation: slideInLeft 0.5s ease forwards;
}

.committee-card:nth-child(1) { animation-delay: 0.1s; }
.committee-card:nth-child(2) { animation-delay: 0.2s; }
.committee-card:nth-child(3) { animation-delay: 0.3s; }
.committee-card:nth-child(4) { animation-delay: 0.4s; }

.committee-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
}

.committee-list {
    list-style: none;
}

.committee-list li {
    padding: 8px 0;
    color: #555;
    border-bottom: 1px solid #eee;
    transition: color 0.3s ease;
}

.committee-list li:hover {
    color: #e74c3c;
}

.committee-list li:last-child {
    border-bottom: none;
}

/* Participation */
.participation {
    background: white;
}

.dates-section,
.conditions-section,
.fees-section {
    margin-bottom: 60px;
}

.dates-section h3,
.conditions-section h3,
.fees-section h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-right: 4px solid #e74c3c;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Timeline entrance animation */
.timeline-item {
    animation: slideInRight 0.5s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }
.timeline-item:nth-child(7) { animation-delay: 0.7s; }

.timeline-item.highlight {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-right: 4px solid #f39c12;
}

.timeline-date {
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 120px;
    color: #e74c3c;
}

.timeline-item.highlight .timeline-date {
    color: #f39c12;
}

.timeline-content {
    flex: 1;
    font-size: 1.1rem;
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.condition-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.condition-card:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

/* Condition cards entrance animation */
.condition-card {
    animation: fadeIn 0.5s ease forwards;
}

.condition-card:nth-child(1) { animation-delay: 0.1s; }
.condition-card:nth-child(2) { animation-delay: 0.2s; }
.condition-card:nth-child(3) { animation-delay: 0.3s; }
.condition-card:nth-child(4) { animation-delay: 0.4s; }
.condition-card:nth-child(5) { animation-delay: 0.5s; }
.condition-card:nth-child(6) { animation-delay: 0.6s; }
.condition-card:nth-child(7) { animation-delay: 0.7s; }
.condition-card:nth-child(8) { animation-delay: 0.8s; }
.condition-card:nth-child(9) { animation-delay: 0.9s; }
.condition-card:nth-child(10) { animation-delay: 1.0s; }
.condition-card:nth-child(11) { animation-delay: 1.1s; }
.condition-card:nth-child(12) { animation-delay: 1.2s; }
.condition-card:nth-child(13) { animation-delay: 1.3s; }
.condition-card:nth-child(14) { animation-delay: 1.4s; }

.condition-icon {
    font-size: 2rem;
    color: #27ae60;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.condition-card:hover .condition-icon {
    transform: scale(1.1) rotate(-5deg);
    color: #2ecc71;
}

.condition-card p {
    color: #555;
    line-height: 1.6;
}

/* Additional Information Section */
.additional-info {
    margin-top: 40px;
}

.info-card {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-align: center;
}

.info-card h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    padding-right: 25px;
}

.info-card li:last-child {
    border-bottom: none;
}

.info-card li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 12px;
    color: #f39c12;
}

.info-card a {
    color: #f39c12;
    text-decoration: none;
    font-weight: 600;
}

.info-card a:hover {
    color: #e67e22;
    text-decoration: underline;
}

.fees-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.fee-amount {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.fees-card p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.payment-methods h4 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.payment-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border-top: 4px solid #e74c3c;
}

.payment-card h5 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.payment-card p {
    margin-bottom: 8px;
    color: #555;
    font-size: 0.9rem;
}

/* Contact */
.contact {
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.contact-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Contact cards entrance animation */
.contact-card {
    animation: fadeInUp 0.6s ease forwards;
}

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }
.contact-card:nth-child(4) { animation-delay: 0.4s; }

.contact-icon {
    font-size: 2.5rem;
    color: #e74c3c;
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.contact-card p,
.contact-card a {
    color: #666;
    margin-bottom: 5px;
    text-decoration: none;
}

.contact-card a:hover {
    color: #e74c3c;
}

.contact-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-logo img {
    height: 50px;
    width: auto;
}

.footer-text p {
    margin: 0;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu a {
        padding: 15px;
        display: block;
        border-bottom: 1px solid #eee;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .welcome-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* Fix for about section mobile display */
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .objectives-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .themes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .committees-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .conditions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .payment-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .themes-grid,
    .committees-grid,
    .objectives-grid,
    .conditions-grid,
    .overview-grid,
    .payment-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .timeline-date {
        min-width: auto;
    }
    
    /* Ensure all cards display properly on mobile */
    .overview-card,
    .objective-card,
    .theme-card,
    .committee-card,
    .condition-card,
    .contact-card {
        margin-bottom: 15px;
    }
    
    /* Fix for section visibility */
    section {
        padding: 60px 0;
        min-height: auto;
    }
    
    .about {
        background: #f8f9fa !important;
    }
    
    /* Ensure text is readable on mobile */
    .welcome-text p,
    .overview-card p,
    .condition-card p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .fee-amount {
        font-size: 2.5rem;
    }
    
    .condition-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .condition-icon {
        font-size: 1.5rem;
    }
    
    .dates-section h3,
    .conditions-section h3,
    .fees-section h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .theme-card,
    .committee-card,
    .overview-card,
    .condition-card {
        padding: 15px;
    }
    
    .container {
        padding: 0 10px;
    }
}

/* Extra small devices (320px and below) */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .container {
        padding: 0 8px;
    }
    
    .theme-card,
    .committee-card,
    .overview-card,
    .condition-card,
    .contact-card {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .timeline-item {
        padding: 15px;
    }
    
    .timeline-date {
        font-size: 0.9rem;
    }
    
    .condition-icon,
    .objective-icon,
    .card-icon {
        font-size: 1.2rem;
    }
    
    /* Disable problematic animations on very small screens */
    * {
        animation-duration: 0s !important;
        transition-duration: 0.1s !important;
    }
}

/* Smooth scrolling enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Accessibility improvements */
.nav-link:focus,
.cta-button:focus,
.register-btn:focus {
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}

/* Mobile hamburger animation */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Ensure mobile sections are visible */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .about,
    .committees,
    .participation,
    .contact {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Fix for potential z-index issues */
    .nav-menu {
        z-index: 999;
    }
    
    .navbar {
        z-index: 1000;
    }
    
    /* Disable complex animations on mobile to prevent white screen */
    section {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    
    .overview-card,
    .objective-card,
    .theme-card,
    .committee-card,
    .condition-card,
    .contact-card,
    .timeline-item {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    
    /* Disable all entrance animations on mobile */
    * {
        animation-delay: 0s !important;
    }
    
    /* Keep simple hover effects but reduce intensity */
    .overview-card:hover,
    .objective-card:hover,
    .theme-card:hover,
    .committee-card:hover,
    .condition-card:hover,
    .contact-card:hover {
        transform: translateY(-2px) !important;
    }
    
    /* Disable icon animations on mobile */
    .card-icon:hover,
    .objective-icon:hover,
    .condition-icon:hover {
        transform: none !important;
    }
    
    /* Simplify hero animations on mobile */
    .hero-content {
        animation: none !important;
    }
    
    .hero-title,
    .hero-subtitle,
    .hero-date,
    .hero-location,
    .cta-button {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hamburger,
    .scroll-indicator {
        display: none;
    }
    
    .hero {
        height: auto;
        padding: 50px 0;
        background: none;
        color: #333;
    }
    
    .hero-overlay {
        display: none;
    }
    
    section {
        padding: 30px 0;
    }
}