* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light);
    color: var(--body-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Enhanced Background Pillars */
.background-pillars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.pillar {
    position: absolute;
    height: 100vh;
    width: 80px;
    opacity: 0.8;
    filter: drop-shadow(0 0 10px rgba(205, 158, 50, 0.2));
}

.pillar-1 {
    left: 5%;
    top: 0;
    animation: float 6s ease-in-out infinite, glow 4s ease-in-out infinite alternate;
}

.pillar-2 {
    right: 8%;
    top: 0;
    animation: float 8s ease-in-out infinite reverse, glow 5s ease-in-out infinite alternate;
    animation-delay: -1s;
}

.pillar-3 {
    left: 15%;
    top: 0;
    animation: float 7s ease-in-out infinite, pulse 3s ease-in-out infinite;
    animation-delay: -2s;
}

.pillar-4 {
    right: 20%;
    top: 0;
    animation: float 9s ease-in-out infinite reverse, shimmer 6s ease-in-out infinite;
    animation-delay: -3s;
}

/* Enhanced Animation Keyframes */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-15px) rotate(1deg);
    }

    50% {
        transform: translateY(-25px) rotate(0deg);
    }

    75% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

@keyframes glow {
    0% {
        filter: drop-shadow(0 0 5px rgba(205, 158, 50, 0.3));
        opacity: 0.6;
    }

    100% {
        filter: drop-shadow(0 0 20px rgba(205, 158, 50, 0.6));
        opacity: 0.9;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1) translateY(0px);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.05) translateY(-20px);
        opacity: 0.9;
    }
}

@keyframes shimmer {
    0% {
        filter: brightness(1) drop-shadow(0 0 5px rgba(53, 49, 47, 0.3));
    }

    50% {
        filter: brightness(1.2) drop-shadow(0 0 15px rgba(205, 158, 50, 0.4));
    }

    100% {
        filter: brightness(1) drop-shadow(0 0 5px rgba(53, 49, 47, 0.3));
    }
}

/* SVG Element Animations */
.pillar svg rect {
    animation: rectPulse 4s ease-in-out infinite;
}

.pillar svg circle {
    animation: circleFloat 3s ease-in-out infinite alternate;
}

.pillar svg polygon {
    animation: polygonSpin 5s linear infinite;
}

@keyframes rectPulse {

    0%,
    100% {
        fill-opacity: 0.1;
    }

    50% {
        fill-opacity: 0.3;
    }
}

@keyframes circleFloat {
    0% {
        transform: translateY(0px);
        fill-opacity: 0.15;
    }

    100% {
        transform: translateY(-5px);
        fill-opacity: 0.4;
    }
}

@keyframes polygonSpin {
    0% {
        transform: rotate(0deg);
        fill-opacity: 0.2;
    }

    50% {
        fill-opacity: 0.5;
    }

    100% {
        transform: rotate(360deg);
        fill-opacity: 0.2;
    }
}

/* Events Section */
.events-section {
    padding: 80px 0;
    background-image: url("../pages/Untitled\ design\ -\ 2025-07-09T120313.362.png");
    /* background-color: #F5F4EC; */
    position: relative;
    min-height: 100vh;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-title .subtitle {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    position: relative;
}

.section-title .subtitle::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: subtitleGlow 2s ease-in-out infinite alternate;
}

@keyframes subtitleGlow {
    0% {
        box-shadow: 0 0 5px rgba(205, 138, 50, 0.3);
    }

    100% {
        box-shadow: 0 0 15px rgba(205, 115, 50, 0.8);
    }
}

.section-title h2 {
    color: var(--body-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.section-title p {
    color: #debc83;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Enhanced Event Cards */
.event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    border: 2px solid transparent;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--body-color));
    border-radius: 15px;
    padding: 2px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.event-card:hover::before {
    opacity: 1;
}

.event-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(205, 143, 50, 0.25);
    border-color: var(--primary-color);
}

.event-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.1);
}

.event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color), rgba(53, 49, 47, 0.8));
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-card:hover .event-overlay {
    opacity: 1;
    backdrop-filter: blur(2px);
}

.overlay-icon {
    color: white;
    font-size: 2.5rem;
    animation: iconPulse 2s infinite, iconFloat 3s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

.event-content {
    padding: 25px;
    background: linear-gradient(135deg, white 0%, #fefcf7 100%);
}

.event-date {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.event-date::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    animation: dateUnderline 2s ease-in-out infinite alternate;
}

@keyframes dateUnderline {
    0% {
        width: 20px;
        opacity: 0.6;
    }

    100% {
        width: 40px;
        opacity: 1;
    }
}

.event-title {
    color: var(--body-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.event-card:hover .event-title {
    color: var(--primary-color);
}

.event-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Full Screen Gallery */
.fullscreen-gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

.fullscreen-gallery.active {
    display: flex;
    opacity: 1;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 1px 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    backdrop-filter: blur(10px);
}

.gallery-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.gallery-main {
    max-height: 90vh;
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1px;
}

.gallery-main img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.gallery-main img:hover {
    transform: scale(1.02);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.gallery-nav:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(205, 156, 50, 0.8);
}

.gallery-nav.prev {
    left: 40px;
}

.gallery-nav.next {
    right: 40px;
}

.gallery-footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px 40px;
    color: white;
    backdrop-filter: blur(10px);
}

.gallery-info {
    text-align: center;
    margin-bottom: 20px;
}

.gallery-counter {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(205, 104, 50, 0.5);
}

.gallery-description {
    color: #ccc;
    font-size: 1rem;
}

.gallery-thumbnails {
    display: flex;
    gap: 15px;
    justify-content: center;
    overflow-x: auto;
    padding: 10px 0;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    flex-shrink: 0;
}

.thumbnail.active,
.thumbnail:hover {
    opacity: 1;
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(205, 161, 50, 0.6);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
    }

    .pillar {
        width: 60px;
    }

    .pillar-1 {
        left: 2%;
    }

    .pillar-2 {
        right: 2%;
    }

    .pillar-3 {
        left: 8%;
    }

    .pillar-4 {
        right: 8%;
    }

    .gallery-header {
        padding: 15px 20px;
    }

    .gallery-header h3 {
        font-size: 1.2rem;
    }

    .gallery-nav {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .gallery-nav.prev {
        left: 20px;
    }

    .gallery-nav.next {
        right: 20px;
    }

    .gallery-footer {
        padding: 15px 20px;
    }

    .gallery-main img {
        max-width: 95%;
        max-height: 85%;
    }

    .thumbnail {
        width: 60px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .events-section {
        padding: 60px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .event-content {
        padding: 20px;
    }

    .gallery-thumbnails {
        gap: 10px;
    }

    .thumbnail {
        width: 50px;
        height: 38px;
    }
}

/* Animation for gallery opening */
.fullscreen-gallery.active .gallery-container {
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.hero-section-imx img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .hero-section-imx img {
        height: 55vh;

    }
}