/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* General Styles */
body {
    background-color: #f0f0f0;
    color: #073255;
    overflow-x: hidden; /* Prevents horizontal scrolling */
}

/* Header */
header {
    background-color: #099383;
    padding: 10px 15px;
    text-align: center;
}

.logo {
    width: 60%;
    max-width: 200px;
    height: auto;
    display: block;
    margin: 10px auto;
}

/* Navigation */
nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* Allows wrapping on small screens */
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px; /* Smaller font size for better fit */
}

nav ul li a:hover {
    background-color: #073255;
}

/* Home Section */
#home {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 20px;
}

.welcome-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
}

.welcome-image {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.text-content {
    max-width: 500px;
    padding: 20px;
}

.text-content h1 {
    font-size: 28px;
    color: #099383;
}

.text-content p {
    font-size: 18px;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    background-color: #099383;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    transition: 0.3s;
}

.btn:hover {
    background-color: #073255;
}

/* Skills Section */
#skills {
    padding: 50px 20px;
    text-align: center;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.skill {
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    text-align: center;
    padding: 40px 15px;
    border-radius: 8px;
    width: 100%;
    max-width: 300px;
    height: 180px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 16px; /* Ensure text is readable */
}

/* Background Opacity Fix */
.skill::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* 70% opacity */
    border-radius: 8px;
}

/* Text Positioning */
.skill h3, .skill p {
    position: relative;
    z-index: 2;
}

/* Individual Background Images */
.graphic-design {
    background-image: url('graphic-design.jpg');
}

.gardening {
    background-image: url('gardening.jpg');
}

.baking {
    background-image: url('baking.jpg');
}

.entrepreneurship {
    background-image: url('entrepreneurship.jpg');
}

.academic-writing {
    background-image: url('academic-writing.jpg');
}

/* Contact Section */
#contact {
    padding: 50px 20px;
    background-color: #099383;
    color: white;
    text-align: center;
}

.contact-details p {
    font-size: 18px;
    margin-bottom: 10px;
}

.contact-details a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    max-width: 400px;
    margin: auto;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form button {
    background-color: #099383;
    color: white;
    padding: 10px;
    border: none;
    width: 100%;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover {
    background-color: #073255;
}

/* Get Started Section */
#get-started {
    text-align: center; /* Center align content */
    padding: 50px 20px;
}

.get-started-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 24px;
    background-color: #099383;
    color: white;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    transition: 0.3s;
}

.get-started-btn:hover {
    background-color: #073255;
}

/* Phone Number Link */
.phone-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 18px;
    color: #099383;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.phone-link:hover {
    color: #073255;
}

/* Footer */
footer {
    text-align: center;
    padding: 15px;
    background-color: #073255;
    color: white;
    margin-top: 20px;
}

/* ✅ Mobile Optimization */
@media screen and (max-width: 768px) {
    .logo {
        width: 50%;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .skill-list {
        flex-direction: column;
    }

    .skill {
        width: 100%;
        height: 150px;
        font-size: 14px;
        padding: 30px 10px;
    }

    h1, h2 {
        font-size: 20px;
    }
}
