:root {
            --primary: #0f172a;
            --primary-blue: #1d4ed8;
            --accent-blue: #3b82f6;
            --light-blue-bg: #eff6ff;
            --card-bg: #ffffff;
            --text-main: #1e293b;
            --text-muted: #64748b;
        }

        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 100%);
            color: var(--text-main);
            margin: 0;
            padding: 80px 0px 0px 0px;
            min-height: 100vh;
        }

        .team-container {
            max-width: 1200px;
            margin: 0 auto;
            margin-bottom: 25px;
            text-align: center;
        }

        .team-header {
            margin-bottom: 60px;
            animation: fadeInDown 1s ease-out;
        }

        .team-header .badge {
            background-color: var(--light-blue-bg);
            color: var(--primary-blue);
            padding: 8px 18px;
            border-radius: 50px;
            font-weight: 700;
            font-size: 13px;
            letter-spacing: 1px;
            text-transform: uppercase;
            display: inline-block;
            margin-bottom: 15px;
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
        }

        .team-header h1 {
            font-size: 42px;
            color: var(--primary);
            margin-bottom: 15px;
            font-weight: 800;
        }

        .team-header p {
            font-size: 17px;
            color: var(--text-muted);
            max-width: 650px;
            margin: 0 auto;
            line-height: 1.6;
        }

        /* Grid Layout */
        .team-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 35px;
            justify-content: center;
        }

        /* 3D Flip Card Container with Smooth Hover Float */
        .team-card {
            background-color: transparent;
            width: 100%;
            height: 480px;
            perspective: 1400px;
            cursor: pointer;
            animation: fadeInUp 0.8s ease-out forwards;
            opacity: 0;
        }

        /* Staggered entrance animations */
        .team-card:nth-child(1) { animation-delay: 0.1s; }
        .team-card:nth-child(2) { animation-delay: 0.2s; }
        .team-card:nth-child(3) { animation-delay: 0.3s; }
        .team-card:nth-child(4) { animation-delay: 0.4s; }
        .team-card:nth-child(5) { animation-delay: 0.5s; }

        .card-inner {
            position: relative;
            width: 100%;
            height: 100%;
            text-align: left;
            transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
            transform-style: preserve-3d;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(29, 78, 216, 0.08);
        }

        .team-card:hover .card-inner {
            box-shadow: 0 20px 40px rgba(29, 78, 216, 0.18);
            transform: translateY(-6px);
        }

        .team-card.flipped .card-inner {
            transform: rotateY(180deg) translateY(0);
        }

        /* Front and Back common styling */
        .card-front, .card-back {
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
            border-radius: 20px;
            overflow: hidden;
            background: var(--card-bg);
            display: flex;
            flex-direction: column;
            border: 1px solid rgba(59, 130, 246, 0.1);
        }

        /* Front Side Design */
        .card-front .img-container {
            position: relative;
            width: 100%;
            height: 300px;
            background-color: #f1f5f9;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .card-front img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center top;
            transition: transform 0.6s ease;
        }

        /* Special alignment for Arun Sir's vertical image to fit perfectly */
        .card-front img.arun-img {
            object-position: center 20%;
        }

        .team-card:hover .card-front img {
            transform: scale(1.06);
        }

        .card-front .img-overlay {
            position: absolute;
            bottom: 0; left: 0; width: 100%;
            height: 40%;
            background: linear-gradient(to top, rgba(15, 23, 42, 0.5), transparent);
        }

        .card-front .card-info {
            padding: 20px 24px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            flex-grow: 1;
            background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        }

        .card-front h3 {
            margin: 0 0 4px 0;
            font-size: 20px;
            color: var(--primary);
            font-weight: 700;
        }

        .card-front .role {
            font-size: 13px;
            color: var(--primary-blue);
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.8px;
        }

        .flip-hint {
            font-size: 12px;
            color: var(--accent-blue);
            margin-top: 8px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        /* Back Side Design */
        .card-back {
            background: linear-gradient(145deg, #ffffff 0%, #f0f7ff 100%);
            color: var(--text-main);
            transform: rotateY(180deg);
            padding: 28px;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            border-top: 4px solid var(--primary-blue);
        }

        .card-back h3 {
            margin: 0 0 12px 0;
            font-size: 21px;
            color: var(--primary-blue);
            border-bottom: 2px solid rgba(59, 130, 246, 0.2);
            padding-bottom: 10px;
            font-weight: 700;
        }

        .description-scroll {
            overflow-y: auto;
            max-height: 330px;
            padding-right: 6px;
            font-size: 16px;
            text-align: justify;
            line-height: 1.75;
            color: #1e293b;
            flex-grow: 1;
            font-weight: 500;
        }

        .description-scroll::-webkit-scrollbar {
            width: 5px;
        }
        .description-scroll::-webkit-scrollbar-track {
            background: #e2e8f0;
            border-radius: 10px;
        }
        .description-scroll::-webkit-scrollbar-thumb {
            background: var(--accent-blue);
            border-radius: 10px;
        }
        .description-scroll::-webkit-scrollbar-thumb:hover {
            background: var(--primary-blue);
        }

        @keyframes fadeInDown {
            from { opacity: 0; transform: translateY(-30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(40px); }
            to { opacity: 1; transform: translateY(0); }
        }