/* General Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Styles (Unchanged) */
header {
    background-color: #062f66;
    color: white;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.header-left h1 {
    margin: 0;
    font-size: 28px;
}

.header-left a {
    text-decoration: none;
    color: #fbff00;
}

.header-left a:hover {
    color: #ffffff;
}

.header-left p {
    margin: 5px 0 0;
    font-size: 14px;
    opacity: 0.9;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ffcc00;
}

#search-bar {
    width: 300px;
    padding: 10px;
    border: none;
    border-radius: 4px;
    margin-top: 12px;
    margin-left: 20px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Main Content */
main {
    margin-top: 100px;
}

section {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
    color: #062f66;
}

/* Text Humanizer Section */
#text-humanizer p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 18px;
}

.humanizer-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
}

.input-group, .output-group {
    margin-bottom: 20px;
}

.input-group label, .output-group label {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
    color: #000000;
}

.input-group textarea, .output-group textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    resize: vertical;
    overflow-y: auto;
}

#outputText {
    background-color: #e8ecef;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#humanizeBtn, #clearBtn {
    flex: 1;
    padding: 12px;
    background-color: #062f66;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#clearBtn i {
    margin-right: 5px;
}

#copyBtn {
    width: 100%;
    padding: 12px;
    background-color: #062f66;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

#copyBtn i {
    margin-right: 5px;
}

#humanizeBtn:hover, #clearBtn:hover, #copyBtn:hover {
    background-color: #094b9e;
}

/* Footer (Unchanged) */
footer {
    background-color: #062f66;
    color: white;
    padding: 30px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

.footer-left, .footer-middle {
    flex: 1;
}

.footer-left h3 {
    margin: 5px 10px;
    font-size: 24px;
}

.footer-left p {
    margin: 5px 10px 10px;
    font-size: 14px;
}

.privacy a {
    color: #ffffff;
    font-size: 12px;
    text-decoration: none;
}

.privacy p {
    color: #ffffff;
    font-size: 13px;
}

.social-icons p {
    font-weight: bold;
    margin: 8px 50px 10px;
}

.social-icons i {
    font-size: 30px;
    color: #ffffff;
    margin: 0 5px;
    transition: color 0.3s ease;
}

.social-icons i:hover {
    color: #ffcc00;
}

.footer-middle h3 {
    margin: 0 0 15px;
    font-size: 20px;
    margin-left: 70px;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 10px;
}

.footer-middle ul {
    list-style: none;
    padding: 0;
    margin-left: 70px;
}

.footer-middle ul li {
    margin-bottom: 10px;
}

.footer-middle ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-middle ul li a:hover {
    color: #ffcc00;
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Header (Unchanged) */
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 15px;
    }

    .header-left h1 {
        font-size: 24px;
    }

    .header-left p {
        font-size: 12px;
    }

    .header-right {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        width: 100%;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        padding: 10px 0;
    }

    nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    #search-bar {
        width: 100%;
        margin-top: 10px;
        padding: 8px;
        font-size: 14px;
    }

    /* Main Content */
    main {
        margin-top: 120px; /* Adjusted for header height */
    }

    section {
        padding: 20px 10px; /* Reduced padding for mobile */
    }

    h2 {
        font-size: 24px;
        margin-top: 50px;
    }

    #text-humanizer p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .humanizer-container {
        padding: 10px;
        width: 100%; /* Full width on mobile */
        box-sizing: border-box;
    }

    .input-group, .output-group {
        margin-bottom: 15px;
    }

    .input-group label, .output-group label {
        font-size: 14px;
    }

    .input-group textarea, .output-group textarea {
        min-height: 80px; /* Smaller minimum height */
        font-size: 13px;
        padding: 8px;
    }

    .button-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }

    #humanizeBtn, #clearBtn {
        width: 100%; /* Full width */
        padding: 10px;
        font-size: 14px;
    }

    #copyBtn {
        width: 100%; /* Full width */
        padding: 10px;
        font-size: 14px;
        margin-top: 10px;
    }

    /* Footer (Unchanged) */
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-middle {
        margin-bottom: 20px;
    }

    .footer-middle h3 {
        margin-left: 0;
    }

    .footer-middle ul {
        margin-left: 0;
    }
}

/* Extra Small Screens (e.g., <480px) */
@media (max-width: 480px) {
    .header-left h1 {
        font-size: 20px;
    }

    .header-left p {
        font-size: 10px;
    }

    .menu-toggle {
        font-size: 20px;
    }

    main {
        margin-top: 100px;
    }

    h2 {
        font-size: 20px;
    }

    #text-humanizer p {
        font-size: 12px;
    }

    .input-group textarea, .output-group textarea {
        min-height: 60px; /* Even smaller for tiny screens */
        font-size: 12px;
    }

    #humanizeBtn, #clearBtn, #copyBtn {
        padding: 8px;
        font-size: 12px;
    }
}