:root {
    --accent-color: oklch(0.705 0.213 47.604);
    --background-color: rgb(24, 24, 27);
    --text-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
}

header {
    padding: 2rem;
    text-align: center;
    margin-bottom:0;
    padding-bottom:0;
}
.banner {
  text-align: center;
}

.subtitle {
  color: #b08d6a;
  letter-spacing: 0.35em;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.title {
  font-size: 5rem;
  font-weight: 800;
  text-transform: uppercase;
  background: linear-gradient(90deg, #8a3f0f 0%, #c57b1f 40%, #ffd76a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.02em;
  margin-bottom: 0;
}

h1 {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    background-clip: text;
    background-image: linear-gradient(to right, oklch(0.408 0.123 38.172) 0%, oklch(0.828 0.189 84.429) 50%, oklch(0.973 0.071 103.193) 100%);
}

h2 {
    color: var(--accent-color);
    margin: 2rem 0 1rem;
}

h3 {
    color: var(--accent-color);
    margin: 2rem 0 1rem;
}

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Description Section */
.description-content {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.description-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.description-content h3 {
    color: var(--accent-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.description-content h4 {
    color: var(--accent-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.description-content a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.description-content a:hover {
    color: oklch(0.828 0.189 84.429);
    border-bottom: 2px solid var(--accent-color);
}

.description-content a::before {
    content: "→ ";
    opacity: 0;
    transition: opacity 0.3s ease;
}

.description-content a:hover::before {
    opacity: 1;
}

.description-content img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Hero Section */

.hero-image {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    align-items: stretch;
    justify-items: stretch;
    margin: 0 auto;
    max-width: 1200px;
}

.hero-image .hero-img {
    width: 100%;
    height: min(70vh, 900px); /* tall / vertical images */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

/* Responsive: stack the two images on narrow screens */
@media (max-width: 768px) {
    .hero-image {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .hero-image .hero-img {
        height: 45vh;
    }
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.1);
    cursor:pointer;
}

/* Video Section */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 2rem 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* make the 5th item span the full row and center it */
.team-grid .team-member:nth-child(5) {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(60%, 600px);
}

.team-member {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
    text-align: center;
}

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

.team-member h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--accent-color);
}

.email-link {
    color: var(--accent-color);
    text-decoration: none;
    display: block;
    margin: 0.5rem 0;
    transition: opacity 0.3s ease;
}

.email-link:hover {
    opacity: 0.8;
}

/* Collapsible description */
.member-description {
    max-height: 6.2em; /* ~3 lines depending on font-size */
    overflow: hidden;
    transition: max-height 0.35s ease;
    position: relative;
    text-align: left;
}

/* expanded state */
.member-description.expanded {
    max-height: 1000px; /* large value to allow expansion */
}

/* small gradient fade at the bottom when collapsed */
.member-description::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.2em;
    background: linear-gradient(180deg, rgba(24,24,27,0) 0%, var(--background-color) 100%);
    pointer-events: none;
}

/* hide fade when expanded */
.member-description.expanded::after {
    display: none;
}

/* See more button */
.see-more {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--accent-color);
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 0.75rem;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.see-more:hover {
    background: rgba(255,255,255,0.03);
    opacity: 0.95;
}

/* keep centered layout for team-member content */
.team-member {
    text-align: center;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-div {
    width:100%;
    height:100%;
    position:fixed;
    top: 0;
    background-color: #ffffff79;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.popup-img {
    width: 70%;
    transform: scale(0.7);
    margin: 0 auto;
}

/* Responsive Design */

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .title {
        font-size: 2rem;
    }

    .popup-img{
        width:100%;
        transform: scale(1.0);
    }
    .team-grid .team-member:nth-child(5) {
        width: 100%;
    }
}

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

    .team-grid .team-member:nth-child(5) {
        width: 100%;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    section {
        padding: 1rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-grid .team-member:nth-child(5) {
        grid-column: auto;
        justify-self: stretch;
        width: 100%;
    }
}
