:root {
    --primary: #e65125;
    --dark-blue: #0f254e;
    --text: #333;
    --text-light: #555;
    --radius: 12px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    font-family: 'Poppins', sans-serif;
}
/* header style */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    height: 50px;
    width: auto;
}

.nav-tabs {
    list-style: none;
    display: flex;
    gap: 30px;
}

.tab-item {
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 5px;
    color: #5f6368;
    transition: color 0.3s, border-bottom 0.3s;
}

.tab-item:hover {
    color: var(--primary);
}

/* Active tab */
.tab-item.active {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
}

/* main content */
main {
    padding: 50px 20px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

/* Tab content */
.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Titles */
.title {
    font-size: 2.5rem;
    color: #0f254e;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 30px;
    font-weight: 400;
}
/* team__member */
/* Team image container */
.team-image-container {
    display: flex; 
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    width: 100%;
    max-width: 800px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    overflow: hidden;
    background-color: #fff;
}

.team-image-container img {
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Team info */
.team-info {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    border-left: 5px solid #e65125;
    display: inline-block;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    line-height: 1.6;
}

.team-name, .team-slogan {
    font-size: 1.2rem;
    margin: 5px 0;
}

.team-slogan em {
    font-style: normal;
    font-weight: 500;
    color: var(--primary);
}

/* About / members */
.about-container {
    padding: 30px 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.team-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.member-card {
    background: #fff;
    padding: 20px 15px;
    width: 250px;
    border-radius: 20px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.12);
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease;
    opacity: 0;
    transform: translateY(15px);
    animation: cardFade 0.6s ease forwards;
}

.member-card:nth-child(2) { animation-delay: .1s; }
.member-card:nth-child(3) { animation-delay: .2s; }

@keyframes cardFade {
    to { opacity: 1; transform: translateY(0); }
}

.member-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.member-card:hover .member-photo {
    transform: scale(1.05);
    filter: brightness(1.1);
    border-color: var(--dark-blue);
}

.member-card:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 8px;
    font-size: 0.8rem;
    border-radius: 8px;
    white-space: nowrap;
}

.member-photo {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    transition: transform .3s ease, filter .3s ease;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.member-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.member-intro {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.5;
}

.social-links a {
    margin: 0 5px;
    text-decoration: none;
    color: #0f254e;
    font-weight: 500;
    transition: color 0.3s;
    padding: 4px 8px;
    border-radius: 6px;
    background: linear-gradient(90deg, #e65125, #0f254e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background-position 0.5s;
    background-size: 200% auto;
}

.social-links a:hover {
    background-position: 100% center;
}
.placeholder-box {
    border: 2px dashed #ccc;
    padding: 50px;
    border-radius: 10px;
    background-color: #eee;
    color: #777;
}
/* contact */
.contact-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 30px 25px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.contact-title {
    font-size: 2rem;
    color: var(--dark-blue);
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

/* Form */
.contact-form .form-group { margin-bottom: 20px; }

.contact-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #bbb;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    background: #fff;
    outline: none;
    box-shadow: 0 0 4px rgba(230,81,37,0.25);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Submit button */
.submit-btn {
    display: inline-block;
    background: linear-gradient(135deg, #e65125, #0f254e);
    color: #fff;
    font-weight: 600;
    padding: 12px 30px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-1px) scale(1.015);
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
    background: linear-gradient(135deg, #0f254e, #e65125);
}
#toggle-history {
    border-color: #bbb;
    color: var(--dark-blue);         
    border: 1.5px solid #ccc;       
    padding: 10px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    display: inline-block;
}
#toggle-history:hover {
    background: #f5f5f5;             
    transform: translateY(-1px);     
    box-shadow: 0 2px 6px rgba(0,0,0,0.08); 
}
#toggle-history.active {
    border-color: var(--primary);
}
/* Contact history */
.contact-history {
    margin-top: 35px;
    background: #f5f5f5;
    padding: 25px 20px;
    border-radius: var(--radius);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.contact-history h3 {
    margin-bottom: 15px;
    color: var(--dark-blue);
    font-size: 1.5rem;
    text-align: center;
}

#contact-list {
    list-style: none;
    padding-left: 0;
    max-height: 220px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

#contact-list li {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    font-size: 0.95rem;
    border-radius: 8px;
    margin-bottom: 8px;
    background: rgba(230, 81, 37, 0.05);
    border-left: 4px solid var(--primary);
}

#contact-list li:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

#contact-list li:hover {
    background: rgba(230,81,37,0.05);
    transform: translateY(-1px);
}

/* Hidden */
.hidden {
    display: none !important;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: rgba(15,37,78,0.95);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-6px);
}



@media (max-width: 600px) {
    header {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }

    .title { font-size: 1.8rem; }
    
    .nav-tabs {
        gap: 15px;
        font-size: 14px;
    }

    .contact-container {
        padding: 25px 20px;
        margin: 25px 10px;
    }

    #contact-list li {
        font-size: 0.9rem;
        padding: 10px 12px;
    }

    .submit-btn {
        width: 100%;
        text-align: center;
    }
}
