/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}


/* Body Styling */
body {
    font-family: Arial, sans-serif;
}

/* Parallax Section */
.parallax {
    background-image: url('/static/images/parallax-background.jpg'); /* Adjust image path */
    height: 100vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.parallax .content {
    background: rgba(0, 0, 0, 0.5); /* Darken background for text readability */
    padding: 20px;
    border-radius: 10px;
}

header {
    position: relative;
    width: 100%;
}

h1 {
    font-size: 3em;
}

/* Sections */
main {
    padding: 20px;
    background-color: #f4f4f4;
}

.intro, .services {
    margin-bottom: 40px;
}

h2 {
    color: #333;
    margin-bottom: 20px;
}

.service-item {
    background: #fff;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: white;
    display: flex;
    justify-content: center;
}


/* About Section */
.about {
    background-color: #f9f9f9;
    padding: 50px 20px;
    text-align: center;
}

.about h2 {
    margin-bottom: 30px;
    font-size: 2em;
    color: #333;
}

.about-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.about-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 30%;
    text-align: center;
}

.about-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
}

.about-item p {
    color: #555;
    font-size: 1em;
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
    }

    .about-item {
        width: 80%;
        margin: 10px 0;
    }
}

/* Services Section */
.services {
    background-color: #f9f9f9;
    padding: 50px 20px;
    text-align: center;
}

.services h2 {
    font-size: 2em;
    margin-bottom: 30px;
    color: #333;
}

/* Service Item Layout */
.service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 50px;
    padding: 20px;
}

/* Alternating Layout */
.service-item.left {
    flex-direction: row; /* Image left, text right */
}



/* Service Text & Image Sizing */
.service-item .service-text,
.service-item .service-image {
    width: 48%;
}

/* Image Styling */
.service-item .service-image img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-item {
        flex-direction: column !important;
        text-align: center;
    }

    .service-item .service-text,
    .service-item .service-image {
        width: 100%;
    }
}

/* Sticky Navigation */
.navbar {
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: auto; /* Auto width based on content */
}

/* Menu Button */
.menu-button {
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s;
    white-space: nowrap; /* Prevents button from stretching */
}

/* Hidden Navigation */
#nav-menu {
    display: none;
    background: rgba(0, 0, 0, 0.9);
    padding: 10px;
    border-radius: 8px;
    width: auto; /* Auto width based on content */
    min-width: 150px; /* Ensures it's not too narrow */
}

/* Navigation List */
#nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

#nav-menu ul li {
    padding: 8px 12px;
}

#nav-menu ul li a {
    color: white;
    text-decoration: none;
    display: block;
    transition: background 0.3s;
    white-space: nowrap;
    padding: 3px;
}

#nav-menu ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
    
}

/* Responsive: Show the menu when toggled */
.menu-open #nav-menu {
    display: block;
}

.contact-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.container {
    max-width: 600px;
    margin: auto;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-control {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
}

.btn-primary:hover {
    background-color: #0056b3;
}

#contact {
    padding: 50px 0;  
    margin-top: 30px; 
}

#contact p {
    padding: 20px 0;
}

#sumbit {
    margin-top: 20px;
}