/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f4f4f4;
    color: #333;
    text-align: center;
}

/* Navigation Bar */
nav {
    background: white;
    padding: 15px 20px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: auto;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    font-size: 18px;
    color: #0077b6;
    font-weight: bold;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #00509e;
}

/* Responsive Navbar */
.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Remove List Bullet Points */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    padding-right: 20px;
}

/* Header */
header {
    padding: 40px 20px;
}

h1 {
    font-size: 36px;
    color: #222;
}

p {
    font-size: 18px;
    margin-top: 10px;
    color: #555;
}

/* Profile Photo */
.profile-photo {
    width: 40%; /* Set relative width to avoid full-screen stretch */
    max-width: 150px; /* Limits maximum size */
    height: auto; /* Maintains aspect ratio */
    border-radius: 50%; /* Ensures a circular image */
    display: block; /* Centers the image */
    margin: 20px auto; /* Centers the image */
    object-fit: cover; /* Ensures the image crops properly */
}

/* Social Links */
.social-links {
    margin-top: 20px;
}

.social-links a {
    font-size: 24px;
    color: #0077b6;
    margin: 0 10px;
    transition: 0.3s;
}

.social-links a:hover {
    color: #00509e;
    transform: scale(1.1);
}

/* Details */
.details {
    flex-grow: 1;
}

.details h2 {
    font-size: 22px;
    color: #222;
    margin-bottom: 10px;
}

.details p {
    font-size: 16px;
    color: #555;
    margin: 5px 0;
}

/* Sections */
section {
    max-width: 800px;
    margin: 30px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Section Headings */
h2 {
    font-size: 24px;
    color: #0077b6;
    margin-bottom: 10px;
}

/* Education */
.r {
    text-align: left;
    position: absolute;
}

.l {
    text-align: right;
}

.t {
    text-align: justify;
}

li.d {
    list-style-type: "- ";
}

/* Footer */
footer {
    margin-top: 50px;
    padding: 15px;
    background: white;
    text-align: center;
}

/* Footer Text */
.footer-text {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

/* CONTACT PAGE STYLES */
.contact-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Contact Page Title */
.contact-container h2 {
    font-size: 28px;
    color: #0077b6;
    margin-bottom: 15px;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-align: left;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

input:focus, textarea:focus {
    border-color: #0077b6;
    outline: none;
    box-shadow: 0px 0px 5px rgba(0, 119, 182, 0.5);
}

/* Submit Button */
button {
    background: #0077b6;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #00509e;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: center;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: white;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 10px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links.active {
        display: flex;
    }

    /* Make sections take full width */
    section {
        max-width: 95%;
        margin: 20px auto;
        padding: 15px;
    }

    /* Adjust profile photo */
    .profile-photo {
        width: 50%; /* Adjust width for mobile */
        max-width: 120px; /* Ensures it doesn’t enlarge too much */
        height: auto;
        border-radius: 50%; /* Maintains circular shape */
    }
}