* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f4f6f8;
    color: #333;
}

main {
    flex: 1;
}

.navbar {
    position: sticky;
    top: 0;
    background: #0a2540;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 45px;
}

.navbar nav {
    display: flex;
    align-items: center;
}

.navbar nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.navbar nav a.active,
.navbar nav a:hover {
    color: #4fc3f7;
}

.hero,
.about {
    display: flex;
    gap: 40px;
    padding: 60px 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #0a2540;
}

.hero-text p,
.about-text p {
    font-size: 18px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.hero img,
.about img {
    max-width: 500px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #0a2540;
}

.services {
    padding: 60px 40px;
    text-align: center;
}

.services h1 {
    margin-bottom: 20px;
    color: #0a2540;
    font-size: 36px;
}

.services > p {
    max-width: 700px;
    margin: 0 auto 40px;
    color: #666;
    font-size: 16px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.service-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-card img {
    width: 80px;
    margin-bottom: 15px;
}

.service-card h3 {
    margin-bottom: 10px;
    color: #0a2540;
    font-size: 22px;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

button {
    background: #0a2540;
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

button:hover {
    background: #4fc3f7;
    color: black;
}

button:focus {
    outline: 2px solid #4fc3f7;
    outline-offset: 2px;
}

.contact {
    background-color: #ffffff;
    padding: 60px 50px;
    max-width: 800px;
    margin: 60px auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.contact h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #0a2540;
}

.contact > p {
    color: #666;
    margin-bottom: 30px;
}

.contact-info {
    margin-bottom: 30px;
}

.contact-info p {
    margin-bottom: 8px;
    font-size: 16px;
}

.contact form {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.contact label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #0a2540;
}

.contact input,
.contact textarea {
    padding: 14px;
    margin-bottom: 18px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.contact input:focus,
.contact textarea:focus {
    outline: none;
    border-color: #4fc3f7;
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.1);
}

.contact textarea {
    height: 140px;
    resize: vertical;
    font-family: Arial, Helvetica, sans-serif;
}

.contact button {
    width: 160px;
    align-self: center;
    margin-top: 10px;
}

.success-message {
    display: none;
    background: #4caf50;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.success-message.show {
    display: block;
}

footer {
    background: #0a2540;
    color: white;
    text-align: center;
    padding: 20px;
}

footer p {
    margin-bottom: 10px;
}

.social-links a,
footer a {
    color: #4fc3f7;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover,
footer a:hover {
    color: white;
}

#scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
 
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.auth-box {
    background: white;
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 480px;
    width: 100%;
}

.auth-box h1 {
    color: #0a2540;
    font-size: 32px;
    margin-bottom: 10px;
    text-align: center;
}

.auth-subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
}

.auth-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #0a2540;
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #4fc3f7;
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.1);
}

.password-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #999;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #666;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    width: auto;
}

.checkbox-label a {
    color: #4fc3f7;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.forgot-password {
    color: #4fc3f7;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    padding: 15px;
    background: #0a2540;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    background: #4fc3f7;
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 195, 247, 0.3);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    color: #666;
    font-size: 14px;
}

.auth-footer a {
    color: #4fc3f7;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.divider {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

.divider::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #ddd;
}

.divider span {
    position: relative;
    background: white;
    padding: 0 15px;
    color: #999;
    font-size: 14px;
    font-weight: 600;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.social-btn:hover {
    border-color: #4fc3f7;
    background: #f8f9fa;
    transform: translateY(-2px);
}

.google-btn {
    color: #db4437;
}

.facebook-btn {
    color: #4267B2;
}

.auth-message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    display: none;
}

.auth-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.auth-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* User Menu Styles */
.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
}

.user-name {
    color: white;
    font-size: 14px;
}

.logout-btn {
    background: #ff4757;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #ff3838;
    transform: translateY(-2px);
}

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

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .navbar {
        padding: 10px 20px;
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact {
        padding: 40px 25px;
    }

    .navbar nav a {
        margin-left: 10px;
        font-size: 14px;
    }

    .auth-box {
        padding: 40px 25px;
    }

    .auth-box h1 {
        font-size: 26px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .social-login {
        gap: 10px;
    }

    .user-menu {
        flex-direction: column;
        gap: 5px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .about-text h2 {
        font-size: 28px;
    }
}