/* Override body background for team page */
.body, html {
    background-color: #1a1a1a !important;
    background-image: url('../Imagies/Team BG.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.navbar {
    position: relative;
    left: 50%;
    top: 0;
    width: 97%;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    transform: translateX(-50%);
    background-color: #c6c6c6;
    border: 3px solid #000000;
    box-shadow: 
        inset 3px 3px 0px #ffffff, 
        inset -3px -3px 0px #5b5b5b,
        0 10px 30px rgba(0,0,0,0.8);
    padding: 2px 8px 8px 8px;
    display: flex;
    z-index: 999;
    
    /* Anti-aliasing tweak so pixel fonts stay crisp */
    -webkit-font-smoothing: none;
}

.logo img {
    height: 60px;
    margin-left: -20px;
    z-index: 10;
}

.nav-desktop {
    display: flex;
    justify-content: center;
    gap: 60px;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 1000;
}

/* ========================================= */
/* MINECRAFT NAVBAR BUTTONS                  */
/* ========================================= */

.nav-desktop li a {
    text-decoration: none;
    color: #000000; 
    font-family: 'Minecraft', monospace;
    font-size: 20px;
    font-weight: bold;
    display: inline-block;
    background-color: #a0a0a0; 
    padding: 8px 20px; 
    border: 2px solid #000000; 
    box-shadow: 
        inset 3px 3px 0px #ffffff,   
        inset -3px -3px 0px #555555; 
    cursor: pointer;
    transition: background-color 0s; 
}

.nav-desktop li a:hover {
    background-color: #3ca340; 
    color: #ffffff; 
    box-shadow:
        inset 3px 3px 0px #5cbf60,   
        inset -3px -3px 0px #276b29; 
    text-shadow: 2px 2px 0px #000000;
}

/* ========================================= */
/* MINECRAFT MENU BUTTON                     */
/* ========================================= */

.menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #a0a0a0;
    border: 3px solid #000000;
    box-shadow:
        inset 3px 3px 0px #ffffff,
        inset -3px -3px 0px #555555;
    cursor: pointer;
    transition: all 0.1s ease;
    padding: 0;
    margin-left: 20px;
}

.menu-button:hover {
    background-color: #3ca340;
    box-shadow:
        inset 3px 3px 0px #5cbf60,
        inset -3px -3px 0px #276b29;
}

.menu-button:active {
    transform: translateY(2px);
    box-shadow:
        inset 3px 3px 0px #555555,
        inset -3px -3px 0px #ffffff;
}

.menu-icon {
    font-size: 28px;
    color: #000000;
    font-weight: bold;
    line-height: 1;
    text-shadow: 1px 1px 0px #ffffff;
}

.menu-button:hover .menu-icon {
    color: #ffffff;
    text-shadow: 2px 2px 0px #000000;
}

/* ========================================= */
/* MINECRAFT VERTICAL DROPDOWN MENU          */
/* ========================================= */

.menu-dropdown {
    position: absolute;
    top: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    background-color: #c6c6c6;
    border: 3px solid #000000;
    box-shadow:
        inset 3px 3px 0px #ffffff,
        inset -3px -3px 0px #5b5b5b,
        0 10px 30px rgba(0,0,0,0.8);
    padding: 8px;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-dropdown-item {
    text-decoration: none;
    color: #000000;
    font-family: 'Minecraft', monospace;
    font-size: 16px;
    font-weight: bold;
    background-color: #a0a0a0;
    padding: 10px 20px;
    border: 2px solid #000000;
    box-shadow:
        inset 3px 3px 0px #ffffff,
        inset -3px -3px 0px #555555;
    cursor: pointer;
    transition: all 0.1s ease;
    white-space: nowrap;
}

.menu-dropdown-item:hover {
    background-color: #3ca340;
    color: #ffffff;
    box-shadow:
        inset 3px 3px 0px #5cbf60,
        inset -3px -3px 0px #276b29;
    text-shadow: 2px 2px 0px #000000;
    transform: translateY(-2px);
}

.menu-dropdown-item:active {
    transform: translateY(1px);
    box-shadow:
        inset 3px 3px 0px #555555,
        inset -3px -3px 0px #ffffff;
}

/* ========================================= */
/* TEAM PAGE SPECIFIC STYLES                 */
/* ========================================= */

.team-content {
    position: relative;
    padding-top: 120px; 
    min-height: 40vh;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.team-container {
    max-width: 1200px;
    padding: 40px 20px;
}

.team-title {
    font-family: 'Minecraft', monospace;
    font-size: 48px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow:
        4px 4px 0px #3a3a3a,
        -2px -2px 0px #5a5a5a,
        2px -2px 0px #3a3a3a,
        -2px 2px 0px #3a3a3a,
        0px 4px 0px #2a2a2a,
        0px 5px 0px #1a1a1a;
    letter-spacing: 3px;
}

.team-subtitle {
    font-family: 'Minecraft', monospace;
    font-size: 24px;
    color: #cccccc;
    margin: 0;
    text-shadow: 2px 2px 0px #000000;
}

.team-section {
    position: relative;
    padding: 40px 20px;
    z-index: 10;
    background-color: transparent;
    margin: 0;
    border: none;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Minecraft', monospace;
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    text-shadow:
        3px 3px 0px #3a3a3a,
        -1px -1px 0px #5a5a5a,
        1px -1px 0px #3a3a3a,
        -1px 1px 0px #3a3a3a,
        0px 3px 0px #2a2a2a,
        0px 4px 0px #1a1a1a;
    letter-spacing: 2px;
}

/* Team Grid Layout */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-items: center;
}

/* ========================================= */
/* AUTHENTIC MINECRAFT UI FRAMES             */
/* ========================================= */

.minecraft-frame {
    width: 280px;
    height: 320px;
    background-color: #c6c6c6; 
    border: 3px solid #000000;
    /* Accurate Minecraft GUI Master Window Bevel */
    box-shadow: 
        inset 3px 3px 0px #ffffff, 
        inset -3px -3px 0px #5b5b5b,
        0 8px 16px rgba(0, 0, 0, 0.5); 
    position: relative;
    image-rendering: pixelated; 
    transition: all 0.2s ease;
    padding: 10px; /* Surrounding padding to replicate UI window margins */
    display: flex;
    flex-direction: column;
}

.minecraft-frame:hover {
    transform: translateY(-5px);
    box-shadow: 
        inset 3px 3px 0px #ffffff, 
        inset -3px -3px 0px #5b5b5b,
        0 12px 20px rgba(0, 0, 0, 0.6);
}

.frame-inner {
    background-color: transparent; 
    border: none; 
    margin: 0; 
    box-shadow: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Member Photo Area (Mimics the dark dialog-screen) */
.member-photo {
    width: 100%;
    height: 220px;
    background-color: #070707; /* Dark UI screen background */
    border: 2px solid #ffffff; /* Sharp white inner border */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
    filter: contrast(1.1) saturate(1.1);
}

/* Pixelated overlay for Minecraft effect */
.member-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    ),
    repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
    pointer-events: none;
}

/* Member Info (Mimics the dialog-header text) */
.member-info {
    padding: 15px 10px 5px 10px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: transparent; /* Allows the #c6c6c6 UI grey to show */
}

.member-name {
    font-family: 'Minecraft', monospace;
    font-size: 22px;
    font-weight: bold;
    color: #313131; /* Authentic Minecraft UI text color */
    margin: 0;
    text-shadow: none; /* Authentic UI text has no drop shadow */
    letter-spacing: 1px;
    line-height: 1.2;
}

/* ====================================================
   TEAM PAGE MOBILE RESPONSIVENESS MASTER BLOCK 
   ==================================================== */

/* --- EXTRA SMALL SCREENS (Max Width: 320px) --- */
@media (max-width: 320px) {
    .team-title { font-size: 22px; letter-spacing: 1px; }
    .team-subtitle { font-size: 14px; }
    .section-title { font-size: 20px; letter-spacing: 1px; }
    .team-content { padding-top: 80px; min-height: 25vh; }
    
    .team-grid { grid-template-columns: 1fr; gap: 15px; }
    
    .minecraft-frame { width: 220px; height: 260px; padding: 6px; }
    .member-photo { height: 170px; }
    .member-name { font-size: 16px; }
    .team-section { padding: 30px 10px; }
}

/* --- SMALL SCREENS (Max Width: 480px) --- */
@media (max-width: 480px) {
    .team-title { font-size: 26px; letter-spacing: 1px; }
    .team-subtitle { font-size: 15px; }
    .section-title { font-size: 22px; letter-spacing: 1px; }
    .team-content { padding-top: 90px; }
    
    .team-grid { grid-template-columns: 1fr; gap: 20px; }
    
    .minecraft-frame { width: 250px; height: 280px; padding: 8px; }
    .member-photo { height: 190px; }
    .member-name { font-size: 18px; }
    .team-section { padding: 40px 15px; }
}

/* --- SMARTPHONES (Max Width: 600px) --- */
@media (max-width: 600px) {
    .team-title { font-size: 30px; }
    .team-subtitle { font-size: 16px; }
    .section-title { font-size: 26px; }
    .team-grid { gap: 25px; }
}

/* --- TABLETS & SMALLER SCREENS (Max Width: 768px) --- */
@media (max-width: 768px) {
    .team-title { font-size: 34px; letter-spacing: 2px; }
    .team-subtitle { font-size: 18px; }
    .section-title { font-size: 28px; letter-spacing: 1px; }
    
    .team-grid { 
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); 
        gap: 20px; 
    }
    
    .minecraft-frame { width: 240px; height: 280px; }
    .member-photo { height: 190px; }
    .member-name { font-size: 18px; }
}

/* --- TABLET PORTRAIT & LARGE PHONES (Max Width: 900px) --- */
@media (max-width: 900px) {
    .team-grid { gap: 25px; }
}

/* --- LARGE SCREENS (Min Width: 1200px) --- */
@media (min-width: 1200px) {
    .team-grid { gap: 40px; }
}

/* --- ULTRA WIDE SCREENS (Min Width: 1920px) --- */
@media (min-width: 1920px) {
    .team-title { font-size: 60px; letter-spacing: 4px; }
    .team-subtitle { font-size: 30px; }
    .section-title { font-size: 45px; letter-spacing: 3px; }
    
    .team-grid { 
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
        gap: 50px; 
    }
    
    .minecraft-frame { width: 320px; height: 380px; padding: 12px; }
    .member-photo { height: 260px; }
    .member-name { font-size: 26px; }
}