@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: "DM Sans", sans-serif;
    font-family: "Manrope", sans-serif; */
}

body{
    overflow-x: hidden;
}

/* ===============================
   FULL WIDTH CONTAINER
================================ */
.irfan-container{
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        to right,
        rgba(24,34,28,0.7),
        rgba(24,34,28,0.4)
    );
}

/* ===============================
   SLIDE WRAPPER
================================ */
.irfan-slide{
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s ease;
    will-change: transform;
    backface-visibility: hidden;
}

.irfan-slide.is-animating{
    transition: transform 0.6s ease;
}

/* ===============================
   SLIDE ITEM
================================ */
.irfan-slide .irfan-item{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    height: 380px;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 30px 60px rgba(0,0,0,.4);
    transition: .6s ease;
    overflow: hidden;
    z-index: 5;
}

/* DARK OVERLAY */
.irfan-slide .irfan-item::after{
    content:'';
    position:absolute;
    inset:0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,.55),
        rgba(0,0,0,.15)
    );
    z-index:0;
}

/* MAIN BACKGROUND IMAGE */
.irfan-slide .irfan-item:nth-child(1),
.irfan-slide .irfan-item:nth-child(2){
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform: none;
    border-radius: 0;
}

/* RIGHT SIDE CARDS */
.irfan-slide .irfan-item:nth-child(3){ left: 60%; }
.irfan-slide .irfan-item:nth-child(4){ left: calc(60% + 300px); }
.irfan-slide .irfan-item:nth-child(5){ left: calc(60% + 600px); }

.irfan-slide .irfan-item:nth-child(n + 6){
    opacity: 0;
    left: calc(60% + 900px);
}



/* ===============================
   VIDEO
================================ */
/* Video */
.irfan-video{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Dark Overlay */
.irfan-overlay{
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.514);
    z-index: 2;
}



/* ===============================
   CONTENT
================================ */
.irfan-item .irfan-content{
    position: absolute;
    z-index: 3;
    color: #fff;
    opacity: 0;
    transition: .4s ease;
}

/* HERO CONTENT */
.irfan-item.active .irfan-content {
    left: 50px;
    bottom: 20%;
    max-width: 45%;
    opacity: 1;
}

/* ===============================
   TEXT STYLES
================================ */
    /* font-family: "DM Sans", sans-serif;
    font-family: "Manrope", sans-serif; */
.irfan-item.active .irfan-content .irfan-span {
    font-size: 14px;
    line-height: 13px;
    font-weight: 600;
    color: #051b05;
    text-transform: uppercase;
    letter-spacing: 2;
    font-family: "DM Sans", sans-serif;

    display: inline-block !important;
    background-color: #D4AF37 !important;
    border-style: solid !important;
    border-width: 0px 0px 0px 0px !important;
    border-radius: 0px 0px 0px 0px !important;
    padding: 11px 15px 11px 15px !important;
    margin-bottom: 10px;
    animation: irfanFadeUp 1s ease forwards;
}

.irfan-item.active .irfan-content .irfan-name {
    font-size: 45px;
    line-height: 55px;
    font-weight: 700;
    color: #fff;
    font-family: "Manrope", sans-serif;
}

.irfan-item.active .irfan-content .irfan-des {
    font-size: 16px;
    line-height: 26px;
    font-weight: 400;
    color: #fff;
    font-family: "DM Sans", sans-serif;
}

.irfan-item.active .irfan-content .hero-main-btn {
    position: relative;
    overflow: hidden;

    background-color: #D4AF37;
    font-family: "DM Sans", Sans-serif;
    font-size: 18px;
    font-weight: 500;
    fill: #0A1F44;
    color: #0A1F44;
    border-radius: 50px 50px 50px 50px;
    padding: 5px 5px 5px 25px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.4s ease-in-out;

    animation: irfanFadeUp 1s ease forwards;
}

.irfan-item.active .irfan-content .hero-main-btn:hover {
    position: relative;
    z-index: 2;
    color: #fff;
}

.irfan-item.active .irfan-content .hero-main-btn::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    right: 50%;
    opacity: 0;
    background-color: #0A1F44;
    border-radius: 0;
    transition: all 0.4s ease-in-out;
    z-index: 1;
}

.irfan-item.active .irfan-content .hero-main-btn:hover::before {
    left: 0;
    right: 0;
    opacity: 1;
}

.irfan-item.active .irfan-content .hero-main-btn .hero-main-btn-row {
    position: relative;
    z-index: 2 !important;
    display: flex;
    align-items: center !important;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 10px;
}

.irfan-item.active .irfan-content .hero-main-btn 
.hero-main-btn-row .hero-main-btn-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    overflow: hidden;
    background-color: #0A1F44;
    border-radius: 50%;
    transition: all 0.4s ease-in-out;
    transform: rotate(0deg);
}

.irfan-item.active .irfan-content .hero-main-btn:hover 
.hero-main-btn-row .hero-main-btn-icon {
    background-color: #D4AF37;
    transform: rotate(45deg);
}

.irfan-item.active .irfan-content .hero-main-btn 
.hero-main-btn-row .hero-main-btn-icon svg {
    width: 18px;
    height: auto;
}

.irfan-item.active .irfan-content .hero-main-btn 
.hero-main-btn-row .hero-main-btn-icon svg path {
    transition: all 0.4s ease-in-out;
    fill: #fff !important;
    color: #fff !important;
}

.irfan-item.active .irfan-content .hero-main-btn:hover 
.hero-main-btn-row .hero-main-btn-icon svg path {
    fill: #0A1F44 !important;
    color: #0A1F44 !important;
    position: relative !important;
    z-index: 2 !important;
}

.irfan-item.active .irfan-content .irfan-btn {
    display: none;
}

/* .irfan-item.active .irfan-content .irfan-btn */
.irfan-content .irfan-name{
    font-size: 52px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    max-width: 520px;
    animation: irfanFadeUp 1s .3s ease forwards;
}

.irfan-content .irfan-des{
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 24px;
    opacity: .9;
    animation: irfanFadeUp 1s .4s ease forwards;
}

.irfan-content button{
    padding: 12px 28px;
    border: none;
    background: #fff;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    animation: irfanFadeUp 1s .4s ease forwards;
    font-family: "DM Sans", sans-serif;
}

/* SIDE CARD TEXT */
.irfan-slide .irfan-item:not(.active) .irfan-span {
    font-size: 10px;
    line-height: 9px;
    font-weight: 600;
    color: #051b05;
    text-transform: uppercase;
    letter-spacing: 2;
    font-family: "DM Sans", sans-serif;

    display: inline-block !important;
    background-color: #D4AF37 !important;
    border-style: solid !important;
    border-width: 0px 0px 0px 0px !important;
    border-radius: 0px 0px 0px 0px !important;
    padding: 5px 4px !important;
    margin-bottom: 5px;
}

.irfan-slide .irfan-item:not(.active) .irfan-name {
    font-size: 18px;
    line-height: 26px;
    font-weight: 600;
    margin-bottom: 6px;
    font-family: "Manrope", sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.irfan-slide .irfan-item:not(.active) .irfan-des{
    font-size: 13px;
    line-height: 19px;
    font-weight: 400;
    color: #fff;
    font-family: "DM Sans", sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 10px;
}

.irfan-slide .irfan-item:not(.active) button {
    font-size: 12px;
    padding: 6px 14px;
    font-family: "DM Sans", sans-serif;
}

.irfan-slide .irfan-item:not(.active) .hero-main-btn {
    display: none;
}

/* ===============================
   ANIMATION
================================ */
@keyframes irfanFadeUp{
    from{
        opacity: 0;
        transform: translateY(40px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================
   NAV BUTTONS
================================ */
.irfan-button{
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.irfan-button button{
    width: 42px;
    height: 42px;
    line-height: 0px;
	padding: 0;
        border-radius: 50px;
        background: rgba(255,255,255,0.18);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255,255,255,0.28);
    margin: 0 6px;
    cursor: pointer;
    font-size: 18px;
    font-family: "DM Sans", sans-serif;
}


/* ===============================
   GLASS EFFECT (DESKTOP)
================================ */
@media (min-width: 769px){
    .irfan-slide
    .irfan-item:not(.active):not(:nth-child(1)):not(:nth-child(2))
    .irfan-content{
        left: 16px;
        right: 16px;
        bottom: 16px;
        padding: 14px;
        border-radius: 14px;
        opacity: 1;
        background: rgba(255,255,255,0.18);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255,255,255,0.28);
    }
}

/* ===============================
   TABLET
================================ */
@media (max-width: 1024px){

    .irfan-item.active .irfan-content{
        left: 40px;
        bottom: 26%;
    }

    .irfan-content .irfan-name{
        font-size: 36px;
        line-height: 1.15;
        margin-bottom: 8px;
        max-width: 90%;
    }

    .irfan-content .irfan-des{
        font-size: 15px;
        line-height: 1.4;
        margin-bottom: 16px;
        max-width: 90%;
    }

    .irfan-slide .irfan-item:nth-child(3){
        left: 65%;
        width: 220px;
        height: 320px;
    }

    .irfan-slide .irfan-item:nth-child(n + 4){
        opacity: 0;
    }
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 768px){

    .irfan-container{
        width: 100vw;
        height: 60vh;
        position: relative;
        overflow: hidden;
        background: linear-gradient(
            to right,
            rgba(24,34,28,0.7),
            rgba(24,34,28,0.4)
        );
    }


    .irfan-slide .irfan-item{
        width: 100%;
        height: 100%;
        left: 0 !important;
        top: 0;
        transform: none;
        border-radius: 0;
    }

    /* Hide side cards */
    .irfan-slide .irfan-item:nth-child(n + 3){
        display: none;
    }

    /* CENTER ACTIVE SLIDE (compact) */
    .irfan-item.active{
        display: flex;
        align-items: center;        /* vertical center */
        justify-content: center;    /* horizontal center */
    }

    /* CONTENT COMPACT CONTROL */
    .irfan-item.active .irfan-content{
        position: relative;
        left: -1%;
        right: 0;
        top: 0;
        bottom: 0;
        transform: none;
        text-align: center;
        justify-content: center;
        max-width: 100%;
        margin-top: -50px !important;     /* 🔽 remove top empty gap */
    }

    /* TITLE */
    .irfan-content .irfan-name{
        font-size: 32px;        /* ⬆ bigger heading */
        line-height: 1.18;
        margin-bottom: 12px;   /* gap below heading */
    }

    /* Space after description */
    .irfan-content .irfan-des{
        font-size: 15px;
        margin-bottom: 18px;   /* gap before button */
    }

    /* BUTTON */
    .irfan-btn{
       padding: 12px 28px;
        margin-top: 10px;
        margin-right: 15px;
    }


    .irfan-button{
        bottom: 20px;
        gap: 8px;
    }

    .irfan-button button{
        width: 40px;
        height: 40px;
        line-height: 0px;
        padding: 0;
            border-radius: 50px;
            background: rgba(255,255,255,0.18);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255,255,255,0.28);
        margin: 0 6px;
        cursor: pointer;
        font-size: 18px;
        font-family: "DM Sans", sans-serif;
    }


    /* .irfan-item.active .irfan-content .irfan-span */
    .irfan-item.active .irfan-content .irfan-span {
        font-size: 11px;
        line-height: 10px;
        font-weight: 600;
        color: #051b05;
        text-transform: uppercase;
        letter-spacing: 2;
        font-family: "DM Sans", sans-serif;

        display: inline-block !important;
        background-color: #D4AF37 !important;
        border-style: solid !important;
        border-width: 0px 0px 0px 0px !important;
        border-radius: 0px 0px 0px 0px !important;
        padding: 5px 8px !important;
        margin-bottom: 5px;
    }

    .irfan-item.active .irfan-content .irfan-name {
        font-size: 25px;
        line-height: 35px;
        font-weight: 700;
        color: #fff;
        font-family: "Manrope", sans-serif;
        position: relative;
        left: 6%;
    }

    .irfan-item.active .irfan-content .irfan-des {
        font-size: 13px;
        line-height: 20px;
        font-weight: 400;
        color: #fff;
        font-family: "DM Sans", sans-serif;
        position: relative;
        left: 6%;
    }





    .irfan-item.active .irfan-content .hero-main-btn {
        position: relative;
        overflow: hidden;

        background-color: #D4AF37;
        font-family: "DM Sans", Sans-serif;
        font-size: 14px;
        font-weight: 500;
        fill: #0A1F44;
        color: #0A1F44;
        border-radius: 50px 50px 50px 50px;
        padding: 5px 5px 5px 25px;
        text-decoration: none;
        display: inline-block;
        transition: all 0.4s ease-in-out;
        animation: irfanFadeUp 1s .6s ease forwards;
    }

    .irfan-item.active .irfan-content .hero-main-btn:hover {
        position: relative;
        z-index: 2;
        color: #fff;
    }

    .irfan-item.active .irfan-content 
    .hero-main-btn::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        right: 50%;
        opacity: 0;
        background-color: #0A1F44;
        border-radius: 0;
        transition: all 0.4s ease-in-out;
        z-index: 1;
    }

    .irfan-item.active .irfan-content 
    .hero-main-btn:hover::before {
        left: 0;
        right: 0;
        opacity: 1;
    }

    .irfan-item.active .irfan-content .hero-main-btn 
    .hero-main-btn-row {
        position: relative;
        z-index: 2 !important;
        display: flex;
        align-items: center !important;
        flex-direction: row-reverse;
        justify-content: center;
        gap: 10px;
    }

    .irfan-item.active .irfan-content .hero-main-btn 
    .hero-main-btn-row .hero-main-btn-icon {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 32px;
        height: 32px;
        overflow: hidden;
        background-color: #0A1F44;
        border-radius: 50%;
        transition: all 0.4s ease-in-out;
        transform: rotate(0deg);
    }

    .irfan-item.active .irfan-content .hero-main-btn:hover 
    .hero-main-btn-row .hero-main-btn-icon {
        background-color: #D4AF37;
        transform: rotate(45deg);
    }

    .irfan-item.active .irfan-content .hero-main-btn 
    .hero-main-btn-row .hero-main-btn-icon svg {
        width: 14px;
        height: auto;
    }

    .irfan-item.active .irfan-content .hero-main-btn 
    .hero-main-btn-row .hero-main-btn-icon svg path {
        transition: all 0.4s ease-in-out;
        fill: #fff !important;
        color: #fff !important;
    }

    .irfan-item.active .irfan-content .hero-main-btn:hover 
    .hero-main-btn-row .hero-main-btn-icon svg path {
        fill: #0A1F44 !important;
        color: #0A1F44 !important;
        position: relative !important;
        z-index: 2 !important;
    }


}

/* ===============================
   RESPONSIVE DISABLE TRANSITION
================================ */
@media (max-width: 1024px){
    .irfan-slide{
        transition: none !important;
        transform: none !important;
    }
}

