body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient( #E9F1FA, #002349 70%);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.logo {
    color: #00ABE4;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin: 20px auto;
    display: block;

}

/* Navigation Toggle Button */
.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: none; /* Show on smaller screens */
    
}

/* Navigation List Styling */
.nav_list {
    display: flex;
    justify-content: space-around;
    align-items: center;
    min-height: 8vh;
    background-color: #002349;
    color: white;
    border-radius: 15px;
    margin: 0 20%;
    box-shadow: 2px 2px 2px black;
    cursor: pointer;
}

a {
    text-decoration: none;
    color: white;
    border: none;
}

.nav_item {
    font-weight: bold;
    display: inline;
    transition: scale 0.3s;
}

.nav_item:hover 
{
    transition: scale 0.3s;
   scale:1.2;
}
.nav_item a:active {
    color: #00ABE4;
}

/* Home Section */
#home {
    width: auto;
    display: flex;
    margin: 50px;
    gap: 5%;
}

#line {
    border: 5px solid #002349;
    margin: 5% 30%;
}


#home img {
    width:39%;
    height: 39%;
    transition: opacity 0.3s ease;
    transition: transform 0.5s ease;
    animation: rotate 5s linear infinite;

}
#home img:hover 
{
        opacity: 0.8;
        transform: rotate(90deg);
 }


#muawia {
    color: #002349;
    margin-bottom: auto;
    font-size: 80px;
    text-shadow: 1px 1px 4px black
}

#works {
    font-size: 50px;
    font-weight: bold;
    color: #c2c2c2;
    padding: 8px;
    border-radius: 5px;
    background-color: #002349;
    box-shadow: 2px 2px 2px 2px black;
}
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color:transparent; }
}

#home-text h4 {
    animation: typing 3s steps(40) infinite,
    blink-caret 0.75s step-end infinite;
    border-right: 2px solid #002349;
    white-space: nowrap;
    overflow: hidden;
    ;
    font-size: 1.2rem;
    font-weight: bold;
    color: #002349;
}


#contact-btn {
    font-size: 30px;
    background-color:inherit;
    padding: 5px 10px;
    border-radius: 5px;
    border: 3px solid #002349;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.4s, background-color 0.3s;
    color: #002349
}

#contact-btn:hover {
    background-color: #002349;
    color: #ffffff;
    border: 3px solid #002349;
}

/* About Section */
#about {
    color: #c2c2c2;
    height: max-content;
    margin-top: 8%;
    text-align: center;
    background: radial-gradient(#002349, black);
    width: auto;
    padding-top: 10px;
    margin-left: -10px;
    margin-right: -10px;
    padding-bottom: 10px;
}
.about-line
{
    border: 0;
    height: 2px;
    background: white;
    margin: 30px 20%;
}

#about-text {
    padding: 10px;
    height: fit-content;
   font-size: 16px;
   line-height: 1.3;
    width: 70%;
    margin: 3% auto;
    border-radius: 10px;
    box-shadow:  0 0 8px 1px white;
}

#about-text:hover
{
    box-shadow:  0 0 15px 4px white;

}

#about-text img{
    height: 20%;
    border-radius: 10px;
    opacity: 70%;
    padding-left: 2%;
    transition: scale 0.3s;
}

#about-text img:hover{
    opacity: 100%;
    scale: 1.05;
}

@keyframes fade {
    from {
        opacity: 0;
       scale: 0.5;
    }
    to {
        opacity: 1;
        scale: 1;
    }
}
#about-text {
    animation: fade linear;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
}


/*  Services Section */
#services
{
    background: radial-gradient(#002349, black);
    text-align: center;
    color: #E9F1FA;
    height: 100%;
    padding: 10px;
    width: auto;
}
#services-text
{   
    padding: 10px;
    height: fit-content;
    font-size: 16px;
    line-height: 1.3;
    width: 70%; 
    margin: 3% auto;
    border-radius: 10px;
    box-shadow:  0 0 8px 1px white;
    animation: fade ease-in;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}
#services-text:hover
{
    box-shadow:  0 0 15px 4px white;
}

#screw-imgs
{
    display: flex;
    justify-content: center;
    gap: 10%;
    margin: 8% 0 3% 0;
}
#services-text  img
{   
    transition: transform 0.3s;
    margin:2% 5%;
}
#services-text img:hover
{   
    transform: rotate(45deg) scale(1.2);
    transition: transform 0.3s;
}
.screw-label p
{
    font-size: 15px;
    font-weight: bold;
    color: white;
    margin-top: 30%;

}

#load-btn 
{
    border: none;
    text-decoration: none;
    color: #002349;
    font-size: 20px;
    background-color:inherit;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
   margin-bottom: 2%;
    cursor: pointer;
    transition: color 0.4s, background-color 0.3s;
    color: white;
}

#load-btn a:hover
{
    text-decoration: underline;
}
#load-btn a:active
{
    color: #c2c2c2
}


/* ---- Contact Section ---- */

#contact
{
    background: radial-gradient(#002349, black);   
    text-align: center;
    color: #002349;
    height: 100%;
    padding: 10px;
    width: auto;
}
#contact h1
{
    color: #E9F1FA;
    font-size: 30px;
}


#contact-line
{
    border: 0;
    height: 2px;
    background:#E9F1FA;
    margin: 30px 20%;
}


.icon
{
   font-size: 30px;
   color: #002349;
    padding: 10px;
    transition: color 0.3s;
    cursor: pointer;
    transition:all 0.3s;
}

.icon:hover
{
    box-shadow: 0 0 10px 5px #002349;
}

@keyframes icon-anim
{
    from
    {
        transform: scale(0.7);
    }
    to
    {
        transform: scale(1);
    }
    
}


#details
{
    margin: 5% auto;
    gap: 10%;
    padding: 3%;
    background-color: #E9F1FA;
    width: 40%;
    border-radius: 10px;
    height: max-content;
    text-align: left;
    box-shadow: inset 0 0 5px 5px #002349;
}

#details h2
{
    text-align: center;
    font-size: 30px;
}


#icon-g
{
    display: flex;
    justify-content: center;
    text-align: center;
    gap: 10%;
    margin: 5%;
    background-color: #E9F1FA;
    animation: fade ease-in;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}


#map:hover
{
    opacity: 80%;
  
}

#contact a
{
    color: #002349;
    text-decoration: none; 
}

#contact a:hover
{
    text-decoration: underline;
}

/* Footer Section */
footer {
    color: white;
    font-style: italic;
    text-align: center;
    display: flex;
    justify-content: center;
}
footer i{
    font-size: 25px;
    padding: 10px;
    transition: color 0.3s;
}
footer i:hover
{
    color:#c2c2c2;
}





#screw-section
{
    text-align: center;
    margin: 10%;

}
#screw-section h1
{
    color: #E9F1FA;
    background-color: #002349;
    border-radius: 5px;
}

.size-div {
    margin-top: 2%;
    padding: 10px; /* Padding inside the div */
    border-radius: 5px; /* Rounded corners */
    background-color: #002349;
    color: #E9F1FA;
}

.size-list {
    display: block;
    justify-content: space-around;
    text-align: left;
    padding: 20px;  border: 2px solid black;/* Padding inside the list */
    background-color: #E9F1FA;
    color: #002349;
    border: none;
    transition: transform 0.3s;
}
.size-list:hover
{
    transition: transform 0.3s;
    transform: scale(1.02);
    box-shadow: 0 0 7px 2px white;
}



/* Media Queries */
@media (max-width: 768px)
{
    .logo
    {
       width: 15%;
       padding-left: 10%;
       display: block;
   
       padding: 5%;
       box-shadow: 2px 2px 2px #002349;
    }
   
    #muawia
    {
        font-size: 50px;
    }
    #works
    {
        font-size: 30px;
    }
    .nav_list {
        margin: 2% 50%;
        display: none;
        transform: translateX(100%);
         flex-direction: column;
         padding: 5%;
         gap: 5%;
         font-size: 20px;
         font-weight: normal; 
    }
    .nav_list.active {
        display: flex;
        padding-right: 5%;
        gap: 10px;
        position: absolute;
        background-color: #002349;
        border-radius: 10px;
        box-shadow: 2px 2px 2px black;
        transform: translateX(0);
        opacity: 0.9;
        box-shadow: 0 0 2px 5px #002349;
        z-index: 1;
    }
    .nav-toggle {
        display: block;
        font-size: 2rem;
        cursor: pointer;
        float: right;
        padding-right: 10%;
        margin-top: -20%;
    }
    #home {
        flex-direction: column;
        margin: 20px;
    }
    #home img {
        margin-top:10%;
        width: 50%;
        height: 50%;
    }
    #home-text h4 {
        font-size: 1rem;
    }
    #about
    {
        width: 100%;
        margin-left: 0;
    }
    #about-text {
        width: 80%;
    }
    #details {
        width: 90%;
        text-align: center;
        box-shadow: none;
    }
    #icon-g 
    {
        width: 90%;
    }
    #contact
    {
        box-sizing: border-box;
        width: 100%;
    }
    #map 
   {
     width: 100%;
   }
    
    #container {
        flex-direction: column;
    }
    .nav-toggle {
        display: block;
    }
    
    #services-text  img
    {
        width: 70px;
        height: 70px;
    }
}