/* ============================================
   ARTIFICII PAGE - MODERN ANIMATIONS & EFFECTS
   ============================================ */

/* Custom Color Palette - Firework Theme */
:root {
    --firework-purple: #6B21A8;
    --firework-purple-dark: #4C1D95;
    --firework-blue: #1E3A8A;
    --firework-orange: #F97316;
    --firework-gold: #FBBF24;
    --firework-red: #DC2626;
    --firework-pink: #EC4899;
    --night-sky: #0F172A;
    --night-sky-light: #1E293B;
}

/* ============================================
   HERO SECTION - Diagonal Split with Video
   ============================================ */

.artificii-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

/* Upper Section - Video Background */
.hero-section-upper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
    z-index: 1;
    overflow: hidden;
    /* Fallback gradient if video doesn't load */
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 1;
}

/* Video Overlay for better text readability */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* Lower Section - Red Gradient */
.hero-section-lower {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0000 25%, #8B0000 50%, #1a0000 75%, #0a0a0a 100%);
    clip-path: polygon(0 0, 100% 100%, 0 100%);
    z-index: 1;
}

/* Diagonal Divider Line */
.diagonal-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 141.42%;
    height: 3px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(220, 38, 38, 0.8) 20%,
            rgba(255, 69, 0, 1) 50%,
            rgba(220, 38, 38, 0.8) 80%,
            transparent 100%);
    transform-origin: top left;
    transform: rotate(45deg);
    z-index: 3;
    box-shadow:
        0 0 10px rgba(255, 69, 0, 0.8),
        0 0 20px rgba(220, 38, 38, 0.6);
    animation: lineGlow 3s ease-in-out infinite;
}

@keyframes lineGlow {

    0%,
    100% {
        opacity: 0.8;
        filter: brightness(1);
    }

    50% {
        opacity: 1;
        filter: brightness(1.5);
    }
}

/* Particle Canvas */
#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

.artificii-hero-content {
    position: relative;
    z-index: 5;
    animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.artificii-hero-content .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.artificii-hero-title {
    font-family: var(--font-heading);
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.firework-text {
    display: block;
    background: linear-gradient(135deg, #DC2626 0%, #FF4500 50%, #8B0000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 3s ease-in-out infinite;
}

@keyframes textShimmer {

    0%,
    100% {
        filter: brightness(1) saturate(1);
    }

    50% {
        filter: brightness(1.3) saturate(1.5);
    }
}

/* Floating Sparkles */
.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, var(--firework-gold), transparent);
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ============================================
   SERVICE CARDS - Glassmorphism & 3D Effects
   ============================================ */

.artificii-services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    perspective: 1000px;
}

.glass-card {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 0, 0, 0.7), rgba(10, 0, 0, 0.8));
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(220, 38, 38, 0.15);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Shine Effect */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.1), transparent);
    transition: left 0.6s ease;
    /* Reset previous styles */
    border-radius: 0;
    padding: 0;
    mask: none;
    -webkit-mask: none;
    animation: none;
    background-size: auto;
    opacity: 1;
}

.glass-card:hover::before {
    left: 100%;
    opacity: 1;
}

.glass-card:hover {
    transform: translateY(-15px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(220, 38, 38, 0.3);
    box-shadow: 0 15px 40px rgba(139, 0, 0, 0.3);
}

/* Card Icon Animation */
.card-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 0 20px rgba(220, 38, 38, 0.5));
}

.glass-card:hover .card-icon {
    transform: scale(1.2) rotate(360deg);
    filter: drop-shadow(0 0 30px rgba(255, 69, 0, 0.8));
}

/* Card Glow Effect */
/* Card Glow Effect - Full Card Overlay */
.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.6) 0%, rgba(220, 38, 38, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    border-radius: 24px;
}

.glass-card:hover::after {
    opacity: 1;
}

.glass-card .card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

.card-content .btn {
    margin-top: auto;
    align-self: center;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.card-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.card-features {
    text-align: left;
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-features li {
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    padding: 0.25rem 0;
}

.card-features li span {
    font-size: 1.2rem;
    min-width: 24px;
    text-align: center;
}

/* Staggered Entrance Animation */
.glass-card {
    opacity: 0;
    animation: cardEnter 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.glass-card:nth-child(1) {
    animation-delay: 0.1s;
}

.glass-card:nth-child(2) {
    animation-delay: 0.2s;
}

.glass-card:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   WHY CHOOSE US SECTION - Features with Icons
   ============================================ */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.feature-box {
    position: relative;
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(30, 0, 0, 0.7), rgba(10, 0, 0, 0.8));
    backdrop-filter: blur(5px);
    border-radius: 20px;
    border: 1px solid rgba(220, 38, 38, 0.15);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.1), transparent);
    transition: left 0.6s ease;
}

.feature-box:hover::before {
    left: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(220, 38, 38, 0.3);
    box-shadow: 0 15px 40px rgba(139, 0, 0, 0.3);
}

.feature-icon-wrapper {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.feature-box:hover .feature-icon-wrapper {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-15px);
    }

    50% {
        transform: translateY(-5px);
    }

    75% {
        transform: translateY(-10px);
    }
}

/* ============================================
   GALLERY SECTION - Modern Grid with Overlays
   ============================================ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 450px;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(139, 0, 0, 0.5),
            rgba(220, 38, 38, 0.3));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow:
        0 20px 60px rgba(139, 0, 0, 0.5),
        0 0 50px rgba(220, 38, 38, 0.3);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 100%);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 3;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* Sparkle Effect on Hover */
@keyframes sparkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
}

/* ============================================
   FAQ SECTION - Modern Accordion
   ============================================ */

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faq-item.active {
    border-color: var(--firework-purple);
    box-shadow: 0 8px 30px rgba(107, 33, 168, 0.2);
}

.faq-question {
    width: 100%;
    padding: 2rem;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-bg);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-item.active .faq-question {
    color: var(--firework-purple);
}

.faq-icon {
    font-size: 1.8rem;
    font-weight: 300;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    color: var(--firework-purple);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        padding 0.4s ease;
    padding: 0 2rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 2rem 2rem;
}

.faq-answer p {
    color: var(--medium-gray);
    line-height: 1.8;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   BUTTON ENHANCEMENTS
   ============================================ */

.btn-firework {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #8B0000, #DC2626);
    box-shadow: 0 4px 20px rgba(139, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.btn-firework::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-firework:hover::before {
    width: 300px;
    height: 300px;
}

.btn-firework:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 30px rgba(139, 0, 0, 0.7),
        0 0 40px rgba(220, 38, 38, 0.5);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .artificii-hero-title {
        font-size: 3.5rem;
    }

    .artificii-services-container,
    .feature-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .glass-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .artificii-hero-title {
        font-size: 2.5rem;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .card-icon {
        font-size: 3.5rem;
    }
}

/* ============================================
   SERVICES SECTION - Gradient Background
   ============================================ */
#servicii {
    padding: 6rem 0;
    /* Gradient copied from .carousel-section in galerie.html */
    background: radial-gradient(circle at 50% 50%, #2a0a12 0%, #000000 70%);
    position: relative;
    overflow: hidden;
}

#servicii::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at top right, rgba(139, 21, 56, 0.15), transparent 60%),
        radial-gradient(circle at bottom left, rgba(90, 10, 40, 0.12), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   VIDEO SHOWCASE - Cinema Feel
   ============================================ */
.video-section {
    padding: 4rem 0 6rem;
    background: #000000;
    position: relative;
}

.video-container {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(139, 0, 0, 0.2);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.video-poster {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.video-container:hover .video-poster {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.video-container:hover .play-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.play-btn-large {
    width: 100px;
    height: 100px;
    background: rgba(220, 38, 38, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    animation: pulseRed 2s infinite;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-container:hover .play-btn-large {
    transform: scale(1.1);
    background: #fff;
    color: #DC2626;
}

@keyframes pulseRed {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }

    70% {
        box-shadow: 0 0 0 30px rgba(220, 38, 38, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

/* ============================================
   EFFECTS GRID - Visual Menu
   ============================================ */
.effects-section {
    padding: 6rem 0;
    background: #050505;
}

.effects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.effect-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.effect-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.effect-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    transition: all 0.3s ease;
}

.effect-card:hover img {
    transform: scale(1.1);
}

.effect-card:hover .effect-overlay {
    background: linear-gradient(to top, rgba(139, 0, 0, 0.9), rgba(139, 0, 0, 0.3));
}

.effect-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.effect-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.effect-card:hover .effect-desc {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   PRICING PACKAGES - Smart Cards
   ============================================ */
.pricing-section {
    padding: 6rem 0;
    background: radial-gradient(circle at center, #1a050b 0%, #000000 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
    margin-top: 4rem;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    background: linear-gradient(180deg, #3d0007 0%, #1a0000 100%);
    border: 1px solid rgba(220, 38, 38, 0.5);
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(139, 0, 0, 0.2);
    z-index: 2;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.price-tag {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin: 1.5rem 0;
    font-family: var(--font-heading);
}

.price-currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.price-period {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li::before {
    content: '✓';
    color: #DC2626;
    font-weight: bold;
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #DC2626;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
}

/* ============================================
   PROCESS TIMELINE - Safety & Workflow
   ============================================ */
.process-section {
    padding: 6rem 0;
    background: #000000;
    overflow: hidden;
}

.timeline {
    position: relative;
    max-width: 1300px;
    margin: 4rem auto 0;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #DC2626, transparent);
    transform: translateX(-50%);
}

.timeline-step {
    position: relative;
    width: 50%;
    padding: 1.5rem 3rem;
    box-sizing: border-box;
}

.timeline-step:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-step:nth-child(even) {
    left: 50%;
    text-align: left;
}

/* Card Style for Content */
.step-content {
    background: linear-gradient(135deg, rgba(20, 0, 0, 0.8), rgba(10, 0, 0, 0.9));
    border: 1px solid rgba(220, 38, 38, 0.15);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
    display: inline-block;
    /* Helps with text alignment context */
    text-align: left;
    /* Reset text align inside card */
}

/* Alignment Specifics */
.timeline-step:nth-child(odd) .step-content {
    margin-left: auto;
    margin-right: 0;
    border-right: 2px solid rgba(220, 38, 38, 0.5);
}

.timeline-step:nth-child(even) .step-content {
    margin-left: 0;
    margin-right: auto;
    border-left: 2px solid rgba(220, 38, 38, 0.5);
}

.step-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.3);
    border-color: rgba(220, 38, 38, 0.4);
    background: rgba(30, 0, 0, 0.9);
}

.step-content h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-family: var(--font-heading);
}

.step-content p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.step-marker {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #000000;
    border: 2px solid #DC2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 2;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.5);
    transition: all 0.3s ease;
}

.timeline-step:hover .step-marker {
    transform: translateY(-50%) scale(1.1);
    background: #DC2626;
    box-shadow: 0 0 25px rgba(220, 38, 38, 0.8);
}

.timeline-step:nth-child(odd) .step-marker {
    right: -25px;
}

.timeline-step:nth-child(even) .step-marker {
    left: -25px;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 40px;
    }

    .timeline-step {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding-left: 80px;
        padding-right: 20px;
        margin-bottom: 2rem;
    }

    .step-marker {
        left: 15px !important;
        right: auto !important;
    }

    .timeline-step:nth-child(odd) .step-content,
    .timeline-step:nth-child(even) .step-content {
        margin: 0;
        max-width: 100%;
        border-left: 2px solid rgba(220, 38, 38, 0.5);
        border-right: none;
    }
}

/* ============================================
   CER DESCHIS CARD - Premium Full Width
   ============================================ */
.cer-deschis-container {
    max-width: 900px;
    margin: 6rem auto 0;
    /* Space above */
    padding: 0 1.5rem;
}

.cer-deschis-card {
    background: linear-gradient(135deg, #050000 0%, #1a0000 100%);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 30px;
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cer-deschis-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    padding: 2px;
    background: linear-gradient(45deg, transparent, rgba(220, 38, 38, 0.6), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Glow behind the icon */
.cer-deschis-card .card-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.4) 0%, transparent 70%);
    z-index: -1;
    filter: blur(20px);
}

.cer-deschis-card .card-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    /* Align text left, but container centered */
    margin: 2rem auto;
    max-width: 500px;
}

.cer-deschis-card .card-features li {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    justify-content: flex-start;
}

.cer-deschis-card .card-title {
    font-size: 2.2rem;
    margin-top: 1rem;
}

.cer-deschis-card .btn {
    margin-top: 2rem;
    min-width: 200px;
}

/* ============================================
   MAGIA SECTION - 480x848 Video Frame
   ============================================ */
.magia-section {
    padding: 6rem 0;
    text-align: center;
    background: #000000;
}

.magia-title-container {
    margin-bottom: 3rem;
}

.magia-highlight {
    color: var(--firework-red);
    font-weight: 800;
}

.magia-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    margin-top: 1rem;
}

.magia-video-wrapper {
    width: 480px;
    height: 848px;
    margin: 0 auto;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(220, 38, 38, 0.3);
    position: relative;
    background: #000;
}

.magia-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fix for Mobile Video Position */
@media (max-width: 576px) {
    .magia-video-wrapper {
        width: 100%;
        max-width: 100%;
        height: 75vh;
        /* Force tall height */
        min-height: 500px;
        /* Ensure minimum size */
        aspect-ratio: unset;
        /* Remove dependency */
        border-radius: 20px;
        margin-left: 0;
        margin-right: 0;
    }
}