/* ===================================
   HEADER NAVIGATION STYLES
   =================================== */

.site-header {
    background: transparent;
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: none;
    width: 100%;
}

.site-header .navbar {
    padding: 20px 0;
}

.site-header .container {
    max-width: 100% !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
}

.site-header .navbar-brand {
    padding: 0;
}

.site-header .navbar-brand img {
    height: 50px;
    width: auto;
}

.site-header .nav-link {
    color: #fff !important;
    font-weight: 400;
    font-size: 0.95rem;
    padding: 8px 18px !important;
    transition: all 0.3s;
}

.site-header .nav-link:hover {
    color: #e74c3c !important;
}

.site-header .navbar-toggler {
    border-color: rgba(255,255,255,0.3);
}

.site-header .navbar-toggler-icon {
    filter: invert(1);
}

/* ===================================
   HERO BANNER
   =================================== */

.hero-banner {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1d3a 50%, #0a0e27 100%);
    background-image: url('https://sb-team.portfolioexhibit.store/wp-content/uploads/2026/02/Screenshot-2026-02-09-at-11.53.47-scaled.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 100px 0 40px 0;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
}

.hero-text {
    font-size: 3rem;
    font-weight: 300;
    color: #fff;
    margin: 0;
    line-height: 1.4;
    letter-spacing: 1px;
}

.hero-brand {
    font-weight: 700;
    font-size: 3.5rem;
    color: #fff;
    display: inline-block;
}
/* ===================================
   FOUNDERS SECTION
   =================================== */

.founders-section {
    margin-bottom: 60px;
    padding: 0 40px;
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.founder-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.founder-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.founder-image-wrapper {
    position: relative;
    width: 100%;
    height: 360px;
    background: #c5c5c5;
    overflow: hidden;
}

.founder-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.founder-card:hover .founder-image-wrapper img {
    filter: grayscale(0%);
}

.founder-content {
    padding: 25px 30px 30px 30px;
    text-align: center;
}

.founder-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.founder-role {
    font-size: 1rem;
    color: #e74c3c;
    margin-bottom: 18px;
    font-weight: 600;
}

.founder-bio {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
    text-align: justify;
}

.founder-bio p {
    margin-bottom: 10px;
}

/* ===================================
   TEAM PAGE STYLES
   =================================== */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f8f9fa;
}

.team-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.team-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.team-subtitle-section {
    padding: 50px 0 30px 0;
    text-align: center;
    background: transparent;
}

.team-subtitle {
    font-size: 2rem;
    color: #333;
    margin-bottom: 8px;
}

.team-subtitle-highlight {
    color: #e74c3c;
    font-style: italic;
    font-weight: 700;
}

.team-subtitle-location {
    font-size: 1.6rem;
    color: #2c3e50;
    font-weight: 700;
    letter-spacing: 2px;
    margin-top: 8px;
    margin-bottom: 0;
}


.filter-sidebar {
    max-width: 220px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

/* ===================================
   MOBILE FILTER STYLES
   =================================== */

/* Hide mobile elements on desktop */
.mobile-filter-trigger {
    display: none;
}

/* Mobile Filter Button */
.mobile-filter-button {
    width: 100%;
    padding: 15px 20px;
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.mobile-filter-button:hover {
    background: #0b5ed7;
}

.mobile-filter-button svg {
    margin-left: 10px;
}

/* Filter Modal Overlay */
.filter-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
	align-items: flex-start;
    padding-top: 0;
}

.filter-modal.show {
    display: flex;
    opacity: 1;
}

/* Modal Content */
.filter-modal-content {
    width: 100%;
    height: 60vh;
    background: white;
    display: flex;
    flex-direction: column;
	margin-top: auto;
    border-radius: 0 0 20px 20px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Modal Header */
.filter-modal-header {
    background: #0d6efd;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 600;
}

.filter-modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Modal Body */
.filter-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* Modal Filter Buttons */
.modal-filter-btn {
    width: 100%;
    padding: 20px;
    border: none;
    background: #ef4444;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-filter-btn:first-child {
    background: #4c3d91;
}

.modal-filter-btn.active {
    background: #4c3d91;
}

.modal-filter-btn:hover {
    opacity: 0.9;
}

/* Different colors for each button */
.modal-filter-btn:nth-child(1) {
    background: #4c3d91;
}

.modal-filter-btn:nth-child(2) {
    background: #ef4444;
}

.modal-filter-btn:nth-child(3) {
    background: #ef4444;
}

.modal-filter-btn:nth-child(4) {
    background: #ef4444;
}

.modal-filter-btn:nth-child(5) {
    background: #ef4444;
}

.modal-filter-btn:nth-child(6) {
    background: #ef4444;
}

.modal-filter-btn:nth-child(7) {
    background: #ef4444;
}

.modal-filter-btn:nth-child(8) {
    background: #ef4444;
}

.modal-filter-btn:nth-child(9) {
    background: #ef4444;
}

.modal-filter-btn:nth-child(10) {
    background: #ef4444;
}

.modal-filter-btn:nth-child(11) {
    background: #ef4444;
}

.filter-btn {
    display: block;
    width: 100%;
    padding: 16px 24px;
    margin-bottom: 12px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.filter-btn:hover {
    background: #34495e;
    transform: translateX(5px);
}

.filter-btn.active {
    background: #e74c3c;
}

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

.team-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
    background: #f0f0f0;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deco-plus {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    color: rgba(255,255,255,0.2);
    font-weight: 300;
    z-index: 2;
}

.deco-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

.card-content {
    padding: 24px;
}

.member-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.member-role {
    font-size: 1rem;
    color: #e74c3c;
    margin-bottom: 12px;
    font-weight: 500;
}

.member-bio {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.dept-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dept-tag {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1200px) {
    .team-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Hide desktop sidebar completely */
    .filter-sidebar {
        display: none !important;
    }
    
    /* Show and stick mobile filter */
    .mobile-filter-trigger-wrapper {
        display: block !important;
        position: sticky;
        top: 0;
        z-index: 999;
        background: #f8f9fa;
        padding: 15px 0;
        margin: 0 -15px 20px -15px;
    }
    
    .mobile-filter-trigger {
        display: block !important;
        padding: 0 15px;
    }
    
    /* Hero Banner Mobile */
    .hero-banner {
        height: 250px;
        background-position: center center;
        background-size: cover;
    }
    
    .hero-content {
        padding: 20px 15px;
    }
    
    .hero-text {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    .hero-brand {
        font-size: 1.6rem;
        display: block;
        margin-top: 5px;
    }
    
    /* Team Subtitle */
    .team-subtitle-section {
        padding: 40px 20px;
    }
    
    .team-subtitle {
        font-size: 1.5rem;
    }
    
    .team-subtitle-location {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }
    
    /* Founders Grid - Stack One by One */
    .founders-section {
        padding: 0 20px;
    }
    
    .founders-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .founder-image-wrapper {
        height: 350px;
    }
    
    /* Team Grid - Stack One by One */
    .team-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .card-image-wrapper {
        height: 350px;
    }
    
    /* Modal positioning for mobile */
    .filter-modal {
        z-index: 10000;
    }
    
    .filter-modal-content {
        width: 100%;
        height: 70vh;
        background: white;
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        border-radius: 0 0 20px 20px;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        height: 200px;
    }
    
    .hero-text {
        font-size: 1.1rem;
    }
    
    .hero-brand {
        font-size: 1.4rem;
    }
    
    .team-subtitle {
        font-size: 1.2rem;
    }
    
    .team-subtitle-location {
        font-size: 1rem;
    }
}

body.modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

@media (max-width: 768px) {
    /* Keep header transparent by default */
    .site-header {
        background: transparent;
    }
    
    /* Solid background ONLY when menu is open */
    body.menu-open .site-header,
    .site-header.menu-active {
        background: #1a1a2e !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
    }
}