:root {
    --primary-color: #0b1020;
    --secondary-color: #101932;
    --accent-color: #00ffc0;
    --text-color: #e6eef8;
    --header-height: 70px;
}

@font-face {
    font-family: 'Fira Code';
    src: url(./fonts/FiraCode-Medium.ttf) format('truetype');
}

body {
    font-family: 'Fira Code', 'system-ui', '-apple-system', 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
    background: var(--primary-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.header {
    background-color: var(--secondary-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    margin-right: 10px;
}

.logo-text {
    height: 40px;
}

.menu a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.menu a:hover,
.menu a.active {
    color: var(--accent-color);
}

.language-switcher button {
    background: none;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 5px 10px;
    margin-left: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.language-switcher button.active {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

main {
    padding-top: var(--header-height);
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 20px 50px 20px;
    min-height: calc(100vh - var(--header-height));
    text-align: center;
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #00e0a8;
}

.hero-image {
    display: none;
}

/* *********************************************************************** */
/* *************************** Carousel Styles *************************** */
/* *********************************************************************** */

.carousel-section {
    padding: 40px 0px;
    background: linear-gradient(to bottom, #0b1020, aqua, aqua, #101932);
    text-align: center;
    overflow: hidden;
}

.carousel-section h2 {
    margin-bottom: 10px;
    font-size: 2.5rem;
    color: #202124;
}

.carousel-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 20px;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
    scroll-behavior: smooth;
}

.carousel-track::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.carousel-item {
    flex: 0 0 auto;
    width: 250px;
    border-radius: 12px;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 2px 6px 2px rgba(60, 64, 67, 0.15);
    scroll-snap-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    margin: auto;
}

.carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px 3px rgba(60, 64, 67, 0.15);
}

.carousel-btn {
    position: absolute;
    /* top: 50%;
    transform: translateY(-50%); */
    width: 48px;
    height: 48px;
    margin: 20px;
    padding: 0px 0px 4px 0px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid #dadce0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #5f6368;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.carousel-btn:hover {
    background-color: #f1f3f4;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.carousel-btn.prev {
    left: -24px;
}

.carousel-btn.next {
    right: -24px;
}

.features {
    background-color: var(--secondary-color);
    padding: 80px 20px;
    text-align: center;
}

.features h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    background-color: var(--primary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.feature-item img {
    height: 50px;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.about,
.contact {
    padding: 50px 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content {
    max-width: 600px;
    margin: 0 auto;
}

.about h2,
.contact h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.about p,
.contact p {
    font-size: 1.1em;
    line-height: 1.6;
}

.contact a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
}

.footer {
    background-color: var(--secondary-color);
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        min-height: 70vh;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .hero-image {
        margin-bottom: 30px;
    }

    .about h2 {
        font-size: 2em;
        margin-bottom: 20px;
    }

    .menu {
        display: none;
    }

    @media (max-width: 480px) {
        .carousel-section h2 {
            font-size: 2rem;
        }

        .carousel-btn {
            display: none;
        }

        .carousel-item {
            width: 200px;
        }
    }

}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    animation-name: zoom;
    animation-duration: 0.3s;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.modal .prev,
.modal .next {
    cursor: pointer;
    position: absolute;
    /* top: 50%;
    margin-top: -50px; */
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal .next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.modal .prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.modal .prev:hover,
.modal .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

@keyframes zoom {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}