*{
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

:root{
    --color-primary: #6c63ff;
    --color-success: #00bf8e;
    --color-warning: #f7c94b;
    --color-danger: #f75842;
    --color-danger-variant: rgba(247, 88, 66, 0.4);
    --color-white: #fff;
    --color-light: rgba(255, 255, 255, 0.7);
    --color-black: #000;
    --color-bg: #223035;
    --color-bg1: #2e3267;
    --color-bg2: #424890;
    
    --container-width-lg: 80%;
    --container-width-md: 90%;
    --container-width-sm: 94%;

    --transition: all 400ms ease;
}

body{
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
    color: var(--color-white);
    background: var(--color-white);
    /* overflow-x: hidden; */
}

.container{
    width: var(--container-width-lg);
    margin: 0 auto;
}

section{
    padding: 6rem 0;
}

section h2{
    text-align: center;
    margin-bottom: 4rem;
}

h1, h2, h3, h4, h5{
    line-height: 1.2;
}

h1{
    font-size: 2.4rem;
}

h2 {
    font-size: 2rem;
}

h3{
    font-size: 1.6rem;
}

h4{
    font-size: 1.3rem;
}

a{
    color: var(--color-white);
}

img{
    width: 100%;
    display: block;
    object-fit: cover;
}

/* ============================== NAVBAR ========================== */
nav {
    position: absolute; /* Background ka part banayega */
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.2); /* Halki transparency */
    height: 5rem;
    z-index: 10;
}
.nav_container{
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo{
    font-size: 1.8rem;
    font-weight: 600;
}

nav button{
    display: none;
}
#open-menu-btn{
    background: none;
    color: #fff;
    font-size: 1.5rem;
    }

.nav_menu{
    display: flex;
    align-items: center;
    gap: 4rem;
}
.nav_menu a{
    font-size: 1.3rem;
    transition: var(--transition);
}

.nav_menu a:hover{
    color: #ff9800;
}

.whts-foot{
    width: 65px; /* Ensure both buttons are the same size */
    height: 65px; 
    position: fixed;
    right: 10px;
    border-radius: 60%; /* Make it a perfect circle */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Add subtle shadow for better visibility */
    bottom: 30px;
    background: #25D366; /* WhatsApp green color */
}
.whts-foot img{
    width: 50px;
    height: 50px;
}


.header {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('../images/cf-flange-alss-featured.png') no-repeat center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.header_container {
    position: relative;
    z-index: 1;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-block;
    background: #ff9800;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #e68900;
}

/* ================= SERVICES SECTION ================== */
.services {
    position: relative;
    background: #ffffff; /* Dark background for industrial look */
    color: rgb(30, 30, 30);
    padding: 5rem 2rem;
    overflow: hidden;
}

/* FLEXBOX LAYOUT */
.service_container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1200px;
    margin: auto;
    position: relative;
    z-index: 2;
}

/* LEFT CONTENT */
.service_right {
    flex: 1;
    max-width: 600px;
}

.service_right h3 {
    font-size: 1.4rem;
    color: #ff9800; /* Golden color for highlight */
    text-transform: uppercase;
    letter-spacing: 2px;
}

.service_right h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3a3a3a;
    line-height: 1.2;
}

.service_right p {
    font-size: 1.1rem;
    color: #a4a4a4;
    margin: 15px 0;
    line-height: 1.6;
}

/* CTA BUTTON */
.btn {
    display: inline-block;
    background: #ff9800;
    color: white;
    padding: 12px 24px;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.btn:hover {
    background: #e68900;
}

/* RIGHT IMAGE */
.service_left {
    flex: 1;
    display: flex;
    justify-content: center;
}

.service_img img {
    width: 90%;
}

/* =================== ROTATING GEARS ================== */
.gear-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1; /* Keep it behind the content */
}

/* COMMON GEAR STYLES */
.gear-icon {
    position: absolute;
    color: rgba(56, 56, 56, 0.1); /* Light faded white */
    font-size: 6rem;
    animation: rotateGear linear infinite;
}

/* INDIVIDUAL GEAR POSITIONS & SIZES */
.gear1 {
    top: 10%;
    left: 55%;
    font-size: 5rem;
    animation-duration: 3s;
}

.gear2 {
    top: 40%;
    right: 15%;
    font-size: 10rem;
    animation-duration: 3s;
}

.gear3 {
    bottom: 20%;
    left: 55%;
    font-size: 5rem;
    animation-duration: 5s;
}

/* ROTATION ANIMATION */
@keyframes rotateGear {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


/* ================== CATEGORIES =================== */
.categories {
    background: #1e1e2d; /* Darker background for better contrast */
    padding: 5rem 2rem;
}

.categories h1 {
    color: #f1f1f1;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* FLEXBOX GRID */
.category_container {
    display: grid;
    grid-template-columns: 40% 60%;
    align-items: center;
    gap: 2rem;
}

/* LEFT TEXT */
.category_left p {
    color: #cacaca;
    font-size: 1.1rem;
    margin: 1rem 0 2rem;
    line-height: 1.6;
}

/* RIGHT GRID (PRODUCTS) */
.category_right {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* PRODUCT CARD */
.category {
    background: #2c2c3a;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(255, 152, 0, 0.2); /* Soft glow effect */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.category:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(255, 152, 0, 0.3);
}

/* IMAGE STYLING */
.feature_image {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature_image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

.category:hover .feature_image img {
    transform: scale(1.05);
}

/* TEXT BELOW IMAGE */
.feature_info {
    text-align: center;
    color: #ff9800;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1rem;
}


/* =============================== ABOUTUS ================================== */
.aboutus{
    background: #ffffff;
    color: #000;
    position: relative;
    height: auto;
    margin-top: 1rem;
}

.about_container{
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    height: 100%;
}
.about_left h3{
    font-size: 1.4rem;
    font-weight: 400;
}
.about_left h1{
    font-size: 2.8rem;
}
.about_left p{
    margin: 1rem 0 2.4rem;
    font-size: 1.2rem;
}
.btn-about{
    color: #fff;
    background: #e68900;
    padding: 1rem 2rem;
    border: 1px solid transparent;
    font-weight: 600;
    border-radius: 2rem;
    font-size: 1.2rem;
    transition: var(--transition);
}
.btn-about:hover{
    background: #fff;
    color: #f69709;
    font-weight: 600;
}

/* INDIVIDUAL GEAR POSITIONS & SIZES */
.gear4 {
    top: 10%;
    left: 15%;
    font-size: 5rem;
    animation-duration: 3s;
}

.gear5 {
    top: 40%;
    right: 55%;
    font-size: 10rem;
    animation-duration: 3s;
}

.gear6 {
    bottom: 20%;
    left: 25%;
    font-size: 5rem;
    animation-duration: 5s;
}



/* ==================== FOOTER ================= */
footer{
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), 
                url('../images/Ansi-150-Flange..jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 5rem;
    font-size: 0.9rem;
}


.footer_container{
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
    gap: 5rem;
    color: white;
}

.footer_container > div h4{
    margin-bottom: 1.2rem;
}

.footer_copyright{
    text-align: center;
    margin-top: 4rem;
    padding: 1.2rem 0;
    border-top: 1px solid rgb(79, 79, 79);
}






/* ==================== MEDIA QUERIES(TABLETS) ==================== */
@media screen and (max-width: 1024px) {
    body{
        overflow-x: hidden;
    }
    .container{
        width: var(--container-width-md);
    }
    h1{
        font-size: 2.2rem;
    }
    h2{
        font-size: 1.7rem;
    }
    h3{
        font-size: 1.4rem;
    }
    h4{
        font-size: 1.2rem;
    }

    /* ==================== NAVBAR =================== */
    .nav_menu{
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        flex-direction: column;
        text-align: center;
        background: #fff;
        gap: 0;
        overflow: hidden;
        transition: var(--transition);
    }
    .nav_menu li{
        margin-top: .9rem;
    }
    .nav_menu li a{
        color: #000;
        padding: 20px;
    }
    #open-menu-btn{
        display: block;
    }

    /* ==================== HEADER ======================= */
    .header {
        position: relative;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        background: url('../images/cf-flange-alss-featured.png') no-repeat center;
    }
    .header h1 {
        font-size: 2rem;
    }
    .header p {
        font-size: 1rem;
    }

    .services{
        margin-top: 0;
    }
    .service_container {
        flex-direction: column;
        text-align: center;
        gap: 1.9rem;
        margin-top: 0;
    }

    .service_left img{
        height: 50vh;
    }
    .service_right h1 {
        font-size: 2rem;
    }

    .service_right p {
        font-size: 1rem;
    }

    .gear-icon {
        font-size: 5rem;
    }

    .gear1 {
        left: 10%;
        top: 55%;
    }

    .gear2 {
        right: 10%;
    }

    .gear3 {
        left: 60%;
    }

    .features_container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .feature {
        padding: 1.5rem;
    }

    .feature_info h4 {
        font-size: 1.2rem;
    }

    .category_container {
        grid-template-columns: 1fr; /* Stack into one column */
        text-align: center;
    }

    .category_left {
        margin: 0 auto;
    }

    .category_right {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

.aboutus {
    height: auto;
    margin-bottom: 3rem;
}
.about_container {
    grid-template-columns: 1fr;
    text-align: center;
}
.about_left {
    order: 2;
}
.about_right {
    order: 1;
}
.about_left h1 {
    font-size: 2.4rem;
}
.about_left p {
    font-size: 1rem;
}

.gear4{
    top: 90%;
}
  /* ==================== FOOTER ======================= */
  .footer_container{
    grid-template-columns: 1fr 1fr;
}

}





   /* ==================== MEDIA QUERIES(PHONES) ======================= */

   @media screen and (max-width: 600px) {
    .container{
        width: var(--container-width-sm);
    }
    nav{
        background: #2b2b2b;
    }
    .nav_menu{
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        flex-direction: column;
        text-align: center;
        background: rgb(120, 120, 120);
        z-index: -1;
        overflow: hidden;
        transition: var(--transition);
    }
    .nav_menu li{
        margin-top: .9rem;
    }
    .nav_menu li a{
        color: #d5d5d5;
        padding: 20px;
    }
    #open-menu-btn{
        display: block;
    }

      /* ==================== HEAdER ======================= */
      .header {
        position: relative;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        background: url('../images/cf-flange-alss-featured.png') no-repeat center;
    }
.header_container{
      margin-top: 4rem;
}

.service_container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
}

.service_right h3 {
    font-size: 1.2rem;
}

.service_right h1 {
    font-size: 1.8rem;
}

.service_right p {
    font-size: 0.95rem;
}

.btn {
    font-size: 1rem;
    padding: 10px 18px;
}

.gear-icon {
    font-size: 4rem;
}

.gear1 {
    left: 5%;
}

.gear2 {
    right: 5%;
}

.gear3 {
    left: 55%;
}
.features{
    margin-top: 0;
}
.features_container {
    margin-top: 0;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.features h2 {
    font-size: 1.7rem;
}

.feature {
    padding: 1.2rem;
}

.feature_info h4 {
    font-size: 1.1rem;
}

.category_container {
    grid-template-columns: 1fr; /* Single column */
    text-align: center;
}

.category_right {
    grid-template-columns: 1fr; /* One product per row */
    gap: 1rem;
}

.categories h1 {
    font-size: 2rem;
}

.feature_info {
    font-size: 1rem;
}


.aboutus {
    margin-top: 0;
    height: auto;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.about_left h1 {
    font-size: 2rem;
}
.about_left p {
    font-size: 1rem;
}
.btn-about {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
}

.gear4{
    top: 100%;
}
 /* ==================== FOOTER ======================= */
 footer{
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), 
                url('../images/Ansi-150-Flange..jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 5rem;
    font-size: 0.9rem;
}
   .footer_container{
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
}

.footer_1 p{
    margin: 1rem auto;
}
   }