.dates {
    position: relative;
    min-height: 100vh;
    padding: 100px 0;
    overflow: hidden;
}

.dates::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.dates-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.dates .section-title {
    text-align: center;
    color: white;
    font-size: 3rem;
    margin-bottom: 60px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    position: relative;
}

.dates .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b88, #ff8e6b);
    border-radius: 2px;
}

/* Timeline Section */
.camp-timeline {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 60px 0;
    position: relative;
}

.timeline-path {
    position: absolute;
    top: 50%;
    left: 25%;
    right: 25%;
    height: 4px;
    background: linear-gradient(90deg, #ff6b88, #ff8e6b);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(255, 107, 136, 0.5);
    z-index: 1;
}

.timeline-path::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 0;
    right: 0;
    height: 16px;
    background: linear-gradient(90deg, rgba(255, 107, 136, 0.3), rgba(255, 142, 107, 0.3));
    border-radius: 8px;
    filter: blur(4px);
}

.date-marker {
    position: relative;
    z-index: 2;
    margin: 0 40px;
}

.date-card {
    width: 120px;
    height: 140px;
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.date-card:hover {
    transform: rotateY(180deg) scale(1.1);
}

.date-front,
.date-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.date-front {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    color: #333;
    border: 3px solid #ff6b88;
}

.date-back {
    background: linear-gradient(145deg, #ff6b88, #ff8e6b);
    color: white;
    transform: rotateY(180deg);
}

.date-front .month {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ff6b88;
}

.date-front .day {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin: 5px 0;
}

.date-front .label {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.date-back h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.date-back p {
    font-size: 0.9rem;
    opacity: 0.9;
    text-align: center;
}

/* Countdown Section */
.countdown-section {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 40px;
    margin-top: 60px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.countdown-section h3 {
    text-align: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.countdown-box {
    background: linear-gradient(145deg, rgba(255,255,255,0.25), rgba(255,255,255,0.15));
    border-radius: 20px;
    padding: 25px 15px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.countdown-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.countdown-box:hover::before {
    left: 100%;
}

.countdown-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffeaa7;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.countdown-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.camp-status {
    background: rgba(0, 145, 234, 0.92);
    color: #fff;
    font-weight: bold;
    font-size: 1.35rem;
    text-align: center;
    padding: 22px 0 18px 0;
    border-radius: 30px;
    margin: 30px auto 0 auto;
    max-width: 600px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: background 0.3s;
    animation: campStatusPulse 2s infinite alternate;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes campStatusPulse {
    0% { transform: scale(1); box-shadow: 0 4px 24px rgba(0,0,0,0.08);}
    100% { transform: scale(1.04); box-shadow: 0 8px 32px rgba(0,145,234,0.18);}
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .dates {
        padding: 60px 0;
    }
    
    .dates-container {
        padding: 0 15px;
    }
    
    .dates .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    
    .camp-timeline {
        flex-direction: column;
        gap: 40px;
        margin: 40px 0;
    }
    
    .timeline-path {
        display: none;
    }
    
    .date-marker {
        margin: 0;
    }
    
    .date-card {
        width: 140px;
        height: 160px;
    }
    
    .date-front .day {
        font-size: 3rem;
    }
    
    .date-front .month {
        font-size: 1.4rem;
    }
    
    .countdown-section {
        padding: 30px 20px;
        margin-top: 40px;
        border-radius: 20px;
    }
    
    .countdown-section h3 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .countdown-box {
        padding: 20px 10px;
        border-radius: 15px;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .countdown-label {
        font-size: 0.8rem;
    }
    
    .camp-status {
        font-size: 1rem;
        padding: 12px 25px;
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .dates .section-title {
        font-size: 1.8rem;
    }
    
    .date-card {
        width: 120px;
        height: 140px;
    }
    
    .date-front .day {
        font-size: 2.5rem;
    }
    
    .date-front .month {
        font-size: 1.2rem;
    }
    
    .countdown-section {
        padding: 25px 15px;
    }
    
    .countdown-section h3 {
        font-size: 1.4rem;
    }
    
    .countdown-box {
        padding: 15px 8px;
    }
    
    .countdown-number {
        font-size: 1.8rem;
    }
    
    .camp-status {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}

/* Animation for cards */
.date-card {
    animation: float 6s ease-in-out infinite;
}

.date-marker:nth-child(odd) .date-card {
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Loading animation for countdown */
.countdown-number {
    animation: countPulse 1s ease-in-out infinite alternate;
}

@keyframes countPulse {
    from { opacity: 0.8; }
    to { opacity: 1; }
}
