/* ============================================
   TEAM PAGE - COMPLETE STYLES
   ============================================ */

/* ===== PAGE HERO ===== */
.team-hero {
    background: url('../images/project-team.jpg') center/cover no-repeat;
    min-height: 450px;
}

.team-hero .page-hero-content {
    max-width: 800px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hero-stat strong {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.hero-stat span {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* ===== TEAM INTRO ===== */
.team-intro {
    padding: 100px 0 80px;
    background: var(--white);
}

.intro-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-content .section-subtitle {
    padding: 0;
}

.intro-content .section-subtitle::before,
.intro-content .section-subtitle::after {
    display: none;
}

.intro-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin: 15px 0 20px;
    line-height: 1.4;
}

.intro-content p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 20px;
}

.intro-values {
    display: flex;
    gap: 25px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.intro-value {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
}

.intro-value i {
    color: var(--primary);
    font-size: 1.3rem;
}

.intro-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.intro-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.intro-image:hover img {
    transform: scale(1.05);
}

.intro-badge {
    position: absolute;
    bottom: 25px;
    right: 25px;
    background: var(--primary);
    color: var(--white);
    padding: 18px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(246, 199, 68, 0.4);
}

.badge-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.badge-text {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 5px;
    display: block;
}

/* ===== TEAM STATS ===== */
.team-stats {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    position: relative;
    overflow: hidden;
}

.team-stats::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(246, 199, 68, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 35px 25px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-8px);
    border-color: var(--primary);
}

.stat-icon {
    width: 65px;
    height: 65px;
    min-width: 65px;
    background: rgba(246, 199, 68, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    transition: all 0.4s ease;
}

.stat-card:hover .stat-icon {
    background: var(--primary);
    color: var(--white);
    transform: rotate(360deg);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-content::after {
    content: attr(data-suffix, '+');
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-right: 5px;
}

.stat-label {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 6px;
    font-weight: 500;
}

/* ===== TEAM MEMBERS ===== */
.team-members {
    padding: 100px 0;
    background: var(--bg-light);
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 28px;
    border: 2px solid var(--border);
    background: var(--white);
    border-radius: 50px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(246, 199, 68, 0.35);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.team-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--border);
}

.team-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.team-card.hidden {
    display: none;
}

.team-card.fade-out {
    opacity: 0;
    transform: scale(0.9);
}

.team-card.fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

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

/* Team Image */
.team-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.team-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 20, 46, 0.95) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.team-social {
    display: flex;
    gap: 10px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.team-card:hover .team-social {
    transform: translateY(0);
}

.team-social a {
    width: 42px;
    height: 42px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.team-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.team-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(246, 199, 68, 0.4);
}

/* Team Info */
.team-info {
    padding: 25px;
}

.team-info h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 6px;
}

.team-position {
    display: block;
    color: var(--primary);
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.team-info p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.team-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.team-skills span {
    background: var(--primary-light);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* View More */
.view-more-container {
    text-align: center;
    margin-top: 50px;
}

/* ===== DEPARTMENTS ===== */
.departments {
    padding: 100px 0;
    background: var(--white);
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.department-card {
    background: var(--white);
    padding: 35px 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.department-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.department-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.department-card:hover::before {
    transform: scaleX(1);
}

.dept-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 1.8rem;
    color: var(--primary);
    transition: all 0.5s ease;
}

.department-card:hover .dept-icon {
    background: var(--primary);
    color: var(--white);
    transform: rotate(360deg) scale(1.1);
}

.department-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.department-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
}

.dept-stats {
    padding-top: 12px;
    border-top: 1px dashed var(--border);
}

.dept-stats span {
    font-size: 0.92rem;
    color: var(--text);
}

.dept-stats strong {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 800;
}

/* ===== COMPANY CULTURE ===== */
.company-culture {
    padding: 100px 0;
    background: var(--bg-light);
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.culture-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.culture-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.culture-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.culture-card:hover::after {
    transform: scaleX(1);
}

.culture-icon {
    width: 75px;
    height: 75px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    font-size: 1.8rem;
    color: var(--primary);
    transition: all 0.5s ease;
}

.culture-card:hover .culture-icon {
    background: var(--primary);
    color: var(--white);
    transform: rotate(360deg);
}

.culture-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.culture-card p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== TEAM QUOTES ===== */
.team-quotes {
    padding: 100px 0;
    background: var(--white);
}

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.quote-card {
    background: var(--bg-light);
    padding: 35px;
    border-radius: 16px;
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid var(--border);
}

.quote-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 15px;
}

.quote-card p {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.9;
    font-style: italic;
    margin-bottom: 25px;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.quote-author img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.quote-author strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 3px;
}

.quote-author span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ===== CAREERS ===== */
.careers {
    padding: 100px 0;
    background: var(--bg-light);
}

.careers-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.careers-content .section-subtitle {
    padding: 0;
}

.careers-content .section-subtitle::before,
.careers-content .section-subtitle::after {
    display: none;
}

.careers-content h2 {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--dark);
    margin: 15px 0 20px;
    line-height: 1.4;
}

.careers-content p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 30px;
}

.open-positions {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.open-positions h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.open-positions h3 i {
    color: var(--primary);
}

.position-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.position-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.position-item:hover {
    border-color: var(--primary);
    transform: translateX(-5px);
}

.position-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}

.position-info span {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    gap: 15px;
}

.position-info span i {
    color: var(--primary);
    margin-left: 5px;
}

.position-btn {
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.position-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Apply Form */
.apply-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
}

.apply-form-container h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.apply-form-container h3 i {
    color: var(--primary);
}

.apply-form .form-group {
    margin-bottom: 20px;
}

.apply-form label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
}

.required {
    color: #ef4444;
}

.apply-form .input-wrapper {
    position: relative;
}

.apply-form .input-wrapper i {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
}

.textarea-wrapper i {
    top: 20px !important;
    transform: none !important;
}

.apply-form .input-wrapper input,
.apply-form .input-wrapper select,
.apply-form .input-wrapper textarea {
    width: 100%;
    padding: 14px 48px 14px 18px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    transition: all 0.3s ease;
    outline: none;
}

.apply-form .input-wrapper textarea {
    padding-top: 18px;
    resize: vertical;
    min-height: 100px;
}

.apply-form .input-wrapper input:focus,
.apply-form .input-wrapper select:focus,
.apply-form .input-wrapper textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(246, 199, 68, 0.1);
}

.apply-form .btn-block {
    width: 100%;
    justify-content: center;
    padding: 15px;
    font-size: 1rem;
    margin-top: 10px;
}

.form-success {
    display: none;
    background: #FFF7DF;
    border: 1px solid #F3DEA0;
    color: #73510A;
    padding: 16px 20px;
    border-radius: 10px;
    margin-top: 20px;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.4s ease;
}

.form-success.show {
    display: flex;
}

.form-success i {
    font-size: 1.5rem;
    color: #F6C744;
}

.form-success p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .intro-wrapper,
    .careers-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .culture-grid,
    .quotes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .team-hero h1 {
        font-size: 2.2rem;
    }

    .hero-stats {
        gap: 25px;
    }

    .hero-stat strong {
        font-size: 2rem;
    }

    .intro-content h2,
    .careers-content h2 {
        font-size: 1.8rem;
    }

    .intro-image img {
        height: 350px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .departments-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .culture-grid,
    .quotes-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .cta-content h2 {
        font-size: 1.9rem;
    }

    .apply-form-container {
        padding: 25px;
    }

    .position-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .position-btn {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

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

    .filter-buttons {
        gap: 8px;
    }

    .filter-btn {
        padding: 10px 18px;
        font-size: 0.88rem;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}