:root{
    --primary-color: #0a1f44;
    --accent-color: #d4af37;
    --text-color: #f5f5dc;
    --background-color: #050d24;
    --secondary-color: #c0c0c0;
    --hover-color: #cd7f32;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}
header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    height: 80px;
    padding-left: 40px;
    padding-right: 40px;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
h2{
    margin-left: 10px;
}
.ul{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ul li{
    padding-left: 20px;
}
.ul li a{
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bolder;
    color: var(--text-color);
}
.ul li a:hover{
    color: var(--hover-color);
    text-decoration: underline;
    text-underline-offset: 10px;
}
#home{ 
    background-image: url(background\ image.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 90vh;
    overflow: hidden;
    z-index: -1;
}
.overlay{
    height: 100%;
    background-color: #0a1f449d;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.overlay h1{
    color: var(--accent-color);
    font-size: 6em;
    font-weight: bolder;
}
.overlay p{
    color: var(--text-color);
    font-size: 1.5em;
    margin-bottom: 50px;
}
.overlay .btn{
    margin-top: 30px;
    padding: 15px 32px;
    border-radius: 40px;
    border: 3px solid var(--primary-color);
    font-size: 1.2em;
    color: white;
    text-decoration: none;
    background-color: transparent;
    transition: 0.5 ease-in-out;
}
.overlay .btn:hover{
    background-color: var(--hover-color);
    border: none;
    font-weight: bold;
    cursor: pointer;
}

/* About Us Section */
#about-us {
    padding: 40px 40px;
    background-color: var(--secondary-color);
}
#about-us h2 {
    text-align: center;
    font-size: 3em;
    color: var(--primary-color);
}
.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}
.about {
    flex: 2;
    color: var(--primary-color);
    font-size: 1.2em;
}
.about ul {
    margin-top: 20px;
    padding-left: 20px;
}
.about-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.about-img img {
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Our Services Section */
#services {
    padding: 40px 40px;
    background-color: var(--background-color);
}
#services h2 {
    text-align: center;
    font-size: 3em;
    color: var(--accent-color);
}
.services-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}
.service-item {
    background: var(--primary-color);
    color: var(--text-color);
    border-radius: 15px;
    padding: 30px;
    min-width: 220px;
    flex: 1 1 220px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-align: center;
}

/* Our Product Section */
#products {
    padding: 40px 40px;
    background-color: var(--secondary-color);
}
#products h2 {
    text-align: center;
    font-size: 3em;
    color: var(--primary-color);
}
.products-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}
.product-item {
    background: var(--background-color);
    color: var(--text-color);
    border-radius: 15px;
    padding: 30px;
    min-width: 220px;
    flex: 1 1 220px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-align: center;
}
.product-img {
    width: 250px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: 0.5s ease;
}
.product-img:hover{
    width: 320px;
}

/* Contact Us Section */
#contact {
    padding: 40px 40px;
    background-color: var(--primary-color);
}
#contact h2 {
    text-align: center;
    font-size: 3em;
    color: var(--accent-color);
}
.contact-form {
    max-width: 600px;
    margin: 30px auto;
    background: var(--background-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.contact-form label {
    display: block;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: bold;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid var(--secondary-color);
    background: var(--secondary-color);
    color: var(--primary-color);
    font-size: 1em;
}
.contact-form button {
    padding: 12px 32px;
    border-radius: 40px;
    border: none;
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}
.contact-form button:hover {
    background-color: var(--hover-color);
    color: white;
}
#footer {
    background-color: var(--primary-color);
    color: var(--text-color);
    text-align: center;
    padding: 30px 0 20px 0;
    margin-top: 0.5px;
}
.footer-content a {
    color: var(--accent-color);
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s;
}
.footer-content a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
    body{
        overflow-x:hidden ;
    }
    h1, h2 {
        font-size: 2em !important;
    }
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-left: 10px;
        padding-right: 10px;
        height: 80px;
    
        position: fixed;
    }
    .logo {
        margin-bottom: 0;
    }
    nav{
        display: none;
    }
    nav ul {
        display: none;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        background: var(--primary-color);
        position: absolute;
        top: 80px;
        left: 0;
        z-index: 100;
    }
    nav ul.active {
        display: flex;
    }
    .container {
        flex-direction: column;
        gap: 20px;
    }
    .about{
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }
    .about p{
        margin-top: 5px;
        font-size: 1.2rem;
        padding: 10px;
    }
    ul{
        display: block;
    }
    .about-img img {
        width: 100%;
        height: auto;
        max-width: 400px;
        padding: 10px;
    }
    .services-list,
    .products-list {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    .product-img:hover{
    width: 250px;
}
    .service-item,
    .product-item {
        min-width: 180px;
        width: 90%;
    }
    #about-us,
    #services,
    #products,
    #contact {
        padding: 20px 10px;
    }
    .contact-form {
        padding: 15px;
    }
    header {
        position: relative;
    }
}

@media (max-width: 480px) {
    h1, h2 {
        font-size: 2em !important;
    }
    #about-us h2,
    #services h2,
    #products h2,
    #contact h2 {
        font-size: 2em;
    }
    .overlay h1 {
        font-size: 2.5em;
    }
    .product-item {
        padding: 15px;
    }
    .contact-form input,
    .contact-form textarea {
        font-size: 0.9em;
        padding: 8px;
    }
    #footer {
        padding: 15px 0 10px 0;
        font-size: 0.9em;
    }
}

