/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* General body styles */
body {
    background-color: #f9f9f9;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Header Styles (exactly matches about.css) */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #0053CF; /* Solid color, no gradient */
    color: white;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    padding-left: 20px;
}

.logo img {
    width: 40px;
    height: 40px;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 20px;
}

nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #27a0e6;
}

/* Contact Section */
.contact {
    padding: 120px 5% 60px; /* Clears fixed header, matches about page */
    background: #fff;
    width: 100%;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.contact-form {
    flex: 1;
    opacity: 0;
    background: #f8f8f8;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form h2,
.contact-info h2 {
    font-size: 3rem; /* Matches about page */
    font-weight: 900; /* Matches about page */
    color: #0053CF; /* Matches about page */
    margin-bottom: 25px;
    text-transform: uppercase; /* Matches about page */
    letter-spacing: 1px;
}

.contact-form p {
    color: #666;
    font-size: 18px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #1a237e;
    font-weight: 500;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    background: #fff;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a237e;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    background: #1a237e;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #0d47a1;
    transform: scale(1.05);
}

.contact-info {
    flex: 1;
    opacity: 0;
}

.contact-info ul {
    list-style: none;
    margin-bottom: 30px;
}

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #666;
    font-size: 18px;
}

.contact-info li i {
    margin-right: 15px;
    color: #1a237e;
    font-size: 20px;
}

.contact-info .social-links {
    margin-top: 20px;
}

.contact-info .social-links h3 {
    color: #1a237e;
    font-size: 20px;
    margin-bottom: 15px;
}

.social-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: #1a237e;
    color: white;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #0d47a1;
    transform: scale(1.1);
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #00C8FF;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: none;
    cursor: pointer;
    z-index: 1000;
    transition: background 0.3s, transform 0.3s;
    font-size: 24px;
    line-height: 50px;
    text-align: center;
}

#backToTop:hover {
    background: #27a0e6;
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-scroll] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

[data-scroll].animate {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(0.1s * var(--i));
}

/* Responsive Design (exactly matches about.css for header) */
@media (max-width: 768px) {
    header {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px 0; /* Matches about.css */
    }

    .logo {
        font-size: 22px; /* Matches about.css */
        padding: 0; /* Matches about.css */
    }

    nav {
        width: 100%; /* Matches about.css */
        text-align: center;
        margin-top: 5px; /* Matches about.css */
        gap: 15px; /* Matches about.css */
    }

    nav a {
        display: inline-block; /* Matches about.css */
        margin: 5px 15px; /* Matches about.css */
    }

    .contact {
        padding: 150px 5% 40px; /* Matches about.css for smaller screens */
    }

    .contact-form h2,
    .contact-info h2 {
        font-size: 2.2rem; /* Matches about.css */
    }

    .contact-form p,
    .contact-info li {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .contact {
        padding: 170px 5% 40px; /* Matches about.css for smaller screens */
    }

    .contact-form h2,
    .contact-info h2 {
        font-size: 1.8rem; /* Matches about.css */
    }

    .contact-form p,
    .contact-info li {
        font-size: 14px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 14px;
    }

    .submit-btn {
        font-size: 14px;
        padding: 10px 20px;
    }

    .social-icon {
        width: 35px;
        height: 35px;
    }

    nav a {
        font-size: 14px; /* Matches about.css */
    }
}

@media (max-width: 1024px) {
    .contact-container {
        flex-direction: column;
        gap: 30px;
    }

    .contact-form, .contact-info {
        width: 100%;
    }

    .logo img {
        width: 40px;
        height: 40px;
    }
}