body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensure it's above other content */
    transition: background-color 0.3s ease-in-out; /* Smooth transition for background */
}

.navbar .navbar-brand img {
    width: 50px;
    transition: transform 0.3s ease;
}

.navbar .nav-link {
    color: #ffffff; /* White text */
    padding: 8px 15px; /* Better padding for larger clickable area */
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease, background-color 0.3s ease; /* Smooth transition */
}

.navbar .nav-link:hover {
    color: #00aaff; /* Change text color on hover */
    background-color: rgba(255, 255, 255, 0.1); /* Background hover effect */
    border-radius: 5px; /* Rounded corners for hover effect */
}

.navbar .navbar-toggler {
    border-color: rgba(
        255,
        255,
        255,
        0.1
    ); /* Light border for the mobile toggle button */
}

.navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Media queries for mobile responsiveness */
@media (max-width: 768px) {
    .navbar .nav-link {
        font-size: 1rem; /* Slightly smaller font on mobile */
        padding: 8px 10px;
    }

    .navbar .navbar-brand img {
        width: 40px; /* Smaller logo on mobile */
    }
}

@media (max-width: 576px) {
    .navbar .nav-link {
        font-size: 0.9rem; /* Further reduction for small screens */
        padding: 6px 8px;
    }

    .navbar .navbar-brand img {
        width: 35px; /* Even smaller logo on very small screens */
    }

    .navbar {
        background-color: transparent; /* Background stays consistent */
        padding: 10px 20px; /* Add padding to make the navbar more compact on mobile */
    }
}

.home-section {
    min-height: 100vh;
    background: #191b1d;
    z-index: 1;
    position: relative;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.7);
}

.sv-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: "Playfair Display", serif;
    position: relative;
    overflow: hidden;
}

.sv-text {
    font-size: 35rem;
    font-weight: 700;
    color: #252729;
    z-index: 2;
}

.front-text {
    position: absolute;
    z-index: 3;
    color: #ffffff;
    font-size: 3rem;
    text-align: center;
    /* Adjust positioning as needed */
}

.slogan {
    margin-top: 100px;
    position: absolute;
    z-index: 3;
    color: #ffffff;
    font-size: 20px;
    text-align: center;
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {
    .sv-text {
        font-size: 20rem;
    }

    .front-text {
        font-size: 2.5rem;
        padding: 0 20px; /* Padding for small screens */
    }

    .slogan {
        font-size: 18px;
        margin-top: 80px;
    }
}

@media (max-width: 576px) {
    .sv-text {
        font-size: 15rem;
    }

    .front-text {
        font-size: 2rem;
        padding: 0 15px;
    }

    .slogan {
        font-size: 16px;
        margin-top: 60px;
    }
}

@media (max-width: 400px) {
    .sv-text {
        font-size: 10rem;
    }

    .front-text {
        font-size: 1.8rem;
    }

    .slogan {
        font-size: 14px;
        margin-top: 50px;
    }
}

.services-section {
    min-height: 100vh;
    /* background: #191b1d; */
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.service {
    background-color: #252729;
    padding: 2rem; /* Increased padding for a spacious feel */
    text-align: left;
    border-radius: 8px;
    font-size: 1.2rem; /* Reduced font size for better readability */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7); /* Deeper shadow for a floating effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service:hover {
    transform: translateY(-10px); /* Lift the div when hovered */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8); /* Enhanced shadow on hover */
}

.tree-container {
    display: flex;
    justify-content: center;
    padding-top: 2rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(300px, 1fr)
    ); /* Adjusted for wider cards */
    grid-gap: 2rem; /* Space between the grid items */
    width: 100%;
}

h3 {
    font-size: 1.75rem; /* Larger font size for headings */
    margin-bottom: 1rem; /* Space below the headings */
}

h5 {
    font-size: 1.25rem; /* Slightly larger font size for subheadings */
    margin: 0.5rem 0; /* Space around subheadings */
}

p {
    font-size: 1rem; /* Standard font size for paragraphs */
    line-height: 1.5; /* Increased line height for readability */
    margin: 0.5rem 0; /* Space around paragraphs */
}

.about-section {
    height: 100vh;
    color: #fff;
    position: relative;
    padding: 2rem;
    overflow: hidden;
    background-image: url("../images/sky.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Black tint with 50% opacity */
    z-index: 1; /* Ensure it's behind the content */
}

.missie,
.visie {
    position: absolute;
    width: 100%;
    text-align: center;
    opacity: 0; /* Initially hidden */
    transition: opacity 1s ease-in-out;
    z-index: 2;
}

.missie .text,
.visie .text {
    max-width: 800px; /* Set a maximum width for the text */
    margin: 0 auto; /* Center the text container */
    padding: 0 1rem; /* Add some padding for smaller screens */
}

.missie p,
.visie p {
    font-size: 1.2rem; /* Adjust font size for better readability */
    line-height: 1.6; /* Improve line spacing */
}

.missie {
    opacity: 1; /* Missie is shown first */
    /* animation: slideInOut 10s infinite; */
}

.visie {
    opacity: 0;
    /* animation: slideInOut 10s 5s infinite; */
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 3;
    color: white;
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

/* Slide-in and slide-out animations */
.slide-in-left {
    opacity: 1;
    animation: slideInFromLeft 1s forwards;
}

.slide-out-left {
    animation: slideOutToLeft 1s forwards;
}

.slide-in-right {
    opacity: 1;
    animation: slideInFromRight 1s forwards;
}

.slide-out-right {
    animation: slideOutToRight 1s forwards;
}

/* Keyframes for sliding animations */
@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .arrow {
        font-size: 1.5rem;
        padding: 0.3rem;
    }

    .left-arrow {
        left: 5px;
    }

    .right-arrow {
        right: 5px;
    }

    .missie .text,
    .visie .text {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .missie p,
    .visie p {
        font-size: 1rem;
        line-height: 1.4;
    }
}

.why-section {
    background: linear-gradient(to bottom, white, #191b1d);
    position: relative;
    padding: 5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Adjust this as needed for the section height */
    overflow: hidden;
}

@keyframes slideLeft {
    0% {
        transform: translateX(
            0%
        ); /* Start position - fully offscreen to the right */
    }
    100% {
        transform: translateX(
            -100%
        ); /* End position - fully offscreen to the left */
    }
}

.web-development-text {
    position: absolute;
    z-index: 1;
    top: 0;
    font-size: 12rem; /* Adjust font size for visibility */
    color: rgba(25, 27, 29, 0.1); /* Transparent dark color */
    font-weight: bold;
    white-space: nowrap; /* Prevents text wrapping */
    pointer-events: none; /* Ensures no interference with clicks */
}

/* Use two elements for seamless animation */
.web-development-text:nth-child(1) {
    animation: slideLeft 15s linear infinite; /* Infinite sliding animation */
}

.web-development-text:nth-child(2) {
    animation: slideLeft 15s linear infinite; /* Same animation */
    animation-delay: -15s; /* Start the second one immediately after the first */
}

.section-title {
    position: relative;
    z-index: 2;
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1.5rem;
    margin-top: 10rem;
    text-align: center;
    font-family: "Playfair Display", serif;
}

.section-description {
    position: relative;
    z-index: 2;
    font-size: 1.25rem;
    color: #fff;
    max-width: 800px;
    text-align: center;
    line-height: 1.8;
}

.section-description span {
    text-decoration: underline; /* Underline text */
    color: #fff; /* Optional: Keep the text color consistent */
}

@media (max-width: 768px) {
    .web-development-text {
        font-size: 6rem; /* Reduce size for mobile */
    }

    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1rem;
    }
}

.contact-section {
    min-height: 100vh;
    background: #191b1d;
}

.contact-btn {
    background-color: transparent;
    border: 2px solid white; /* White outline */
    color: white; /* Text color */
    padding: 0.75rem 2rem; /* Adjust padding for desired button size */
    font-family: "Playfair Display", serif;
    font-size: 1.25rem; /* Adjust text size */
    border-radius: 5px; /* Optional: Add border radius for rounded corners */
    text-decoration: none; /* Remove underline */
    transition: background-color 0.3s, color 0.3s; /* Smooth transition for hover effect */
}

.contact-btn:hover {
    background-color: white; /* White background on hover */
    color: #191b1d; /* Dark text color on hover */
}

.autoShow {
    opacity: 0; /* Start hidden */
    transform: translateY(200px) scale(0.3); /* Initial state matching the animation */
    transition: all 0.6s ease-out; /* Add smooth transition */
}

.autoShow.visible {
    opacity: 1;
    transform: translateY(0) scale(1); /* Final state when visible */
}

.contact-section {
    display: flex;
    flex-direction: column;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 2rem;
}

.contact-section {
    min-height: 100vh;
    background: #191b1d;
    color: #fff;
    padding: 2rem 1rem; /* Add padding to prevent content from touching the edges */
}

.contact-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Allow wrapping of columns on small screens */
    width: 100%;
    max-width: 1200px; /* Limit the width */
    margin: 0 auto; /* Center the content */
}

.contact-info,
.contact-form {
    flex: 1;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    border-radius: 8px;
    margin-bottom: 2rem; /* Space between stacked items on mobile */
}

.contact-info {
    margin-right: 2rem; /* Space between columns on larger screens */
}

.contact-info h2,
.contact-form h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    margin: 0.5rem 0;
}

.socials a {
    margin-right: 1rem;
    color: #333;
    font-size: 1.5rem;
    text-decoration: none;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.name-fields {
    display: flex;
    justify-content: space-between;
}

.name-fields input {
    flex: 1;
    margin-right: 10px;
}

.name-fields input:last-child {
    margin-right: 0;
}

.contact-form button {
    padding: 0.75rem;
    background-color: transparent;
    color: #fff;
    border: 2px solid white;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 40%;
    margin: 0 auto;
    font-family: "Playfair Display", serif;
    font-size: 1.25rem;
}

.contact-form button:hover {
    background-color: white;
    color: black;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .contact-content {
        flex-direction: column; /* Stack the contact info and form vertically */
        align-items: center; /* Center the items */
    }

    .contact-info,
    .contact-form {
        margin-right: 0; /* Remove right margin on smaller screens */
        width: 100%; /* Full width on small screens */
    }

    .name-fields {
        flex-direction: column; /* Stack name fields vertically */
    }

    .name-fields input {
        margin-right: 0;
        margin-bottom: 1rem; /* Add space between the first and last name fields */
    }

    .contact-form button {
        width: 100%; /* Full width button on mobile */
    }
}

@media (max-width: 576px) {
    .contact-info h2,
    .contact-form h2 {
        font-size: 1.25rem; /* Smaller font for smaller screens */
    }

    .socials a {
        font-size: 1.25rem; /* Smaller icon size on mobile */
    }
}
