*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    overflow-x: hidden;
}
/* Transition variables and animations */
:root{
    --trans-fast: 0.16s;
    --trans: 0.28s;
    --trans-slow: 0.45s;
    --ease-default: cubic-bezier(.2,.9,.3,1);
}


@media (prefers-reduced-motion: reduce){
    :root{ --trans-fast: 0s; --trans: 0s; --trans-slow: 0s }
    *{ transition: none !important; animation-duration: 0s !important }
}

/* Page load gentle fade for major sections */
@keyframes nb-fade-in { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: translateY(0) } }
.container > header, .container > main, .container > footer {
    animation: nb-fade-in 0.45s var(--ease-default) both;
}

/* Default subtle transitions applied to common interactive elements */
header, .navbar, .hero, .banner, .main, footer,
.feature-card, .nav-menu ul li a, .btn-primary, .btn-secondary,
.icon-box, .icon-text i, img {
transition: transform var(--trans) var(--ease-default),
    box-shadow var(--trans) var(--ease-default),
    opacity var(--trans) var(--ease-default),
    filter var(--trans) var(--ease-default);
}
a i:hover{ color: #2a6a8f;transform: translateY(-4px) scale(1.1);box-shadow: 0 6px 15px rgba(53, 132, 168, 0.3);}


/* Images: gentle lift on hover on non-touch devices */
.header-img img, .header-img-about img, .main-img img, .main-image img {
    will-change: transform, filter;
}
@media (hover: hover) and (pointer: fine) {
    .header-img img:hover, .header-img-about img:hover, .main-img img:hover, .main-image img:hover {
        transform: translateY(-6px) scale(1.02);
        filter: saturate(1.05) contrast(1.02);
    }
    .feature-card:hover { transform: translateY(-10px) }
}

.btn-primary:hover, .btn-secondary:hover, .talk-session a:hover, .contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}


.nav-menu ul li a{
    color: black;
    display: flex;
    margin: 14px;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Nav toggle (hamburger) and responsive nav behavior */
.nav-toggle, .hamburger{
    display: none;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #3584a8;
}

/* Hover underline */
.nav-menu ul li a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    /* background-color: rgb(66, 66, 206); */
}

/* Active underline */
.nav-menu ul li a.active {
    border-bottom: 2px solid #fff;
    padding-bottom: 2px;
}

.header {
    background: linear-gradient(
    130deg,
    #7ecad7,
    #35bac9
    );


    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
    min-height: 100vh;
}
.header .logo{
    margin-left: -41px;
}
.header .navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding:10px 100px;
    position: fixed; 
    top: 0;
    width: 100%; /* Important for fixed elements */
    z-index: 1000;
    background: linear-gradient(
    130deg,
    #7ecad7,
    #35bac9
    );
    
}
.nav-menu ul{
    display: flex;
    margin-right: 380px;
}
.nav-menu ul li{
    display: flex;
    list-style: none;
}
.nav-menu ul li a{
    color: #fff;
    display: flex;
    margin: 14px;
    text-decoration: none;
}
.hero{
    text-align: center;
    padding: 80px;
    color: #fff;
    line-height: 5rem;
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-style: normal;
}
.hero h1{
    font-family: "Unbounded", sans-serif;
    margin-top: 90px;
    font-size: 56px;
    letter-spacing: -2px;
}
.hero p{
    font-family: "Poppins", sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 16px;
    letter-spacing: 2px;
}
/* Hover effect */
.btn-primary:hover,
.btn-secondary:hover {
    background-color: #ebf4f5; 
    color: #fff;
}

/* Active class */
.btn-primary.active,
.btn-secondary.active {
    background-color: #ebebeb;
    color: #fff;
}

.hero .button a{
    text-decoration: none;
    border: 1px solid white;
    font-size: 20px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    text-align: center;
    border-radius: 10px ;
    padding:12px 30px 12px 30px;
    margin-left: 50px;
    color: #2997a8;
}
.header-img{
    width: 100%;
    flex: 1 1 300px;
    display: flex;
    padding: 20px 0px;
    gap: 300px;
    justify-content: center;
    /* padding:1px 100px 90px 100px; */
}
.header-img img{
    width: auto;
    margin-left: 15px;
}

.main{
    align-items: center;
}
.main .middle{
    padding: 50px;
    text-align: center;
    padding: 80px 100px;
}
.main .middle h2{
    font-family: "Unbounded", sans-serif;
    font-optical-sizing: auto;
    font-size: 40px;
    padding: 20px 5px;
    font-weight: 900;
    font-style: normal;
}
.main .middle p{
    line-height: 25px;
    font-size: 18px;
    font-family: "unbounded", sans-serif;
    font-weight: 300;
    /* padding: 50px 100px; */
}
.main-img{
    background-color: #ebf4f5;
    text-align: left;
    margin: 50px 50px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
}
.main-img .main-head{
  padding: 120px 90px 120px 80px;
  line-height: 3em;
  font-family: "Unbounded", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}
.main-img img{
    width: 600px;
    padding: 50px;
}
.main-img img{
    width: 600px;
    padding: 50px;
}
#main-img{
  background : hsla(328, 40%, 76%, 0.1);
}
.main-image-last{
    display: flex;
    justify-content: space-between;
    text-align: left;
    padding: 10px;
    display: flex;
    justify-content: space-between;
}
.main-image-last .main-head{
    background : hsla(0, 20%, 99%, 0.1);
    padding:0 240px 0px 80px;
    margin-bottom: 20px;
    font-family: "Unbounded", sans-serif;
    font-optical-sizing: auto;
    display: block;
}
.main-image-last .main-head h3{
    line-height: 1.5em;
    font-size: 50px;
    padding-bottom: 50px;
}
.main-image-last .main-head p{
    margin-bottom: 70px;
    line-height: 1.5em;
    font-family: "Poppins", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
}
.main-image-last .main-image{
    border: 2px solid linear-gradient(
    15deg,
    #c3e7ec,
    #3B82F6
    );
    border-radius: 15px;
    /* width: 990px; */
    padding: 40px;
    background: linear-gradient(
    -1deg,
    #3CB1C3,
    #fff
    
);

}
.main-image-last img{
    width: 400px;
}
.main-image-last .main-head a{
    text-decoration: none;
    border: 1px solid #81ccda;
    background-color: #81ccda;
    color: white;
    font-size: 20px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    text-align: center;
    border-radius: 10px ;
    padding:12px 30px 12px 30px;
}
footer{
    background-color: #81ccda;
    padding: 40px;
}
footer .navbar{
    display: flex;
    justify-content: space-between;
    padding-bottom: 30px;
}
.foot-menu ul li {
    list-style: none;
}
.foot-menu ul li a{
    color: #fff;
    display: flex;
    margin: 14px;
    text-decoration: none;
}
footer .navbar .foot-menu ul {
    display: flex;
    justify-content: space-between;
}
footer .line{
    border-top: 1px solid white;
    margin-top: 9px;
}
footer .navfoot{
    padding-top: 29px;
    display: flex;
    justify-content: space-between;
}
footer .navfoot .nav-menu ul {
    display: flex;
    justify-content: space-between;
}
/* Default desktop */
.hamburger {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

/* Mobile mode */


@media (max-width: 768px) {
    .navbar img{
        width: 55%;
    }
    .header-content h1 {
        font-size: 28px;
    }
    .header-content p {
        font-size: 14px;
    }
    .header-content .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    main .middle{
        font-size: 1px;
    }
}    
@media (max-width: 1200px) {
    .nav-toggle, .hamburger{
        display: block;
    }
    .nav-menu{
        display: none;
        width: 100%;
        background: linear-gradient(
        130deg,
        #7ecad7,
        #35bac9
        );
        margin-top: 10px;
        border-radius: 8px;
        box-shadow: 0px 8px 20px rgba(0,0,0,0.26);
        padding: 12px 16px;
    }
    .nav-menu.open{
        display: block;
    }
    .nav-menu ul{
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .nav-menu ul li a{
        display: block;
        padding: 8px 0;
        margin: 0;
        color: white;
    }


    .nav-menu ul li a:hover{
        color: #3584a8;
        transform: translateY(-3px);
    }

    /* Active link underline */
    .nav-menu ul li a.active {
        color: #3584a8;
        border-bottom: 2px solid #3584a8;
        padding-bottom: 2px;
    }
}

/* Mobile & Tablet */
@media (max-width: 1200px) {
    .header .navbar{
        padding: 15px 20px 15px 70px;
        flex-wrap: wrap;
    }
    .nav-menu ul{
        margin-right: 10px;
        width: 100%;
        flex-wrap: wrap;
    }
    .nav-menu ul li a{
        margin: 8px 10px;
        font-size: 0.9rem;
    }
}

/* ============================================
   RESPONSIVE NAVBAR
   ============================================ */
@media (max-width: 1100px) {
    /* .header .navbar {
        padding: 20px 40px 20px 60px;
    } */

    .nav-menu ul {
        margin-right: 0;
        gap: 20px;
    }
}


@media (max-width: 1200px) {
    .header-img {
        padding: 30px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .header-img img {
        margin-left: 0;
        width: auto;
        max-width: 350px;
    }

    /* Mobile slider: convert header images into a horizontal snap slider */
    .header-img.slider {
        display: block;
        padding: 20px;
    }

    .header-img.slider .slides {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }

    .header-img.slider .slides img {
        flex: 0 0 80%;
        width: 80%;
        max-width: 420px;
        scroll-snap-align: center;
        border-radius: 10px;
    }

    /* About page header images slider (mobile) */
    
}

/* ============================================
   MAIN SECTION IMAGE + TEXT BLOCKS
   ============================================ */

@media (max-width: 998px) {

    .main-img{
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 30px 20px;
        padding: 30px 20px;
        gap: 20px;
    }

    .main-img .main-head,
    .main-head {
        padding: 20px;
        line-height: normal;
    }

    .main-img img{
        width: 90%;
        max-width: 400px;
        padding: 20px;
    }
    
    .main-image-last{
        align-items: center;
    }
}

/* ============================================
   HERO TEXT FIXES
   ============================================ */
@media (max-width: 900px) {
    .hero {
        padding: 40px 20px;
        line-height: normal;
    }

    .hero h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .hero p {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .hero .button {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 25px;
    }

    .hero .button a {
        margin-left: 0;
        width: 100%;
        max-width: 700px;
        /* border: 0; */
        /* margin: auto; */
    }
}

/* ============================================
   FOOTER FIXES
   ============================================ */
@media (max-width: 900px) {
    footer .navbar {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    footer .foot-menu ul {
        flex-direction: column;
        flex-wrap: wrap;
        text-align: center;
        align-items: center;
        justify-content: center;
        /* margin-left: 100px; */
    }
    
    #foot-menu ul{
        flex-direction: row;
        gap: -20px;
        margin: 1px 75px;
    }
    .navfoot #foot-menu-two ul{
        flex-direction: row;
        /* gap: 100px; */
        
    }

    footer .navfoot {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

/* ============================================
    SMALLEST SCREENS 
   ============================================ */
@media (max-width: 600px) {

    .main .middle {
        padding: 40px 20px;
    }
    .main .middle h2{
        font-size: 20px;
    }
    .main .middle p {
        padding: 10px;
        font-size: 15px;
    }

    .main-img img {
        padding: 10px;
    }
    .main-img .main-head p{
        font-size: 16px;
    }
}


/*-------------------------------------------|
|--------------------------------------------|
|            ABOUT STYLE                     |
|--------------------------------------------|
|--------------------------------------------|   */
.header-img-about {
    display: flex !important;
    gap: 4px;
    width: 100%;
    /* flex: 1 1 300px; */
    justify-content: center;
}

.header-img-about .slides {
    display: flex;
    gap: 6px;
}

.header-img-about img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.header-img-about .img-size{
    margin-top: 50px;
}
.main-img-about{
    /* background-color: #ebf4f5; */
    text-align: left;
    padding: 50px;
    border: 1px solid hsla(255, 9%, 91%, 0.5);
    /* margin: 50px 90px; */
    display: flex;
    border-radius: 25px;
}
.main-img-about .main-head-about{
    background-color: #08c4e0;
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
    /* border-bottom-right-radius: 0; */
    padding: 50px 90px 20px 80px;
    font-family: "Unbounded", sans-serif;
    font-weight: 300;
    height: auto;
    /* width: auto; */
}
.main-img-about .main-image-about img {
    height: auto;
}
.main-img-about .main-head-about h2{
    margin-bottom: 20px;
    color: #ebebeb;
}
.main-img-about .main-head-about p{
    color: #ebebeb;
}
#abouti{
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    width: auto;
    height: auto;
}
#about-img img{
    width: auto;
    height: auto;
}

/* Mobile for the about page slider */
@media (max-width: 992px) {
    .header-img-about {
        display: block !important;
        padding: 90px 16px;
        margin: 0 auto;
    }
    
    .header-img-about .slides {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        margin: 0 0px;
    }

    .header-img-about .slides > div {
        flex: 0 0 auto;
        scroll-snap-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .header-img-about .slides > div:first-child,
    .header-img-about .slides > div:nth-child(3){
        flex: 0 0 100%;
        width: 100%;
        max-width: 260px;
    }

    .header-img-about .slides > div:nth-child(2),
    .header-img-about .slides > div:nth-child(4) {
        flex: 0 0 44%;
        max-width: 220px;
    }

    .header-img-about .slides img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 10px;
        object-fit: cover;
    }

    .header-img-about img {
        max-width: 100%;
        height: auto;
    }

    .header-img-about .slides::-webkit-scrollbar { height: 8px; }
    .header-img-about .slides::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 8px; }
}
@media (max-width: 480px) {
      .header-img-about {
        display: block !important;
        padding: 90px 16px;
        margin: 0 auto;
    }
    
    .header-img-about .slides {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0px;
        margin: 0 0px;
    }

    .header-img-about .slides > div {
        flex: 0 0 auto;
        scroll-snap-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .header-img-about .slides > div:first-child,
    .header-img-about .slides > div:nth-child(3){
        flex: 0 0 100%;
        width: 100%;
        max-width: 260px;
    }

    .header-img-about .slides > div:nth-child(2),
    .header-img-about .slides > div:nth-child(4) {
        flex: 0 0 100%;
        max-width: 250px;
    }

    .header-img-about .slides img {
        width: 100%;
        /* height: auto; */
        display: block;
        border-radius: 10px;
        object-fit: cover;
    }

    .header-img-about img {
        max-width: 100%;
        /* height: auto; */
    }

    .header-img-about .slides::-webkit-scrollbar { height: 8px; }
    .header-img-about .slides::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 8px; }
}

/* Tighter slider layout for mid-size tablets / small laptops to reduce large gaps */



/* ============================================
   MAIN SECTION IMAGE + TEXT BLOCKS
   ============================================ */

@media (max-width: 1100px) {

    .main-img-about{
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 30px 20px;
        padding: 30px 20px;
        gap: 20px;
    }

    .main-img-about .main-head-about,
    .main-head-about {
        border: 1px solid #08c4e0;
        border-radius: 25px;
        border: 1px solid #08c4e0;
        padding: 20px;
        line-height: normal;
    }

    .main-img-about img{
        width: auto;
        max-width: 450px;
        padding: 20px 40px 20px 40px;
        border-bottom-left-radius: 55px;
        border-top-left-radius: 55px;
        border-radius: 50px;
    }
    .main-image-last .main-image{
        display: none;
    }
    #about-img img{
        border-bottom-right-radius: 55px;
        border-top-right-radius: 55px;
        border-radius: 50px;
    }
    .main-image-last{
        width: 100%;
        flex-direction: column-reverse;
        border: 1px solid hsla(255, 9%, 91%, 0.5);
        opacity: 100%;
        border-radius: 20px ;
        background-image: url(./images/image\ 19.png);
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        text-align: center;
        margin: 30px 3px;
        padding: 0px 2px;
        gap: 90px;
        line-height: normal;
    }
    .main-image-last .main-head{
       border: 1px solid hsla(255, 9%, 91%, 0.5);
       background : hsla(240, 0%, 52%, 0.5);
        width: 100%;
        /* color: #ebebeb; */
        height: auto;
        backdrop-filter: blur(2px);
        align-items: flex-end;
        text-align: center;
        margin: 50px 20px 0px 20px;
        padding: 1px 20px 10px 20px;
    }
    .main-image-last .main-head h3 {
        font-size: 25px;
    }

    .main-image-last .main-head p {
        font-size: 16px;
    }
    .main-image-last .main-head .anchor{
        margin-bottom: 10px;
    }
}
@media(max-width: 480px){
    
    .main-img-about{
        flex-direction: column;
        align-items: center;
        text-align: center;
        /* margin: 30px 20px; */
        /* padding: 30px 190px; */
        gap: 20px;
    }
    .main-img-about img{
        width: auto;
        max-width: 350px;
        padding: 20px 40px 20px 40px;
    }
}    
@media(max-width: 380px){
    
    .main-img-about{
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 30px 20px;
        padding: 30px 190px;
        gap: 20px;
    }

    .main-img-about .main-head-about,
    .main-head-about {
        padding: 20px 100px;
        border-radius: 25px;
        border: 1px solid #08c4e0;
        /* width: auto; */
        line-height: normal;
    }

    .main-img-about img{
        width: auto;
        max-width: 300px;
        padding: 20px 20px 20px 40px;
    }
    .main-image-last .main-image{
        display: none;
    }
    #about-img img{
        border-radius: 50px;
    }
    .header{
        width: 410px;
    }
}
@media(max-width: 375px){
    
    main{
        width: auto;
    }
    .middle{
        width: 400px;
    }
    footer{
        width: 400px;
    }
    .main-img{
        width: 400px;
        margin-right: 400px;
    }
    .main-image-last{
        width: 400px;
    }
    .main-img-about .main-head-about{
        padding: 10px 40px;
    }
    .main-img-about .main-head-about p{
        width: 16em;
        font-size: 16px;
    }
}

/* Strong overrides to ensure consistent about-slider layout for all viewports <= 1200px */
