/* Team Page Specific Styles */

/* Active nav link */
.nav-links a.active {
    opacity: 1;
    position: relative;
    font-weight: 600;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
}

/* Team Hero Section */
#team-hero .section-content {
    background-color: #f8f9fa;
    margin: 0 !important;
    padding-top: 0;
    border-radius: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#team-hero .text-content {
    max-width: 800px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#team-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #333;
}

#team-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    line-height: 1.8;
    color: #555;
}

/* Team Member Sections */
.team-member-section .section-content {
    padding: 0 15%;
    align-items: center;
    justify-content: center;
    background-color: #fbfbfb;
}

.team-member-section:nth-child(odd) .section-content {
    background-color: #f5f5f5;
}

.team-member-section .text-content {
    max-width: 760px;
    padding: 0 5%;
    text-align: center;
    margin-top: 100px;
}

.team-member-section h2 {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: #333;
}

.team-member-section h3 {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.team-image {
    display: none;
}

.team-image img {
    max-width: 90%;
    max-height: 70vh;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    object-fit: contain;
}

.team-image img:hover {
    transform: scale(1.02);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 25px;
    margin-top: 45px;
    justify-content: center;
}

.social-icon {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-icon.linkedin {
    background-color: #0077b5;
}

.social-icon.twitter {
    background-color: #1DA1F2;
}

.social-icon.github {
    background-color: #333;
}

/* Fixing spacing for hero section */
#team-hero {
    margin-top: 0;
    position: relative;
    top: 0;
}

#team-hero .section-content {
    margin-top: 0;
    padding-top: 60px;
}

/* Team Member Text Styling */
.team-member-section p {
    padding: 0 15%;
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 4rem;
    color: #444;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .navigation {
        position: absolute;
    }
    
    #team-hero {
        height: auto;
        min-height: auto;
        margin: 0;
        padding: 0;
    }
    
    #team-hero .section-content {
        padding-top: 60px;
        padding-bottom: 0;
        border-radius: 0;
    }
    
    .team-member-section {
        margin: 0 !important;
        padding: 0;
        height: auto;
        min-height: auto;
    }
    
    .team-member-section .section-content {
        margin: 0;
        padding: 10px 5%;
        border-radius: 0;
    }
    
    .section {
        height: auto;
        min-height: auto;
        margin: 0 !important;
        padding: 0;
    }
    
    .section-content {
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    
    .section:not(:first-child) {
        margin: 0 !important;
    }
    .section-content {
        flex-direction: column !important;
        padding: 20px 5%;
        margin: 0;
        box-shadow: none;
    }
    
    .text-content {
        max-width: 100%;
        padding-right: 0;
        margin: 0;
        padding: 0;
    }
    
    h1, h2, h3 {
        margin-top: 0;
        margin-bottom: 15px;
    }
    
    p {
        margin-bottom: 15px;
    }
    
    .team-image {
        margin-bottom: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .team-image img {
        max-width: 100%;
        max-height: 50vh;
        width: auto;
        height: auto;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .social-icon {
        padding: 8px 16px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    background-color: #333;
    padding: 8px;
    border-radius: 4px;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* Section Styles */
.section {
    position: relative;
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    overflow: hidden;
    z-index: 1;
    transform-style: preserve-3d;
}

.team-page .section {
    margin: 0 !important;
    padding: 0 !important;
    height: auto;
    min-height: auto;
    scroll-snap-align: none;
}

.team-page .section-content {
    position: static;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Language Switcher Styling */
.mobile-lang-switch {
    display: none;
    margin-top: 0;
    padding: 0;
    border-top: 0;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-switch button {
    font-size: 1rem;
    padding: 5px 10px;
}

/* Adjusting Navigation for Mobile */
@media (max-width: 768px) {
    /* Fix scrolling and spacing */
    body {
        overflow-y: auto;
    }
    
    .navigation {
        position: absolute;
        mix-blend-mode: normal;
        background-color: #111;
    }
    
    .scroll-container {
        height: auto;
        overflow-y: visible;
        perspective: none;
        transform-style: flat;
    }
    
    #team-hero {
        margin: 0;
        padding: 0;
    }
    
    #team-hero .section-content {
        padding-top: 60px;
        margin: 0;
        border-radius: 0;
    }
    
    .team-member-section {
        margin: 0;
        padding: 0;
        border-top: 1px solid #eee;
    }
    
    .team-member-section .section-content {
        margin: 0;
        padding: 20px 5%;
        border-radius: 0;
    }
    
    .section {
        height: auto;
        min-height: auto;
        margin: 0;
        padding: 0;
        scroll-snap-align: none;
    }
    
    .section-content {
        position: static;
        padding: 20px 5%;
        box-shadow: none;
        border-radius: 0;
    }
    /* Hide team member images on mobile/tablet */
    .team-member-section .image-container {
        display: none;
    }
    
    /* Remove spacing to accommodate hidden images */
    .team-member-section .text-content {
        width: 100%;
        max-width: 100%;
        padding-right: 0;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        background-color: #111111;
        padding: 80px 20px 20px;
        gap: 1.5rem;
        text-align: center;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .navigation {
        justify-content: space-between;
    }
    
    .desktop-lang-switch {
        display: none;
    }
    
    .mobile-lang-switch {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 10px 0;
    }
    
    .nav-links a.active::after {
        bottom: -2px;
    }
    
    .team-image {
        display: none;
    }
    
    .social-links {
        flex-direction: row;
        justify-content: center;
        margin-bottom: 30px;
    }
    
    .section#luan .section-content,
    .section#digenaldo .section-content {
        overflow-y: auto;
        padding-bottom: 50px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-icon {
        width: 80%;
        margin: 0 auto;
    }
    
    .text-content {
        margin-top: 60px;
    }
    
    .team-image img {
        border-radius: 10px;
    }
}
