* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0b0b0b;
    min-height: 100vh;
    color: #333;
}

.container {
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 120vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0b0b0b;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

header {
    text-align: center;
    padding: 20px;
    color: white;
    flex-shrink: 0;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.month-calendar {
    margin: 2vh auto;
    width: 85vw;
    margin-bottom: 25vh;
    display: flex;
    align-items: center;
    gap: 30px;
    transition: all 0.6s ease;
    opacity: 0;
    transform: translateY(50px);
}

.month-calendar.reveal {
    opacity: 1;
    transform: translateY(0);
}

.month-calendar.reveal:hover {
    transform: translateY(-5px);
}

.month-calendar.left-layout {
    flex-direction: row-reverse;
}

.month-calendar.right-layout {
    flex-direction: row;
}

.month-header {
    background: transparent;
    flex-shrink: 0;
    padding: 0;
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.month-image {
    max-height: 250px;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.1);
    transition: all 0.3s ease;
    transform-origin: center;
}

.left-layout .month-image {
    transform: rotate(90deg);
}

.right-layout .month-image {
    transform: rotate(-90deg);
}

.left-layout .month-image:hover {
    filter: brightness(1.3) contrast(1.2);
    transform: rotate(90deg) scale(1.02);
}

.right-layout .month-image:hover {
    filter: brightness(1.3) contrast(1.2);
    transform: rotate(-90deg) scale(1.02);
}

.calendar-container {
    background: #0b0b0b;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(255,255,255,0.1);
    overflow: visible;
    flex: 1;
    height: 100%;
    min-height: 100%;
    width: calc(100% - 180px);
    display: flex;
    flex-direction: column;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #0b0b0b;
    flex: 1;
    min-height: 100;
}

.day-header {
    background: #333;
    padding: 0;
    text-align: center;
    font-weight: bold;
    color: white;
    border-bottom: 2px solid white;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.day-cell {
    aspect-ratio: 1;
    padding: 12px;
    border: 1px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #0b0b0b;
}

.day-cell:hover {
    background: #222;
    transform: scale(1.02);
}

.day-number {
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
}

.day-cell.other-month {
    background: #111;
}

.day-cell.other-month .day-number {
    color: #555;
}

.day-cell.other-month:hover {
    background: #333;
}

.day-cell.has-event:not(.has-cover-image) {
    background: linear-gradient(135deg, #FFE082 0%, #FFB74D 100%);
}

.day-cell.has-event:not(.has-cover-image) .day-number {
    color: #333;
}

.day-cell.has-event:not(.has-cover-image):hover {
    background: linear-gradient(135deg, #FFD54F 0%, #FF9800 100%);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 183, 77, 0.4);
}

.day-cell.has-cover-image {
    position: relative;
    overflow: visible;
    padding: 0;
    z-index: 1;
}

.day-cell.has-cover-image:hover {
    z-index: 9999;
}

.cover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.3s ease;
}

.day-cell.has-cover-image:hover .cover-image {
    transform: scale(1.5);
}

.day-cell.has-cover-image .day-number {
    display: none;
}

.day-cell.has-cover-image .event-indicator {
    display: none;
}

.event-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #ff4444;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11,11,11,0.7);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: slideIn 0.3s ease;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 1001;
    cursor: pointer;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close:hover,
.close:focus {
    background: rgba(255,255,255,1);
    color: #000;
    transform: scale(1.1);
}

#modal-body {
    display: flex;
    flex-direction: column;
}

#modal-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    margin: 20px auto 0 auto;
    display: block;
}

#modal-text {
    padding: 40px;
}

#modal-title {
    color: #333;
    margin-bottom: 15px;
    font-size: 2.2rem;
    text-align: center;
}

#modal-date {
    color: #666;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
}

#modal-description {
    color: #555;
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: center;
}

/* Footer Styles */
.footer {
    background: #0b0b0b;
    padding: 40px 20px;
    text-align: center;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.wbm-logo {
    height: auto;
    width: 250px;
    filter: brightness(1.1);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-to-top svg {
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0;
    }
    
    header {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .month-calendar {
        width: 95vw;
        height: 88vh;
        margin: 5vh auto;
        gap: 20px;
        flex-direction: column !important;
    }
    
    .month-header {
        min-width: auto;
        height: auto;
        padding: 20px 0;
        width: 100%;
    }
    
    .month-image {
        width: auto;
        height: 80px;
        max-height: 80px;
        transform: rotate(0deg) !important;
    }
    
    .calendar-container {
        max-width: none;
        width: 100%;
    }
    
    .day-header {
        padding: 15px 5px;
        font-size: 1rem;
    }
    
    .day-cell {
        aspect-ratio: 1;
        padding: 8px;
    }
    
    .day-number {
        font-size: 1.2rem;
    }
    
    .day-cell.has-cover-image .day-number {
        position: absolute;
        top: 4px;
        right: 4px;
        font-size: 1rem;
        padding: 3px 6px;
        font-weight: 700;
        line-height: 1;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 5px;
        backdrop-filter: blur(3px);
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
        display: none;
    }
    
    .event-indicator {
        width: 10px;
        height: 10px;
        bottom: 8px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    #modal-text {
        padding: 30px 20px;
    }
    
    #modal-title {
        font-size: 1.8rem;
    }
    
    #modal-date {
        font-size: 1.1rem;
    }
    
    #modal-description {
        font-size: 1rem;
    }
    
    #modal-image {
        max-height: 200px;
    }
    
    .hero-image {
        object-fit: contain;
        object-position: top;
    }

    .footer {
        padding: 30px 15px;
        margin-top: 30px;
    }
    
    .wbm-logo {
        width: 120px;
        height: auto;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .calendar-grid {
        flex: 0 1 auto;
    }

    .hero-section {
        height: 35vh;
        margin-bottom: -40px;
        align-items: flex-start;
    }

    .month-calendar {
        width: 90vw;
        height: auto;
        margin: 1vh auto;
        margin-bottom: 20%;
        gap: 20px;
    }

    .month-header {
        width: 120px;
    }

    .month-image {
        max-height: 200px;
    }

    .day-number {
        font-size: 1.3rem;
    }

    .wbm-logo {
        width: 150px;
        height: auto;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-section {
        height: 75vh;
    }

    .hero-image {
        object-fit: contain;
        object-position: top;
    }
    
    #modal-image {
        width: 180px;
        height: 180px;
    }
} 