* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Header Section */
.top-header {
    display: flex;
    background-color: whitesmoke;
}
.top-header1 {
    padding: 5px 0 4px 0px;
    font-size: large;
    color: black;
}
.top-header1 p span {
    color: blue;
}
.top-header2 {
    padding: 5px 10px 4px 0;
    font-size: large;
    border-left: 5px solid white;
}

/* Head Section */
.header {
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 80px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background-color: white;
}
.head {
    display: flex;
    margin: 12px;
    text-align: center;
    align-items: center;
}
.head img {
    width: 50px;
    height: 50px;
    margin: 0 30px;
}
.head h1 {
    color: red;
    font-family: "ROG LyonsType Regular", sans-serif;
    font-size: 25px;
}

.head p {
    color: blue;
    font-size: 13px;
    font-family: sans-serif;
    text-align: center;
}


@media (max-width: 1024px) {
    .header {
        grid-template-columns: repeat(2,1fr);
        height: 85px;
        text-align: center;
        align-items: center;
    }
    .head {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
    .head img {
        width: 45px;
        height: 45px;
        margin: 0 20px 0 40px;
    }
    .head h1 {
        font-size: 21px;
        margin: 8px 0 0 0;
        text-align: center;
        line-height: 1.2;
        white-space: normal;
        word-break: keep-all;
    }
    .head p {
        font-size: 12px;
        margin-top: 5px;
        text-align: center;
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .header {
        grid-template-columns: repeat(2,1fr);
        /* height: auto; */
        height: 65px;
        text-align: center;
        align-items: center;

        padding: 5px 0;
    }

    .head {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
    .head img {
        width: 30px;
        height: 30px;
        /* margin: 0 auto; */

        margin: 0 10px 0 15px !important;
    }
    .head h1 {
        font-size: 16px;
        /* margin: 8px 0 0 0; */
        margin: 0;
        /* text-align: center; */
        text-align: left;
        line-height: 1.2;
        white-space: normal;
        word-break: keep-all;
    }
    .head p {
        /* font-size: 9px; */
        font-size: 8px;
        /* margin-top: 5px; */
        margin: 2px 0 0 0;
        text-align: center;
        white-space: normal;
    }
}


/* NAVIGATION BAR */
.navigation-bar {
    display: flex;
    justify-content: flex-end;
    text-align: right;
    align-items: center;
    position: relative;
}
.nav-bar {
    text-transform: capitalize;
    padding-right: 50px;
}
.nav-bar a {
    color: black;
    text-decoration: none;
    margin-left: 12px;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 7px;
    border-bottom: 2px solid black;
}
.nav-bar a.clicked {
    background-color: orange;
}
.nav-bar a:hover {
    background-color: orange;
}
.menu-toggle {
    font-size: 25px;
    color: black;
    display: none;
    cursor: pointer;
}

@media(max-width:1024px) {
    .navigation-bar{
        justify-content: flex-end;
        padding-right: 20px;
    }
    .nav-bar{
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-right: 20px;
    }
}

@media(max-width:768px) {
    .navigation-bar {
        flex-direction: row;
        justify-content: flex-end;

        align-items: center;
        height: 100%;
        padding-right: 15px;
    }
    .nav-bar {
        display: none;
        flex-direction: column;
        background-color: white;
        position: fixed;
        top: 110px;
        right: 0;
        width: 95%;
        height: 750px;
        z-index: 9999;
        align-items: flex-start; 
        padding-left: 20px; 
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);

    }
    .nav-bar a {
        display: block;
        font-size: 22px;
        padding: 10px 60px 10px 60px;
        background-color: none;
        color: black;
        margin-top: 12px;
        justify-content: flex-start;
        padding: 5px 700px 5px 15px;
        border-radius: 0;
        border-bottom: 2px solid black;

    }
    .menu-toggle {
        display: inline-block;
        margin: 0 10px;
        padding: 0 5px 3px 10px;
    }
    .nav-bar.active {
        display: flex;
    }
}



/* Top-Hero-Image */
.hero-image img{
    width: 100%;
    height: 550px;
}


/* product-heading */
.product-heading{
    text-align: center;
    margin: 30px 20px;
}
.product-heading h2{
    font-size: 35px;
    padding-bottom: 20px;
}
.product-heading p{
    font-size: 22px;
}
@media(max-width:1024px) {
    .product-heading{
        margin: 30px 40px;
        padding-bottom: 10px;
    }
    .product-heading h2{
    font-size: 40px;
    padding-bottom: 15px;
}
    .product-heading p{
    font-size: 21px;
}
}
@media(max-width:768px) {
    .product-heading{
        margin: 20px 10px;
        text-align: center;
    }
    .product-heading h2{
        font-size: 30px;
    }
    .product-heading p{
    font-size: 18px;
    line-height: 28px;
}
}


/* Image */
.factory {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
}

.oil1 img {
    width: 30%;
    height: 200px;
    margin: 10px 10px 5px 30px;
}
.ice-creem {
    margin-top: 30px;
}
.ice img {
    width: 30%;
    height: 200px;
    margin: 10px 10px 5px 30px;
}

.juice-plant {
    margin-top: 30px;
}
.juice img {
    width: 30%;
    height: 200px;
    margin: 10px 10px 5px 30px;
}


.dairy-plant{
 margin-top: 30px;  
}
.dairy img{
 width: 30%;
 height: 200px;
 margin: 10px 10px 5px 30px;
}
.rice-plant{
margin-top: 30px;  
}
.rice img{
 width: 30%;
 height: 200px;
 margin: 10px 10px 5px 30px;
}
.flour-plant{
margin-top: 30px;   
}
.flour img{
 width: 30%;
height: 200px;
margin: 10px 10px 5px 30px;
}
.millets-plant{
   margin-top: 30px;   
}
.millets img{
 width: 30%;
    height: 200px;
    margin: 10px 10px 5px 30px;
}
.plant {
    margin: 0 auto 20px auto;
    color: blue;
    text-align: center;
}

/* @media(max-width:1024px) {
    .oil{
        margin: 0px 0px 0px 30px;
    }
    .oil1 img {
        height: 120px;
        margin: 10px 5px 10px 5px;
    }

    .ice-creem{
        margin: 0px 0px 0px 30px;
    }
    .ice img {
        height: 120px;
        margin: 10px 5px 10px 5px;
    }

    .juice-plant{
        margin: 0px 0px 0px 30px;
    }
    .juice img {
        height: 120px;
        margin: 10px 5px 10px 5px;
    }

    .dairy-plant{
        margin: 0px 0px 0px 30px;
    }
    .dairy img {
        height: 120px;
        margin: 10px 5px 10px 5px;
    }

    .rice-plant{
        margin: 0px 0px 0px 30px;
    }
    .rice img {
        height: 120px;
        margin: 10px 5px 10px 5px;
    }

    .flour-plant{
        margin: 0px 0px 0px 30px;
    }
    .flour img {
        height: 120px;
        margin: 10px 5px 10px 5px;
    }

    .millets-plant{
        margin: 0px 0px 0px 30px;
    }
    .millets img {
        height: 120px;
        margin: 10px 5px 10px 5px;
    }

    .plant{
        font-size: 25px;
    }
} */



@media(max-width:768px) {
    /* Factory Images - Mobile Fix */
    .factory {
        width: 100%;
        padding: 20px 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .oil1, .ice, .juice, .dairy, .rice, .flour, .millets {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .plant {
        text-align: center;
        margin: 0 0 15px 0;  /* ← FIXED: Centered */
        font-size: 20px;
        color: blue;
        width: 100%;
    }
    
    .oil1 img, .ice img, .juice img, .dairy img,
    .rice img, .flour img, .millets img {
        width: 100%;
        max-width: 280px;  /* ← FIXED: Proper width */
        height: auto;  /* ← FIXED: Auto height */
        margin: 10px auto;  /* ← FIXED: Equal margins */
        display: block;
        border-radius: 10px;
    }
}


@media(max-width:768px) {
    .oil, .ice-creem, .juice-plant, .dairy-plant,
    .rice-plant, .flour-plant, .millets-plant {
        width: 100%;
        margin: 20px 0 !important;  /* ← ADD !important */
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}


/* @media(max-width:768px) {
    .oil{
        margin: 0px 5px 0px 35px;
    }
    .oil1 img {
        height: 120px;
        margin: 10px 3px 10px 3px;
    }

    .ice-creem{
        margin: 0px 5px 0px 35px;
    }
    .ice img {
        height: 120px;
        margin: 10px 3px 10px 3px;
    }

    .juice-plant{
        margin: 0px 5px 0px 35px;
    }
    .juice img {
        height: 120px;
        margin: 10px 3px 10px 3px;
    }

    .dairy-plant{
        margin: 0px 5px 0px 35px;
    }
    .dairy img {
        height: 120px;
        margin: 10px 3px 10px 3px;
    }

    .rice-plant{
        margin: 0px 5px 0px 35px;
    }
    .rice img {
        height: 120px;
        margin: 10px 3px 10px 3px;
    }

    .flour-plant{
        margin: 0px 5px 0px 35px;
    }
    .flour img {
        height: 120px;
        margin: 10px 3px 10px 3px;
    }

    .millets-plant{
        margin: 0px 5px 0px 35px;
    }
    .millets img {
        height: 120px;
        margin: 10px 3px 10px 3px;
    }

    .plant{
        font-size: 25px;
    }
} */


/*  Product Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 10px;
    margin-left: 10px;
}

.image {
    perspective: 1000px;
    background-color: aliceblue;
    box-shadow: 5px 8px 25px white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 15px 5px 40px 5px;
    text-align: center;
    padding: 5px 5px 12px 5px;
    border-radius: 25px;
    border: 3px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
        linear-gradient(45deg, red, blue) border-box;
}

.image img {
    width: 120px;
    height: 120px;
    padding-top: 20px;
}

.image h2 {
    font-size: 24px;
}

.image p {
    font-size: 17px;
    padding: 0 10px 0 10px;
}

@media(max-width:1024px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        margin: 15px;
        width: 95%;
    }

    .image {
        margin: 15px;
    }

    .image p {
        font-size: 17px;
    }
}

@media(max-width:768px) {
    .gallery {
        grid-template-columns: repeat(1, 1fr);
        justify-content: center;
        padding: 0 10px;
        margin-left: 0;
        width: 100%;
        place-items: center;
    }

    .image {
        margin: 15px auto;
        width: 100%;
        max-width: 400px;
    }
    .image h2 {
    font-size: 30px;
}

    .image p {
        font-size: 20px;
    }

    .image img {
        padding-top: 10px;
    }
}



/* “Why Choose Kamiko */
.why-kamiko-end{
    text-align: center;
    margin: 30px 20px;
    padding-bottom: 10px;
}
.why-kamiko-end h2{
    font-size: 40px;
    padding-bottom: 15px;
}
.why-kamiko-end p{
    font-size: 20px;
}
@media(max-width:1024px) {
    .why-kamiko-end{
        margin: 30px 70px;
        padding-bottom: 10px;
    }
    .why-kamiko-end h2{
    font-size: 40px;
    padding-bottom: 15px;
}
    .why-kamiko-end p{
    font-size: 21px;
}
}
@media(max-width:768px) {
    .why-kamiko-end{
        margin: 30px 20px;
        padding-bottom: 10px;
        width: 100%;
        box-sizing: border-box;
    }
    .why-kamiko-end p{
    font-size: 20px;
}
}



/* Footer-Section*/
.base-bottom-image img {
    width: 100%;
    height: 150px;
}
.footer-end {
    display: flex;
    flex-direction: row;
    margin: 20px 50px 20px 60px;
    gap: 50px;
}

.footer-end h3 {
    font-size: 25px;
    line-height: 50px;
    padding-bottom: 15px;
}

.footer-end p {
    font-size: 19px;
    line-height: 26px;
}

.foot-1 p {
    line-height: 30px;
}

.footer-1 {
    width: 60%;
    margin: 20px 30px 20px 50px;
}

.footer-2 {
    display: flex;
    flex-direction: row;
    margin: 20px 30px 20px 20px;
}
.foot-1 {
    width: 100%;
    margin-right: 40px;
}

.footer-end a:hover {
    color: black;
}

/* Laptop View */
@media(max-width:1024px) {
   .footer-end {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        margin: 20px 20px 0px 40px;
        gap: 0;
    }
    .footer-1{
        width: 95%;
        margin: 20px 0 0 10px;
    }
    .footer-1 p{
        font-size: 22px;
    }
    .footer-2{
        margin: 20px 50px 20px 50px;
    }
    .foot-1{
        margin-right: 20px;
    }
    .foot-1 a{
        font-size: 20px;
    }
    .foot-2 p{
        font-size: 20px;
    }
}

/* Mobile View */
@media(max-width:768px) {
    .base-bottom-image img {
     height: 130px;
    }
    .footer-end {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        margin: 20px 20px 0px 20px;
        gap: 0;
    }
    .footer-end h3{
        font-size: 23px;
        padding-bottom: 0px;
    }

    .footer-1 {
        width: 90%;
         margin: 20px 30px 30px 40px;
    }

    .footer-1 p {
        font-size: 18px;
    }
    .footer-2{
        width: 90%;
        display: flex;
        flex-direction: row;
        margin: 0px 0px 20px 50px;
        gap: 0;
    }
    .foot-1 a{
        font-size: 16px;
        line-height: 17px;
    }

    .foot-2 p{
        font-size: 18px;
    }
}
.bottom {
    display: flex;
    padding: 18px 0 18px 0;
    background-color: red;
    color: white;
    font-size: 18px;
    justify-content: center;
    gap: 100px;
}

@media(max-width:1024px) {
    .bottom p {
font-size: 16px;
    }
}
@media(max-width:768px) {
    .bottom p {
font-size: 12px;
    }
}


.whatsapp-float {
    position: fixed;
    bottom: 138px;
    left: 32px;
    z-index: 1000;
    width: 55px;
    height: 55px;
}

.whatsapp-float img {
    width: 90%;
    height: 90%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.whatsapp-float:hover img {
    transform: scale(1.1);
}

@media(max-width:768px) {
    .whatsapp-float {
        width: 40px;
        height: 40px;
    }
}


/* MOBILE RESPONSIVE FIXES (ADD THIS AT END) */
@media(max-width:768px) {
    
    /* 1. HEADER - SAME AS LAPTOP LAYOUT */
    .header {
        height: auto;
        min-height: 70px;
        padding: 5px 0;
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 2. LOGO & COMPANY NAME - SAME POSITION */
    .head {
        display: flex;
        flex-direction: row;
        align-items: center;
        margin: 0 0 0 10px;
        padding: 0;
        justify-content: flex-start;
        text-align: left;
    }
    
    .head img {
        width: 45px;
        height: 45px;
        margin: 0 10px 0 0;
    }
    
    .head h1 {
        font-size: 18px;
        margin: 0;
        padding: 0;
        text-align: left;
        line-height: 1.2;
    }
    
    .head p {
        font-size: 9px;
        white-space: nowrap;
        margin: 0;
        padding: 0;
        text-align: left;
    }
    

    /* 4. MARQUEE - NO CHANGE, SAME AS BEFORE */
    .top-header {
        display: flex;
        font-size: 12px;
        padding: 3px;
    }
    
    /* 8. FOOTER FIXES */
    .footer-end {
        margin: 20px;
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-1 {
        width: 100%;
        margin: 0;
        padding: 0 10px;
    }
    
    .footer-2 {
        flex-direction: column;
        margin: 0;
        padding: 0 10px;
        width: 100%;
    }
    
    .foot-1, .foot-2 {
        width: 100%;
        margin: 0 0 20px 0;
    }
    
    /* 9. BOTTOM BAR */
    .bottom {
        flex-direction: column;
        gap: 5px;
        padding: 10px;
        font-size: 14px;
    }
}




/***********************************
   📱 MOBILE VIEW FIX (ONLY CONTENT)
***********************************/
@media(max-width: 768px){

    /* --- Hero image --- */
    .hero-image img{
        width: 100%;
        height: auto;
        display: block;
    }

    /* --- Product Heading --- */
    .product-heading{
        padding: 15px;
        text-align: center;
    }
    .product-heading h2{
        font-size: 22px;
        line-height: 28px;
    }
    .product-heading p{
        font-size: 16px;
    }

    /* --- Factory Sections (Oil, Ice cream, Juice etc.) --- */
    .factory{
        display: flex;
        flex-direction: column;
        gap: 25px;
        padding: 10px;
        width: 100%;
    }
    
    .factory img{
        width: 100%;
        height: auto;
        border-radius: 6px;
        margin-top: 12px;
    }

    .plant{
        font-size: 20px;
        text-align: center;
        padding: 10px 0;
    }

    /* --- Gallery Cards --- */
    .gallery{
        display: flex;
        flex-direction: column;
        gap: 25px;
        padding: 10px;
    }

    .gallery .image{
        width: 100%;
        padding: 15px;
        border-radius: 10px;
    }

    .gallery .image img{
        width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 8px 0;
    }

    .gallery .image h2{
        font-size: 20px;
    }

    .gallery .image p{
        font-size: 15px;
        line-height: 22px;
        text-align: justify;
    }

    /* --- Why Choose Kamiko --- */
    .why-kamiko-end{
        padding: 20px;
        text-align: center;
    }

    /* --- Footer --- */
    .footer-end{
        display: flex;
        flex-direction: column;
        padding: 15px;
        gap: 20px;
    }

    .footer-1,
    .foot-1,
    .foot-2{
        width: 100%;
        text-align: center;
    }

    .footer-1 p,
    .foot-1 p,
    .foot-2 p{
        font-size: 15px;
        line-height: 22px;
    }

    /* --- Bottom bar --- */
    .bottom{
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 10px 0;
    }
}


/* ========== MOBILE HEADER COMPACT FIX ========== */
@media (max-width: 768px) {
    /* Header height fix */
    .header {
        height: 65px !important;
    }
    
    /* Logo smaller */
    .head img {
        width: 32px !important;
        height: 32px !important;
    }
    
    /* Company name smaller */
    .head h1 {
        font-size: 14px !important;
    }
    
    /* Tagline smaller */
    .head p {
        font-size: 7px !important;
    }
    
    /* Toggle menu button fix */
    .menu-toggle {
        margin-right: 15px !important;
    }
    
    /* Dropdown menu position fix */
    .nav-bar {
        top: 65px !important;
        width: 200px !important;
    }
}

