/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

/* Header & Navigation */
header {
    background: linear-gradient(135deg, #98baa8 0%, #7a9d91 100%);
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

header nav {
    transition: max-height 0.3s ease, visibility 0.3s ease;
    overflow: hidden;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

header nav ul li {
    float: none;
    padding: 0;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 14px 16px;
    transition: background-color 0.3s ease;
}

header nav ul li a:hover {
    background-color: rgba(255,255,255,0.2);
    color: white;
}

.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
    font-size: 24px;
    background: #98baa8;
    border: none;
    color: white;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;
    border-radius: 0 0 0 8px;
    transition: background-color 0.3s ease;
}

.hamburger:hover {
    background-color: #7a9d91;
}

header.hidden nav {
    max-height: 0;
    visibility: hidden;
}

header.hidden nav ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    background: #7a9d91;
    width: 100%;
}

header.hidden nav ul li {
    width: 100%;
}

header.hidden nav ul li a {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hidden {
    display: none !important;
}

h1 {
    color: #000301;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 2.5em;
}

h2 {
    color: #333;
    margin-bottom: 20px;
}

h3 {
    color: #555;
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 1.3em;
    border-left: 4px solid #98baa8;
    padding-left: 15px;
}

p {
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

p a {
    color: #98baa8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

p a:hover {
    color: #7a9d91;
    text-decoration: underline;
}

footer {
    background: linear-gradient(135deg, #98baa8 0%, #7a9d91 100%);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}

footer p {
    color: white;
    margin-bottom: 10px;
    font-size: 1em;
}

footer a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 20px auto;
    display: block;
    border: 4px solid #98baa8;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Contact Form Styles */
#contactForm {
    max-width: 500px;
    margin: 30px auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: #98baa8;
    box-shadow: 0 0 8px rgba(152, 186, 168, 0.2);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

input[type="submit"] {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #98baa8 0%, #7a9d91 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(152, 186, 168, 0.3);
}

input[type="submit"]:active {
    transform: translateY(0);
}

.error-msg {
    display: block;
    color: #dc3545;
    font-size: 0.9em;
    margin-top: 5px;
    font-weight: 500;
}

/* Academic Planner Styles */
.planner-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    margin: 50px auto;
}

.input-section {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
}

#taskInput {
    flex-grow: 1;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

#taskInput:focus {
    outline: none;
    border-color: #98baa8;
}

#addTaskButton {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

#addTaskButton:hover {
    background-color: #0056b3;
}

button {
    padding: 8px 12px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    background-color: #eee;
    transition: background-color 0.2s ease;
    font-size: 0.9em;
}

button:hover {
    background-color: #ddd;
}

#taskList {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

li:hover {
    background-color: #f9f9f9;
}

.taskText {
    flex-grow: 1;
    padding-left: 10px;
}

.completed .taskText {
    text-decoration: line-through;
    color: #aaa;
}

.btnGroup {
    display: flex;
    gap: 5px;
}

.btnGroup button {
    padding: 6px 10px;
    font-size: 1.1em;
    background-color: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btnGroup button:hover {
    background-color: #f0f0f0;
    border-color: #999;
}

/* List Styling */
ul {
    max-width: 800px;
    margin: 20px auto;
    padding-left: 20px;
    list-style: none;
}

ul li {
    padding: 10px 0 10px 30px;
    position: relative;
    font-size: 1.05em;
    line-height: 1.7;
    color: #555;
}

ul li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #98baa8;
    font-weight: bold;
    font-size: 1.2em;
}

ul li a {
    color: #98baa8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

ul li a:hover {
    color: #7a9d91;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
        margin-top: 60px;
    }

    .hamburger {
        display: block;
    }

    header nav ul {
        flex-direction: column;
    }

    header nav ul li {
        width: 100%;
    }

    header nav ul li a {
        padding: 12px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    #contactForm {
        margin: 20px;
        padding: 20px;
    }

    .planner-container {
        margin: 30px;
        max-width: none;
    }

    p {
        font-size: 1em;
        padding: 0 20px;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }
}