/* Unique Magic Banner: "The Geometric Mosaic Fly-Away" */

.magic-banner-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
    perspective: 1500px;
    top:-35px;
}

/* Main Image/Video with Reveal Effect */

.magic-banner-image, .magic-banner-video {
    width: 100%;
    height: 100%;
    object-fit: fill;
    opacity: 0;
    filter: brightness(0.8);
    transition: transform 6s ease-out, opacity 2s ease-in;
    top: 32px;
    position: relative;
}


.magic-banner-image {
    transform: scale(1.3);
}

.reveal-active .magic-banner-image,
.reveal-active .magic-banner-video {
    opacity: 1;
}

.reveal-active .magic-banner-image {
    transform: scale(1.05);
    /* Slow zoom in for images */
}


/* The Mosaic Shards */
.mosaic-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(4, 1fr);
    pointer-events: none;
}

.shard {
    background: #1d2931;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 1.2s cubic-bezier(0.9, 0, 0.3, 2);
    transform-style: preserve-3d;
}

/* Staggered animation for shards */
.reveal-active .shard {
    opacity: 0;
    transform: translateZ(500px) rotateX(90deg) rotateY(90deg);
}

/* Adding variety to shard movements */
.shard:nth-child(odd) {
    transform-origin: top left;
}

.shard:nth-child(even) {
    transform-origin: bottom right;
}

/* Text Animation: Glitch & Glow */
.banner-content-reveal{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 5;
}

.magic-title {
    font-size: clamp(2.8rem, 6vw, 6rem);
    font-family: 'Inter Display', Arial, sans-serif;
    font-weight: 500;

    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 0.8;

    opacity: 0;
    transform: translateY(30px);

    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1) 0.8s;

    text-shadow: 0 8px 25px rgba(0, 0, 0, 0.65);
}

.reveal-active .magic-title {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: -0.1rem;
}

.magic-tagline {
    font-size: 1.1rem;
    font-weight: 550;
    color: #fff;
    margin-bottom: 5px;
    letter-spacing: 0.1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease 0.5s;
    display: block;
    position: relative;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.reveal-active .magic-tagline {
    opacity: 1;
    transform: translateY(0);
}

.magic-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease 1.2s;
    display: block;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.reveal-active .magic-subtitle {
    opacity: 1;
    transform: translateY(0);
}



/* Animated Particles Background */
.magic-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png'); */
    opacity: 0.;
    z-index: 50;
}

/* Laptop Screen Optimizations */
@media (max-width: 1366px) {
    .magic-title {
        font-size: clamp(2.5rem, 9vw, 6rem) !important;
        /* letter-spacing: 1.5rem !important; */
    }

    .reveal-active .magic-title {
        /* letter-spacing: 0.8rem !important; */
    }

    .magic-tagline {
        font-size: 1.4rem !important;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .magic-banner-container {
        height: 80vh;
    }

    .banner-content-reveal {
        top: 60%; /* Moving text down on mobile as requested */
        left: 5%;
        width: 90%;
    }

    .magic-title {
        font-size: clamp(2.5rem, 15vw, 4rem);
        letter-spacing: 0.8rem;
    }

    .reveal-active .magic-title {
        letter-spacing: 0.3rem;
    }

    .magic-tagline {
        font-size: 0.9rem;
        padding: 0 15px;
        line-height: 0.1;
    }

    .mosaic-wrapper {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .magic-title {
        font-size: 2.2rem;
        letter-spacing: 0.5rem;
    }

    .reveal-active .magic-title {
        letter-spacing: 0.2rem;
    }

    .magic-tagline {
        font-size: 0.8rem;
    }
}
@media (max-width: 480px) {

    .magic-tagline {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .magic-title {
        font-size: 38px;
    }

    .magic-subtitle {
        font-size: 18px;
        line-height: 1.4;
    }
}
/* =========================
   BANNER TEXT DEFAULT
========================= */

.banner-content-reveal{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 5;
}

.banner-text-right{
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.magic-tagline{
    font-size: 18px;
    letter-spacing: 4px;
    margin-bottom: 10px;
    color: #fff;
}

.magic-title{
    font-size: 90px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 15px;
    color: #fff;
}

.magic-subtitle{
    font-size: 25px;
    line-height: 1.6;
    max-width: 700px;
    margin: auto;
    color: #fff;
}


/* =========================
   TABLET RESPONSIVE
========================= */

@media only screen and (max-width: 768px){

    .banner-content-reveal{
        top: 52%;
    }

    .magic-tagline{
        font-size: 13px;
        letter-spacing: 2px;
    }

    .magic-title{
        font-size: 55px;
        margin-bottom: 10px;
    }

    .magic-subtitle{
        font-size: 13px;
        line-height: 1.5;
        padding: 0 10px;
    }
}


/* =========================
   MOBILE RESPONSIVE
========================= */

@media only screen and (max-width: 480px){

    .banner-content-reveal{
        top: 75%;
    }

    .banner-text-right{
        padding: 0 15px;
    }

    .magic-tagline{
        font-size: 5px;
        letter-spacing: 2px;
        margin-bottom: 8px;
    }

    .magic-title{
        font-size: 42px;
        line-height: 1.1;
        margin-bottom: 8px;
    }

    .magic-subtitle{
        font-size: 40px;
        line-height: 1.4;
        width: 100%;
    }
}
/* Sub-banner alignment fix */
.dlab-bnr-inr {
    height: 350px !important;
}
.dlab-bnr-inr-entry {
    padding-top: 120px; /* Push content below floating header */
}

/* 3D Image Animation */
.about-3d-img-container {
    perspective: 1000px;
    padding: 20px;
    animation: float-3d-img 6s ease-in-out infinite;
}

@keyframes float-3d-img {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

.about-3d-img {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    height: auto;
}

.about-3d-img-container:hover .about-3d-img {
    transform: scale(1.02);
    animation: glow-pulse 1.5s infinite;
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 10px 30px rgba(0,0,0,0.1), 0 0 0 0 rgba(243, 156, 18, 0.4);
    }
    70% {
        box-shadow: 0 10px 30px rgba(0,0,0,0.2), 0 0 0 20px rgba(243, 156, 18, 0);
    }
    100% {
        box-shadow: 0 10px 30px rgba(0,0,0,0.1), 0 0 0 0 rgba(243, 156, 18, 0);
    }
}

/* =========================================
   MOBILE BANNER HEIGHT FIX
   SCREEN : 414 × 896
========================================= */

@media only screen 
and (min-width: 390px) 
and (max-width: 430px)
and (min-height: 800px) {

    .magic-banner-container{
        height: 92vh;
        min-height: 440px;
        overflow: hidden;
    }

    .magic-banner-video{
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }

    .magic-banner-image{
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }

    .banner-content-reveal{
        top: 58%;
        padding: 0 20px;
    }

    .magic-title{
        font-size: 58px;
        line-height: 1.05;
    }

    .magic-subtitle{
        font-size: 17px;
        line-height: 1.5;
        margin-top: 14px;
    }

}
/* =========================================
   BANNER PERFECT ALIGNMENT
   SCREEN : 715 × 768
========================================= */

@media only screen 
and (min-width: 650px) 
and (max-width: 768px)
and (min-height: 700px) {

    /* =========================
       BANNER CONTAINER
    ========================= */

    .magic-banner-container{

        position: relative;

        width: 100%;

        height: 85vh;

        min-height: 600px;

        overflow: hidden;
    }

    /* =========================
       VIDEO
    ========================= */

    .magic-banner-video{

        position: absolute;

        top: 0;

        left: 0;

        width: 100%;
        align-items: center;
        justify-content: center;
        height: 100%;

        object-fit: cover;

        object-position: center center;
    }

    /* =========================
       OVERLAY
    ========================= */

    .magic-particles{

        position: absolute;

        inset: 0;

        z-index: 2;
    }

    /* =========================
       CONTENT WRAPPER
    ========================= */

    .banner-content-reveal{

        position: absolute;

        top: 52%;

        left: 50%;

        transform: translate(-50%, -50%);

        width: 90%;

        z-index: 5;

        text-align: center;

        padding: 0 20px;
    }

    .banner-text-right{

        width: 100%;
    }

    /* =========================
       TAGLINE
    ========================= */

    .magic-tagline{

        font-size: 18px;

        letter-spacing: 4px;

        margin-bottom: 12px;
    }

    /* =========================
       TITLE
    ========================= */

    .magic-title{

        font-size: 72px;

        line-height: 1.05;

        font-weight: 800;

        margin-bottom: 18px;

        word-break: break-word;
    }

    /* =========================
       SUBTITLE
    ========================= */

    .magic-subtitle{

        font-size: 18px;

        line-height: 1.6;

        max-width: 600px;

        margin: 0 auto;
    }

    /* =========================
       MOSAIC EFFECT
    ========================= */

    .mosaic-wrapper{

        position: absolute;

        inset: 0;

        z-index: 3;
    }

}   

@media only screen and (max-width: 767px){

    .magic-banner-container{
        position: relative;
        height: 80vh;
        min-height: 530px;
    }

    .banner-content-reveal{
        position: absolute;
        top: 53%;
        left: 45%;
        transform: translate(-50%, -50%);
        width: 100%;
        padding: 0 20px;
        text-align: center;
        z-index: 10;
    }

    .banner-text-right{
        width: 100%;
        margin-top: 85px; /* pushes text below navbar */
    }

    .magic-tagline{
        font-size: 16px;
        margin-bottom: 15px;
    }

    .magic-title{
        font-size: 40px;
        line-height: 1.2;
        margin-bottom: 13px;
    }

    .magic-subtitle{
        font-size: 15px;
        line-height: 1.6;
        max-width: 200px;
        margin: 0 auto;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1024px){

    .v3-main-navbar .container-fluid{
        padding-left: 7px !important;
        padding-right: 15px !important;

        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .v3-logo{
        margin-left: 5px;
        padding: 8px;
    }

    .v3-nav-right{
        margin: 0;
        padding: 0;
    }

    .v3-mobile-toggle{
        margin-right: -8px;
        padding: 0;
        width: 40px;
        height: 40px;

        display: flex;
        align-items: center;
        justify-content: center;
    }
}
@media only screen and (min-width: 1024px) and (max-width: 1199px){

    .v3-main-navbar .container-fluid{
        display:flex;
        align-items:center;
        justify-content:space-between;
        padding-left:20px !important;
        padding-right:20px !important;
    }

    /* Logo Section */
    .v3-logo{
        flex:0 0 auto;
        margin:0 !important;
        padding:0 !important;
        max-width:220px; /* Increase as needed */
    }

    .v3-logo img{
        width:100%;
        max-width:220px;
        height:auto;
        display:block;
    }

    /* Navigation */
    .v3-nav-right{
        flex:1;
        display:flex;
        justify-content:flex-end;
        align-items:center;
    }

    .v3-nav-right .navbar-nav{
        gap:18px;
    }

    .v3-nav-right .navbar-nav > li > a{
        font-size:13px;
        padding:10px 8px !important;
    }

    /* Mobile Toggle */
    .v3-mobile-toggle{
        width:42px;
        height:42px;
        display:flex;
        align-items:center;
        justify-content:center;
    }
}
@media only screen and (min-width: 1024px) and (max-width: 1199px){

    .v3-main-navbar{
        padding: 12px 0 !important;
    }

    .v3-main-navbar .container-fluid{
        display:flex;
        align-items:center;
        justify-content:space-between;
        min-height:80px;
        padding-left:20px !important;
        padding-right:20px !important;
    }

    .v3-logo{
        display:flex;
        align-items:center;
        height:80px;
        margin:0 !important;
    }

    .v3-logo img{
        max-height:55px;
        width:auto;
        display:block;
    }

    .v3-nav-right{
        display:flex;
        align-items:center;
        height:80px;
    }

    .v3-nav-right .navbar-nav{
        display:flex;
        align-items:center;
        height:100%;
        margin:0;
    }

    .v3-nav-right .navbar-nav > li > a{
        display:flex;
        align-items:center;
        height:80px;
        padding:0 12px !important;
        line-height:normal;
    }
}