/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: white;
}

/* Header Styling */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-bottom: 2px solid #f0f0f0;
    z-index: 1000;
}

.header-container {
    width: 100%;
    max-width: 100%;
    padding: 20px 5%;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Section */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

/* Navigation Styling */
nav {
    margin-right: 5%;
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    gap: 60px;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav ul li {
    display: flex;
    align-items: center;
}

nav ul li a {
    color: black;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    padding: 12px 20px;
    background-color: white;
    transition: all 0.3s ease;
    display: inline-block;
}

nav ul li a:hover {
    color: white;
    background-color: black;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 15px 5%;
    }

    nav ul {
        gap: 20px;
    }

    nav ul li a {
        padding: 8px 12px; /* Smaller padding for mobile */
        font-size: 14px;
    }

    .logo img {
        height: 30px; /* Slightly smaller logo for mobile */
    }
}

/* Add specific iPhone notch handling */
@supports (padding-top: env(safe-area-inset-top)) {
    header {
        padding-top: env(safe-area-inset-top);
    }
}

/* Container for all main sections */
.hero, .about, .services {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Hero section */
.hero {
    display: flex;
    min-height: calc(100vh - 74px);
    width: 100%;
    margin-top: 74px;
}

.hero-image {
    width: 50%;
    position: relative;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s ease; /* Add a transition for smooth scaling */
}

.hero-text {
    width: 50%;
    background-color: #2b2b2b;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5%;
    box-sizing: border-box;
}

.hero-text h1 {
    font-size: 32px;
    line-height: 1.3;
    font-weight: normal;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.hero-text .cta {
    font-size: 24px;
    font-weight: normal;
    margin: 20px 0;
}

.hero-text strong {
    font-weight: bold;
}

.hero-text h3 {
    font-size: 24px;
    line-height: 1.3;
    font-weight: normal;
    margin-bottom: 20px;
}

/* BUTTON */
.hero .btn {
    display: inline-block;
    padding: 20px 30px; /* Increased padding for a larger button */
    background-color: black;
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-align: left;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 75px;
    font-size: 20px; /* Increased font size */
}

.hero .btn:hover {
    background-color: #444;
}

.about {
    display: flex;
    min-height: calc(100vh - 74px);
    width: 100%;
    background-color: #ffffff;
}

.about-text {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5%;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.about-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2b2b2b;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #333;
}

.about-image {
    width: 50%;
    position: relative;
}

.about-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .about {
        flex-direction: column-reverse; /* Image on top, text below */
        min-height: auto;
    }

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

    .about-image {
        height: 50vh;
    }

    .about-text {
        padding: 2rem;
    }
}

.header-right a {
    text-decoration: none;
    color: black;
    font-size: 16px;
    font-weight: bold;
    margin-left: 20px;
    transition: color 0.3s ease; /* Smooth transition for hover */
}

.header-right a:hover {
    color: #444;
}

/* If there are any specific header buttons with different styling */
.header-btn,
.header-right .btn {
    display: inline-block;
    padding: 12px 20px;
    background-color: black;
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.header-btn:hover,
.header-right .btn:hover {
    background-color: #444;
}

.services {
    text-align: left;
    margin-left: 0;
    padding-left: 0;
    display: flex;
    min-height: calc(100vh - 74px);
    width: 100%;
    background-color: #f5f5f5; /* Light grey background to differentiate from About */
    padding: 0;
    margin-bottom: 10px; /* Adjust this value to reduce spacing */
}

.services-text {
    padding: 5%;
}

.services-text h2 {
    font-size: 2.5rem;
    margin-bottom: 5px; /* Reduce margin below the header */
    color: #2b2b2b;
}

.service-item {
    margin-left: 0;
    padding: 20px;
    transition: transform 0.3s ease;
    cursor: pointer;
    margin-top: 5px; /* Reduce margin above each service item */
}

.service-item:hover {
    transform: translateX(10px);
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2b2b2b;
    font-weight: normal;
}

.service-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
}

@media (max-width: 768px) {
    .services {
        padding: 2rem;
    }

    .services-text {
        padding: 2rem 5%;
    }

    .services-text h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .service-item h3 {
        font-size: 1.3rem;
    }

    .service-item p {
        font-size: 1rem;
    }
}

.contact-footer {
    background-color: #2b2b2b;
    color: white;
    padding: 1rem 0;  /* Reduced padding from 3rem to 1rem */
    min-height: auto; /* Ensure no minimum height */
    display: flex;
    align-items: center;
}

.footer-content {
    width: 100%;
    max-width: 100%;
    padding: 0 5%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Reduced space between company info and copyright */
}

.company-info {
    margin-bottom: 0; /* Removed large margin */
}

.company-info p {
    font-size: 0.9rem; /* Slightly smaller font size */
    line-height: 1.4; /* Tighter line height */
    margin: 0.2rem 0; /* Smaller margin between lines */
}

.company-info a {
    color: white;
    text-decoration: none;
}

.company-info a:hover {
    text-decoration: underline;
}

.copyright p {
    font-size: 0.8rem; /* Slightly smaller font size */
    color: #999;
    margin: 0;
}

@media (max-width: 768px) {
    .contact-footer {
        padding: 2rem;
    }
}

html {
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        margin-top: 59px;
    }

    .hero-image{
        width: 100%; /* Full width on mobile */
        height: 40vh; /* Set a fixed height for the image on mobile */
    }
    .hero-text {
        width: 100%;
        height: 90vh;
    }
}

/* Contact Form Styles */
.contact {
    display: flex;
    justify-content: center; /* Center the form horizontally */
    align-items: center; /* Center the form vertically */
    min-height: calc(100vh - 74px); /* Full height minus header */
    padding: 40px 20px; /* Add padding to the top and sides */
    background-color: #f0f0f0; /* Light background for contrast */
}

.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 600px; /* Limit the width of the form */
    width: 100%; /* Full width */
    margin: 0 auto; /* Center the form */
    padding: 20px;
    background-color: #fff; /* White background for the form */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.contact-form h2 {
    margin-bottom: 20px; /* Space below the heading */
    font-size: 24px; /* Heading size */
    color: #333; /* Dark text color */
}

.contact-form input,
.contact-form textarea {
    padding: 12px; /* Padding inside input fields */
    margin-bottom: 15px; /* Space between fields */
    border: 1px solid #ccc; /* Light border */
    border-radius: 4px; /* Rounded corners */
    font-size: 16px; /* Font size */
    width: 100%; /* Full width */
    box-sizing: border-box; /* Include padding in width */
}

.contact-form textarea {
    resize: vertical; /* Allow vertical resizing */
    min-height: 100px; /* Minimum height for textarea */
}

.contact-form button {
    padding: 12px 20px; /* Padding for button */
    background-color: #2b2b2b; /* Dark background */
    color: white; /* White text */
    border: none; /* No border */
    border-radius: 4px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    font-size: 16px; /* Font size */
    transition: background-color 0.3s; /* Smooth transition */
}

.contact-form button:hover {
    background-color: #444; /* Darker background on hover */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .contact-form {
        padding: 15px; /* Adjust padding for smaller screens */
    }

    .contact-form h2 {
        font-size: 20px; /* Smaller heading size on mobile */
    }
}
