/* ========== VARIABLES ========== */
:root {
    --primary-color: #8B0000;
    --primary-light: #AD2121;
    --primary-dark: #6B0000;
    --text-color: #333;
    --text-light: #666;
    --white: #fff;
    --bg-overlay: rgba(255, 255, 255, 0.5);
    --bg-header: rgba(255, 255, 255, 0.4);
    --bg-cta: rgba(139, 0, 0, 0.85);
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --header-height: 80px;
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ========== LAYOUT ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 4rem 0;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 999999;
    transition: var(--transition);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.nav__logo img {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

.nav__logo:hover img {
    transform: scale(1.05);
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav__link {
    color: var(--text-color);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav__link:hover::after,
.nav__link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    z-index: 10001;
}

.nav__toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition);
}

/* ========== MAIN ========== */
.main {
    margin-top: var(--header-height);
}

/* ========== FEATURES SECTION ========== */
.features {
    padding-top: 2rem;
}

.features__title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeInDown 1.2s ease forwards;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    60% {
        transform: translateY(10px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature__card {
    background: var(--bg-overlay);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.feature__card.visible {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature__card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature__card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature__card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature__card:nth-child(4) {
    animation-delay: 0.4s;
}

.feature__card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    background: rgba(255, 255, 255, 0.65);
}

.feature__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.feature__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature__card:hover .feature__image img {
    transform: scale(1.1);
}

.feature__card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.feature__description {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 0.95rem;
}

.feature__description a {
    font-weight: 500;
    text-decoration: underline;
}

/* ========== CAROUSEL ========== */
.gallery {
    padding: 2rem 0 4rem;
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel__container {
    position: relative;
    width: 100%;
    padding-bottom: 66.67%;
    overflow: hidden;
    border-radius: 12px;
}

.carousel__item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel__item.active {
    opacity: 1;
    z-index: 1;
}

.carousel__item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel__item.active img {
    animation: zoomIn 10s ease-in-out infinite alternate;
}

@keyframes zoomIn {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.05);
    }
}

.carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
    z-index: 10;
}

.carousel__btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.carousel__btn--prev {
    left: 2rem;
}

.carousel__btn--next {
    right: 2rem;
}

.carousel__indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel__indicator {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.carousel__indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.carousel__indicator.active::after {
    transform: scaleX(1);
}

.carousel__indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ========== CTA SECTION ========== */
.cta {
    padding: 4rem 0;
}

.cta__content {
    background: var(--bg-cta);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 4rem 3rem;
    text-align: center;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: scale(0.95);
}

.cta__content.visible {
    animation: scaleIn 0.8s ease forwards;
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cta__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta__text {
    font-size: 1.1rem;
    color: var(--white);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

.cta__text a {
    color: var(--white);
    text-decoration: underline;
}

.cta__button {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta__button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: #f0f0f0;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--text-color);
    padding: 2rem 0;
    text-align: center;
}

.footer__text {
    color: var(--white);
    font-size: 0.9rem;
}

.footer__text a {
    color: var(--white);
    font-weight: 500;
}

.footer__text a:hover {
    color: var(--primary-light);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    /* Full screen slide menu system */
    body {
        overflow-x: hidden;
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open .main,
    body.menu-open .footer {
        transform: translateX(-100%);
        opacity: 0;
        pointer-events: none;
    }

    .main,
    .footer {
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    /* Mobile Navigation - Full Screen */
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: calc(var(--header-height) + 2rem) 2rem 3rem;
        transition: right 0.3s ease;
        overflow-y: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 999998;
    }

    .nav__menu.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
        width: 100%;
        position: relative;
        z-index: 999999;
    }

    .nav__link {
        font-size: 1.5rem;
        font-weight: 600;
    }

    .nav__toggle {
        display: flex;
        position: relative;
        z-index: 1000000;
    }

    .nav__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translateY(10px);
    }

    .nav__toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-10px);
    }

    .nav__logo {
        position: relative;
        z-index: 1000000;
    }

    /* Features */
    .features {
        padding-top: 2rem;
    }

    .features__title {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }

    .features__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature__image {
        height: 180px;
    }

    /* Carousel */
    .carousel__container {
        padding-bottom: 75%;
    }

    .carousel__btn {
        display: none;
    }

    .carousel__indicators {
        bottom: 1rem;
    }

    .carousel__indicator {
        width: 30px;
    }

    /* CTA */
    .cta__content {
        padding: 2.5rem 1.5rem;
    }

    .cta__title {
        font-size: 1.8rem;
    }

    .cta__text {
        font-size: 1rem;
    }

    .cta__button {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .nav__logo img {
        height: 50px;
    }

    .features__title {
        font-size: 1.8rem;
    }

    .feature__card {
        padding: 1.5rem;
    }

    .feature__image {
        height: 150px;
    }

    .feature__card-title {
        font-size: 1.2rem;
    }

    .feature__description {
        font-size: 0.9rem;
    }

    .carousel__container {
        padding-bottom: 100%;
    }
}