:root {
    --primary-color: #00ffff;
    /* Cyan */
    --secondary-color: #ff00ff;
    /* Magenta */
    --accent-color: #ffff00;
    /* Yellow */
    --background-color: #121212;
    /* Very dark gray */
    --surface-color: #1e1e1e;
    /* Dark gray */
    --on-surface-color: #ffffff;
    /* White text */
    --muted-color: #a0a0a0;
    /* Light gray */
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--on-surface-color);
    line-height: 1.6;
}

header {
    background-color: var(--surface-color);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: flex-end;
}

nav a {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

main {
    padding: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-heading {
    color: var(--accent-color);
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px var(--accent-color);
}

.ai-zone {
    background-image: url('../assets/multimodal.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Existing properties */
    background-color: var(--surface-color);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* To ensure text remains readable, you might want to add a semi-transparent overlay */
.ai-zone::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Adjust opacity as needed */
    border-radius: 20px;
    z-index: 1;
}

/* Ensure the content is above the overlay */
.ai-zone > * {
    position: relative;
    z-index: 2;
}


.ai-zone:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
}

.ai-zone h1 {
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--primary-color);
}

.newsletters {
    margin-bottom: 3rem;
}

.newsletter-container {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 15px;
    /* Compensate for scrollbar width */
}

/* Styling the scrollbar */
.newsletter-container::-webkit-scrollbar {
    width: 10px;
}

.newsletter-container::-webkit-scrollbar-track {
    background: var(--surface-color);
    border-radius: 5px;
}

.newsletter-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

.newsletter-container::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.newsletter-item {
    display: flex;
    align-items: center;
    background-color: var(--surface-color);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    text-decoration: none;
    color: var(--on-surface-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 1.1em;
}

.newsletter-item:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.newsletter-pic {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 1.5rem;
}

.newsletter-content {
    flex: 1;
}

.newsletter-content h2 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.about-us {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.team-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 1000px; /* Adjust this value based on your design preferences */
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--surface-color);
    border-radius: 15px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: calc(50% - 1rem); /* Two columns with gap consideration */
    max-width: 300px;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.3);
}

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

.member-info {
    text-align: center;
    width: 100%;
}

.member-info h3 {
    font-size: 1.2em;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

.member-info p {
    font-size: 1em;
    color: var(--muted-color);
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.social-links a {
    display: inline-block;
    transition: transform 0.2s;
}

.social-links a:hover {
    transform: scale(1.1);
}

footer {
    background-color: var(--surface-color);
    color: var(--muted-color);
    padding: 1rem;
    text-align: center;
    margin-top: 2rem;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@media (max-width: 768px) {
    .team-member {
        width: 100%; /* Full width on smaller screens */
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .section-heading {
        font-size: 2em;
    }

    .ai-zone h1 {
        font-size: 2em;
    }

    .team-member {
        padding: 1rem;
    }

    .team-member .pic {
        width: 80px;
        height: 80px;
    }

    .member-info h3 {
        font-size: 1.1em;
    }

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

    .member-pic {
        width: 120px;
        height: 120px;
    }

    .newsletter-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .newsletter-pic {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}