/* Reset some basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Set html and body to take full height */
html, body {
    height: 100%;
}

/* Body styling with Flexbox */
body {
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    /* Removed padding-top here; handled in .wrapper */
}

/* Wrapper to control layout */
.wrapper {
    display: flex;
    flex-direction: column;
    flex: 1; /* Allows the wrapper to grow and fill available space */
    padding-top: 60px; /* Height of the fixed header */
    /* Adjust padding-bottom if necessary */
}

/* Header and Navigation */
header {
    position: fixed; /* Fixed at the top */
    top: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    z-index: 1000; /* Stay above other elements */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space between logo and nav links */
    max-width: 1200px; /* Optional: constrain content width */
    margin: 0 auto; /* Center the nav content */
    padding: 0 20px; /* Horizontal padding */
}

.logo img {
    height: 40px; /* Adjust based on your logo's size */
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px; /* Space between navigation links */
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    transition: color 0.3s, border-bottom 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: #ff6347;
    border-bottom: 2px solid #ff6347;
}

/* Main Content */
main {
    flex: 1; /* Allows main to expand and take available space */
    padding: 20px;
    /* No need for min-height since Flexbox handles it */
}

section {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    /* No need for fixed positioning */
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
}

form label {
    margin-bottom: 5px;
    font-weight: bold;
}

form input[type="text"],
form input[type="email"],
form textarea {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    padding: 10px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
    text-decoration: none;
    font-size: 1em;

}

form button:hover {
    background-color: #ff6347;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .logo img {
        height: 35px; /* Smaller logo on smaller screens */
    }
}

/* Optional: Smooth Scrolling */
html {
    scroll-behavior: smooth;
}


/* Services Section */
.services {
    padding: 50px 20px;
    background-color: #f9f9f9;
}

.services h1 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 2200px;
    margin: 0 auto;
}

.service-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center; /* Center text inside service items */
}

.service-item h2 {
    font-size: 1.5rem;
    color: #333; /* Main header text color */
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-item h2 i {
    margin-right: 10px; /* Add space between icon and text */
    color: #ff6347; /* Change icon color to #ff6347 */
}

.service-item p {
    font-size: 1rem;
    color: #666;
    text-align: left;
}

.service-item:hover {
    transform: scale(1.05);
}

@media (min-width: 768px) {
    .service-list {
        flex-direction: row;
        justify-content: space-between;
    }

    .service-item {
        width: 30%;
    }
}


/* Portfolio Section */

.portfolio {
    padding: 20px;
    background-color: #f9f9f9; /* Background color for the portfolio section */
}

.portfolio-container {
    display: flex; /* Use Flexbox for layout */
    flex-wrap: wrap; /* Allow items to wrap if the screen is too narrow */
    justify-content: space-between; /* Space items evenly */
}

.portfolio-item {
    flex: 1 1 calc(25% - 20px); /* Take up one-third of the container minus the gap */
    margin: 10px; /* Margin around each item */
    background-color: #fff; /* Background color for items */
    border-radius: 5px; /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    padding: 20px; /* Padding inside each item */
    transition: transform 0.2s; /* Animation for hover effect */
}

.portfolio-item:hover {
    transform: scale(1.05); /* Scale up on hover */
}

.portfolio-item img {
    max-width: 100%; /* Make images responsive */
    border-radius: 5px; /* Rounded corners for images */
    align-items: center;
}

.portfolio-item h2 {
    text-align: center; /* Center the headers */
    color: #333; /* Header color */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .portfolio-item {
        flex: 1 1 100%; /* Full width on smaller screens */
    }
}





/* About Us Section */
.about-us {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.about-container h1 {
    text-align: center;
    color: #ff6347;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}



.about-text {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

.about-text p {
    margin-bottom: 20px;
}

.about-text ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
    align-items: center;
}

.about-text ul li {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.about-text ul li i {
    color: #ff6347;
    margin-right: 10px;
}

@media (min-width: 768px) {
    .about-content {
        flex-direction: row;
        align-items: flex-start;
    }

    .about-text {
        max-width: 600px;
        text-align: left;
    }
}

/* Footer Dynamic Year */
footer p {
    margin: 0;
    padding: 10px 0;
    background-color: #333;
    color: #fff;
    text-align: center;
}


#read-more {
    color: #ff6347;
    text-decoration: underline;
    cursor: pointer;
}

#more-content {
    display: none; /* Start hidden */
}

#more-content1,
#more-content2,
#more-content3,
#more-content4,
#more-content5,
#more-content6  {
    display: none; /* Start hidden */
}

/* Hero Section */
.hero {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 60px 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.cta-btn {
    background-color: #ff6347;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.cta-btn:hover {
    background-color: #e5533b;
}

/* About Preview */
.about-preview {
    padding: 40px 20px;
    text-align: center;
    background-color: #f4f4f4;
}

.about-preview h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.about-preview p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.read-more {
    color: #ff6347;
    text-decoration: underline;
}

/* Services Preview */
.services-preview {
    padding: 40px 20px;
    text-align: center;
}

.services-preview h2 {
    margin-bottom: 30px;
    font-size: 2rem;
}

.services-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.service-item {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    flex: 1 1 calc(33.33% - 20px);
    margin-bottom: 20px;
}

.service-item img {
    max-width: 100%;
    border-radius: 5px;
}

.service-item h3 {
    margin-top: 15px;
    font-size: 1.5rem;
}

.service-item p {
    margin-top: 10px;
    font-size: 1rem;
}
