
/* =====================================
   MAIN HERO CAROUSEL
===================================== */

.hero-slide {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
    background: #06152e;
    isolation: isolate;
}

/* Background Image */
.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    transform: scale(1.1);
    animation: imageZoom 8s ease-in-out infinite alternate;
}

@keyframes imageZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.15); }
}

/* Dark Overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(0, 10, 30, .88),
        rgba(0, 20, 50, .45)
    );
}

/* =====================================
   BOX / TILE ANIMATION
===================================== */

.tile-reveal {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(5, 1fr);
    overflow: hidden;
    pointer-events: none;
    perspective: 1000px;
}

.tile-reveal span {
    display: block;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    opacity: 0;

    transform:
        translate3d(var(--x), var(--y), 0)
        rotate(var(--rotate))
        rotateY(70deg)
        scale(.35);

    filter: brightness(1.8);
    box-shadow: 0 0 15px rgba(0, 0, 0, .3);
    backface-visibility: hidden;
}

.carousel-item.active .tile-reveal span {
    animation: boxAssemble 1.3s cubic-bezier(.16, 1, .3, 1) forwards;
    animation-delay: var(--delay);
}

@keyframes boxAssemble {
    0% {
        opacity: 0;
        transform:
            translate3d(var(--x), var(--y), 0)
            rotate(var(--rotate))
            rotateY(70deg)
            scale(.35);
        filter: brightness(2);
    }

    65% {
        opacity: 1;
        transform:
            translate3d(0, 0, 0)
            rotate(0)
            rotateY(0)
            scale(1.05);
        filter: brightness(1.3);
    }

    100% {
        opacity: 1;
        transform:
            translate3d(0, 0, 0)
            rotate(0)
            rotateY(0)
            scale(1);
        filter: brightness(1);
    }
}

/* =====================================
   HERO TEXT CONTENT
===================================== */

.hero-container {
    position: relative;
    z-index: 4;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 700px;
    padding: 30px 0;
    color: #fff;
}

.hero-kicker {
    color: #ffc107;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(36px, 5vw, 65px);
    font-weight: 800;
    line-height: 1.15;
    margin: 18px 0;
    color: #fff;
}

.hero-title span {
    color: #ffc107;
}

.hero-desc {
    font-size: 18px;
    line-height: 1.8;
    color: #e5eaf2;
}

/* Text Animation */
.carousel-item.active .hero-kicker {
    animation: fadeUp .8s ease both;
}

.carousel-item.active .hero-title {
    animation: fadeUp 1s ease both;
}

.carousel-item.active .hero-desc {
    animation: fadeUp 1.2s ease both;
}

.carousel-item.active .hero-actions {
    animation: fadeUp 1.4s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================
   BUTTONS
===================================== */

.hero-actions {
    margin-top: 30px;
}

.hero-actions .btn {
    padding: 13px 28px;
    border-radius: 5px;
    font-weight: 700;
    margin: 5px;
    transition: all .3s ease;
}

.hero-actions .btn:hover {
    transform: translateY(-4px);
}

/* =====================================
   FLOATING TECH ICONS
===================================== */

.floating-tech {
    position: absolute;
    z-index: 5;
    right: 10%;
    bottom: 15%;
    display: flex;
    gap: 15px;
}

.floating-tech div {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    backdrop-filter: blur(8px);
    animation: float 3s ease-in-out infinite;
}

.floating-tech div:nth-child(2) {
    animation-delay: .5s;
}

.floating-tech div:nth-child(3) {
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-18px);
    }
}

/* =====================================
   CAROUSEL CONTROLS
===================================== */

.carousel-control-prev,
.carousel-control-next {
    width: 7%;
    z-index: 6;
}

/* =====================================
   LARGE LAPTOP
===================================== */

@media (max-width: 1200px) {
    .hero-slide {
        height: 580px;
    }

    .hero-content {
        max-width: 620px;
    }

    .hero-title {
        font-size: 52px;
    }

    .floating-tech {
        right: 6%;
    }
}

/* =====================================
   TABLET
===================================== */

@media (max-width: 992px) {
    .hero-slide {
        height: 520px;
    }

    .hero-content {
        max-width: 550px;
        padding: 25px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .hero-kicker {
        font-size: 14px;
    }

    .floating-tech {
        right: 5%;
        bottom: 10%;
    }

    .floating-tech div {
        width: 52px;
        height: 52px;
        font-size: 16px;
    }
}

/* =====================================
   MOBILE
===================================== */

@media (max-width: 768px) {
    .hero-slide {
        height: 500px;
    }

    .hero-img {
        object-fit: cover;
        object-position: center center;
    }

    .tile-reveal {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(7, 1fr);
    }

    .hero-container {
        justify-content: center;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 25px;
    }

    .hero-kicker {
        font-size: 13px;
        letter-spacing: 2px;
    }

    .hero-title {
        font-size: 34px;
        line-height: 1.2;
        margin: 15px 0;
    }

    .hero-desc {
        font-size: 14px;
        line-height: 1.6;
    }

    .hero-actions {
        margin-top: 20px;
    }

    .hero-actions .btn {
        padding: 10px 16px;
        font-size: 13px;
        margin: 4px;
    }

    .floating-tech {
        display: none;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 9%;
    }
}

/* =====================================
   SMALL MOBILE
===================================== */

@media (max-width: 480px) {
    .hero-slide {
        height: 430px;
    }

    .hero-content {
        padding: 20px;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.2;
    }

    .hero-desc {
        font-size: 13px;
        line-height: 1.5;
    }

    .hero-kicker {
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .hero-actions {
        margin-top: 18px;
    }

    .hero-actions .btn {
        padding: 9px 13px;
        font-size: 12px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 8%;
    }
}

/* =====================================
   VERY SMALL MOBILE
===================================== */

@media (max-width: 360px) {
    .hero-slide {
        height: 400px;
    }

    .hero-content {
        padding: 15px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-desc {
        font-size: 12px;
    }

    .hero-kicker {
        font-size: 10px;
    }

    .hero-actions .btn {
        padding: 8px 10px;
        font-size: 11px;
    }
}

/* =====================================
   REDUCED MOTION ACCESSIBILITY
===================================== */

@media (prefers-reduced-motion: reduce) {
    .hero-img,
    .floating-tech div,
    .carousel-item.active .hero-kicker,
    .carousel-item.active .hero-title,
    .carousel-item.active .hero-desc,
    .carousel-item.active .hero-actions,
    .carousel-item.active .tile-reveal span {
        animation: none !important;
        opacity: 1;
        transform: none;
    }
}
.navbar-toggler-icon {
    filter: brightness(0);
}

.vm-hover {
    transition: all 0.3s ease;
}

.vm-hover:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.20) !important;
}
/*code for testimonial*/

.testimonial-section {
    background: #f4f6fb;
}

.testimonial-section h2 {
    color: #142b55;
}

.review-card {
    background: #fff;
    padding: 28px 22px;
    border-radius: 12px;
    height: 100%;
    min-height: 270px;
    border-bottom: 4px solid #142b55;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: 0.3s;
}

.review-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 25px rgba(20,43,85,0.15);
}

.review-card p {
    color: #666;
    line-height: 1.7;
    font-size: 15px;
}

.stars {
    color: #ffb400;
    font-size: 21px;
    margin-bottom: 15px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

.user-icon {
    width: 45px;
    height: 45px;
    background: #142b55;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.review-user h6 {
    margin: 0;
    color: #142b55;
    font-weight: 700;
}

.review-user small {
    color: #888;
}

.review-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: #142b55;
    color: white;
    transition: 0.3s;
}

.review-btn:hover {
    background: #f5a623;
    transform: scale(1.1);
}

/* Tablet */
@media(max-width: 991px) {
    .review-card {
        padding: 22px 16px;
    }
}

/* Mobile */
@media(max-width: 767px) {
    .review-card {
        min-height: auto;
        margin: 0 15px;
    }
}
