
:root {
    --primary-color: #000000;
    --accent-color: #000000;
    --text-color: #333;
    --light-bg: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

.header {
    background: var(--primary-color) url('tmrw crew/crew photo.jpg') center top/cover no-repeat;
    color: white;
    padding: 14rem 1rem 8rem 1rem; /* Even more top and bottom padding */
    min-height: 540px; /* Increased minimum height */
    text-align: center;
}

.nav {
    background: rgb(255, 255, 255);
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.nav a {
    color:#000000;
    text-decoration: none;
    margin: 0 1.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--accent-color);
}

.main-content {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.about-section {
    background: white;
    padding: 3rem 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2rem;
}

.member-card {
    display: flex;
    gap: 2rem;
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
    flex-direction: row-reverse;
    justify-content: space-between;
}

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

.member-profile {
    flex: 0 0 250px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    width: 100%;
    max-width: 250px;
}

.member-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: top;
    border-radius: 4px;
    display: block;
}

.member-info {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 2rem;
}

.member-name {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.member-role {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 4rem;
}

.footer .social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
}

.footer .social-icon img {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.social-icon img {
    width: 50px;
    height: 50px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.responsive-logo {
  max-width: 400px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.about-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.about-subtitle {
    font-size: 1.3rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.about-divider {
    border: none;
    border-top: 2px solid #eee;
    width: 60px;
    margin: 0 auto 2rem auto;
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    font-size: 1.18rem;
    line-height: 1.8;
    color: #222;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-quote {
    font-style: italic;
    color: #666;
    background: #f5f5f5;
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    border-radius: 6px;
    font-size: 1.15rem;
    text-align: center;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .main-content,
    .about-section,
    .media-gallery {
        max-width: 100%;
        padding: 0 0.5rem;
    }
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 2rem;
    }
    .about-section {
        padding: 1.5rem 0.5rem;
        margin-bottom: 2rem;
    }
    .member-card {
        flex-direction: column !important;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
    }
    .member-profile {
        width: 100%;
        max-width: 300px;
        margin: 0 auto 1rem auto;
    }
    .member-image {
        width: 100%;
        height: 180px;
        max-width: 100%;
        object-fit: cover;
        object-position: top;
        display: block;
    }
    .member-info {
        margin-right: 0;
        padding: 0.5rem;
        width: 100%;
        text-align: center;
    }
    .nav {
        padding: 0.5rem;
    }
    .nav a {
        display: block;
        margin: 0.5rem 0;
        font-size: 1rem;
    }
    .media-item {
        width: 100% !important;
        max-width: 100vw !important;
        height: auto !important;
        min-width: 0;
    }
    .media-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    .footer {
        padding: 1rem 0.5rem;
        font-size: 0.95rem;
    }
    .responsive-logo {
        max-width: 180px;
    }
}

/* Add this to your CSS */
.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.member-card {
    position: relative;
    overflow: hidden;
}

/* Country-specific flag backgrounds */
.flag-nepal::before { background-image: url('flags/nepal.jpg'); }
.flag-philippines::before { background-image: url('flags/philippines.jpg'); }
.flag-china::before { background-image: url('flags/china.jpg'); }
.flag-hongkong::before { background-image: url('flags/hongkong.jpg'); }
.flag-india::before { background-image: url('flags/india.jpg'); }
.flag-italy::before { background-image: url('flags/italy.jpg'); }
.flag-germany::before { background-image: url('flags/germany.jpg'); }
.flag-romania::before { background-image: url('flags/romania.jpg'); }
.flag-greece::before { background-image: url('flags/greece.jpg'); }
.flag-uk::before { background-image: url('flags/uk.jpg'); }
.flag-argentina::before { background-image: url('flags/argentina.jpg'); }
.flag-scotland::before { background-image: url('flags/scotland.jpg'); }

.member-profile,
.member-info {
    position: relative;
    z-index: 1;
}

.media-item {
  width: 400px;
  max-width: 100%;
  height: 225px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin: 0 auto 2rem auto;
  display: block;
}

.video-thumbnail {
  width: 100%;
  max-width: 600px;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.video-thumbnail:hover {
  transform: scale(1.02);
}

.video-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.video-frame {
  position: relative;
  background: #000;
  padding: 1rem;
  border-radius: 10px;
}

.video-frame .close {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}