/* Main Styles */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    cursor: default;
}

html,
body {
    height: 100%;
    width: 100%;
    background: rgb(155, 168, 175);
}

html,
a {
    font-family: "Times New Roman", Times, serif;
    font-weight: 400;
    font-style: normal;
    color: rgb(255, 255, 255);
    text-decoration: none;
}

h1 {
    width: fit-content;
}

h1 a {
    color: rgb(43, 65, 98);
    font-size: 20px;
    font-family: "Francois One", sans-serif;
    font-weight: 400;
}

h1:hover {
    /* Smooth transition for hover effects and lifts the box a bit on hover*/
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    transform: translateY(-10px);
}

main header {
    display: flex;
    background-color: white;
    padding: 20px;
}

header img {
    width: 3rem;
}

.title {
    min-height: 100vh;
    background-image: url("images/fulls/08.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.title h2 {
    color: white;
    font-size: 3rem;
    padding-left: 40px;
    padding-top: 25%;
}

.content {
    display: grid;
    grid-template-columns: 1fr 2fr;
}

.intro {
    display: flex;
    flex-wrap: wrap;
    color: white;
    padding: 30% 10% 30% 10%;
}

.intro p {
    display: flex;
    font-size: 1.5rem;
}

.p2 {
    padding-top: 5%;
}

#sidebar a,
.service-box h3,
button,
.services-section h2,
.contact-title h2 {
    color: rgb(43, 65, 98);
}

/* Sidebar Styles */
#hamburger {
    margin: 1rem 2rem 0 0;
    cursor: pointer;
    z-index: 2;
    color: rgb(178, 178, 178);
}

#hamburger:hover {
    color: rgb(244, 209, 174);
}

i.icons {
    margin-right: 1rem;
    overflow: visible;
}

.fa-map-pin {
    padding-left: 5px;
}

#sidebar {
    width: 0px;
    height: 100vh;
    color: rgb(43, 65, 98);
    background-color: rgb(247, 247, 247);
    z-index: 2;
    overflow: hidden;
    transition: width 0.5s ease;
    white-space: nowrap;
}

#hamburger,
#sidebar {
    position: fixed;
    top: 0;
    right: 0;
}

#sidebar ul {
    list-style-type: none;
}

#sidebar a {
    text-decoration: none;
}

#sidebar li {
    line-height: 2rem;
}

.address,
.major {
    padding-left: 1.5rem;
}

.major {
    padding: 3rem 0 3rem 1.5rem;
}

ul.nav {
    padding-left: 5rem;
    padding-bottom: 5rem;
}

.contact {
    padding-left: 2rem;
}

section .major {
    border-top: 2px dotted rgb(244, 209, 174);
}

#sidebar section {
    padding-top: 5rem;
}

#sidebar a:hover {
    background-color: rgb(244, 209, 174);
}

#overlay {
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    display: none;
}

/* Slideshow Styles */
.slideshow {
    list-style-type: none;
    width: 100%;
    /* Takes up half of the container */
    height: 600px;
    /* Adjust as needed */
    position: relative;
    /* Ensures proper placement */
    overflow: hidden;
    /* Prevents overflow issues */
}

/* Ensure slideshow images fit */
.slideshow li span {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 50;
    left: 50;
    opacity: 0;
    animation: imageAnimation 48s linear infinite 0s;
}

.slideshow li:nth-child(1) span {
    background-image: url("../homepage/images/fulls/02.jpg");
}

.slideshow li:nth-child(2) span {
    background-image: url("../homepage/images/fulls/03.jpg");
    background-position: center 30%;
    animation-delay: 6s;
} 

.slideshow li:nth-child(3) span {
    background-image: url("../homepage/images/fulls/04.jpg");
    animation-delay: 12s;
}

.slideshow li:nth-child(4) span {
    background-image: url("../homepage/images/fulls/06.jpg");
    animation-delay: 18s;
}
.slideshow li:nth-child(5) span {
    background-image: url("../homepage/images/fulls/07.jpg");
    background-position: center -5px;
    animation-delay: 24s;
}
.slideshow li:nth-child(6) span {
    background-image: url("../homepage/images/fulls/09.jpg");
    animation-delay: 30s;
}
.slideshow li:nth-child(7) span {
    background-image: url("../homepage/images/fulls/10.jpg");
    background-position: center -5px;
    animation-delay: 36s;
} 
.slideshow li:nth-child(8) span {
    background-image: url("../homepage/images/fulls/11.jpg");
    animation-delay: 42s;
}
.slideshow li:nth-child(9) span {
    background-image: url("../homepage/images/fulls/12.jpg");
    background-position: center 20% ;
    animation-delay: 48s;
}


@keyframes imageAnimation {
    0% {
        opacity: 0;
        animation-timing-function: ease-in;
    }

    8% {
        opacity: 1;
        animation-timing-function: ease-out;
    }

    17% {
        opacity: 1;
    }

    25% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}


/* Media Queries for Responsive Adjustments */
@media screen and (max-width: 768px) {
    .title h2 {
        font-size: 2.5rem;
        padding-left: 20px;
    }

    .intro,
    .slideshow {
        width: 100%;
    }

    .intro p {
        font-size: 1.5rem;
    }

    /* Adjust the max-width as needed */
    .content {
        grid-template-columns: 1fr;
        /* Stacks items in a single column */
    }

    .intro {
        padding: 10%;
    }
    .services {
        min-height: 80vh;
        display: grid; 
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px
    }

    .service-box {
        width: 100%; /* Ensure proper spacing */
    }
}

/*Services*/

.services {
    min-height: 60vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 20px;
    gap: 20px;
    background-color: white;
}

.services-section h2 {
    display: flex;
    justify-content: center;
    background-color: white;
    font-size: 2.5rem;
    padding: 20px;
}

.service-box {
    flex: 1 1 30%;
    background-color: white;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    /* Smooth transition for hover effects */
    text-align: center;
    /* Centers the text inside the box */
}

.service-box:hover {
    transform: translateY(-10px);
    /*lifts the box a bit on hover*/
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.service-box p {
    color: rgb(102, 102, 102);
    /* Lighter text color for the description */
}

/*Contact me*/
/* Contact Section Styles */
.contact-me {
    padding: 100px 20% 20% 20%;
    min-height: 70vh;
    /* Full viewport height */
}

.contact-form {
    width: 100%;
    /* Full width on smaller screens */
    max-width: 500px;
    /* Optimal reading width */
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* Soft shadow for 3D effect */
    border-radius: 10px;
    margin: auto;
    /* Centers the form vertically and horizontally */
}

.contact-title h2 {
    font-size: 2.4rem;
    /* Larger font size for emphasis */
    color: white;
    margin-bottom: 1rem;
    /* 16px bottom margin */
    text-align: center;
    border-bottom: 1px solid black;
}

.contact-input,
.contact-textarea {
    width: 100%;
    padding: 12px 15px;
    /* Sufficient padding for easy interaction */
    margin-bottom: 15px;
    /* Uniform margin for clean spacing */
    border: 2px solid #ddd;
    /* Subtle border */
    border-radius: 8px;
    /* Modern rounded corners */
    font-size: 1rem;
    /* Adequate font size for readability */
    transition: border-color 0.3s;
    /* Smooth transition for interactive elements */
}

.contact-input:focus,
.contact-textarea:focus {
    border-color: #0056b3;
    /* Highlight color when focused */
}

.contact-textarea {
    height: 120px;
    /* Adjusted for textual input space */
    resize: vertical;
    /* Allows resizing only vertically */
}

button {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 10px;
    background-color: rgb(43, 65, 98);
    transition: 0.7s;
    color: white;
    font-size: 1.1rem;
    /* Slightly larger font for button */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: rgb(241, 189, 134);
    transition: 0.7s;
}

.fa-arrow-right {
    padding-left: 10px;
}

/* ABOUT HTML */

/* --- About Me Section --- */
.about-me {
    background-color: #f8f8f8;
    /* Light gray background for a soft, clean look */
    padding: 80px 10%;
    text-align: center;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
}

/* --- About Me Text --- */
.about-text {
    flex: 1;
    max-width: 600px;
    text-align: left;
    color: #2b4162;
}

.about-text h2 {
    font-size: 2.5rem;
    color: #2b4162;
    margin-bottom: 20px;
    font-family: "Francois One", sans-serif;
    text-transform: uppercase;
}

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

/* --- About Me Image --- */
.about-image {
    flex: 1;
    max-width: 500px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    /* Soft rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.about-image img:hover {
    transform: scale(1.05);
    /* Slight zoom effect on hover */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        max-width: 100%;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .about-text p {
        font-size: 1.1rem;
    }

    .about-image {
        max-width: 100%;
    }
}