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

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

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

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

/* Dark mode Css */

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

body.dark-mode .navbar {
    background-color: #000000 !important;
}

body.dark-mode .fa-bars {
    color: white;
}

/* 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: #ffffff;
    font-size: 20px;
}

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

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

body.dark-mode .event-grid {
    color: #f4f4f4;
}

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

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

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

body.dark-mode .profile-info h4 {
    color: #f4f4f4;
}

body.dark-mode .profile-info .role,
body.dark-mode .social-links a {
    color: #bbbbbb;
}

body.dark-mode .profile {
    border-top-color: #444444;
}

body.dark-mode footer {
    background-color: #000000;
}

/* Navbar Css */

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    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 2rem;
    width: 100%;
    margin: 0 auto;
}

.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 {
    font-size: 1vw;
    text-decoration: none;
    position: relative;
    color: #000000;
}

.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 #cccccc;
    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: #ffffff;
}

.theme-options {
    position: absolute;
    top: 120%;
    right: 0;
    background-color: #ffffff;
    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;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.highlight-text {
    font-size: clamp(6rem, 12vw, 10rem);
    font-weight: 800;
    color: transparent;
    -webkit-background-clip: text;
    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: #ffffff;
    padding: 1rem 2.5rem;
    font-weight: 600;
    color: #ffffff;
    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;
}

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

.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.5s ease;
    margin-bottom: 2rem;
    border: 2px solid #c3c6ce;
    position: relative;
}

.event-card:not(:hover) {
    transition: all 0.1s ease;
}

.event-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    display: block;
}

/* Blurred background image */
.blurred-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(15px);
    transform: scale(1.2);
    opacity: 0.4;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.blurred-image:not(:hover) {
    transition: opacity 0.1s ease, filter 0.1s ease;
}

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

.event-card:hover .blurred-image {
    opacity: 0.6;
    filter: blur(10px);
}

.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: #555555;
    margin: 0.5rem 0;
}

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

.register-button {
    width: 60%;
    border-radius: 1rem;
    border: none;
    color: #ffffff !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;
    z-index: 1000;
    position: relative;
    width: 40px;
    height: 40px;
}

.mobile-menu-btn i {
    font-size: 24px;
    color: var(--text-color);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu-btn .fa-times {
    opacity: 0;
    visibility: hidden;
}

.mobile-menu-btn.active .fa-bars {
    opacity: 0;
    visibility: hidden;
}

.mobile-menu-btn.active .fa-times {
    opacity: 1;
    visibility: visible;
}

/* Testimonials Section Css */

.testimonials {
    padding: 50px 20px;
}

.testimonial-container {
    margin: 0 auto;
    width: 90%;
}

.testimonials .section-title {
    font-size: 2rem;
    margin-bottom: 30px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.testimonial-card {
    padding: 25px;
    margin-top: 25px;
    position: relative;
    background: #ffffff;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.testimonial-card.blue {
    border-bottom: 4px solid #3498db;
}

.testimonial-card.red {
    border-bottom: 4px solid #e74c3c;
}

.testimonial-card.green {
    border-bottom: 4px solid #1abc9c;
}

.testimonial-card.purple {
    border-bottom: 4px solid #9b59b6;
}

.rating {
    margin-bottom: 15px;
    text-align: center;
}

.testimonial-text {
    margin-bottom: 25px;
    color: var(--light-text-color);
}

.profile {
    display: flex;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eeeeee;
}

.profile-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.profile-info h4 {
    color: #333333;
    font-size: 18px;
    margin-bottom: 5px;
}

.profile-info .role {
    color: #666666;
    font-size: 14px;
    margin-bottom: 8px;
}

.hidden {
    display: none;
}

.see-more-btn {
    display: block;
    align-items: center;
    justify-content: center;
    margin: 25px auto;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    border: none;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
}

.see-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
    background: linear-gradient(90deg, #2575fc 0%, #6a11cb 100%);
}

.see-more-btn i {
    transition: transform 0.3s ease;
}

.see-more-btn:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Footer Css */

footer {
    background-color: #090528;
    color: #cccccc;
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0 auto;
    max-width: 1300px;
    padding: 0 20px;
}

.company-info {
    font-weight: 600;
    flex: 1 1 30%;
}

.company-name {
    font-size: 24px;
    margin-bottom: 10px;
    align-items: center;
}

.company-name img {
    width: 36px;
    width: 36px;
    vertical-align: middle;
    margin-top: -5px;
}

.company-info p {
    line-height: 1.8;
    text-align: center;
}

.quick-links {
    flex: 1 1 30%;
}

.heading {
    font-size: 21px;
    margin-bottom: 20px;
    background: -webkit-linear-gradient(to right, #c9d4df, #4ea6e5);
    background: linear-gradient(to right, #c9d4df, #4ea6e5);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.footer-ul {
    justify-items: center;
    align-items: center;
    text-align: center;
}

.footer-ul li a {
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.3s ease-in-out;
    color: #cccccc;
    font-weight: 600;
    position: relative;
}

.footer-ul li a::after {
    content: "";
    display: block;
    width: 0;
    height: 3px;
    background: #e5cf29; /* Color of the underline */
    transition: width 0.3s ease-in-out;
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
}

.footer-ul li a:hover::after {
    width: 100%; /* Fully expand the underline */
}

.send-message {
    flex: 1 1 30%;
}

.form-group {
    margin-bottom: 15px;
}

.group1 {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.send-message input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 4px;
}

.send-message input,
.send-message textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    font-family: sans-serif;
    transition: transform 0.3s ease;
}

.send-message input:hover,
.send-message textarea:hover {
    transform: scale(1.02);
}

.send-message textarea {
    resize: vertical;
    height: 50px;
    min-height: 50px;
    max-height: 100px;
    overflow-y: auto;
    color: black;
}

.send-message button {
    height: 50px;
    background: -webkit-linear-gradient(to right, #89b9e8, #5568e0);
    background: linear-gradient(to right, #89b9e8, #5568e0);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.send-message button:hover {
    background: -webkit-linear-gradient(to right, #5568e0, #89b9e8);
    background: linear-gradient(to right, #5568e0, #89b9e8);
    transform: scale(1.02);
}

.social {
    font-size: 2.3rem;
    text-decoration: none;
    margin: 0 1rem;
    transition: 0.3s ease-in-out;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.social a i {
    transition: transform 0.3s ease-in-out;
}

.copyright {
    color: #cccccc;
    padding: 0 20px;
    margin-top: 20px;
    font-weight: 900;
    text-align: center;
}

.quick-links ul,
.send-message form {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li,
.send-message button {
    margin-bottom: 10px;
}

.quick-links a,
.send-message button {
    text-decoration: none;
}

.social a:hover i {
    transform: translateY(-8px);
}

.social a {
    color: var(--secondary);
}

.social a.user:hover {
    color: #4af3b5;
}

.social a.message:hover {
    color: #d44638;
}

.social a.linkedin:hover {
    color: #0a66c2;
}

.social a.github:hover {
    color: #181717;
}

.social a.instagram:hover {
    color: #e1306c;
}

.social a.facebook:hover {
    color: #1877f2;
}

.social a.twitter:hover {
    color: #1da1f2;
}

.social a.discord:hover {
    color: #5865f2;
}

/* Media queries for responsiveness */

@media (max-width: 1024px) {
    .nav-links a {
        font-size: 16px;
    }

    .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;
        margin-left: 0;
        transition: all 0.3s ease;
        border-bottom: 1px solid #eeeeee;
    }

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

@media (max-width: 925px) {
    .social {
        font-size: 2.5rem;
        text-decoration: none;
        transition: 0.3s ease-in-out;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
    }

    .footer-container {
        margin: 2px 3px;
    }

    .company-info,
    .quick-links,
    .send-message {
        margin-top: 8px;
        text-align: center;
        flex-basis: 100%;
    }
}

@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;
    }

    .footer-container {
        margin: 2px 3px;
    }

    .company-info,
    .quick-links,
    .send-message {
        margin-top: 8px;
        text-align: center;
        flex-basis: 100%;
    }
}

@media (max-width: 500px) {
    .company-info {
        flex: 1 1 100%; /* Make company info take full width */
        text-align: center;
        margin-bottom: 20px;
    }

    /* Split the quick-links into two columns */
    .footer-ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .send-message {
        flex: 1 1 100%;
        text-align: center;
    }

    .group1 {
        flex-direction: column;
    }

    .group1 input {
        margin-bottom: 5px;
    }

    .send-message input,
    .send-message textarea {
        width: 100%;
        resize: vertical;
    }

    .social {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .social a {
        font-size: 2.5rem;
    }
}

@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 (max-width: 380px) {
    .event-grid {
        display: block;
    }

    .event-card {
        margin: 10px 0;
    }
}

@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;
    }
}