body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    scroll-behavior: smooth;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #005fa3;
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease;
}

nav:hover {
    background-color: #004080;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2em;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: #ffcc00;
    color: #003366;
}

header {
    background-color: #007acc;
    color: white;
    padding: 140px 20px 60px; /* increased top padding to account for fixed nav */
    text-align: center;
    animation: fadeInDown 1s ease forwards;
    font-size: 1.3em;
    font-weight: 600;
}

.profile-pic {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 0 20px rgba(0, 122, 204, 0.8);
    animation: float 4s ease-in-out infinite;
}

main {
    padding: 40px 20px 20px;
    max-width: 900px;
    margin: 0 auto;
}

h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

h2 {
    font-size: 2em;
    margin-bottom: 15px;
}

p, li {
    font-size: 1.2em;
    line-height: 1.6;
}

section {
    margin-bottom: 50px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll to top button */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1001;
    font-size: 24px;
    background-color: #007acc;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
}

#scrollTopBtn:hover {
    background-color: #005fa3;
}

/* Animations */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Contact Section */
.contact-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background-color: white;
    color: #333;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-section h2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #333;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    flex: 1 1 300px;
    font-size: 1.2em;
}

.contact-info h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #333;
}

.contact-info p {
    margin: 10px 0;
    font-size: 1.2em;
    line-height: 1.6;
}

.contact-info a {
    color: #007acc;
    text-decoration: none;
}

.contact-info a:hover {
    color: #005fa3;
    text-decoration: underline;
}

.contact-form {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 12px 15px;
    color: #333;
    font-size: 1em;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #007acc;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #6c757d;
}

.contact-form button {
    background-color: #007acc;
    color: white;
    font-weight: 600;
    font-size: 1.1em;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #005fa3;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
}
