/* Hero section with Project VIS styling */
.experience-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #111 0%, #000 50%, #111 100%);
    overflow: hidden;
}

.experience-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../MEDIA/Images/Screenshots/Screenshot12.jpg') center/cover no-repeat;
    opacity: 0.1;
    filter: blur(1px);
}

.experience-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.experience-hero-content h1 {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ffffff, #ff3333);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(179, 15, 15, 0.5);
}

.experience-hero-content p {
    font-size: 1.5rem;
    color: #cccccc;
    margin-bottom: 30px;
}

/* Cubo sections - Steam-like styling */
.experience-section {
    min-height: 50vh;
    padding: 80px 20px;
    background-color: #111;
    display: flex;
    align-items: center;
}

.experience-section:nth-child(even) {
    background-color: #000;
}

.experience-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.experience-container.reverse {
    grid-template-columns: 1fr 2fr;
}

.experience-text {
    padding: 20px;
}

.experience-text h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 700;
}

.experience-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cccccc;
    margin-bottom: 20px;
}

.experience-media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.experience-media img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(179, 15, 15, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(179, 15, 15, 0.2);
    aspect-ratio: 5/10;
    /* 500x1000 ratio support */
    object-fit: cover;
}

.experience-media img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 48px rgba(179, 15, 15, 0.5);
}

/* Full-width video section */
.experience-trailer {
    min-height: 80vh;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.experience-trailer-content {
    width: 100%;
    max-width: 1200px;
}

.experience-trailer h2 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 40px;
    color: #ffffff;
    font-weight: 700;
}

.experience-trailer iframe {
    width: 100%;
    height: 600px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(179, 15, 15, 0.4);
    border: 2px solid rgba(179, 15, 15, 0.3);
}

/* Feature Cards Gallery - Horror-Themed Interactive Design */
.features-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

.feature-card {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* Horror-themed card backgrounds by category */
.feature-card[data-category="Technology"] {
    background: linear-gradient(145deg, #1a0a0a 0%, #2d0f0f 50%, #1a0a0a 100%);
    border: 2px solid #2e8b57;
}

.feature-card[data-category="Hardware"] {
    background: linear-gradient(145deg, #0a0a1a 0%, #0f0f2d 50%, #0a0a1a 100%);
    border: 2px solid #7398c4;
}

.feature-card[data-category="Gameplay"] {
    background: linear-gradient(145deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%);
    border: 2px solid #5f3ddb;
}

.feature-card[data-category="Experiences"] {
    background: linear-gradient(145deg, #0a1a0a 0%, #0f2d0f 50%, #0a1a0a 100%);
    border: 2px solid #3a6cca;
}

.feature-card[data-category="Narrative"] {
    background: linear-gradient(145deg, #1a0a1a 0%, #2d0f2d 50%, #1a0a1a 100%);
    border: 2px solid #da8ab2;
}

.feature-card[data-category="Performance"] {
    background: linear-gradient(145deg, #1a1610 0%, #2d2417 50%, #1a1610 100%);
    border: 2px solid #daa520;
}

.feature-card[data-category="Quality"] {
    background: linear-gradient(145deg, #161a10 0%, #242d17 50%, #161a10 100%);
    border: 2px solid #D9D5C3;
}

.feature-card[data-category="Graphics"] {
    background: linear-gradient(145deg, #1a1a0a 0%, #2d2d0f 50%, #1a1a0a 100%);
    border: 2px solid #62cdd6;
}

.feature-card[data-category="Audio"] {
    background: linear-gradient(145deg, #161016 0%, #241724 50%, #161016 100%);
    border: 2px solid #b83adf;
}

/* Mystery cards with special effects */
.feature-card:nth-child(odd) {
    background-image:
        radial-gradient(circle at 25% 25%, rgba(139, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(139, 0, 0, 0.1) 0%, transparent 50%);
}

.feature-card:nth-child(even) {
    background-image:
        radial-gradient(circle at 75% 25%, rgba(74, 14, 78, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 25% 75%, rgba(74, 14, 78, 0.1) 0%, transparent 50%);
}

/* Hover effects with horror atmosphere */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 0, 0, 0.15), rgba(255, 0, 0, 0.1), transparent);
    transition: left 0.6s;
    z-index: 1;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 12px 35px rgba(139, 0, 0, 0.3),
        0 0 100px rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.6);
}

.feature-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    transition: all 0.4s ease;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
    display: block;
    text-align: center;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 20px rgba(139, 0, 0, 0.8));
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
}

.feature-info h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #f5f5f5;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.feature-card:hover .feature-info h4 {
    color: #ff4444;
    text-shadow:
        0 0 15px rgba(255, 0, 0, 0.8),
        0 0 30px rgba(255, 0, 0, 0.4);
}

.feature-info p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
    color: #cccccc;
    transition: color 0.3s ease;
}

.feature-card:hover .feature-info p {
    color: #f0f0f0;
}

.feature-tag {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.8) 0%, rgba(179, 15, 15, 1) 100%);
    padding: 6px 12px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

.feature-card:hover .feature-tag {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.9) 0%, rgba(139, 0, 0, 1) 100%);
    transform: scale(1.1);
    box-shadow:
        0 0 20px rgba(255, 0, 0, 0.5),
        0 0 40px rgba(255, 0, 0, 0.3);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

/* Responsive design for feature gallery */
@media (max-width: 1024px) {
    .features-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .features-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .features-gallery {
        grid-template-columns: 1fr;
    }
}

/* Responsive design */
@media (max-width: 768px) {

    .experience-container,
    .experience-container.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .experience-hero-content h1 {
        font-size: 2.5rem;
    }

    .experience-hero-content p {
        font-size: 1.2rem;
    }

    .experience-text h2 {
        font-size: 2rem;
    }

    .experience-trailer iframe {
        height: 300px;
    }
}

/* Animations */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}