/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 80%;
    margin: 0 auto;
    max-width: 1200px;
}
/* Add flexbox layout to header container */
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* Header Styles */
header {
    background-color: #333;
    color: #fff;
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0.5rem 1rem;
}

header h1:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

/* Add margin to body to account for fixed header */
body {
    margin-top: 80px;
}

header nav {
    margin-left: auto;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

header nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Hero Section */
#hero {
    background: url('https://via.placeholder.com/1920x1080') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 5rem 0;
}

#hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

#hero p {
    font-size: 1.5rem;
}

/* Mission Section */
#mission {
    background-color: #fff;
    padding: 5rem 0;
    text-align: center;
}

#mission h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

#mission p {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Features Section */
#features {
    background-color: #f4f4f4;
    padding: 5rem 0;
    text-align: center;
}

#features h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.feature {
    background-color: #fff;
    padding: 2rem;
    margin: 1rem 0;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.feature h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.feature p {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Contact Section */
#contact {
    background-color: #333;
    color: #fff;
    padding: 5rem 0;
    text-align: center;
}

#contact h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

#contact form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

#contact label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

#contact input, #contact textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
    color: #111827;
    -webkit-text-fill-color: #111827;
    color-scheme: light;
}

#contact input:focus, #contact textarea:focus {
    border-color: #ff6b6b;
    outline: none;
    box-shadow: 0 0 5px rgba(255, 107, 107, 0.3);
}

#contact input:invalid, #contact textarea:invalid {
    border-color: #ff4d4d;
}

#contact input::placeholder, #contact textarea::placeholder {
    color: #6b7280;
}

#submitButton {
    background-color: #ff6b6b;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    width: 200px;
    display: block;
    margin: 2rem auto 0;
}

#submitButton:hover:not(:disabled) {
    background-color: #ff4d4d;
    transform: translateY(-2px);
}

#submitButton:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.loading-spinner {
    animation: spin 1s infinite linear;
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#formMessage {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.error-message {
    background-color: rgba(255, 87, 87, 0.3);
    color: #fff;
    border: 1px solid rgba(255, 87, 87, 0.7);
    box-shadow: 0 0 10px rgba(255, 87, 87, 0.2);
}

.error-message strong {
    font-size: 1.1em;
    display: block;
    margin-bottom: 0.5rem;
}

.success-message {
    background-color: rgba(87, 255, 87, 0.3);
    color: #fff;
    border: 1px solid rgba(87, 255, 87, 0.7);
    box-shadow: 0 0 10px rgba(87, 255, 87, 0.2);
}

.success-banner {
    background-color: #4CAF50;
    color: #fff;
    border: 1px solid #45a049;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    border-radius: 4px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    animation: fadeIn 0.5s ease-in-out;
    position: relative;
}

.dismiss-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.dismiss-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer Styles */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    bottom: 0;
}

footer p {
    margin: 0.5rem 0;
}

footer p:nth-child(2) {
    font-style: italic;
    font-size: 0.9rem;
    opacity: 0.9;
}
