/* ===============================
   TEAM PAGE STYLES
   =============================== */

:root {
    --primary-color: #00B4D8;
    --primary-light: #90E0EF;
    --primary-dark: #0077B6;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 180, 216, 0.15);
    --shadow-hover: 0 15px 40px rgba(0, 180, 216, 0.25);
}

/* ===============================
   HERO SECTION
   =============================== */

.hero-section {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #e0f7ff 50%, #90E0EF 100%);
    padding: 100px 20px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    animation: fadeInUp 0.8s ease;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(0, 180, 216, 0.15);
    color: var(--primary-dark);
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 2px solid var(--primary-color);
    animation: slideDownFadeIn 0.8s ease 0.1s both;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
    line-height: 1.2;
    animation: slideDownFadeIn 0.8s ease 0.2s both;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.6;
    animation: slideDownFadeIn 0.8s ease 0.3s both;
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.shape {
    position: absolute;
    opacity: 0.15;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 20%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background-color: var(--primary-light);
    border-radius: 50%;
    bottom: 10%;
    left: 10%;
    animation: float 8s ease-in-out infinite 1s;
}

/* ===============================
   TEAM INTRO SECTION
   =============================== */

.team-intro-section {
    padding: 80px 20px;
    background-color: #f9f9f9;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.section-header h2 {
    font-size: 42px;
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===============================
   TEAM SECTION
   =============================== */

.team-section {
    padding: 80px 20px;
    background-color: var(--white);
}

.nursing-section {
    background-color: #f9f9f9;
}

.support-section {
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.6s ease;
}

.section-title h2 {
    font-size: 40px;
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    margin: 0 auto;
    border-radius: 2px;
}

/* ===============================
   TEAM GRID & CARDS
   =============================== */

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    animation: fadeIn 0.8s ease 0.2s both;
}

.team-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.team-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.1) rotate(2deg);
    filter: brightness(0.9) contrast(1.1);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 116, 217, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background-color: var(--white);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-icon:hover {
    background-color: var(--primary-light);
    transform: scale(1.15) rotateZ(360deg);
}

.team-info {
    padding: 25px;
    text-align: center;
}

.team-info h3 {
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.team-info .designation {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.team-info .bio {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ===============================
   TEAM VALUES SECTION
   =============================== */

.team-values-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.05), rgba(144, 224, 239, 0.1));
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.value-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 180, 216, 0.1);
    transition: all 0.4s ease;
    animation: fadeInUp 0.6s ease;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 180, 216, 0.2);
}

.value-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.value-card h3 {
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-weight: 700;
}

.value-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* ===============================
   CTA SECTION
   =============================== */

.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s ease;
    font-size: 16px;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-dark);
    border-color: var(--white);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-dark);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* ===============================
   FOOTER
   =============================== */

/* ===============================
   ANIMATIONS
   =============================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ===============================
   RESPONSIVE DESIGN
   =============================== */

@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 42px;
    }

    .section-title h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: 60px 20px;
        min-height: 300px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .team-section {
        padding: 60px 20px;
    }

    .section-title h2 {
        font-size: 26px;
    }

    .cta-section h2 {
        font-size: 28px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .team-section {
        padding: 40px 15px;
    }

    .section-title h2 {
        font-size: 22px;
    }

    .team-image {
        height: 220px;
    }

    .team-info {
        padding: 20px 15px;
    }

    .team-info h3 {
        font-size: 16px;
    }

    .value-card {
        padding: 30px 20px;
    }

    .value-icon {
        font-size: 36px;
    }

    .shape-1 {
        width: 150px;
        height: 150px;
    }

    .shape-2 {
        width: 100px;
        height: 100px;
    }

    .cta-section h2 {
        font-size: 22px;
    }

    .cta-section p {
        font-size: 14px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 14px;
    }
}
