/* General Reset and Body Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    overflow-x: hidden;
    font-family: 'Oswald', sans-serif;
    color: #333;
    background-color: #f4f4f4;
    /* Subtle background */
    line-height: 1.5;
}

/* Header and Navigation */
header.navbar {
    display: flex;
    background-color: #161b22;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    gap: 2rem;
    align-items: center;
}

header h1 {
    font-size: 1.8rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    font-weight: bold;
}

.navbar a {
    color: white;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
}

.navbar a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #1434A4;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.navbar a:hover::before {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.navbar-item:hover {
    color: #1434A4 !important;
}

.navbar-item {
    color: white !important;
}

.navbar-burger {
    color: white !important;
}

/* Header content styling */
.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 20px;
    padding-left: 20px;
}

/* Header styles */
header h1 {
    font-family: 'Coiny', sans-serif;
    font-size: 30px;
    background-image: linear-gradient(to right, rgb(0, 140, 255), cyan, blue, rgba(0, 0, 0, 0.817));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow-animation 150s linear infinite;
    opacity: 0.9;
    text-align: center;
    padding: 10px;
    margin: 0 auto;
    font-size: 1.8rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}


@keyframes rainbow-animation {
    to {
        background-position: 4500vh;
    }
}

.navbar-burger {
    position: absolute;
    /* Allows precise positioning */
    left: -15px;
    /* Adjust distance from the left edge */
    width: 90px;
    height: auto;
    color: white !important;
}

/* Team Container */
.team-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Responsive grid layout */
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Team Member Cards */
.team-member {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding: 20px;
    margin-top: 12px;
}

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

.team-member img {
    display: block;
    width: 150px;
    /* Consistent width for visibility */
    height: auto;
    /* Maintain natural aspect ratio */
    margin: 20px auto 0;
    object-fit: contain;
    border-radius: 8px;
}

/* Importing Fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@700&family=Roboto:wght@400;500&display=swap');

/* Typography for Team Members */
.team-member h2 {
    font-family: 'Lora', serif;
    /* Elegant serif font for headings */
    font-size: 2rem;
    /* Larger heading size */
    font-weight: bold;
    color: #2c3e50;
    /* Dark color for contrast */
    margin-bottom: 15px;
    /* Increased spacing for better separation */
}

.team-member h3 {
    font-family: 'Roboto', sans-serif;
    /* Clean, modern sans-serif font for subheadings */
    font-size: 1.2rem;
    /* Slightly larger for better readability */
    font-weight: 500;
    /* Medium weight for contrast with the heading */
    color: #3498db;
    /* Highlighted color */
    margin-bottom: 20px;
    /* Extra space to separate from the paragraph */
}

.team-member p {
    font-family: 'Roboto', sans-serif;
    /* Same clean sans-serif for body text */
    font-size: 1rem;
    /* Slightly larger body text for readability */
    color: #666;
    /* Subtle gray for the text */
    line-height: 1.8;
    /* Increased line-height for better readability */
    margin-bottom: 20px;
    /* Space after the paragraph for balance */
}


/* Loader */
.loader {
    border: 6px solid #f3f3f3;
    /* Light gray border */
    border-top: 6px solid #002147;
    /* Oxford Blue border on the top */
    border-radius: 50%;
    width: 70px;
    height: 70px;
    animation: spin 1.5s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Intro Animation */
.intro {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #3498db;
    color: white;
    text-align: center;
    height: 100vh;
}

.intro h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.intro p {
    font-size: 1.2rem;
    margin-top: 10px;
}

.intro.fade-out {
    opacity: 0;
    transition: opacity 1s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .team-container {
        padding: 10px;
    }

    .team-member {
        padding: 15px;
    }

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

@media (max-width: 480px) {
    .team-member h2 {
        font-size: 1.4rem;
    }

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

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

    header h1 {
        font-size: 1.8rem;
    }
}