/* Hero Section Styling */
.wrapper {
    position: relative;
    height: 100vh;
    height: 90vh;
    overflow: hidden;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background with animated gradient lines */
.neon-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.8), rgba(20, 20, 20, 0.8)),
        url('https://www.transparenttextures.com/patterns/diagmonds.png');
    background-size: cover;
    background-blend-mode: overlay;
    overflow: hidden;
}

/* Particle-like effect using animated gradient lines */
.neon-lines::before,
.neon-lines::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.1) 10%, rgba(50, 50, 50, 0.1) 50%, rgba(0, 0, 0, 0.1) 90%);
    animation: moveParticles 15s linear infinite;
    opacity: 0.3;
}

.neon-lines::after {
    animation-delay: 7.5s;
    opacity: 0.2;
}

@keyframes moveParticles {
    0% {
        transform: translateX(-50%) translateY(-50%);
    }

    100% {
        transform: translateX(50%) translateY(50%);
    }
}

/* Content in the hero section */
:root {
    --primary-color: #8f5442;
    --primary-hover-color: #8f5442;
    --card-bg-color: rgba(255, 255, 255, 0.1);
    --card-hover-transform: translateY(-10px);
    --card-hover-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.hero {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    color: #fff;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeInUp 1s ease forwards;
}

/* Scaling effect for header text */
.h1--scalingSize {
    font-size: 4rem;
    font-weight: bold;
    animation: scaleIn 2s ease-in-out forwards;
}

@keyframes scaleIn {
    0% {
        transform: scale(0.8);
    }

    100% {
        transform: scale(1);
    }
}

/* Appear on scroll effect */
.appear {
    opacity: 1;
    transform: translateY(0);
}

/* For smaller screens */
@media (max-width: 768px) {
    .h1--scalingSize {
        font-size: 2.5rem;
    }

    .hero {
        height: auto;
        padding: 60px 20px;
        /* Add padding for small screens */
    }

    .hero-content {
        padding: 15px;
    }
        .wrapper {
            height: 200vh;
            /* para pantallas más pequeñas que las tabletas */
        }
}

.cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
}

.card {
    background-color: var(--card-bg-color);
    border: none;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 150%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.1) 100%);
    transition: transform 0.3s ease;
    transform: skewX(-15deg);
    opacity: 0;
}

.card:hover::before {
    transform: translateX(100%) skewX(-15deg);
    opacity: 1;
}

.card:hover {
    transform: var(--card-hover-transform);
    box-shadow: var(--card-hover-shadow);
}

.card-title {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card-text {
    color: #ddd;
    font-size: 1rem;
    margin-bottom: 20px;
}

.btn-primary {
    background-color: #8f5442;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    z-index: 2;
    position: relative;
}

.btn-primary:hover {
    background-color: var(--primary-hover-color);
}

/* Keyframes for text fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure responsive behavior */
@media (max-width: 768px) {
    .cards-container {
        grid-template-columns: 1fr;
        width: 100%;
    }
}

/* Video Background Styling */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(2);
}

.hero {
    z-index: 2;
    /* Ensure it's above both the video and neon lines */
}

/* Additional media queries for better responsiveness */
@media (max-width: 480px) {
    .h1--scalingSize {
        font-size: 2rem;
    }

    .hero-content {
        padding: 10px;
    }

    .card-title {
        font-size: 1.25rem;
    }

    .card-text {
        font-size: 0.875rem;
    }

    .btn-primary {
        font-size: 0.875rem;
        padding: 8px 16px;
    }
}