/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Merriweather:wght@400;700&display=swap');

/* ===== VARIABLES CSS ===== */
:root {
    --header-height: 3.5rem;
    --first-color: #1a472a;
    --first-color-dark: #0d3019;
    --first-color-light: #2e8b57;
    --first-color-lighter: #e9f5ee;
    --title-color: #1a1a1a;
    --text-color: #4a4a4a;
    --text-color-light: #8f8f8f;
    --body-color: #f9fbfa;
    --container-color: #ffffff;
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    background-color: var(--body-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    color: var(--title-color);
    font-weight: 600;
    line-height: 1.2;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.section {
    padding: 5rem 0 2rem;
}

.section__title {
    font-size: 2.5rem;
    font-family: 'Merriweather', serif;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--first-color-dark);
    position: relative;
}

.section__title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: var(--first-color-light);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section__subtitle {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.button {
    display: inline-block;
    background-color: var(--first-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.button:hover {
    background-color: var(--first-color-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.button--small {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

/* ===== HEADER & NAV ===== */
.header {
    width: 100%;
    background-color: var(--container-color);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--first-color-dark);
}

.nav__logo span {
    color: var(--first-color-light);
}

.nav__menu {
    display: flex;
}

.nav__list {
    display: flex;
    column-gap: 3rem;
}

.nav__link {
    position: relative;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.nav__link:hover,
.nav__link.active {
    color: var(--first-color);
}

.nav__link.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--first-color);
    bottom: 0;
    left: 0;
    border-radius: 1px;
}

.nav__toggle,
.nav__close {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== HERO ===== */
.hero {
    padding-top: 8rem;
    overflow: hidden;
}

.hero__container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.hero__title {
    font-size: 3.5rem;
    font-family: 'Merriweather', serif;
    margin-bottom: 1.5rem;
    color: var(--first-color-dark);
}

.hero__description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-color);
    max-width: 90%;
}

.hero__img img {
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.hero__img img:hover {
    transform: scale(1.02);
}

/* ===== ABOUT ===== */
.about__container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.about__img img {
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.about__description {
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* ===== FAMILY TREE ===== */
.tree__container {
    background-color: var(--container-color);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.tree__diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
}

.tree__level {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 4rem;
    margin: 1.5rem 0;
}

.tree__person {
    background-color: var(--first-color-lighter);
    border: 2px solid var(--first-color-light);
    border-radius: 10px;
    padding: 1.5rem 1rem;
    text-align: center;
    min-width: 180px;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.tree__person:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.tree__person span {
    font-weight: 600;
    color: var(--first-color-dark);
    line-height: 1.4;
}

.tree__connector {
    width: 3px;
    height: 40px;
    background-color: var(--first-color-light);
    border-radius: 2px;
}

.tree__note {
    background-color: #fff8e1;
    border-left: 4px solid #ffb300;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.tree__note p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
}

.tree__note i {
    color: #ff8f00;
    margin-top: 0.2rem;
}

/* ===== CONTACT ===== */
.contact__container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact__info {
    background-color: var(--container-color);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact__title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--first-color-dark);
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--first-color-lighter);
}

.contact__item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.contact__item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact__icon {
    font-size: 1.8rem;
    color: var(--first-color);
    background-color: var(--first-color-lighter);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact__subtitle {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.contact__link {
    display: block;
    font-weight: 600;
    color: var(--first-color);
    transition: var(--transition);
    margin-bottom: 0.3rem;
}

.contact__link:hover {
    color: var(--first-color-dark);
    text-decoration: underline;
}

.contact__description {
    font-size: 0.95rem;
    color: var(--text-color-light);
}

.contact__map {
    background-color: var(--container-color);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    height: 100%;
}

.map__wrapper {
    position: relative;
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
}

.map__overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--first-color-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer__container {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.footer__logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: block;
}

.footer__logo span {
    color: #a3d9b1;
}

.footer__description {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    max-width: 300px;
}

.footer__title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer__title::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--first-color-light);
    bottom: 0;
    left: 0;
}

.footer__links {
    display: flex;
    flex-direction: column;
    row-gap: 0.8rem;
}

.footer__link {
    opacity: 0.9;
    transition: var(--transition);
}

.footer__link:hover {
    opacity: 1;
    color: #a3d9b1;
    padding-left: 5px;
}

.footer__social {
    display: flex;
    column-gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer__social-link {
    background-color: rgba(255, 255, 255, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer__social-link:hover {
    background-color: var(--first-color-light);
    transform: translateY(-5px);
}

.footer__copy {
    opacity: 0.7;
    font-size: 0.9rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== SCROLL UP ===== */
.scrollup {
    position: fixed;
    right: 2rem;
    bottom: -30%;
    background-color: var(--first-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scrollup:hover {
    background-color: var(--first-color-dark);
    transform: translateY(-5px);
}

.scrollup.show-scroll {
    bottom: 3rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 1024px) {
    .hero__title {
        font-size: 3rem;
    }
    .section__title {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--container-color);
        padding: 5rem 3rem 0;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav__menu.show-menu {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
        row-gap: 2.5rem;
    }
    
    .nav__toggle,
    .nav__close {
        display: block;
    }
    
    .nav__close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }
    
    .hero__container,
    .about__container,
    .contact__container {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding-top: 7rem;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .tree__level {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .tree__person {
        min-width: 250px;
    }
    
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .section {
        padding: 4rem 0 1.5rem;
    }
    
    .section__title {
        font-size: 1.8rem;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .tree__container,
    .contact__info,
    .contact__map {
        padding: 1.5rem;
    }
    
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer__title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}