/* Universal Styles & Base Reset */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--brand-dark); 
    background-color: #f9f9f9; /* Light background for a modern look */
    -webkit-font-smoothing: antialiased; 
    text-align: center; 
    font-size: 1em; /* Revert to original text size */
}

/* Headings */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #222;
    margin-bottom: 0.8em;
    font-size: 1em; /* Revert to original heading size */
}

h1 {
    font-size: 3em; 
    margin-top: 0;
    font-weight: 600;
}

h2 {
    font-size: 2.2em;
    color: #444;
    font-weight: 600;
}

h3 {
    font-size: 1.6em;
    color: #555;
    margin-top: 1.5em; 
    font-weight: 500;
}

/* Links */
a {
    color: #007bff; 
    text-decoration: none;
    transition: color 0.3s ease; 
}

a:hover {
    color: #0056b3; 
}

/* --- Header Section (Hero Image) --- */
.hero {
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    min-height: 28vh; /* Much smaller header */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    color: var(--brand-dark);
    text-shadow: none;
    padding: 40px 5vw 20px 5vw;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2); /* Less dark overlay */
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: right;
    max-width: 400px;
    margin-left: auto;
    margin-right: 0;
    padding-top: 20px;
    padding-bottom: 20px;
}

.site-title-line1 {
    font-size: 1.4em;
    font-weight: 600;
    color: #444; /* Dark gray text */
    letter-spacing: 0.5px;
}

.site-title-line2 {
    font-size: 1.1em;
    font-weight: 400;
    color: #7a4fa3; /* Dark gray text */
    letter-spacing: 1px;
}

.logo-placeholder { display: none; }

.hero .tagline {
    font-size: 1.4em;
    font-style: italic;
    color: var(--brand-purple);
    margin-bottom: 10px;
}

/* Smaller header for inner pages */
.hero-small {
    height: 30vh; /* Shorter for inner pages */
}

.hero-small h1 {
    font-size: 3em;
}

/* --- Navigation --- */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--brand-purple);
    padding: 10px 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

nav ul li {
    margin: 0 15px;
}

nav a {
    color: var(--brand-white);
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

nav a:hover,
nav a.active {
    color: var(--brand-lavender);
    border-bottom: 2px solid var(--brand-lavender);
}

/* --- Main Content Sections --- */
main {
    max-width: 1000px; /* Max width for content */
    margin: 40px auto; /* Center content with auto margins and add vertical space */
    padding: 0 20px; /* Add horizontal padding */
}

.section-padding {
    background: var(--brand-white);
    padding: 48px 36px;
    margin: 0 auto 36px auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-padding:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 30px rgba(0,0,0,0.15);
}

.section-padding.active {
    transform: translateY(-5px);
    box-shadow: 0 6px 30px rgba(0,0,0,0.15);
}

.section-padding p, .section-padding li {
    font-size: 0.92em; /* Revert to original content text size */
}

.section-padding li {
    font-size: 0.98em;
}

/* --- Buttons --- */
.button {
    display: inline-block;
    padding: 12px 25px;
    margin-top: 20px;
    border-radius: 50px; /* Pill-shaped buttons */
    font-weight: bold;
    text-transform: uppercase; /* Uppercase text */
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.button:hover {
    transform: translateY(-2px);
}

.primary-button {
    background: linear-gradient(135deg, var(--brand-purple), #9c27b0);
    color: var(--brand-white);
    border: 2px solid var(--brand-purple);
}

.primary-button:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}

.secondary-button {
    background: linear-gradient(135deg, var(--brand-lavender), #e1bee7);
    color: var(--brand-dark);
    border: 2px solid var(--brand-purple);
    margin-left: 15px; 
}

.secondary-button:hover {
    background: var(--brand-purple);
    color: var(--brand-white);
}

/* Call to Action Section (index.html) */
.cta-background {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/music-notes-bg.jpg'); /* New background image with overlay */
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 20px; /* More padding for a bigger block */
    margin-top: 40px;
    box-shadow: none; /* No shadow here */
}

.cta-background h2 {
    color: white;
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

.cta-background p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2em;
    max-width: 700px;
}


/* --- About Page Specific Styles --- */
.about-content {
    text-align: left; /* Align text left within about content */
}

.about-grid {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    gap: 40px; /* Space between grid items */
    align-items: flex-start; /* Align items to the start of the cross axis */
}

.about-text {
    flex: 2; /* Take more space for text */
    min-width: 300px; /* Minimum width before wrapping */
}

.about-image {
    flex: 1; /* Take less space for image */
    display: flex; /* Use flexbox to center image within its container */
    justify-content: center;
    align-items: flex-start;
    min-width: 250px;
}

.profile-picture {
    width: 100%; /* Make image responsive */
    max-width: 350px; /* Max width for image */
    height: auto;
    border-radius: 8px; /* Slightly rounded corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); /* More prominent shadow */
}

.academic-section {
    margin-top: 40px; /* More space above this section */
    text-align: left;
}

/* --- Footer --- */
footer {
    background-color: #7a4fa3; /* Change footer background to brand purple */
    color: white; /* Ensure text is readable on purple background */
    padding: 20px;
    margin-top: 60px; /* More space above footer */
    font-size: 0.9em;
    text-align: center;
}

/* --- Responsive Design (Media Queries) --- */
@media (max-width: 768px) {
    .hero {
        height: 50vh;
    }

    .hero h1 {
        font-size: 2.8em;
    }

    .hero .tagline {
        font-size: 1.2em;
    }

    nav ul {
        display: none; /* Hide navbar list on thinner screens */
    }

    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 1.8em;
    }

    .section-padding {
        padding: 30px 15px;
    }

    .about-grid {
        flex-direction: column; /* Stack about content vertically */
        align-items: center;
    }

    .about-text, .about-image {
        min-width: unset; /* Remove min-width to allow full flexibility */
        width: 100%; /* Take full width when stacked */
    }

    .primary-button, .secondary-button {
        display: block; /* Make buttons full width */
        margin: 10px auto; /* Center buttons */
    }

    .secondary-button {
        margin-left: auto; /* Reset margin for stacked buttons */
    }

    .cta-background {
        padding: 40px 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 40vh;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero .tagline {
        font-size: 1em;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }

    .button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

section {
    scroll-margin-top: 80px;
}

/* Form elements */
.form-group label {
    font-size: 0.92em; /* Revert to original form label size */
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    font-size: 0.9em;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--brand-purple);
    outline: none;
    box-shadow: 0 0 5px rgba(122, 79, 163, 0.3); /* Subtle shadow on focus */
}

.service-list{
    text-align: left;
}
.form-group {
    margin: 16px 0; /* Revert to original vertical spacing */
    padding: 0 10px; /* Revert to original horizontal spacing */
}

.contact-form {
    width: 100%;
    max-width: 80%; /* 80% width on wider screens */
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .contact-form {
        max-width: 60%; /* 60% width on even wider screens */
    }
}

@media (max-width: 768px) {
    .contact-form {
        max-width: 100%; /* Full width on phone screens */
    }
}

.submit-button {
    background: var(--brand-lavender);
    color: var(--brand-dark);
    border: none;
    border-radius: 20px; /* Rounded corners */
    padding: 10px 20px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.submit-button:hover {
    background: var(--brand-purple);
    color: var(--brand-white);
    transform: translateY(-2px);
}

:root {
    --brand-purple: #7a4fa3;
    --brand-lavender: #e1bee7;
    --brand-dark: #333;
    --brand-white: #fff;
}
