/* ===========================
   BASIC RESET & VARIABLES
   =========================== */

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

:root {
    --primary-color: #8b6f2e;
    --secondary-color: #17324d;
    --text-color: #2f2f2f;
    --light-bg: #f6f4ef;
    --white: #ffffff;
    --border-color: #d8d2c4;
    --hover-color: #6f571f;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

/* ===========================
   NAVIGATION BAR
   =========================== */

.navbar {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.12);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.35rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    transition: color .3s;
    font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #e5c87a;
}

/* ===========================
   MAIN CONTENT
   =========================== */

main {
    min-height: calc(100vh - 200px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
    background: linear-gradient(135deg,var(--secondary-color),#244d70);
    color: var(--white);
    padding: 4rem 2rem 5rem;
    text-align: center;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* ===========================
   PROFILE PHOTO
   =========================== */

.profile-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #ffffff;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,.25);
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
    display: inline-block;
    background: var(--white);
    color: var(--secondary-color);
    padding: .8rem 1.6rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: .3s;
    border: 2px solid var(--white);
    margin: .4rem;
}

.btn:hover {
    background: transparent;
    color: var(--white);
}

.btn-small {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: .55rem 1.2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: .3s;
    font-size: .9rem;
}

.btn-small:hover {
    background: var(--hover-color);
}

/* ===========================
   FEATURES
   =========================== */

.features {
    background: var(--light-bg);
    padding: 4rem 2rem;
}

.features .container {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 2rem;
}

.feature-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    transition: .3s;
    border-top: 4px solid var(--primary-color);
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-box h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

/* ===========================
   CONTENT SECTIONS
   =========================== */

.content-section {
    padding: 4rem 2rem;
}

.content-section h2 {
    font-size: 2.4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.15rem;
    color: #666;
    margin-bottom: 2.5rem;
}

/* ===========================
   ABOUT PAGE
   =========================== */

.about-content {
    max-width: 850px;
    margin: 0 auto;
}

.about-text h3 {
    color: var(--secondary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.skills-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.skills-list li {
    background-color: var(--light-bg);
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--primary-color);
    border-radius: 5px;
}

/* ===========================
   RESEARCH / TEACHING / EVENTS
   =========================== */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-item {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 2rem;
}

.portfolio-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.portfolio-item h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.portfolio-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
}

.portfolio-item p {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.portfolio-item ul {
    margin-top: 1rem;
    padding-left: 1.2rem;
}

.portfolio-item ul li {
    margin-bottom: .7rem;
}

.portfolio-item .btn-small,
.portfolio-item .btn {
    margin-top: 1rem;
}

/* ===========================
   PUBLICATIONS
   =========================== */

.publication-year {
    margin-bottom: 3rem;
}

.publication-year h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    border-left: 5px solid var(--primary-color);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.publication {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.publication h4 {
    color: var(--secondary-color);
    margin-bottom: .8rem;
    font-size: 1.25rem;
}

.publication p {
    margin-bottom: 1rem;
    color: #555;
}

.publication .btn-small {
    margin-top: .5rem;
}

/* ===========================
   BOOKING PAGE
   =========================== */

.booking-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-top: 2rem;
}

.booking-info {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.booking-info h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.booking-info ul {
    list-style: none;
    padding: 0;
}

.booking-info ul li {
    margin-bottom: .9rem;
}

.booking-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.booking-info a:hover {
    text-decoration: underline;
}

.booking-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.booking-form h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.booking-form label {
    display: block;
    margin-top: 1rem;
    margin-bottom: .5rem;
    color: var(--secondary-color);
    font-weight: bold;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
    width: 100%;
    padding: .85rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.booking-form textarea {
    resize: vertical;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.booking-form .btn {
    margin-top: 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
}

.booking-form .btn:hover {
    background: var(--hover-color);
}

/* ===========================
   CONTACT PAGE
   =========================== */

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px,1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.contact-info h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.info-item {
    margin-bottom: 1.5rem;
}

.info-item strong {
    display: block;
    color: var(--secondary-color);
    margin-bottom: .4rem;
}

.info-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.info-item a:hover {
    text-decoration: underline;
}
/* ===========================
   FOOTER
   =========================== */

footer {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

footer p {
    margin: 0;
    font-size: 0.95rem;
}

/* ===========================
   LINKS
   =========================== */

a {
    transition: all 0.3s ease;
}

a:hover {
    transition: all 0.3s ease;
}

/* ===========================
   FORM ELEMENTS
   =========================== */

input,
select,
textarea,
button {
    font-family: inherit;
    font-size: 1rem;
}

button {
    cursor: pointer;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 992px) {

    .booking-container {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

}

@media (max-width: 768px) {

    /* Navigation */

    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .logo {
        text-align: center;
    }

    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Hero */

    .hero {
        padding: 3rem 1.5rem 4rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.05rem;
    }

    .profile-photo {
        width: 125px;
        height: 125px;
    }

    /* General */

    .container {
        padding: 1.5rem;
    }

    .content-section {
        padding: 3rem 1rem;
    }

    .content-section h2 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    /* Cards */

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .feature-box,
    .portfolio-item,
    .publication,
    .booking-info,
    .booking-form,
    .contact-info {
        padding: 1.5rem;
    }

    /* Publications */

    .publication-year h3 {
        font-size: 1.5rem;
    }

    /* Buttons */

    .btn,
    .btn-small {
        width: 100%;
        text-align: center;
        margin: .5rem 0;
    }

    /* Booking Form */

    .booking-form input,
    .booking-form select,
    .booking-form textarea {
        font-size: 16px;
    }

}

@media (max-width: 480px) {

    .hero-content h2 {
        font-size: 1.7rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .content-section h2 {
        font-size: 1.7rem;
    }

    .feature-box h3,
    .portfolio-item h3,
    .publication h4 {
        font-size: 1.2rem;
    }

    .hero-content p,
    .about-text p,
    .portfolio-item p,
    .publication p,
    .subtitle {
        font-size: 0.95rem;
    }

}

/* ===========================
   END OF STYLESHEET
   =========================== */
