/* === reset and base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f8f5f0;
    color: #2d2d2d;
    text-align: justify;
    scroll-behavior: smooth;
}

/* === nav bar === */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 80px;
    background-color: #ffffff;
    border-bottom: 2px solid #d4c9c9;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(236, 177, 177, 0.674);
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #87a878;
    letter-spacing: 1px;
}

.resume-btn {
    text-decoration: none;
    padding: 8px 20px;
    background-color: #87a878;
    color: #ffffff;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.5s ease;
}

.resume-btn:hover {
    background-color: #e8a0a0;
}

/* === hero section === */
.hero {
    display: flex;
    justify-content: space-between;
    padding: 60px 120px;

}

.hero-card {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(236, 177, 177, 0.674);
    padding: 30px 40px;
    gap: 30px;
    width: 100%;
    max-width: 1300px;
}


/* === polaroid Image === */
.hero-image-wrapper {
    transform: rotate(-3deg);
    background-color: #ffffff;
    padding: 8px 8px 36px 8px;
    box-shadow: 4px 6px 20px rgba(4, 104, 11, 0.553);
    border-radius: 4px;
    flex-shrink: 0;
}

.hero-image {
    width: 180px;
    height: 220px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.hero-text {
    flex: 1;
}

.hero-name {
    font-size: 2.4rem;
    font-weight: 800;
    color: #87a878;
    margin-bottom: 14px;
}

.hero-bio {
    font-size: 1rem;
    color: #555555;
    line-height: 1.8;
    text-align: justify;

}

/* === TAB SECTION === */
.tab-section {
    padding: 0px 120px 60px 120px;
}

.tab-bar {
    display: flex;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.tab-btn {
    flex: 1;
    padding: 10px 0;
    border: 2px solid #d4c9c9;
    border-bottom: none;
    background-color: #f0ebe5;
    color: #888;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.tab-btn:hover {
    background-color: #e8f0e4;
    color: #87a878;
}

.tab-btn.active {
    background-color: #ffffff;
    color: #87a878;
    border-color: #d4c9c9;
    border-bottom: 2px solid #ffffff;
    z-index: 2;
}

.tab-content-area {
    background-color: #ffffff;
    border: 2px solid #f2b7b7;
    border-radius: 0 12px 12px 12px;
    padding: 40px;
    min-height: 300px;
    position: relative;
    z-index: 0;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}


/* === INFO CARDS (Education, Experience, etc.) === */
.info-card {
    position: relative;
    background-color: #ffffff;
    border: 2px solid #f2b7b7;
    border-radius: 12px;
    padding: 24px 28px 20px 28px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 6px 18px rgba(162, 211, 139, 0.655);
    transform: translateY(-3px);
}

.card-clip {
    position: absolute;
    top: -14px;
    left: 20px;
    font-size: 1.4rem;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 6px;
}

.card-sub {
    font-size: 0.88rem;
    color: #87a878;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-desc {
    font-size: 0.93rem;
    color: #555555;
    line-height: 1.7;
}

/* === SKILL TAGS === */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.skill-tag {
    background-color: #f0f5ee;
    color: #87a878;
    border: 1px solid #87a878;
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

/* === CONTACTS === */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-item {
    font-size: 0.95rem;
    color: #555555;
}

.contact-link {
    font-size: 0.95rem;
    color: #87a878;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #e8a0a0;
}

/* === CONTACTS MOBILE === */
@media (max-width: 768px) {
    .contacts-grid {
        flex-direction: column;
        gap: 30px;
    }
}


/* === FOOTER === */


.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 120px;
    background-color: #ffffff;
    border-top: 2px solid #f2b7b7;
    margin-top: 40px;
}

.footer-brand {
    font-size: 1rem;
    font-weight: 700;
    color: #87a878;
    letter-spacing: 1px;
}

.footer-copy {
    font-size: 0.8rem;
    color: #555555;
}

.footer-quote {
    font-size: 0.8rem;
    color: #e8a0a0;
    font-style: italic;
}

@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 14px 20px;
        text-align: center;
    }

    .footer-copy,
    .footer-quote {
        font-size: 0.75rem;
    }
}

/* === FOOTER MOBILE === */
@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        gap: 10px;
        padding: 20px;
        text-align: center;
    }
}

/* === responsive design === */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 20px;
    }

    .hero {
        flex-direction: column;
        padding: 40px 40px;
    }

    .hero-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .hero-name {
        font-size: 1.8rem;
    }

    .hero-bio {
        font-size: 1.1rem;
    }

    .hero-image-wrapper {
        margin-bottom: 20px;
    }

    .tab-section {
        padding: 0px 20px 40px 20px;
    }

    .tab-bar {
        flex-wrap: wrap;
    }

    .tab-btn {
        font-size: 0.8rem;
        padding: 8px 14px;
    }
}