@font-face {
    font-family: 'JetBrainsMono';
    src: url('JetBrainsMono-2.304/fonts/ttf/JetBrainsMono-SemiBold.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* Global Reset & Base */
* {
    box-sizing: border-box;
}

body {
    background-color: #212125;
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #ffffff;
}

/* Navigation Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    background-color: #212125;
}

.brand {
    height: 48px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

a {
    color: white;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mode img {
    height: 28px;
    width: 28px;
    display: block;
    cursor: pointer;
}

#img {
    height: 40px;
    width: auto;
    display: block;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-top: 8vh;
    padding: 0 20px;
}

.landing-page-h1 {
    color: #FFF4E8;
    font-family: 'Aguafina Script', cursive;
    font-size: clamp(3rem, 12vw, 8rem);
    margin: 0 0 16px 0;
    font-weight: 400;
}

.landing-page-h2 {
    color: #FFFFFF;
    font-family: 'JetBrainsMono', monospace;
    font-size: clamp(1rem, 2.5vw, 1.75rem);
    letter-spacing: 2px;
    margin: 0;
    font-weight: 400;
}

/* Secondary Header Container */
.header1-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    min-height: 60px;
}

.header1-container h1 {
    color: burlywood;
    font-size: 45px;
    text-align: center;
    margin: 0;
}

.logo1 {
    position: absolute;
    left: 20px;
    width: 240px;
    height: auto;
    margin-left: 50px;
}

.about-us-info {
    text-align: center;
    color: burlywood;
    font-family: verdana, sans-serif;
    font-size: 28px;
    line-height: 1.6;
    font-weight: 400;
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Members Grid */
#members-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    justify-items: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.member {
    text-align: center;
}

#members-container h2 {
    text-align: center;
    color: burlywood;
    font-size: 40px;
    margin-bottom: 10px;
}

#members-container p {
    text-align: center;
    color: burlywood;
    font-size: 30px;
    margin-top: 0;
}

.member img {
    width: 350px;
    max-width: 100%;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

/* Guides & Gallery Shared Grid */
.guides-container,
#gallery-container {
    display: grid;
    gap: 32px;
    width: 100%;
    max-width: 1100px;
    margin: 20px auto 80px auto;
    padding: 20px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* Card Wrappers */
.guide-card,
.gallery-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    background: transparent;
    border: none;
    padding: 0;
    overflow: visible;
}

.guide-card a,
.gallery-card a {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Uniform Square Image Containers */
.guides-img,
.gallery-img,
.img-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 16px;
    background-color: #1a1a1e;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.guides-img img,
.gallery-img img,
.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Hover Dynamics */
.guide-card:hover .guides-img,
.guide-card:hover .img-container,
.gallery-card:hover .gallery-img {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.5);
}

/* Page Headers */
.guides-header,
.gallery-header {
    max-width: 1100px;
    margin: 30px auto 0 auto;
    padding: 0 20px;
    text-align: left;
}

.guides-header h1,
.gallery-header h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 900;
    color: white;
    font-size: clamp(1.75rem, 5vw, 3rem);
    margin: 16px 0 6px 0;
}

.guides-header p,
.gallery-header p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    color: #a1a1aa;
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    margin: 0;
}

/* Navigation Back Button */
.home-btn {
    display: inline-flex;
    align-items: center;
    background: #2b2b30;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid #38383e;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.home-btn a {
    font-family: 'JetBrainsMono', monospace;
    font-size: 14px;
    font-weight: 500;
    color: #e2e8f0;
}

.home-btn:hover {
    background: #38383e;
    border-color: #52525b;
}

/* Captions & Text Readability */
figcaption {
    display: block;
    width: 100%;
    text-align: center;
    padding-top: 14px;
    padding-bottom: 8px;
    overflow: visible;
}

figcaption h3 {
    margin: 0;
    padding: 0 4px;
    font-family: 'JetBrainsMono', monospace;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
    word-break: break-word;
    overflow: visible;
}

figcaption p {
    margin: 6px 0 0 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(0.8rem, 1.8vw, 0.95rem);
    color: #e2e8f0;
    line-height: 1.3;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .header {
        padding: 12px 16px;
    }

    .guides-container,
    #gallery-container,
    #members-container {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 24px;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 14px;
    }

    .guides-header,
    .gallery-header {
        padding: 0 16px;
    }
}