/* ===================================
   ENHANCED SLIDER ANIMATIONS
   Professional & Corporate Design
   =================================== */

/* Slide Overlay for Better Text Readability */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(5, 16, 26, 0.4) 0%,
            rgba(10, 31, 46, 0.3) 50%,
            rgba(5, 16, 26, 0.4) 100%);
    z-index: 1;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.slide .container {
    position: relative;
    z-index: 2;
}

/* Enhanced Hero Content Styling */
.hero-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
}

/* Sophisticated Title Animations */
.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
    letter-spacing: -1px;
    background: linear-gradient(135deg,
            #d32f2f 0%,
            #ffcdd2 50%,
            #d32f2f 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    position: relative;
    display: inline-block;
}

/* Animated Underline Effect */
.hero-content h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d32f2f, transparent);
    border-radius: 2px;
}

/* Paragraph Styling with Elegant Animation */
.hero-content p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #b0c4de;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Button Container */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Enhanced Button Styles */
.hero-content .btn-primary,
.hero-content .btn-secondary {
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-content .btn-primary {
    background: #ffffff;
    border: 1px solid #ffffff;
    color: #d32f2f;
    backdrop-filter: blur(5px);
}

.hero-content .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(211, 47, 47, 0.3), transparent);
    transition: left 0.5s ease;
}

.hero-content .btn-primary:hover::before {
    left: 100%;
}

.hero-content .btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(211, 47, 47, 0.4);
    color: #d32f2f;
    border-color: #f0f0f0;
}

.hero-content .btn-secondary {
    background: #ffffff;
    color: #d32f2f;
    border: 2px solid #ffffff;
}

.hero-content .btn-secondary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(211, 47, 47, 0.5);
}

/* ===================================
   KEYFRAME ANIMATIONS
   =================================== */

/* Slide In From Bottom with Fade */
@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide In From Left */
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-80px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In From Right */
@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(80px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade In with Scale */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Underline Expand */
@keyframes underlineExpand {
    0% {
        transform: translateX(-50%) scaleX(0);
    }

    100% {
        transform: translateX(-50%) scaleX(1);
    }
}

/* Letter Spacing Animation */
@keyframes letterSpacing {
    0% {
        letter-spacing: -1px;
    }

    50% {
        letter-spacing: 2px;
    }

    100% {
        letter-spacing: -1px;
    }
}

/* ===================================
   ACTIVE SLIDE ANIMATIONS
   =================================== */

/* Title Animation */
.slide.active h1 {
    animation: slideInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards,
        gradientShift 8s ease infinite;
}

.slide.active h1::after {
    animation: underlineExpand 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

/* Paragraph Animation */
.slide.active p {
    animation: slideInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
    opacity: 0;
}

/* Buttons Animation */
.slide.active .hero-buttons {
    animation: fadeInScale 1s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
    opacity: 0;
}

.slide.active .btn-primary {
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.9s forwards;
    opacity: 0;
}

.slide.active .btn-secondary {
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards;
    opacity: 0;
}

/* ===================================
   WORD-BY-WORD ANIMATION (Optional)
   =================================== */

.hero-content h1 .word {
    display: inline-block;
    opacity: 0;
    animation: wordFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes wordFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) rotateX(-90deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

/* Stagger delay for each word */
.hero-content h1 .word:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-content h1 .word:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-content h1 .word:nth-child(3) {
    animation-delay: 0.3s;
}

.hero-content h1 .word:nth-child(4) {
    animation-delay: 0.4s;
}

.hero-content h1 .word:nth-child(5) {
    animation-delay: 0.5s;
}

.hero-content h1 .word:nth-child(6) {
    animation-delay: 0.6s;
}

.hero-content h1 .word:nth-child(7) {
    animation-delay: 0.7s;
}

.hero-content h1 .word:nth-child(8) {
    animation-delay: 0.8s;
}

/* ===================================
   ENHANCED SLIDER CONTROLS
   =================================== */

.slider-btn {
    background: rgba(5, 16, 26, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(211, 47, 47, 0.3);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-btn:hover {
    background: rgba(211, 47, 47, 0.2);
    border-color: #d32f2f;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 30px rgba(211, 47, 47, 0.5);
    color: #fff;
}

.slider-btn i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.slider-btn:hover i {
    transform: scale(1.2);
}

/* Enhanced Dots */
.slider-dots {
    display: flex;
    gap: 20px;
    padding: 15px 30px;
    background: rgba(5, 16, 26, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(211, 47, 47, 0.2);
}

.dot {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(176, 196, 222, 0.5);
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 6px;
    height: 6px;
    background: #d32f2f;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.dot.active,
.dot:hover {
    border-color: #d32f2f;
    background: rgba(211, 47, 47, 0.2);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(211, 47, 47, 0.6);
}

.dot.active::before,
.dot:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

/* ===================================
   RESPONSIVE ADJUSTMENTS
   =================================== */

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
        letter-spacing: -0.5px;
    }

    .hero-content p {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-content .btn-primary,
    .hero-content .btn-secondary {
        padding: 14px 35px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 300px;
    }

    .slider-btn {
        width: 50px;
        height: 50px;
    }

    .slider-btn i {
        font-size: 1.2rem;
    }

    .dot {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-content {
        padding: 20px;
    }
}

/* ===================================
   ACCESSIBILITY ENHANCEMENTS
   =================================== */

@media (prefers-reduced-motion: reduce) {

    .slide.active h1,
    .slide.active p,
    .slide.active .hero-buttons,
    .slide.active .btn-primary,
    .slide.active .btn-secondary,
    .hero-content h1 .word {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .hero-content h1::after {
        animation: none;
        transform: translateX(-50%) scaleX(1);
    }
}

/* Slider Logo & Frame Styles - Removed as per user request to remove logo/frame from slider */


/* Override H1 Color to Blood Red */
/* H1 White Glow + Black Outline Style */
.hero-content h1 {
    color: #ffffff !important;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    text-shadow:
        3px 3px 0px rgba(0, 0, 0, 0.9),
        /* Strong Black Outline (Bottom-Right) */
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        /* Simulated Outline around text */
        0 0 20px rgba(255, 255, 255, 0.6),
        /* Inner Glow */
        0 0 40px rgba(255, 255, 255, 0.4);
    /* Outer Glow */
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.8));
    /* 3D Lift */
}

/* Paragraph Enhanced Visibility */
.hero-content p {
    color: #ffffff !important;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

/* 3D Ken Burns Effect for Slider Images */
@keyframes kenBurns3D {
    0% {
        transform: scale(1) translateZ(0) rotate(0deg);
    }

    50% {
        transform: scale(1.1) translateZ(20px) rotate(0.5deg);
    }

    100% {
        transform: scale(1) translateZ(0) rotate(0deg);
    }
}

.slide {
    perspective: 1000px;
    overflow: hidden;
}

.slide.active {
    background-position: center;
    background-size: cover;
    animation: kenBurns3D 15s ease-in-out infinite alternate;
}

/* Click to Clear Blur Effect */
.slide::before {
    transition: backdrop-filter 0.5s ease, -webkit-backdrop-filter 0.5s ease, background 0.5s ease;
    cursor: pointer;
}

.slide.clear-view::before {
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    background: rgba(0, 0, 0, 0.2);
}
