﻿/*==============================================================
    DARJEELING INFOTECH
    HERO SECTION
==============================================================*/

:root {
    --primary: #2F5F9D;
    --secondary: #F48C2B;
    --dark: #081B3A;
    --light: #ffffff;
    --text: rgba(255,255,255,.92);
    --transition: .4s ease;
}

/*==============================================================
    HERO SECTION
==============================================================*/

.di-hero {
    position: relative;
    height: 100vh;
    min-height: 900px;
    overflow: visible;
    background: #081B3A;
}

/*==============================================================
    SWIPER
==============================================================*/

.heroSwiper,
.heroSwiper .swiper-wrapper,
.heroSwiper .swiper-slide {
    width: 100%;
    height: 100%;
}

.heroSwiper {
    position: absolute;
    inset: 0;
}

    .heroSwiper .swiper-slide {
        position: relative;
        overflow: hidden;
    }

/*==============================================================
    BACKGROUND IMAGE
==============================================================*/

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 8s linear;
}

.swiper-slide-active .hero-bg {
    transform: scale(1.08);
}

/*==============================================================
    OVERLAY
==============================================================*/

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: linear-gradient( 90deg, rgba(5,18,45,.90) 0%, rgba(8,35,72,.78) 45%, rgba(5,18,45,.45) 100% );
}

/*==============================================================
    CONTAINER
==============================================================*/

.hero-container {
    position: relative;
    z-index: 20;
    height: 100%;
}

    .hero-container .row {
        height: 100%;
    }

/*==============================================================
    CONTENT
==============================================================*/

.hero-content {
    max-width: 720px;
    color: #fff;
    padding-bottom: 240px;
}

/*==============================================================
    BADGE
==============================================================*/

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    font-weight: 600;
    margin-bottom: 30px;
}

    .hero-badge i {
        color: var(--secondary);
    }

/*==============================================================
    TITLE
==============================================================*/

.hero-content h1 {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 30px;
    color: #fff;
}

    .hero-content h1 span {
        color: var(--secondary);
    }

/*==============================================================
    PARAGRAPH
==============================================================*/

.hero-content p {
    font-size: 20px;
    line-height: 1.9;
    color: rgba(255,255,255,.92);
    margin-bottom: 45px;
    max-width: 640px;
}

/*==============================================================
    BUTTONS
==============================================================*/

.hero-buttons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

    .hero-buttons .btn {
        height: 58px;
        padding: 0 34px;
        border-radius: 60px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        transition: var(--transition);
    }

    .hero-buttons .btn-primary {
        background: var(--secondary);
        border: none;
    }

        .hero-buttons .btn-primary:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(244,140,43,.35);
        }

    .hero-buttons .btn-outline-light {
        border: 2px solid rgba(255,255,255,.45);
    }

        .hero-buttons .btn-outline-light:hover {
            background: #fff;
            color: var(--dark);
        }



/*==============================================================
    FLOATING LEAD CARD
==============================================================*/

.hero-lead-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -170px;
    z-index: 100;
}

    .hero-lead-wrapper .container {
        max-width: 1320px;
    }

/*==============================================================
    SWIPER NAVIGATION
==============================================================*/

.hero-prev,
.hero-next {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(15px);
    transition: .35s;
}

    .hero-prev:after,
    .hero-next:after {
        font-size: 20px;
        color: #fff;
    }

    .hero-prev:hover,
    .hero-next:hover {
        background: var(--secondary);
    }

.hero-prev {
    left: 40px;
}

.hero-next {
    right: 40px;
}

/*==============================================================
    PAGINATION
==============================================================*/

.hero-pagination {
    bottom: 45px !important;
}

    .hero-pagination .swiper-pagination-bullet {
        width: 14px;
        height: 14px;
        background: #fff;
        opacity: .4;
        transition: .35s;
    }

    .hero-pagination .swiper-pagination-bullet-active {
        opacity: 1;
        background: var(--secondary);
        transform: scale(1.3);
    }

/*==============================================================
    SCROLL INDICATOR
==============================================================*/

.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 35px;
    transform: translateX(-50%);
    color: #fff;
    z-index: 30;
    animation: scrollDown 2s infinite;
}

    .hero-scroll i {
        font-size: 28px;
    }

@keyframes scrollDown {

    0% {
        transform: translate(-50%,0);
        opacity: 1;
    }

    50% {
        transform: translate(-50%,10px);
        opacity: .6;
    }

    100% {
        transform: translate(-50%,0);
        opacity: 1;
    }
}

/*==============================================================
    HERO ANIMATION
==============================================================*/

.hero-content > * {
    animation: heroFade .8s ease both;
}

    .hero-content > *:nth-child(2) {
        animation-delay: .15s;
    }

    .hero-content > *:nth-child(3) {
        animation-delay: .30s;
    }

    .hero-content > *:nth-child(4) {
        animation-delay: .45s;
    }

@keyframes heroFade {

    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/*==============================================================
    TABLET
==============================================================*/

@media (max-width:1199px) {

    .hero-content {
        max-width: 620px;
        padding-bottom: 220px;
    }

        .hero-content h1 {
            font-size: 58px;
        }

    .hero-prev {
        left: 20px;
    }

    .hero-next {
        right: 20px;
    }
}

/*==============================================================
    MOBILE
==============================================================*/

@media (max-width:991px) {

    .di-hero {
        min-height: 1050px;
    }

    .hero-container {
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin: auto;
        padding-top: 120px;
        padding-bottom: 80px;
    }

        .hero-content h1 {
            font-size: 46px;
        }

        .hero-content p {
            margin: auto auto 35px;
        }

    .hero-buttons {
        justify-content: center;
    }

    .hero-lead-wrapper {
        position: relative;
        bottom: auto;
        margin-top: -60px;
    }

    .hero-prev,
    .hero-next {
        display: none;
    }
}

/*==============================================================
    SMALL DEVICES
==============================================================*/

@media (max-width:768px) {

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-content p {
        font-size: 17px;
    }

    .hero-badge {
        font-size: 13px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

        .hero-buttons .btn {
            width: 100%;
            max-width: 320px;
        }
}

/*==============================================================
    EXTRA SMALL
==============================================================*/

@media (max-width:576px) {

    .di-hero {
        min-height: 980px;
    }

    .hero-content {
        padding-top: 100px;
    }

        .hero-content h1 {
            font-size: 32px;
            line-height: 1.2;
        }

        .hero-content p {
            font-size: 16px;
            line-height: 1.7;
        }

    .hero-pagination {
        bottom: 20px !important;
    }

    .hero-badge {
        padding: 10px 18px;
    }
}

/*==============================================================
    LARGE DESKTOP
==============================================================*/

@media (min-width:1600px) {

    .hero-content {
        max-width: 800px;
    }

        .hero-content h1 {
            font-size: 82px;
        }

        .hero-content p {
            font-size: 22px;
        }
}
