/* Intro Slider Styles */
.intro-slider {
    background: #1A2540;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.intro-slides {
    position: relative;
}

.intro-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.intro-slide.active {
    display: block;
}

.intro-content {
    padding: 30px 0;
}

.intro-content h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: slideInLeft 0.5s ease-out;
}

.intro-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    animation: slideInLeft 0.7s ease-out;
}

.intro-image {
    animation: slideInRight 0.5s ease-out;

}

.intro-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Slider Navigation */
.slider-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    pointer-events: none;
}

.slider-prev,
.slider-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.slider-prev:hover,
.slider-next:hover {
    background: #CD363F;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #CD363F;
    transform: scale(1.2);
}

/* Corner Accents */
.corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid #CD363F;
    opacity: 0;
    transition: all 0.5s ease;
}

.corner-tl {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.corner-tr {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.corner-bl {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.corner-br {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.intro-content.active .corner {
    opacity: 1;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Styles */
@media (max-width: 991px) {
    .intro-slider {
        padding: 60px 0;
    }

    .intro-content h1 {
        font-size: 36px;
    }

    .intro-content p {
        font-size: 16px;
    }

    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .intro-slider {
        padding: 40px 0;
    }

    .intro-content {
        text-align: center;
        padding: 20px 0;
    }

    .intro-content h1 {
        font-size: 28px;
    }

    .intro-image {
        margin-top: 30px;
    }

    .slider-arrows {
        display: none;
    }
}

.intro-section {
    background: linear-gradient(135deg, #1A2540 0%, #1A2540 60%, #CD363F 100%);
    padding: 100px 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    .intro-section {
        padding: 60px 0;
    }

    .intro-content {
        padding: 25px;
    }

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

    .intro-content p {
        font-size: 1rem;
    }

    .btn-wrapper {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .theme-btn.style7 {
        margin-left: 0;
    }

    .intro-content::before,
    .intro-content::after {
        width: 50px;
        height: 50px;
    }

    .intro-image-wrapper {
        margin-top: 30px;
    }
}

@media (max-width: 576px) {
    .intro-section {
        padding: 40px 0;
    }

    .intro-content h1 {
        font-size: 2rem;
    }

    .intro-content {
        padding: 20px;
    }

    .corner {
        width: 15px;
        height: 15px;
    }

    .hardware-pattern {
        background-size: 15px 15px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .intro-content h1 {
        font-size: 3rem;
    }

    .intro-content {
        padding: 30px;
    }
}

/* Ensure buttons stack properly on mobile */
@media (max-width: 768px) {
    .btn-wrapper {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .theme-btn {
        width: 100%;
        text-align: center;
    }

    .theme-btn.style7 {
        margin-left: 0;
    }
}

/* Adjust image wrapper for mobile */
@media (max-width: 768px) {
    .intro-image-wrapper::before {
        transform: rotate(-1deg);
    }

    .intro-image-wrapper img {
        transform: rotate(1deg);
    }
}

/* Ensure content is properly spaced on tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .row.gy-5 {
        gap: 2rem;
    }
}

.hardware-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(45deg, rgba(205, 54, 63, 0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(205, 54, 63, 0.1) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(205, 54, 63, 0.1) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(205, 54, 63, 0.1) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.1;
}

.intro-wrapper {
    position: relative;
    z-index: 1;
}

.intro-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    border-bottom: 1px solid rgba(205, 54, 63, 0.2);
}

.intro-content::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background:
        radial-gradient(circle at center, transparent 25px, rgba(205, 54, 63, 0.1) 25px, rgba(205, 54, 63, 0.1) 45px, transparent 45px),
        repeating-conic-gradient(from 0deg,
        transparent 0deg,
        transparent 20deg,
        rgba(205, 54, 63, 0.1) 20deg,
        rgba(205, 54, 63, 0.1) 30deg
        );
    animation: spin 20s linear infinite;
    opacity: 0.7;
}

.intro-content::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 60px;
    height: 60px;
    background:
        radial-gradient(circle at center, transparent 15px, rgba(26, 37, 64, 0.2) 15px, rgba(26, 37, 64, 0.2) 25px, transparent 25px),
        repeating-conic-gradient(from 0deg,
        transparent 0deg,
        transparent 30deg,
        rgba(26, 37, 64, 0.2) 30deg,
        rgba(26, 37, 64, 0.2) 45deg
        );
    animation: spin 15s linear infinite reverse;
    opacity: 0.7;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.intro-content {
    padding: 40px;
    background: linear-gradient(135deg,
    rgba(26, 37, 64, 0.3) 0%,
    rgba(26, 37, 64, 0.1) 100%
    );
    border: 1px solid rgba(205, 54, 63, 0.1);
    border-radius: 10px;
    box-shadow:
        0 0 20px rgba(0, 0, 0, 0.2),
        inset 0 0 10px rgba(205, 54, 63, 0.1);
    backdrop-filter: blur(5px);
}

.intro-content .corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #CD363F;
    opacity: 0.5;
}

.intro-content .corner-tl {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.intro-content .corner-tr {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.intro-content .corner-bl {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.intro-content .corner-br {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.intro-content h1 {
    position: relative;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.intro-content h1::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    width: 5px;
    height: 70%;
    background: #CD363F;
    transform: translateY(-50%) skewY(-45deg);
}

.intro-content h1::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
    rgba(205, 54, 63, 0.15) 0%,
    rgba(205, 54, 63, 0) 50%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateX(1px) translateY(1px);
    z-index: -1;
}

.intro-content p {
    position: relative;
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.intro-image-wrapper {
    position: relative;
    padding: 20px;
}

.intro-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border: 2px solid rgba(205, 54, 63, 0.3);
    border-radius: 10px;
    transform: rotate(-2deg);
}

.intro-image-wrapper img {
    position: relative;
    z-index: 1;
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.intro-image-wrapper img:hover {
    transform: rotate(0);
}

.theme-btn.style6 {
    background: #CD363F;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.theme-btn.style6:hover {
    background: #b52d35;
    transform: translateY(-2px);
}

.theme-btn.style7 {
    background: transparent;
    color: white;
    border: 2px solid #CD363F;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.theme-btn.style7:hover {
    background: #CD363F;
    transform: translateY(-2px);
}
