
/* === ROOT VARIABLES === */
:root {
    --primary: #bb0000;
    --secondary: #ffffff;
    --accent: #F97316;
    --text: #000000;
    --background: #F9FAFB;
    --white: #FFFFFF;
    --gray-light: #E5E7EB;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
    --border-radius-sm: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --box-shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --logo-red: #E63946;
    --logo-black: #000000;
    --animation-duration: 0.8s;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    position: relative;
}

/* === ANIMATIONS === */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    min-height: 48px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #000000);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(187, 0, 0, 0.25);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(187, 0, 0, 0.35);
}

.btn-secondary {
    background: linear-gradient(135deg, black, #00ff40);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 255, 64, 0.25);
    border: none;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 255, 64, 0.35);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-outline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary);
    transition: width 0.4s ease;
    z-index: -1;
}

.btn-outline:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(187, 0, 0, 0.25);
    border-color: var(--primary);
}

.btn-outline:hover::after {
    width: 100%;
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--logo-black);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.logo i {
    margin-right: 8px;
    color: var(--logo-red);
    font-size: 1.8rem;
}

.logo span:first-child {
    color: var(--logo-black);
    font-weight: 900;
}

.logo span:last-child {
    color: var(--logo-red);
    font-weight: 900;
}

/* === MOBILE TOGGLE === */
.mobile-toggle {
    display: flex;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--logo-black);
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    z-index: 1001;
}

.mobile-toggle.active {
    color: var(--logo-red);
    transform: rotate(90deg);
}

/* === NAV MENU (MOBILE) === */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    padding: 100px 30px 40px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    z-index: 999;
    list-style: none;
}

.nav-menu.active {
    right: 0;
}

.nav-item {
    margin-bottom: 10px;
    width: 100%;
    position: relative;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
    position: relative;
}

.nav-link.active {
    color: var(--primary);
}

.nav-link:hover {
    color: var(--primary);
}

.dropdown-icon {
    margin-left: 5px;
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-icon.rotated {
    transform: rotate(180deg);
}

/* === DROPDOWN MENU (MOBILE) === */
.dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 15px;
    border-left: 2px solid var(--primary);
    padding-left: 15px;
}

.dropdown.active {
    max-height: 400px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.dropdown-item {
    display: block;
    padding: 12px 0;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    color: var(--primary);
    padding-left: 10px;
}

/* === HERO SECTION FOR TEAM PAGE === */
.team-hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(187, 0, 0, 0.8));
    color: var(--white);
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
    text-align: center;
}

.team-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/shohojit/about/our story.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
}

.team-hero .container {
    position: relative;
    z-index: 2;
}

.team-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.team-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* === SECTION TITLE === */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    overflow: hidden;
    position: relative;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
}

.section-title.animated h2 {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.section-title p {
    font-size: 1rem;
    color: #6B7280;
    max-width: 600px;
    margin: 15px auto 0;
    opacity: 0;
    transform: translateY(20px);
}

.section-title.animated p {
    animation: slideUp 0.8s 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--logo-red), var(--primary));
    border-radius: 3px;
    transition: transform 0.6s 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title.animated h2::after {
    transform: translateX(-50%) scaleX(1);
}

/* === SECTION ICON === */
.section-icon {
    position: absolute;
    left: 20px;
    top: 0;
    font-size: 1.5rem;
    color: var(--primary);
    opacity: 0.2;
    z-index: -1;
}

@media (min-width: 768px) {
    .section-icon {
        font-size: 2rem;
        left: 50px;
    }
}

/* === TEAM FILTER === */
.team-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    padding: 20px;
    background-color: var(--white);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--box-shadow);
}

.filter-btn {
    padding: 10px 25px;
    border: none;
    background-color: var(--background);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.filter-btn:hover {
    background-color: rgba(187, 0, 0, 0.1);
    color: var(--primary);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), #000000);
    color: var(--white);
}

/* === TEAM SECTION === */
.team-section {
    background-color: var(--background);
}

.team-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.team-member {
    background-color: var(--white);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team-member.animated {
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.member-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

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

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

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.member-info {
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.member-info h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: var(--text);
}

.member-position {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1rem;
}

.member-department {
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(187, 0, 0, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.member-description {
    color: #6B7280;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-shrink: 0;
}

.member-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(187, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

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

/* === EXPERTISE SECTION === */
.expertise-section {
    background-color: var(--white);
}

.expertise-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.expertise-card {
    background-color: var(--background);
    border-radius: var(--border-radius-sm);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.expertise-card.animated {
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.expertise-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, black, var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--white);
    font-size: 2.5rem;
    transition: all 0.6s ease;
}

.expertise-card:hover .expertise-icon {
    transform: rotateY(180deg) scale(1.1);
}

.expertise-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.expertise-card p {
    color: #6B7280;
    font-size: 1rem;
    line-height: 1.6;
}

/* === JOIN TEAM SECTION === */
.join-team-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(187, 0, 0, 0.8));
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.join-team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1521791136064-7986c2920216?ixlib=rb-1.2.1&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 1;
}

.join-team-section .container {
    position: relative;
    z-index: 2;
}

.join-team-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
}

.join-team-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0;
    transform: translateY(30px);
}

.join-team-section.animated h2,
.join-team-section.animated p {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.join-team-section.animated p {
    animation-delay: 0.2s;
}

/* === FOOTER === */
footer {
    background: linear-gradient(135deg, #000000, var(--primary));
    color: var(--white);
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    opacity: 0;
    transform: translateY(20px);
}

.footer-column.animated {
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--white);
    position: relative;
    display: inline-block;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--logo-red);
}

.footer-column p {
    color: #d1d5db;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.footer-column ul li a:hover {
    color: var(--logo-red);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.4s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background-color: var(--logo-red);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #d1d5db;
    font-size: 0.9rem;
}

/* === DROPDOWN FOR DESKTOP === */
@media (min-width: 992px) {
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        flex-direction: row;
        padding: 0;
        box-shadow: none;
        overflow: visible;
        display: flex;
        right: 0;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-item {
        margin: 0 0 0 25px;
        width: auto;
        position: relative;
    }

    .nav-link {
        color: var(--text);
        padding: 8px 0;
        border-bottom: none;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--logo-red);
        transition: width 0.3s ease;
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 100%;
    }

    .nav-link:hover {
        color: var(--logo-red);
    }

    .nav-link .dropdown-icon {
        display: inline-block;
        margin-left: 8px;
        font-size: 0.8rem;
    }

    .mobile-toggle {
        display: none;
    }

    /* DROPDOWN FOR DESKTOP */
    .dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--white);
        min-width: 250px;
        box-shadow: var(--box-shadow-lg);
        border-radius: var(--border-radius-sm);
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
        transition: all 0.4s ease;
        z-index: 1001;
        padding: 10px 0;
        max-height: none;
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        display: block;
    }

    .dropdown.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(10px);
        max-height: none;
    }

    .nav-item:hover .dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(10px);
    }

    .dropdown-item {
        padding: 12px 25px;
        color: var(--text);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        display: block;
    }

    .dropdown-item:hover {
        background: rgba(187, 0, 0, 0.05);
        color: var(--primary);
        padding-left: 30px;
    }

    /* HERO */
    .team-hero h1 {
        font-size: 3.5rem;
    }

    .team-hero p {
        font-size: 1.4rem;
    }
}

/* === TABLET STYLES === */
@media (min-width: 768px) {
    .section-title h2 {
        font-size: 2.5rem;
    }

    .section-title p {
        font-size: 1.1rem;
    }

    .team-hero h1 {
        font-size: 3rem;
    }

    .team-hero p {
        font-size: 1.3rem;
    }

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

    .expertise-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .join-team-section h2 {
        font-size: 3rem;
    }

    .join-team-section p {
        font-size: 1.4rem;
    }

    .footer-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* === DESKTOP STYLES === */
@media (min-width: 992px) {
    .team-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .expertise-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }

    .footer-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 50px;
    }

    .team-member:hover {
        transform: translateY(-15px);
    }

    .expertise-card:hover {
        transform: translateY(-15px);
    }
}

/* === MOBILE SPECIFIC === */
@media (max-width: 767px) {
    .team-hero {
        padding: 120px 0 80px;
    }

    .team-hero h1 {
        font-size: 2rem;
    }

    .team-hero p {
        font-size: 1.1rem;
    }

    .filter-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .join-team-section h2 {
        font-size: 2rem;
    }

    .join-team-section p {
        font-size: 1.1rem;
    }

    /* Ensure consistent team card heights */
    .team-member {
        min-height: 550px;
    }
    
    .member-info {
        min-height: 270px;
    }
}

/* === EXTRA SMALL MOBILE === */
@media (max-width: 480px) {
    .team-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .team-member {
        min-height: 520px;
    }
    
    .member-info {
        min-height: 240px;
    }
}