/* --- Google Font Import for Pixel Headers --- */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* --- General Styles --- */
:root {
    /* A professional palette inspired by Minecraft's natural blocks */
    --primary-color: #6B4F38; /* Oak Log Brown */
    --secondary-color: #9B5A4A; /* Terracotta Red */
    --accent-color: #E0D4A8; /* Sand Yellow */
    --light-bg: #F8F4E8; /* Birch Wood Off-White */
    --dark-text: #3A2E27;
    --light-text: #FFFFFF;
    --minecraft-green: #5C832F;
    --minecraft-green-hover: #76A34A;
    --header-font: 'Lora', serif;
    --body-font: 'Roboto', sans-serif;
    --pixel-font: 'Press Start 2P', cursive; /* The new pixel font */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-text);
}

h3 {
    font-family: var(--header-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Applying the pixel font to main section headers */
h2 {
    font-family: var(--pixel-font);
    font-size: 1.8rem; /* Pixel fonts are best at specific sizes */
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.4;
}

h1 {
    font-family: var(--pixel-font); /* Applying the Minecraft font */
    font-size: 3rem; /* Adjusted size for the pixel font */
    color: var(--light-text);
    text-shadow: 3px 3px 0px #3A2E27; /* Harder shadow for pixel effect */
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
    font-weight: 300;
}

.content-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.alt-bg {
    background-color: var(--light-bg);
}

/* --- Header & Navigation --- */
header {
    background-color: rgba(60, 42, 33, 0.9); /* Darker Oak */
    color: var(--light-text);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
    border-bottom: 2px solid #2B211C; /* Dark outline for depth */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    font-family: var(--header-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-text);
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* --- Hero Section --- */
.hero {
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-text);
}

.hero-content .subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Intro Section --- */
.intro {
    text-align: center;
    max-width: 800px;
}

/* --- Minecraft-style cards --- */
.bio-card {
    background: #fff;
    padding: 2rem;
    border: 1px solid #ddd;
    border-bottom: 4px solid #ccc; /* 3D block effect */
    border-radius: 4px; /* Sharper corners */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bio-card:hover {
    transform: translateY(-4px);
    border-bottom-color: #bbb;
}


/* --- Art of Inabel Section --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    border-radius: 4px;
    overflow: hidden; /* To make radius work */
    box-shadow: 0 4px 0 #D3CDBF; /* Hard shadow */
    border: 1px solid #D3CDBF;
}

table th, table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #D3CDBF;
}

table th {
    background-color: var(--primary-color);
    color: var(--light-text);
    font-family: var(--header-font);
}

/* --- NEW STYLE FOR TABLE SUBHEADERS --- */
.table-subheader td {
    background-color: var(--accent-color);
    color: var(--dark-text);
    font-family: var(--header-font);
    font-weight: 700;
    text-align: center;
}

table tr:nth-child(even) {
    background-color: #fff;
}
table tr:hover:not(.table-subheader) {
    background-color: #FDFBF5;
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adjusted minmax for better square layout */
    gap: 1.5rem;
}

.gallery-item {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
    box-shadow: 0 4px 0 #ccc; /* Hard shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 0 #bbb;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1; /* This forces the image container to be a square */
    object-fit: cover; /* This makes the image fill the square without distortion */
    display: block;
}

.gallery-caption {
    padding: 1.5rem;
}

.gallery-caption h3 {
    margin-bottom: 0.5rem;
}


/* --- VIDEO SECTION STYLES --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.video-container {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
    box-shadow: 0 4px 0 #ccc;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.video-container:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 0 #bbb;
}

.iframe-wrapper {
    background-color: var(--dark-text);
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.video-container iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: none;
    border-radius: 2px;
}

.video-caption {
    padding: 1.5rem;
    flex-grow: 1; 
}

.video-caption h3 {
    margin-bottom: 0.5rem;
}


/* --- Legacy Section --- */
.legacy-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-box {
    background: #fff;
    padding: 2rem;
    border-left: 5px solid var(--secondary-color);
    margin-bottom: 2rem;
    text-align: left;
    border-radius: 4px;
    border-bottom: 4px solid #ccc;
}

.quote-box blockquote {
    font-family: var(--header-font);
    font-style: italic;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.quote-box cite {
    font-weight: 700;
    color: var(--primary-color);
}

/* --- VIRTUAL TOUR (YOUTUBE VIDEO) STYLES --- */
#virtual-tour .video-container {
    max-width: 100%; /* Allows it to take up the full container width */
    margin: 0 auto; /* Center it */
}

/* --- Minecraft Museum Section --- */
.minecraft-section {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://www.minecraft.net/content/dam/games/minecraft/realms/MCM_Realms_Generic_2_Carousel-1280x720.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
}

.minecraft-section h2 {
    color: var(--light-text);
    text-shadow: 2px 2px #000;
}

.minecraft-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: rgba(0,0,0,0.5);
    padding: 2rem;
    border-radius: 4px;
}

.minecraft-content img {
    width: 50%;
    border-radius: 4px;
    border: 2px solid var(--accent-color);
}

.minecraft-text {
    width: 50%;
}

.btn {
    display: inline-block;
    background-color: var(--minecraft-green);
    color: var(--light-text);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    margin-top: 1rem;
    transition: all 0.2s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
    border-bottom: 4px solid #3E571E; /* 3D effect */
}

.btn:hover {
    background-color: var(--minecraft-green-hover);
    transform: translateY(-2px);
    border-bottom-width: 2px;
    margin-top: calc(1rem + 2px);
}

.server-info {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.references-list {
    list-style-type: none; /* Removes default bullets */
    padding-left: 0;
}

.references-list li {
    margin-bottom: 1rem;
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.references-list a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.references-list a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* --- Footer --- */
footer {
    background-color: var(--dark-text);
    color: var(--light-text);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    border-top: 4px solid #2B211C;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* --- ABOUT US PAGE STYLES --- */
.about-page-background {
    background-color: var(--light-bg);
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d3cdbf' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

.about-hero {
    padding: 4rem 2rem;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.pexels.com/photos/163064/play-stone-network-networked-163064.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover;
    text-align: center;
}

.about-hero h1 {
    font-size: 3.5rem;
}

.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
    font-size: 1.1rem;
    font-weight: 300;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--light-text);
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 0 #ccc;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 0 #bbb;
}

.team-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--dark-text);
    padding: 1rem;
    color: var(--light-text);
}

.team-photo {
    width: 80px;
    height: 80px;
    border-radius: 4px; /* Square photos */
    border: 3px solid var(--accent-color);
    object-fit: cover;
    flex-shrink: 0;
}

.team-name {
    font-size: 1.5rem;
    color: var(--light-text);
    margin: 0;
}

.team-role {
    font-weight: 400;
    color: var(--accent-color);
    margin: 0;
    font-family: var(--body-font);
    font-size: 0.9rem;
}

.team-card-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.team-bio {
    font-weight: 300;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.5rem; }
    nav ul { display: none; }
    .content-section { padding: 3rem 1rem; }
    .minecraft-content { flex-direction: column; }
    .minecraft-content img, .minecraft-text { width: 100%; }
    .video-grid { grid-template-columns: 1fr; }
    .about-hero h1 { font-size: 2.5rem; }
}

