

/*==========Varialbles Css=======*/
:root{
    /*========Colors ====*/
    /*Color mode HSL=====*/
    --first-color: #1e3a8a;
    --second-color: hsl(42, 98%, 52%);
    --first-gradient:var(--white-color);
    --text-color: hsl(225, 12%, 24%);
    --text-color-light: hsl(255, 4%, 70%);
    --body-color: hsl(0, 0%, 100%);
    --container-color: hsl(0, 0%, 100%);
    --white-color: hsl(0, 0%, 100%);
    --black-color: ;
    --gray-border: hsl(255, 6%, 98%);
    --black-border: hsl(255, 10%,20%);

    /*======== Font and typo =====*/
    --body-font:'Poppins',sans-serif;

    --big-font-size: 2.25rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;


     /*======== Font Weight =====*/
     --font-regular: 400;
     --font-medium:500;
     --font-semi-bold:600;
     --font-bold:700;



      /*======== z index =====*/

      --z-tooltip: 10;
      --z-fixed: 100;

}

@media screen and (min-width:1150px) {
    :root{
        --big-font-size: 3.5rem;
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
    }
    
}

 /*======== Base============*/
 *{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
 }
  html{
    scroll-behavior: smooth;
  }

  body{
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: #0b2c5d;
    color: white;
  }

  h1, h2, h3, h4 {
    color:#0b2c5d;
    font-weight: var(--font-semi-bold);
  }

  ul{
    list-style: none;
  }

  a{
    text-decoration: none;
  }
   img{
    display: block;
    width: 45%;
    height: auto;
    border-radius: 10px;
   }
   .span1{
    color:#AF3430;
    font-size: var(--font-bold);
   }
   .span2{
    color: #0b2c5d;
    font-size: var(--font-bold);
    font-size: var(--big-font-size)

   }
   .nav_logo img{
  width:270px;
}

    /*======== Reusable Css Classes =====*/
    .container{
        max-width: 1120px;
        margin-inline: 1.5rem;
    }

    .grid {
        display: grid;
        gap: 1.5rem;
        
    }

    .section {
        padding-block: 5rem 1rem;
    }
    .section_title,
    .section_subtitle{
        text-align: center;
    }
    .section_title {
        display: block;
        font-size: var(--normal-font-size);
        font-weight: var(--font-semi-bold);
        color: #AF3430;
        margin-bottom: .5rem;
    }
    .section_subtitle{
        display: block;
        font-size: var(--normal-font-size);
        font-weight: var(--font-semi-bold);
        color:white;
        margin-bottom: .5rem;
    }

    .main {
        overflow: hidden;
    }

    /*======== Header & Nav ========*/
    .header{
  background:var(--white-color);
  position:fixed;
  width:100%;
  top:0;
  z-index:100;
}
    .nav{
        position: relative;
        height: var(--header-height);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav_toggle,
    .nav_close{
        font-size: 1.5rem;
        color: #c1121f;
        cursor: pointer;
        transition: color .4s
    }
    /* Navigation for mobile devices*/

    @media screen and (max-width:1150px){
        .nav_menu{
            position: fixed;
            top: 0;
            right: -100%;
            background-color:#0b2c5d;
            width: 80%;
            height: 100%;
            padding: 7.5rem 3.5rem 0;
            border-left: 2px solid white;
            transition: right .4s;

        }
    }
    .nav_list{
        display: flex;
        flex-direction: column;
        row-gap: 4rem;
    }

    .nav_link{
        color:#AF3430;
        font-weight: var(--font-semi-bold);
        transition: color .4s;
    }

    .nav_link:hover{
        color: white;
    }

    .nav_close{
        position: absolute;
        top: 1rem;
        right: 1.5rem;
    }

    /*=========== Show Menu ======*/
    .show-menu{
        right: 0;
    }
    /*=========== Change bg header ======*/
    .bg-hearder{
        background-color:#0b2c5d;
        box-shadow: 0 4px 16px hsla(255, 90%, 8%, .1);
    }
    .bg-header .nav_toggle{
        color:#0b2c5d;
    }

    /*============================Active Link===========================*/
    .active-link{
        color:#AF3430;
    }
    

    /*=========== Home ======*/
    .home{
        position: relative;
        background-color: var(--black-color);
    }

    .home_container{
        position: relative;
        row-gap: 3rem;
        padding-block: 2.5rem 6rem;
    }
    .home_content{
        row-gap: 2.5rem;
    }
    .home_data{
        text-align: center;
    }
    .home_title{
        color: var(--white-color);
        font-size: var(--big-font-size);
        font-weight: var(--font-bold);
        margin-bottom: 1rem;
    }

    .home_description{
        margin-bottom: 2.5rem;
        color: var(--text-color-light);
    }
    .home_buttons{
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;
    }
    .home_images{
        position: relative;
        justify-self: center;
    }
    .home_img-1{
        width: 250px;
        margin-left: 3.5rem;
    }
    .home_img-2{
        width: 150px;
        border: 5px solid var(--black-color);
        position: absolute;
        left: 0;
        bottom: -3.5rem;

    }
    /*======================About===============*/
    .about_container{
        row-gap:8px;
        
    }
    .about_data{
        text-align: center;
    }
    .about_description{
        margin-bottom: 2rem;
    }
    .about_list{
        text-align: initial;
        grid-template-columns: repeat(2, 130px);
        justify-content: center;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .about_list-item{
        display: flex;
        column-gap: .5rem;
        color: var(--title-color);
    }
    .about_list-item i{
        font-size: 1.5rem;
        color: white;
    }
    .about_images{
        position: relative;
        justify-self: center;
    }
    
    .about_img-2{
        width:100%;
        margin-right: 2.5rem;
    }


    /*============================PRODUCTS===========================*/
    .products{
        background-color:#0b2c5d;
    }
    .products .section_title{
        color:#AF3430;
    }
    .products_container{
        padding-block: 1rem 2rem;
    }
    .products_card{
        background-color: var(--container-color);
        border: 2px solid transparent;
        background-clip: content-box;
        transition: border-color .4s;
        border-radius: 10px;
    }
    .products_card:hover{
        border-color:#AF3430;
    }
    .products_data{
        padding: 1rem 0.5rem 1rem;
    }
    .products_title{
        font-size: var(--h2-font-size);
        margin-block: .2rem;
    }
    .products_img{
        justify-self: center;
        width: 250px;
    }
    .products_img
    .products_data{
        display: block;
        font-weight: var(--font-medium);
        color: #AF3430;
        margin-bottom: 1.5rem;
    }
    .products_card span{
        color: #AF3430;
    }
    

    /*============================CONTACT===========================*/
    .contact_container{
        row-gap:3px;
        padding-block: 1.5rem 3rem;
        background-color:#1e3a8a;
    }

    .contact_img{
        width: 320px;
        justify-self: center;
    }
    .contact_data{
        grid-template-columns: 230px;
        justify-content: center;
        row-gap: 1.5rem;
    }
    .contact_card{
        background-color:#c1121f;
        border: 2px solid var(--gray-border);
        padding: 1.5rem 2rem;
        transition: border-color .4s;
        text-align: center;
    }
    .contact_card:hover{
        border-color: #AF3430;
    }
    .contact_icon{
        width: 48px;
        height: 48px;
        background-color: #AF3430;
        color: var(--white-color);
        border-radius: 50px;
        display: grid;
        place-items: center;
        font-size: 2rem;
        margin: 0 auto 1.25rem;
    }
    

    .contact_title{
        font-size: var(--h2-font-size);
        margin-bottom: .5rem;
    }
    .contact_info{
        font-family: normal;
    }
    .contact_social{
        display: flex;
        justify-content: center;
        column-gap: 1rem;
    }
    .contact_social-link{
        font-size: 1.5rem;
        color: white;
        transition: transform .4s;
    }
    .contact_social-link:hover{
        transform: translateY(-.25rem);
    }

    /*============================FOOTER===========================*/
    .footer{
        background-color:#c1121f;
        color: var(--text-color-light);
        padding-block: 3.5rem 2rem;
    }
    .footer_container{
        row-gap: 4rem;
        padding-bottom: 4rem;
        border-bottom: 1px solid var(--black-border);
    }
    .footer_logo img{
        width: 250px;
        
    }
    .footer_description{
        margin-block: 1rem;
    }
    .footer_email,
    .footer_info{
        font-style: normal;
    }
    .footer_content{
        grid-template-columns: repeat(2, max-content);
        gap: 4rem 3rem;
    }
    .footer_title{
        font-size: var(--h3-font-size);
        color: var(--white-color);
        margin-bottom: 1rem;
    }
    .footer_links,
    .footer_list{
        display: grid;
        row-gap: .5rem;
    }
    .footer_link{
        color: var(--text-color-light);
        transition: color .4s;
    }
    .footer_link:hover{
        color: #AF3430;
    }
    .footer_social{
        display: flex;
        column-gap: 1rem;
    }
    .footer_social-link{
        font-size: 1.rem;
        color: white;
        transition: transform .4s;
    }
    .footer_social-link:hover{
        transform: translateY(-.25rem);
    }
    .footer_copy{
        display: block;
        text-align: center;
        font-size: var(--small-font-size);
        margin-top: 4rem;
    }
     /*===================== SCROL UP=======*/
.scrollup{
    position: fixed;
    right: 1rem;
    bottom: 3rem;
    background-color: var(--body-color);
    box-shadow: 0 4px 16px hsl(255, 90%, 8%, .15);
    
}
    /*===================== SCROLL BAR=======*/
    ::-webkit-scrollbar{
        width: .6rem;
        background-color: hsl(225, 5%, 75%);
    }

    ::-webkit-scrollbar-thumb{
        background-color: hsl(255, 5%, 65%);
    }
    ::-webkit-scrollbar-thumb:hover{
        background-color: hsl(255, 5%, 55%);
    }

    /*============================FOOTER===========================*/
    .scrollup{
        position: fixed;
        right: 1rem;
        bottom:-50%;
        background-color: var(--body-color);
        box-shadow: 0 4px 16px hsl(255, 90%, 8%, .15);
        display: inline-flex;
        padding: 6px;
        font-size: 1.25rem;
        z-index: var(--z-tooltip);
        transition: bottom .4s, transform .4s;
    }
    .scrollup:hover{
        transform: translateY(-.5rem);
    }
    /* show Scroll Up*/
    .show-scroll{
        bottom: 3rem;
    }
    /*============================BREAKPOINT===========================*/
    /*For small devices*/
    @media screen  and (max-width: 340px){
        .container{
            margin-inline: 1rem;
        }
        .section_title{
            font-size: 1.25rem;
        }
        .home_title{
            font-size: 1.75rem;
        }
        .home_buttons{
            flex-direction: column;
        }
        .home_img-1{
            width: 200px;
            margin-left: 1.5rem;
        }
        .about_list{
            grid-template-columns: repeat(1, 200px);
        }
        .about_img-1{
            width: 150px;
            left: 4rem;
        }
        .about_img-2{
            width: 200px;
            margin-right: 0;
        }
        .footer_content{
            grid-template-columns: repeat(1, max-content);
        }
    }
        
    /*============================For medium device===========================*/
    @media screen and (min-width: 540px){
        .home_container,
        .about_container,
        .services_container,
        .products_container,
        .contact_container{
            grid-template-columns: 360px;
            justify-content: center;
        }
        .footer_content{
            grid-template-columns:repeat(3, max-content);
        }
        
    }

    @media screen  and (min-width:768px){
        .nav_menu{
            width: 50%;
        }
        .products_container{
            grid-template-columns: repeat(2, 330px);
        }
        .contact_data{
            grid-template-columns: repeat(2, 240px);
        }
        .footer_container{
            grid-template-columns: repeat(2, max-content);
            justify-content: space-between;
        }
        
    }
    /*============================For large devices===========================*/
    @media screen and (min-width: 1150px){
        .container{
            margin-inline: auto;
        }
        .header{
            height: 150px;
        }
        .nav_logo{
        display: flex;
        align-items: center;
        max-height: 30px;   
        object-fit: contain;
        width: auto;
        margin-right: 80px;
        border-radius: 10px;
        margin-top: 28px;
       
    }
    
        .section{
            padding-block: 7rem 2rem;
        }
        .nav{
            height: calc(var(--header-height) + 2rem);
        }
        .nav_toggle,
        .nav_close{
            display: none;
        }
        .nav_menu{
            width: initial;
        }
        .nav_list{
            flex-direction: row;
            align-items: center;
            column-gap: 4rem;
        }
        .bg-header .nav_link{
            color: var(--text-color)
        }
        
        .bg-header .active-link,
        .bg-header .nav_link:hover{
            color: white;
        }
        
        .bg-header .button,
        .bg-header .button:hover{
            color: var(--white-color);
        }

        .home_container{
            grid-template-columns: 475px 550px;
            column-gap: 6rem;
            align-items: flex-start;
            padding-top: 5.5rem;
        }
        
        .home_content{
            row-gap: 4.5rem;
        }

        .home_data{
            text-align: initial;
        }

        .home_description{
            margin-bottom: 3rem;
        }

        .home_buttons{
            justify-content: initial;
            column-gap: 3rem;
        }

        .home_img-1{
            width: 550px;
            margin-left: 0;
            border-radius: 15%;
        }

        .home_img-2{
            width: 350px;
            border-width: 10px;
            left: -7rem;
            bottom: -8rem;
            border-radius: 15%;
        }
        .about_container{
            grid-template-columns: repeat(2, 480px);
            column-gap: 9rem;
            padding-block: 9rem 2rem;
        }

        .about_images{
            order: -1;
        }

        .about_img-1{
            width: 370px;
            border-width: 10px;
            top: -9rem;
            left: 11rem;
        }
        .about_img-2{
            width: 470px;
        }

        .about_data,
        .about_data :is(.section_title, .section_subtitle){
            text-align: initial;
        }
        .about_list{
            grid-template-columns: repeat(2 1fr);
            margin-bottom: 3.5rem;
        }
        .services_container{
            grid-template-rows: initial;
            row-gap: 5rem;
            padding-bottom: 4.5rem;
        }

        .services_data{
            display: grid;
            grid-template-columns: 415px 370px max-content;
            justify-content: space-between;
            align-items: center;
        }
        .services_data :is(.services_title, .section_subtitle),
        .services_description{
            text-align: initial;
        }
        .services_data .section_title{
            margin-bottom: 0;
        }
        .services_swiper{
            max-width: 1100px;
        }
        .services_card{
            width: 348px;
            border-width: 3px;
            padding: 3.5rem 2rem 6rem;
        }
        .services_shape{
            height: 330px;
        }
        .swiper-button-next,
        .swiper-button-prev{
            bottom: 3rem;
        }

        .products_container{
            grid-template-columns: repeat(3, 350px);
            column-gap: 2rem;
            padding-block: 5rem 4rem;
        }
        .products_card{
            border-width: 3px;
        }
        .products_data{
            padding: 2rem 1.5rem 4rem;
        }
        .contact :is(.section_title, .section_subtitle){
            text-align: initial;
        }
        
        .contact_container{
            grid-template-columns: 530px 515px;
            justify-content: initial;
            align-items: flex-start;
            column-gap: 3.5rem;
            padding-block: 3.5rem 4rem;
        }

        .contact_img{
            width: 530px;
        }

        .contact_data{
            gap: 2rem;
        }
        .contact_card{
            border-width: 3px;
        }

        .contact_title{
            font-size: var(--h3-font-size);
        }
        
        .footer{
            padding-block: 4.5rem 3rem;
        }

        .footer_content{
            column-gap: 7rem;
        }

        .footer_container{
            padding-bottom: 6rem;
        }

        .footer_description{
            margin-block: 1.5rem;
        }
        .footer_title{
            margin-bottom: 1.5rem;
        }

        .footer_links,
        .footer_list{
            row-gap: 1rem;
        }
        
        .scrollup{
            right: 3rem;
        }

    }




















    /*---------------------Button---------------------*/

    .button{
        display: inline-flex;
        background: #AF3430;
        color: var(--white-color);
        font-weight: var(--font-semi-bold);
        padding: 1rem 2rem;
        transition: box-shadow .4s;
        border-radius: 10px;
    }
    .button:hover{
        box-shadow: 0 8px 32px hsla(18, 95%, 55%, .3);
        color: var(--white-color);
    }
    .button_link{
        display: flex;
        align-items: center;
        column-gap: .25rem;
        color:white;
    }
    .button_link span{
        font-weight: var(--font-semi-bold);
         transition:transform .4s
        
    }
    .button_link span:hover{
       color:#AF3430;
       
    }
    .button_link i{
        font-size: 1.5rem;
        transition:transform .4s
    }
    .button_link:hover i{
        transform: translateX(.25rem);
        
    }
















    /*==================== ANIMATIONS ====================*/

/* Base hidden state for scroll reveal */
.section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Reveal section */
.show-section {
  opacity: 1;
  transform: translateY(0);
}

/* Hero entrance animation */
.home_title,
.home_description,
.home_buttons {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s ease forwards;
}

.home_description {
  animation-delay: 0.2s;
}

.home_buttons {
  animation-delay: 0.4s;
}

/* Floating hero images */
.home_img-1,
.home_img-2 {
  animation: float 4s ease-in-out infinite;
}

.home_img-2 {
  animation-delay: 2s;
}

/* Product cards hover animation */
.products_card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.products_card:hover {
  transform: translateY(-12px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Product image zoom */
.products_img {
  transition: transform 0.5s ease;
}

.products_card:hover .products_img {
  transform: scale(1.1);
}

/* Contact cards hover */
.contact_card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.contact_card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

/* Header shadow on scroll */
.scroll-header {
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Button ripple hover feel */
.button {
  position: relative;
  overflow: hidden;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.button:hover::after {
  transform: scaleX(1);
}

/* Keyframes */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}








/*==================== VALUES SECTION ====================*/
.values {
  background-color: #ffffff;
}

.values_container {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  padding-top: 2rem;
}

.values_card {
  background: #ffffff;
  border-radius: 18px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.values_card:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

.values_img {
  width: 100%;
  max-width: 240px;
  margin: 0 auto 1.5rem;
  display: block;
  border-radius: 14px;
}

.values_title {
  color: #AF3430;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.values_text {
  color: #0b2c5d;
  font-size: 0.95rem;
  line-height: 1.6;
}


@media screen and (max-width: 768px) {
  .about_img-2 {
    width: 100%;
    max-width: 360px;
    margin: 0 auto 2.5rem;
    display: block;
  }
}



/* Values animation */
.values_card {
  opacity: 0;
  transform: translateY(40px);
}

.values_card.show-value {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.7s ease;
}

.brands {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.brand {
    flex: 1 1 150px;   /* responsive columns */
    max-width: 180px;
    display: flex;
    justify-content: center;
}

.brand img {
    width: 100%;
    max-width: 120px;
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .brands {
        gap: 1.2rem;
    }

    .brand {
        flex: 1 1 45%;   /* 2 per row on mobile */
    }

    .brand img {
        max-width: 100px;
    }
}
