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

body {
    font-family: 'Arial', sans-serif;
    background-color: #000000;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
    background-color: #000000;
    position: relative;
    height: 120px;
    width: 100%;
}

.logo {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.logo img {
    width: 120px;
}

/* Navigation */
nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 10px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #28a745;
}

/* Team Section Styles */
.team-section {
    padding: 30px 15px;
    background-color: #1a1a1a;
    text-align: center;
}

.team-section h2 {
    color: #28a745;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

.team-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.team-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    justify-items: center;
    padding: 0 10px;
}

.team-member {
    position: relative;
    width: 120px;
    margin: 20px 10px;
}

.member-link {
    text-decoration: none;
    color: #fff;
    display: block;
}

.team-member h4 {
    position: absolute;
    top: -25px;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 1.1rem;
    z-index: 2;
}

.member-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #333;
    transition: transform 0.3s ease;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    position: relative;
    background-color: #1a1a1a;
    margin: 15px auto;
    padding: 30px 20px;
    width: 95%;
    max-width: 600px;
    border-radius: 15px;
    max-height: calc(100vh - 30px);
    overflow-y: auto;
}

.close-button {
    position: fixed;
    top: 10px;
    right: 15px;
    color: #28a745;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background-color: rgba(26, 26, 26, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-body {
    margin-top: 10px;
    padding-top: 20px;
}

.member-info {
    display: none;
    text-align: center;
}

.member-info.active {
    display: block;
}

.modal-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    margin: 0 auto 30px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.modal-image:hover {
    transform: scale(1.05);
}

.member-info h3 {
    color: #28a745;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.member-info p {
    margin-bottom: 15px;
    text-align: left;
    line-height: 1.6;
    font-size: 0.95rem;
    padding: 0 10px;
}

/* About Section Styles */
.about-section {
    padding: 50px 20px;
    background-color: #111111;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
}

.about-section h2 {
    color: #28a745;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

.about-content {
    color: #ffffff;
}

.about-content > p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    text-align: center;
}

/* Version Timeline */
.version-timeline {
    position: relative;
    padding: 20px 0;
}

.version-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: #28a745;
    top: 0;
}

.version-item {
    position: relative;
    margin-bottom: 30px;
    padding: 20px;
    background: #262626;
    border-radius: 8px;
    width: calc(100% - 40px);
    margin-left: 20px;
    transition: transform 0.3s ease;
}

.version-item:hover {
    transform: translateY(-5px);
}

.version-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #28a745;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.3);
}

.version-item h3 {
    color: #28a745;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.version-item p {
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
}

.version-item.future {
    background: #1e472c;
    border: 1px solid #28a745;
}

/* Footer Styles */
footer {
    background-color: #0a0a0a;
    color: #ffffff;
    padding: 60px 0 20px 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    gap: 40px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h4 {
    color: #28a745;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p {
    color: #999;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: #28a745;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #999;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #28a745;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #222;
    text-align: center;
}

.footer-bottom p {
    color: #666;
    font-size: 0.9rem;
}

/* Hover Effects */
.member-image:hover {
    transform: scale(1.05);
}

.member-image:hover img {
    transform: scale(1.1);
}

/* Custom Scrollbar */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #333;
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #28a745;
    border-radius: 3px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .team-row {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
    }

    .team-member {
        width: 100px;
    }

    .member-image {
        width: 100px;
        height: 100px;
    }

    .team-member h4 {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }

    .logo {
        position: static;
        transform: none;
        margin-bottom: 20px;
    }

    nav ul {
        flex-wrap: wrap;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .team-section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .modal-content {
        margin: 10px;
        padding: 15px;
        width: calc(100% - 20px);
    }

    .modal-image {
        width: 180px;
        height: 180px;
    }

    .member-info h3 {
        font-size: 1.3rem;
    }

    .member-info p {
        font-size: 0.9rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-section {
        margin-bottom: 20px;
    }

    .social-links {
        justify-content: center;
    }

    .about-section h2 {
        font-size: 2rem;
    }

    .version-timeline::before {
        left: 20px;
    }

    .version-item {
        margin-left: 30px;
        width: calc(100% - 40px);
    }

    .version-item::before {
        left: -20px;
    }
}

@media (max-width: 480px) {
    .team-row {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 10px;
    }

    .team-member {
        width: 90px;
        margin: 15px 5px;
    }

    .member-image {
        width: 90px;
        height: 90px;
    }

    .team-member h4 {
        font-size: 0.9rem;
        top: -20px;
    }

    .modal-image {
        width: 250px;
        height: 250px;
    }

    .close-button {
        top: 5px;
        right: 10px;
        font-size: 30px;
    }

    .about-container {
        padding: 0 10px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .member-image:hover {
        transform: none;
    }

    .member-image:hover img {
        transform: none;
    }

    .member-link {
        -webkit-tap-highlight-color: transparent;
    }

    .close-button {
        padding: 15px;
    }
}