:root {
    --primary-color: #2f73aa;
    --secondary-color: #105f6d;
    --text-color: #ffffff;
    --background-color: #f5f5f5;
    --nav-linear-bg: linear-gradient(135deg, #538fe2, #00d9ff, #691bf0bd);
    --main-linear-bg: linear-gradient(135deg, #1f8db82c, #00d9ff4f, #7c3aed31);
    --main-footer-bg: linear-gradient(135deg, #13494d, #0f7880, #144a4e);
    --nav-hover-bg: #f5f5f5;
    --nav-hover-text-color: #25858b;
    --card-primary-bg: #f5f5f5;
    --card-secondary-bg: #25858b;
    --primary-border-color: #487fd1;
    --secondary-border-color: #0f4647;
    --hover-linear-bg: linear-gradient(135deg, #ee0979, #ff6a00);
    --font-family: 'Roboto', 'sans-serif';
    --dark: #0a0a0a;
    --light: #ffffff;
}

body {
    margin: 0 auto;
    padding: 0;
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    background: var(--main-linear-bg);
}

/* =============================================================== */
/* Main Navigation Bar                                            */
/* =============================================================== */
.main-nav {
    background: var(--nav-linear-bg);
    padding: 0 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    z-index: 1000;
    scrollbar-width: none;
    /* Firefox */
}

/* Logo and Branding  */
.main-nav .company-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-name a img {
    width: clamp(40px, 4vw, 80px);
    margin: 5px;
}

.company-info h1 {
    font-size: clamp(1.2rem, 1.8vw, 2rem);
    margin: 0;
}

.company-info p {
    margin: 2px 0 0;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(0.65rem, 0.8vw, 0.9rem);
}


/* Navigation Menu */
.main-nav ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: 600;
}

.main-nav ul li {
    display: inline;
}

.main-nav ul li a {
    display: flex;
    align-items: center;
    height: 4.3rem;
    padding: 0.6rem 1rem;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a:focus {
    background-color: var(--nav-hover-bg);
    color: var(--nav-hover-text-color);
    outline: none;
}


/* Hamburger Icon (Visible on Small Screens Only)*/
.main-nav .hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--text-color);
    cursor: pointer;
}

/* =============================================================== */
/* Headings and Subheadings */
/* =============================================================== */
.team-section {
    background: none !important;
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

.team-section .section-title {
    font-size: clamp(1rem, 2.5vw, 2rem);
    font-weight: 700;
    margin: 2rem 0;
    color: var(--primary-color);
    text-align: center;
    text-shadow: 3px 1px 1px #cbdce7;
    text-transform: uppercase;
}

.team-section .team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    padding: 1.5rem 2rem;
    margin: 0 auto;
}

.team-section .subsection-title {
    font-size: clamp(0.8rem, 2vw, 1.6rem);
    margin: 2rem 0 0 2rem;
    padding: 0.8rem 1rem;
    color: var(--secondary-color);
    border-left: 5px solid var(--secondary-border-color);
    border-radius: 5px;
}


/* =============================================================== */
/* Card Design */
/* =============================================================== */
.card {
    width: 280px;
    min-width: 250px;
    height: 280px;
    background: var(--card-primary-bg);
    border-radius: 32px;
    padding: 3px;
    position: relative;
    box-shadow: #b85c5830 0px 70px 30px -50px;
    transition: all 0.5s ease-in-out;
}

/* Mail button */
.card .mail {
    position: absolute;
    right: 1rem;
    top: 0.8rem;
    border: none;
    background: var(--card-secondary-bg);
    color: var(--text-color);
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 50%;
    /* makes it circular */
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.9);
    transition: all 0.3s ease-in-out;
}

/* Hover effect */
.card .mail:hover {
    transform: scale(1.1);
    /* smooth zoom */
    background: var(--hover-linear-bg);
    /* reversed gradient */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}


.card .profile-pic {
    position: absolute;
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    top: 3px;
    left: 3px;
    border-radius: 29px;
    z-index: 1;
    border: 0px solid var(--card-secondary-bg);
    overflow: hidden;
    transition: all 0.5s ease-in-out 0.2s, z-index 0.5s ease-in-out 0.2s;
}

.card .profile-pic img {
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
    height: 100%;
    -o-object-position: 0px 0px;
    object-position: 0px 0px;
    transition: all 0.5s ease-in-out 0s;
}

.card .bottom {
    position: absolute;
    bottom: 3px;
    left: 3px;
    right: 3px;
    background: var(--card-secondary-bg);
    top: 80%;
    border-radius: 29px;
    z-index: 2;
    box-shadow: rgba(96, 75, 74, 0.1882352941) 0px 5px 5px 0px inset;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1) 0s;
}

.card .bottom .content {
    position: absolute;
    bottom: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 160px;
}

.card .bottom .content .name {
    padding-top: 0.5rem;
    display: block;
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: bold;
}

.card .bottom .content .about-me {
    display: block;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-top: 1rem;
}

.card .bottom .bottom-bottom {
    position: absolute;
    bottom: 0.6rem;
    left: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card .bottom .bottom-bottom .social-links-container {
    display: flex;
    gap: 0.5rem;
}

.card .bottom-bottom .social-links-container a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: var(--card-secondary-bg);
    color: var(--text-color);
    font-size: 1rem;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.9);
    transition: all 0.3s ease-in-out;
}

.card .bottom-bottom .social-links-container a:hover {
    transform: scale(1.1);
    background: var(--hover-linear-bg);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}


.card .bottom .bottom-bottom .button {
    text-decoration: none;
    background: white;
    color: var(--card-secondary-bg);
    border: none;
    border-radius: 20px;
    font-size: 0.6rem;
    padding: 0.5rem 1rem;
    box-shadow: rgba(165, 132, 130, 0.9) 0px 5px 5px 0px;
}

.card .bottom .bottom-bottom .button:hover {
    color: var(--text-color);
    transform: scale(1.2);
    background: var(--hover-linear-bg);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.card:hover {
    border-top-left-radius: 55px;
}

.card:hover .bottom {
    top: 20%;
    border-radius: 80px 29px 29px 29px;
    transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1) 0.2s;
}

.card:hover .profile-pic {
    width: 100px;
    height: 100px;
    aspect-ratio: 1;
    top: 10px;
    left: 10px;
    border-radius: 50%;
    z-index: 3;
    border: 5px solid var(--card-secondary-bg);
    box-shadow: rgba(96, 75, 74, 0.9) 0px 5px 5px 0px;
    transition: all 0.5s ease-in-out, z-index 0.5s ease-in-out 0.1s;
}

.card:hover .profile-pic:hover {
    transform: scale(1.1);
    left: 0;
    border-radius: 0px;
}

.card:hover .profile-pic img {
    width: 100%;
    -o-object-position: 0px 0px;
    object-position: 0px 0px;
    transition: all 0.5s ease-in-out 0.5s;
}

/* =============================================================== */
/* Footer Section */
/* =============================================================== */

.footer-container {
    background: var(--main-footer-bg);
    color: var(--text-color);
    padding: 2rem 0;
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Grid Layout for Footer Columns */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    width: 100%;
}

.footer-col {
    padding: 0 1.5rem;
}

.footer-col h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: #fff;
}

.footer-col p {
    margin: 6px 0;
    font-size: 0.95rem;
    color: #c8cfda;
}

/* Footer Links */
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin: 8px 0;
}

.footer-col ul li a {
    text-decoration: none;
    color: #cfd6df;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

/* Social Links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    border-radius: 50%;
    background: var(--card-secondary-bg);
    color: var(--text-color);
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.9);
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

.social-links a:hover {
    transform: scale(1.1);
    background: var(--hover-linear-bg);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    color: #fff;
}


/* Bottom Bar */
.footer-bottom {
    border-top: 1px solid #1e293b;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #c3ccd8;
}


/* =============================================================
   Mobile Navigation and Layout: Screens up to 720px
   ============================================================= */
@media (max-width: 880px) {

    /* Show hamburger icon for navigation */
    .main-nav .hamburger {
        display: block;
    }

    /* Collapse nav links into a vertical mobile menu */
    .main-nav .nav-links {
        display: none;
        flex-direction: column;
        background: linear-gradient(90deg, var(--accent), var(--secondary));
        backdrop-filter: blur(25px);
        width: 40%;
        position: absolute;
        top: 3.7rem;
        right: 0;
        z-index: 10 !important;
        border-bottom-left-radius: 5px;
    }

    /* Show menu when toggled */
    .main-nav .nav-links.show {
        display: flex;
    }

    /* Style individual nav items */
    .main-nav .nav-links li a {
        height: 2.5rem;
        padding: 0 0.5rem;
        border-bottom: 1px solid var(--text-color);
        border-left: 1px solid #fff;
    }

    .main-nav .nav-links li a i {
        padding-left: 0.5rem;
        min-width: 2rem;
    }

    /* Mobile Footer Layout */

    .footer-grid {
        grid-template-columns: 1fr;
        /* Stack footer columns vertically */
        gap: 2rem;
        text-align: center;
    }

    .footer-col {
        padding: 0 1rem;
    }

    .footer-col h3 {
        font-size: 1.1rem;
    }

    .footer-col p,
    .footer-col ul li a {
        font-size: 0.9rem;
    }

    /* Social links center aligned */
    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }

}