@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&display=swap');
@import 'animate.css';

:root {
    --bg: linear-gradient(360deg, rgb(184, 245, 235), rgb(225, 246, 221));
    --text: #222;
    --primary: #6c63ff;
    --card: #f5f5f5;
}

body.dark {
    --bg: #121212;
    --text: #f5f5f5;
    --card: #1e1e1e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {

    background: var(--bg);
    color: var(--text);
    transition: 0.3s;
}

.solid-box {
    width: 25px;
    height: 25px;
    background-color: orange;
    /* A solid blue color  #3498db*/
    border: 0px solid;
    /* thickness, style (solid), and color */
    padding: 10px;
    /* space inside the box */
    margin: 1px;
    cursor: pointer;
    border-radius: 2px;
    margin-right: 4px;
    margin-bottom: 1.5%;
    margin-left: 3%;

}

.solid-box:hover {
    background-color: var(--primary);
}


.logo-name {
    color: var(--primary);
    transition: 0.5s;
    margin-bottom: auto;
    animation: fadeIn 1s ease forwards;
}

.logo-name:hover {
    cursor: pointer;
}

.logo-name2 {
    display: none;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    position: fixed;
    width: 100%;
    top: 0;
    background: var(--bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;

}

nav ul {
    display: flex;
    list-style: none;
    margin-left: 55%;
    transition: 0.5s;
    animation: fadeUp 1s ease forwards;

}

nav ul li {
    margin-left: 20px;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: 0.3s;
}

nav a:hover {
    color: var(--primary);
}

.menu-icon {
    display: none;
}

.menu-icon i {
    color: var(--text);
    font-size: 30px;
}

.toggle {
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 20px;
    background: var(--primary);
    color: #fff;
    margin-left: 2%;
    transition: 0.5s;
    animation: fadeIn 1s ease forwards;
}


/* --- Main Container --- */
.team-container {

    width: 100%;
    text-align: center;
    margin-top: 5%;
    /* Initial state for JS fade-in animation */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Triggered by JS */
.team-container.appear {
    opacity: 1;
    transform: translateY(0);
}

.team-container h1 {
    font-size: 2.5rem;
    padding: 10px;
    margin-top: 15px;
    margin-bottom: 5px;
    color: var(--text);
    position: relative;
}

.team-container p.subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
    border-bottom: solid 5px rgba(82, 232, 242, 0.714);
    border-radius: 50px;
}

/* --- Team Grid --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* --- Team Card --- */
.team-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Card Hover Animation */
.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    background: linear-gradient(45deg,
            #ff007f,
            #7f00ff,
            #00bfff,
            #00ff7f,
            #ff007f);

    /* Make the background super wide so there is room to slide */
    background-size: 300% 300%;

    /* Clip the background so it only fills the text characters */
    -webkit-background-clip: text;
    background-clip: text;

    /* Make the actual text color transparent so the background shows through */
    -webkit-text-fill-color: transparent;

    /* Link the animation: 6 seconds duration, linear timing, looping infinitely */
    animation: infiniteGradient 6s linear infinite;
}

/* --- ANIMATION KEYFRAMES --- */
@keyframes infiniteGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }

}

/* Responsive Scaling for Tablets and Mobile */
@media (max-width: 768px) {
    .gradient-text {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .gradient-text {
        font-size: 2.2rem;
    }
}

/* Image Styling */
.avatar-container {
    position: relative;
    width: 130px;
    height: 130px;
    margin-bottom: 20px;
}

.avatar-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #eef2f3;
    transition: border-color 0.3s ease;
}

.team-card:hover .avatar-container img {
    border-color: #4a90e2;
}

/* Card Text */
.team-card h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.team-card .role {
    font-size: 0.95rem;
    color: #4a90e2;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.team-card .bio {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #a0aab2;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    font-weight: bold;
}

.social-links a:hover {
    color: #333;
}



/*team grid*/

.team {
    height: 100vh;
    width: 100%;

}

.teamBox {
    margin-left: 7%;
    margin-right: 7%;

}

.teamBox h2 {
    text-align: center;
    font-weight: 700;
    letter-spacing: -1px;
    padding-top: 2.5%;
    font-size: 40px;
    transition: 1s;


    /* Define the multi-color gradient */
    background: linear-gradient(45deg,
            #ff007f,
            #7f00ff,
            #00bfff,
            #00ff7f,
            #ff007f);

    /* Make the background super wide so there is room to slide */
    background-size: 300% 300%;

    /* Clip the background so it only fills the text characters */
    -webkit-background-clip: text;
    background-clip: text;

    /* Make the actual text color transparent so the background shows through */
    -webkit-text-fill-color: transparent;

    /* Link the animation: 6 seconds duration, linear timing, looping infinitely */
    animation: infiniteGradient 6s linear infinite;

}

/* Responsive Scaling for Tablets and Mobile */


@media (max-width: 480px) {
    .gradient-text {
        font-size: 2.2rem;
    }
}

/* --- ANIMATION KEYFRAMES --- */
@keyframes infiniteGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}



/* Contact */

form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin-left: 6.5%;
}

.CM-text {
    margin-top: 180px;
    display: flex;
    gap: 30px;
    margin-left: 120px;
    animation: slideRight 1s ease;
}

input,
textarea {
    margin: 10px 0;
    padding: 12px;
    border-radius: 5px;
    border: none;
    background: var(--card);
    color: var(--text);
}

button {
    padding: 12px;
    border: none;
    background: var(--primary);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: 1s;
}

button:hover {
    font-weight: bold;
    transform: scale(1.1);
    z-index: 2;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 5%;
    padding: 20px;
    background: black;
}

.footerContainer {
    width: 100%;
    padding: 70px 30px 20px;
}

.socialIcons {
    display: flex;
    justify-content: center;
}

.socialIcons a {
    text-decoration: none;
    padding: 10px;
    background-color: white;
    margin: 10px;
    border-radius: 50%;

}

.socialIcons a i {
    font-size: 2em;
    color: black;
    opacity: 0, 9;
}

.socialIcons a:hover i {
    color: var(--primary);
}

.footerNav {
    margin: 30px 0;
}

.footerNav ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
}

.footerNav ul li a {
    color: white;
    margin: 20px;
    text-decoration: none;
    font-size: 1.3em;
    opacity: 0.7;
    transition: 0.5s;

}

.footerNav ul li a:hover {
    opacity: 1;
    color: orange;
}

.footerBottom {
    background-color: var(--card);
    padding: 20px;
    text-align: center;
}

.footerBottom p {
    color: var(--text);
}

.designer {
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    margin: 0px 5px;
}


/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideRight {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0px);
    }

}

@keyframes slideLeft {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0px);
    }

}

@keyframes slideTop {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }

    100% {
        opacity: 1;
        transform: translateY(0px);
    }

}

@media(max-width:768px) {
    .solid-box {
        display: none;
    }

    .logo-name {
        display: none;
    }

    .logo-name2 {
        display: flex;
    }

    .gradient-text {
        font-size: 3rem;
    }

    .teamBox {
        margin-left: 0%;
        margin-right: 0%;
    }

    .service {
        display: block;
    }

    .pic {
        text-align: center;
        border: 1px solid rgb(11, 129, 240);
        border-radius: 50%;
        height: 300px;
        width: 300px;
        margin: 0 auto;
        border-width: 10px;
    }

    .service div {
        padding: 15px 12px;
        background: rgb(215, 223, 239);
        box-sizing: border-box;
        transition: 0.5s;
    }

    nav ul {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        text-align: center;
        background: var(--bg);
        gap: 0;
        overflow: hidden;
    }

    .nav ul li {
        padding: 20px;
        padding-top: 0;
    }

    .menu-icon {
        display: block;
    }

    #menuList {
        margin-left: 0%;
        font-size: small;
        line-height: 3;
        text-align: left;
        transition: all 0.5s;
    }

    .CM-text {
        display: flex;
        padding: 20px;
        margin-top: 3%;
        justify-content: center;
        margin-left: 0px;

    }

    form {
        display: flex;
        margin-left: 0px;
        margin-top: 1%;
        padding: 20px;
        justify-content: center;
    }

    footer {
        display: flex;

        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .footerNav ul {
        display: flex;
        flex-direction: column;
    }

    .footerNav ul li {
        width: 100%;
        text-align: center;
        margin: 10px;
    }

    .socialIcons a {
        padding: 8px;
        margin: 4px;
    }

}

/* Mobile View (Max 600px) */
@media (max-width: 600px) {
    body {
        padding: 20px 10px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .team-container h1 {
        margin-top: 10%;
        font-size: 1.8rem;
    }

    .team-container p.subtitle {
        margin-bottom: 30px;
    }
}