/* Simple reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #1a1a1a; /* Black background */
    min-height: 100vh;
    color: #ffffff;
}

/* Top Navigation Styles */
.top-nav {
    background: #2d2d2d; /* Dark gray */
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border-bottom: 2px solid #4a7856; /* Moss green accent */
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    margin-right: 5%;
    gap: 2rem;
}

.nav-item {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-item:hover {
    color: #4a7856; /* Moss green */
    background: rgba(74, 120, 86, 0.1);
    transform: translateY(-2px);
}

/* Main Content Styles */
.main-content {
    margin-top: 70px;
    padding: 20px;
    min-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Center content for home page button */
.center-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    width: 100%;
}

/* Home page Group 8 button */
.home-group8-btn {
    background: #4a7856; /* Moss green */
    color: white;
    padding: 30px 60px;
    font-size: 48px;
    text-decoration: none;
    text-align: center;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 20px 40px rgba(74, 120, 86, 0.4);
    transition: all 0.3s ease;
    display: inline-block;
    border: 4px solid rgba(255,255,255,0.2);
    letter-spacing: 2px;
}

.home-group8-btn:hover {
    background: #5d8f6b; /* Lighter moss green */
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 30px 50px rgba(74, 120, 86, 0.6);
    border-color: #ffffff;
}

/* Content Section (for About and Contact) */
.content-section {
    background: #2d2d2d; /* Dark gray */
    border: 1px solid #3a3a3a;
    border-radius: 25px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.content-section h2 {
    color: #4a7856; /* Moss green */
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #4a7856;
    font-size: 28px;
}

.content-section p {
    font-size: 18px;
    line-height: 1.6;
    color: #cccccc; /* Light gray */
    margin-bottom: 15px;
}

/* ===== GROUP BOX STYLES ===== */
.group-box {
    background: #2d2d2d; /* Dark gray */
    border: 1px solid #3a3a3a;
    border-radius: 30px;
    padding: 30px;
    max-width: 1000px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.group-box h2 {
    color: #4a7856; /* Moss green */
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #4a7856;
    text-align: center;
    font-size: 28px;
}

/* ===== MEMBERS GRID LAYOUT ===== */
.members-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 20px 0;
}

/* ===== MEMBER CARD STYLES ===== */
.member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
    background: #2d2d2d; /* Dark gray */
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border: 1px solid #3a3a3a;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: #4a7856; /* Moss green */
    transition: all 0.3s ease;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: #4a7856;
}

/* Member Photo Styles */
.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #4a7856; /* Moss green */
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.member-card:hover .member-photo {
    transform: scale(1.1) rotate(5deg);
    border-color: #5d8f6b; /* Lighter moss green */
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

/* Member Info */
.member-info {
    text-align: left;
    width: 100%;
}

.member-name {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff; /* White */
    margin-bottom: 5px;
    text-align: center;
}

.member-role {
    font-size: 14px;
    font-weight: bold;
    color: #4a7856; /* Moss green */
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 1px;
}

.member-bio {
    font-size: 14px;
    line-height: 1.6;
    color: #cccccc; /* Light gray */
    margin-bottom: 15px;
    padding: 12px;
    background: #1a1a1a; /* Black */
    border-radius: 12px;
    border-left: 4px solid #4a7856; /* Moss green */
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Details grid */
.member-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 15px;
    padding: 12px;
    background: #1a1a1a; /* Black */
    border-radius: 12px;
    border: 1px solid #3a3a3a;
}

.detail-item {
    display: flex;
    align-items: center;
    font-size: 13px;
}

.detail-label {
    font-weight: bold;
    color: #4a7856; /* Moss green */
    width: 45px;
}

.detail-value {
    color: #ffffff; /* White */
    flex: 1;
    word-break: break-word;
}

/* Skills tags */
.member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.skill-tag {
    background: #4a7856; /* Moss green */
    color: white;
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
    background: #5d8f6b; /* Lighter moss green */
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

/* Contact Info Styles */
.contact-info {
    margin-top: 20px;
}

.contact-item {
    padding: 18px;
    margin: 12px 0;
    background: #1a1a1a; /* Black */
    border-radius: 15px;
    border-left: 5px solid #4a7856; /* Moss green */
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.contact-item strong {
    color: #4a7856; /* Moss green */
    font-size: 16px;
}

.contact-item span {
    color: #ffffff; /* White */
    font-size: 16px;
}

/* Back Button */
.back-btn {
    background: #4a7856; /* Moss green */
    color: white;
    padding: 14px 25px;
    font-size: 18px;
    text-decoration: none;
    text-align: center;
    border-radius: 50px;
    margin-top: 25px;
    width: 100%;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.back-btn:hover {
    background: #5d8f6b; /* Lighter moss green */
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

/* ===== HERO SECTION STYLES ===== */
.hero-section {
    text-align: center;
    padding: 60px 20px;
    background: #2d2d2d; /* Dark gray */
    border-radius: 30px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid #3a3a3a;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: #4a7856; /* Moss green */
}

.main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff; /* White */
    position: relative;
    z-index: 1;
}

.sub-title {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 30px;
    color: #4a7856; /* Moss green */
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #cccccc; /* Light gray */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.button-container {
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.submit-btn {
    background: #4a7856; /* Moss green */
    color: white;
    padding: 15px 40px;
    font-size: 18px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: none;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: #5d8f6b; /* Lighter moss green */
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Members page title styles */
.members-main-title {
    font-size: 42px;
    font-weight: bold;
    color: #ffffff; /* White */
    text-align: center;
    margin-bottom: 10px;
}

.members-subtitle {
    font-size: 18px;
    color: #cccccc; /* Light gray */
    text-align: center;
    margin-bottom: 20px;
    font-style: italic;
}

.members-divider {
    height: 3px;
    background: #4a7856; /* Moss green */
    margin: 20px 0 30px 0;
    width: 100%;
    border-radius: 3px;
}

/* Keep old styles for backward compatibility */
.member-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    margin: 10px 0;
    background: #1a1a1a; /* Black */
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #3a3a3a;
}

.member-profile:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-color: #4a7856;
}

.member-pic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #4a7856; /* Moss green */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.member-details {
    flex: 1;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-links {
        margin-right: 3%;
    }
}

@media (max-width: 768px) {
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .group-box {
        max-width: 700px;
    }
    
    .nav-links {
        margin-right: 2%;
        gap: 1rem;
    }
    
    .main-title {
        font-size: 42px;
    }
    
    .sub-title {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    .main-content {
        margin-top: 60px;
        padding: 15px;
    }
    
    .nav-links {
        margin-right: 0;
        justify-content: center;
        gap: 15px;
    }
    
    .nav-item {
        font-size: 16px;
        padding: 6px 12px;
    }
    
    .home-group8-btn {
        padding: 20px 40px;
        font-size: 36px;
    }
    
    .group-box, .content-section {
        padding: 20px;
    }
    
    .group-box h2, .content-section h2 {
        font-size: 24px;
    }
    
    .members-grid {
        gap: 15px;
    }
    
    .member-photo {
        width: 100px;
        height: 100px;
    }
    
    .member-name {
        font-size: 18px;
    }
    
    .member-role {
        font-size: 12px;
    }
    
    .members-main-title {
        font-size: 32px;
    }
    
    .members-subtitle {
        font-size: 16px;
    }
    
    /* Hero section responsive */
    .hero-section {
        padding: 40px 15px;
    }
    
    .main-title {
        font-size: 32px;
    }
    
    .sub-title {
        font-size: 24px;
    }
    
    .description {
        font-size: 16px;
    }
    
    .submit-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .contact-item {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .members-grid {
        grid-template-columns: 1fr;
    }
    
    .member-photo {
        width: 120px;
        height: 120px;
    }
}