body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    padding-bottom: 60px; /* Space for footer on larger screens */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #000017;
    color: #EBECF7;
    height: auto; /* Allow natural height instead of forcing 100vh */
    min-height: 100vh; /* Still ensures full height if content is short */
}

.container {
    text-align: center;
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    font-size: 36px;
    color: #EBECF7;
    margin-bottom: 20px;
    white-space: nowrap;
}

h2 {
    font-size: 24px;
    color: #E0E0E0;
    margin-bottom: 15px;
}

h3 {
    font-size: 18px;
    color: #FE5B16;
    margin: 10px 0 5px;
    cursor: pointer;
}

form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

input[type="text"] {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
    padding: 10px;
    font-size: 16px;
    background-color: #000000;
    border: 1px solid #A6AFFF;
    border-radius: 24px;
    box-shadow: none;
    outline: none;
    color: #FFFFFF;
}

input[type="text"]:focus {
    border-color: #6573FF;
}

select {
    padding: 10px;
    font-size: 14px;
    background-color: #000000;
    border: 1px solid #A6AFFF;
    border-radius: 24px;
    cursor: pointer;
    min-width: 120px;
    max-width: 150px;
    color: #FFFFFF;
}

select:focus {
    border-color: #6573FF;
    outline: none;
}

button {
    padding: 10px 20px;
    font-size: 14px;
    color: #FFFFFF;
    background-color: #FE5B16;
    border: none;
    border-radius: 24px;
    cursor: pointer;
}

button:hover {
    background-color: #FDA116;
}

.ai-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* Specific styling for AI links on index page */
.ai-links a {
    color: #A6AFFF; /* Default color */
}

.ai-links a:hover {
    color: #6573FF; /* Hover color */
}

.ai-links a:visited {
    color: #A6AFFF; /* Prevent visited color change */
}

.ai-links a:hover img {
    opacity: 0.8; /* Retain existing hover effect for images */
}

nav {
    margin-top: 20px;
}

nav a {
    color: #FE5B16;
    font-size: 16px;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

nav a i {
    color: #F28C38;
    font-size: 20px;
    text-decoration: none;
}

nav a:hover i {
    color: #FDA116;
}

.links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.links-column {
    width: 150px;
    background-color: #000000;
    border: 1px solid #A6AFFF;
    border-radius: 8px;
    padding: 10px;
    break-inside: avoid;
    margin-bottom: 20px;
}

.links-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.links-column li {
    margin-bottom: 10px;
}

.links-column a {
    color: #E0E0E0;
    font-size: 14px;
    text-decoration: none;
}

.links-column a:hover {
    text-decoration: underline;
    color: #F28C38;
}

/* Floating Mail Icon */
.mail-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.mail-icon i {
    color: #F28C38;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

.mail-icon i:hover {
    color: #D97A30;
}

/* Mail Menu */
.mail-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #2C2C2C;
    border: 1px solid #4B5E6D;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.mail-menu.active {
    display: block;
}

.mail-menu a {
    display: block;
    color: #E0E0E0;
    font-size: 14px;
    text-decoration: none;
    padding: 5px 10px;
    white-space: nowrap;
}

.mail-menu a:hover {
    color: #F28C38;
    text-decoration: underline;
}

/* Fixed Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background-color: #000000;
    color: #EBECF7;
    font-size: 14px;
    border-top: 1px solid #A6AFFF;
    z-index: 1000;
}

footer a {
    color: #FE5B16;
    text-decoration: none;
}

footer a:hover {
    color: #FDA116;
    text-decoration: underline;
}

/* Responsiveness */
@media (max-width: 600px) {
    h1 { font-size: 28px; }
    h2 { font-size: 20px; }
    h3 { font-size: 16px; }
    form { flex-wrap: wrap; }
    input[type="text"] { max-width: 100%; min-width: 0; }
    select { max-width: 120px; }
    button { padding: 8px 12px; }
    .ai-links { gap: 15px; }
    .ai-links img { width: 24px; height: 24px; }
    .links-grid {
        display: block;
    }
    .links-column {
        width: 100%;
        margin-bottom: 10px;
        border-radius: 4px;
    }
    .links-column ul {
        display: none;
        padding-left: 10px;
    }
    .links-column ul.active {
        display: block;
    }
    .mail-icon {
        top: 10px;
        right: 10px;
    }
    .mail-icon i {
        font-size: 20px;
    }
    .mail-menu {
        right: -10px;
        min-width: 120px;
    }
}
/* Hide footer and remove padding on small screens */
@media (max-width: 600px) {
    body {
        padding-bottom: 0; /* Remove padding when footer is hidden */
    }
    footer {
        display: none; /* Hide footer on phone screens */
    }
}

/* Ensure container doesn’t overflow unnecessarily */
.container {
    text-align: center;
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    flex-grow: 1; /* Allows container to expand if needed */
}
