:root {
    --primary-color: #4a90e2;
    --secondary-color: #f39c12;
    --accent-color: #e74c3c;
    --background-color: #f4f4f4;
    --text-color: #333;
    --light-text-color: #666;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    height: 100%;
    line-height: 1.6;
    min-height: 100vh;
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
    padding: 0 1rem;
}

/* Navbar Css */

.navbar {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
    height: 70px;
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    width: 50px;
    height: auto;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-items {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a {
    text-decoration: none;
    position: relative;
    color: #000;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after {
    width: 100%; /* Animate width to slide the underline */
}

.search-container {
    display: flex;
    align-items: center;
}

.search-input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 10px;
}

.search-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #686969;
}

/* Theme Switcher Css */

.theme-switcher {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 1001;
}

#theme-toggle {
    background-color: var(--primary-color);
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    margin-left: 1rem;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#theme-toggle:hover {
    background-color: #686969;
}

#theme-toggle svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.theme-options {
    position: absolute;
    top: 120%;
    right: 0;
    background-color: #fff;
    border-radius: 20px;
    padding: 10px;
    display: flex;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.theme-options.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.theme-btn:hover {
    transform: scale(1.2);
}

.theme-btn[data-color="red"] {
    background-color: #e74c3c;
}

.theme-btn[data-color="blue"] {
    background-color: #3498db;
}

.theme-btn[data-color="yellow"] {
    background-color: #f1c40f;
}

.theme-btn[data-color="green"] {
    background-color: #2ecc71;
}

.theme-btn[data-color="purple"] {
    background-color: #9b59b6;
}

/* Theme-specific colors */

[data-theme="red"] {
    --primary-color: #e74c3c;
    --secondary-color: #c0392b;
    --accent-color: #d35400;
}

[data-theme="blue"] {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --accent-color: #2c3e50;
}

[data-theme="yellow"] {
    --primary-color: #f1c40f;
    --secondary-color: #f39c12;
    --accent-color: #d35400;
}

[data-theme="green"] {
    --primary-color: #2ecc71;
    --secondary-color: #27ae60;
    --accent-color: #16a085;
}

[data-theme="purple"] {
    --primary-color: #9b59b6;
    --secondary-color: #8e44ad;
    --accent-color: #2c3e50;
}

/* Hero Section Css */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 1000px;
    width: 90%;
    padding: 1rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.highlight-text {
    font-size: clamp(6rem, 12vw, 10rem);
    font-weight: 800;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto;
    white-space: nowrap;
    overflow: visible;
    text-align: center;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
    animation: changeBackground 10s infinite;
    position: relative;
    z-index: 1;
    padding: 0;
    width: 100%;
    display: block;
}

@keyframes changeBackground {

    0%,
    16.66% {
        background-image: url('assets/images/text-backgrounds/image1.png');
    }

    16.67%,
    33.33% {
        background-image: url('assets/images/text-backgrounds/image2.png');
    }

    33.34%,
    49.99% {
        background-image: url('assets/images/text-backgrounds/image3.png');
    }

    50%,
    66.66% {
        background-image: url('assets/images/text-backgrounds/image4.png');
    }

    66.67%,
    83.33% {
        background-image: url('assets/images/text-backgrounds/image5.png');
    }

    83.34%,
    100% {
        background-image: url('assets/images/text-backgrounds/image6.png');
    }
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 600;
    text-shadow: none;
    line-height: 1.3;
    margin-top: 40px;
    margin-bottom: 40px;
}

.explore-button {
    display: inline-block;
    color: #fff;
    padding: 1rem 2.5rem;
    font-weight: 600;
    color: #fff;
    background-color: var(--primary-color);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.explore-button:hover {
    background-color: #686969;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.to-top {
    background: white;
    position: fixed;
    bottom: 16px;
    right: 32px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #1f1f1f;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: all .4s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.to-top:hover {
    background: #f0f0f0;
}

.to-top.active {
    bottom: 32px;
    pointer-events: auto;
    opacity: 1;
}

/* Events Section Css */

.events {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 1rem auto 0;
}

.event-grid {
    display: grid;
    gap: 2rem;
    padding: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.event-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    border: 2px solid #c3c6ce;
    transition: 0.5s ease-out;
    position: relative;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 4px 18px 0 rgba(0, 0, 0, 0.25);
}

.event-image {
    padding: 1rem;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.event-details {
    padding: 1.5rem;
}

.event-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.event-date,
.event-location {
    font-size: 0.9rem;
    color: var(--light-text-color);
    margin-bottom: 0.5rem;
}

.event-card a {
    text-decoration: none;
    color: inherit;
}

.event-time,
.past-event-time {
    font-size: 0.9rem;
    color: #555;
    margin: 0.5rem 0;
}

.event-description {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.register-button {
    width: 60%;
    border-radius: 1rem;
    border: none;
    color: #fff !important;
    background-color: var(--primary-color);
    font-size: 1rem;
    padding: 0.5rem 1rem;
    position: relative;
    left: 30%;
    bottom: 0;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.register-button:hover {
    background-color: #686969;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
    transform: scale(1.4);
}

/* Footer Css */

footer {
    text-align: center;
    padding: 15px 20px;
    background-color: #333;
    color: white;
    font-size: 1em;
}

/* Dark mode Css */

body.dark-mode {
    --background-color: #2c2c2c;
    --text-color: #f4f4f4;
    --light-text-color: #bbbbbb;
}

body.dark-mode .navbar {
    background-color: rgba(24, 24, 24, 0.9);
}

/* Dark mode toggle button Css */

#dark-mode-toggle {
    background-color: var(--primary-color);
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#dark-mode-toggle:hover {
    background-color: #686969;
}

#dark-mode-toggle i {
    color: #fff;
    font-size: 20px;
}

.dark-mode .navbar {
    background-color: #000000 !important;
    transition: background-color 0.3s ease;
}

body.dark-mode .nav-links a {
    color: #f4f4f4;
}

body.dark-mode .nav-links a:hover {
    color: var(--primary-color);
}

body.dark-mode .event-card {
    background-color: #000000;
    color: #f4f4f4;
}

body.dark-mode .event-date,
.event-time {
    color: var(--light-text-color);
}

/* Media queries for responsiveness */

@media (max-width: 1024px) {
    .navbar-container {
        padding: 0.8rem 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-items {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
    }

    .nav-items.active {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid #eee;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .theme-options {
        right: 50%;
        transform: translateX(50%) translateY(-10px);
    }

    .theme-options.active {
        transform: translateX(50%) translateY(0);
    }

    .highlight-text {
        font-size: 11vw;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 0.5rem;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .event-card {
        margin: 0 -1rem;
    }

    .to-top {
        bottom: 1rem;
        right: 1rem;
    }
}

@media print {

    .navbar,
    .theme-switcher,
    .to-top,
    .explore-button {
        display: none;
    }

    .hero {
        height: auto;
        min-height: auto;
    }

    .event-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}