/* Futuristic Intro Sequence Styles - Mobile-sized on all devices */
.intro-sequence {
    position: fixed;

    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    z-index: 9999;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(191, 39, 44, 0.3);
}

/* Logo Section */
.intro-logo {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    width: 200px;
}

.logo-image {
    width: 200px !important;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(191, 39, 44, 0.5));
    transition: all 0.3s ease;
}

.logo-image:hover {
    filter: drop-shadow(0 0 15px rgba(191, 39, 44, 0.8));
    transform: scale(1.05);
}

/* Grid Background */
.intro-sequence::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(191, 39, 44, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(191, 39, 44, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    opacity: 0.3;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Intro Slides */
.intro-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    visibility: hidden;
}

.intro-slide.active {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
}

.intro-slide.prev {
    transform: translateX(-100%);
    visibility: hidden;
}

/* Slide Content */
.slide-content {
    text-align: center;
    max-width: 800px;
    padding: 0 40px;
    z-index: 2;
}

/* Glass Panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(191, 39, 44, 0.3);
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(191, 39, 44, 0.1);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(191, 39, 44, 0.1), transparent);
    animation: glassShine 3s ease-in-out infinite;
}

@keyframes glassShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Typography */
.slide-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 30px 0;
    line-height: 1.2;
    text-shadow: 
        0 0 20px rgba(191, 39, 44, 0.5),
        0 0 40px rgba(191, 39, 44, 0.3);
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 20px rgba(191, 39, 44, 0.5), 0 0 40px rgba(191, 39, 44, 0.3); }
    100% { text-shadow: 0 0 30px rgba(191, 39, 44, 0.7), 0 0 60px rgba(191, 39, 44, 0.5); }
}

/* Crimson red highlights for specific phrases */
.slide-title .crimson-highlight {
    color: #BF272C;
    text-shadow: 
        0 0 20px rgba(191, 39, 44, 0.8),
        0 0 40px rgba(191, 39, 44, 0.6),
        0 0 60px rgba(191, 39, 44, 0.4);
    font-weight: 900;
    animation: crimsonGlow 2s ease-in-out infinite alternate;
}

@keyframes crimsonGlow {
    0% { 
        text-shadow: 
            0 0 20px rgba(191, 39, 44, 0.8),
            0 0 40px rgba(191, 39, 44, 0.6),
            0 0 60px rgba(191, 39, 44, 0.4);
    }
    100% { 
        text-shadow: 
            0 0 30px rgba(191, 39, 44, 1),
            0 0 50px rgba(191, 39, 44, 0.8),
            0 0 70px rgba(191, 39, 44, 0.6);
    }
}

.slide-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, #BF272C 0%, #8B1A1F 100%);
    border: none;
    border-radius: 50px;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-top: 40px;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 25px rgba(191, 39, 44, 0.4),
        0 0 0 1px rgba(191, 39, 44, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 35px rgba(191, 39, 44, 0.6),
        0 0 0 1px rgba(191, 39, 44, 0.3);
}

.cta-button:active {
    transform: translateY(0);
}

.button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: buttonShine 2s ease-in-out infinite;
}

@keyframes buttonShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Slide Indicators */
.slide-indicator {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(191, 39, 44, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.indicator.active {
    background: #BF272C;
    border-color: #BF272C;
    box-shadow: 0 0 20px rgba(191, 39, 44, 0.6);
    transform: scale(1.2);
}

/* Navigation Controls */
.intro-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 3;
}

.nav-btn {
    background: rgba(191, 39, 44, 0.1);
    border: 1px solid rgba(191, 39, 44, 0.3);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-btn:hover:not(.disabled) {
    background: rgba(191, 39, 44, 0.2);
    border-color: rgba(191, 39, 44, 0.6);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(191, 39, 44, 0.4);
}

.nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-btn svg {
    width: 24px;
    height: 24px;
    color: #BF272C;
    stroke-width: 2.5;
    transition: all 0.3s ease;
}

.nav-btn:not(.disabled):hover svg {
    color: #ffffff;
}

/* Skip Intro Button */
.skip-intro {
    position: absolute;
    top: 40px;
    right: 40px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skip-intro:hover {
    color: #BF272C;
    background: rgba(191, 39, 44, 0.1);
}

.skip-line {
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: all 0.3s ease;
}

.skip-intro:hover .skip-line {
    width: 30px;
    background: #BF272C;
}

/* Responsive Design - Always mobile-sized */
@media (max-width: 768px) {
    .intro-sequence {
        width: 100vw;
        height: 100vh;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
    }
    
    .slide-title {
        font-size: 2.5rem;
    }
    
    .slide-subtitle {
        font-size: 1.2rem;
    }
    
    .glass-panel {
        padding: 40px 25px;
        margin: 0 20px;
    }
    
    .intro-controls {
        padding: 0 20px;
    }
    
    .nav-btn {
        width: 50px;
        height: 50px;
    }
    
    .nav-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .slide-indicator {
        bottom: 40px;
    }
    
    .skip-intro {
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-subtitle {
        font-size: 1rem;
    }
    
    .glass-panel {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .intro-controls {
        padding: 0 15px;
    }
    
    .nav-btn {
        width: 45px;
        height: 45px;
    }
}

/* Desktop - Keep mobile size */
@media (min-width: 769px) {
    .intro-sequence {
        width: 100vw;
        height: 100vh;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        border-radius: 20px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.slide-up {
    animation: slideUp 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.intro-sequence.loading .glass-panel {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Exit Animation */
.intro-sequence.exit {
    animation: exitSequence 1s ease-in-out forwards;
}

@keyframes exitSequence {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

/* Form Container Transition */
#form-container {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

#form-container.show {
    opacity: 1;
    transform: translateY(0);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .glass-panel {
        border: 2px solid #BF272C;
        background: rgba(0, 0, 0, 0.9);
    }
    
    .slide-title {
        text-shadow: 2px 2px 0 #BF272C;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .intro-slide,
    .glass-panel::before,
    .button-glow,
    .titleGlow,
    .gridMove {
        animation: none;
        transition: none;
    }
    
    .intro-slide {
        transform: none;
    }
}
