/* styles.css */

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

header {
    background: #333;
    color: #fff;
    padding: 15px 0; /* Adjusted padding for a smaller gap */
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

header p {
    margin: 5px 0 0;
    font-size: 1.2em;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

nav ul li a.active {
    text-decoration: underline; /* Or use background-color or font-weight for highlighting */
    font-weight: bold;
    color: #f5f5f5;
}

.container {
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
    padding: 1px 0; /* Reduced padding for a tighter layout */
}

section {
    padding: 0; /* Reduced padding to decrease the gap between sections */
}

section h2 {
    border-bottom: 2px solid #333;
    padding-bottom: 8px; /* Reduced padding */
    margin-bottom: 15px; /* Reduced margin */
    color: #333;
}

section p, section ul {
    margin-bottom: 15px; /* Reduced margin */
}

.job, .degree {
    margin-bottom: 15px; /* Reduced margin */
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 15px 0; /* Adjusted padding for a smaller gap */
}

footer a {
    color: #fff;
    text-decoration: none;
}

.social-icon {
    width: 24px;
    height: 24px;
    margin: 0 5px;
    vertical-align: middle;
}

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

.contact form label {
    margin-top: 10px;
}

.contact form input, .contact form textarea {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact form textarea {
    width: 100%; /* Makes the textarea take the full width of its container */
    height: 250px; /* Adjust the height as needed */
    font-size: 16px; /* Adjust font size for better readability */
    box-sizing: border-box; /* Ensures padding and border are included in the total width and height */
}

.contact form button {
    margin-top: 10px;
    padding: 10px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact form button:hover {
    background: #555;
}

.map-container {
    margin-top: 20px;
}

.map-container h2 {
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 90%; /* Adjust container width for smaller screens */
        padding: 10px 0;
    }

    header h1 {
        font-size: 2em; /* Smaller font size for header on mobile */
    }

    header p {
        font-size: 1em; /* Smaller font size for header paragraph on mobile */
    }

    nav ul li {
        display: block; /* Stack navigation items vertically on small screens */
        margin: 5px 0;
    }

    .social-icon {
        width: 20px;
        height: 20px;
    }

    .contact form input, .contact form textarea {
        font-size: 14px; /* Smaller font size for form inputs on mobile */
    }

    .contact form button {
        padding: 8px;
        font-size: 14px; /* Smaller font size for button on mobile */
    }
}

@media (max-width: 480px) {
    header {
        padding: 15px 0;
    }

    header h1 {
        font-size: 1.8em; /* Further reduced font size for very small screens */
    }

    header p {
        font-size: 0.9em; /* Further reduced font size for very small screens */
    }

    .contact form textarea {
        height: 120px; /* Adjust height for very small screens */
    }
}
