        :root {
            --primary-navy: #072ac8;
            --primary-yellow: #ffc600;
            --primary-blue: #1e96fc;
            --background: #f7f7f7;
            --accent-yellow: #ffc600;
            --secondary-blue: #1e96fc;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Ubuntu", sans-serif;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            background: #f7f7f7;
            min-height: 100vh;
            overflow-x: hidden;
            position: relative;
            color: #333;
            line-height: 1.6;
        }

        /* --- Main Layout Sections - Define their stacking context explicitly --- */
        main.main-content {
            position: relative;
            z-index: 1;
        }

        .header-container {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 20px;
            position: relative;
            overflow: hidden;
            width: 100%;
        }

        .college-name {
            font-size: 4.5rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 3px;
            color: var(--primary-navy);
            margin-bottom: 40px;
            text-align: center;
            position: relative;
        }

        .college-name::after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(to right, #ffc107, #ff9800);
            border-radius: 2px;
        }

        .tagline-container {
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 40px 0;
            flex-wrap: wrap;
            max-width: 90%;
            width: 100%;
            text-align: center;
        }

        .butterfly {
            width: 80px;
            height: 80px;
            margin: 0 20px;
            animation: flutter 3s infinite ease-in-out;
            opacity: 0.9;
        }

        .butterfly:nth-child(1) {
            animation-delay: 0.2s;
        }

        .butterfly:nth-child(3) {
            animation-delay: 0.4s;
        }

        .tagline {
            font-size: 2.3rem;
            font-weight: bold;
            line-height: 1.4;
            max-width: 600px;
            color: var(--primary-blue);
            text-align: center;
            padding: 0 10px;
            position: relative;
        }

        .scroll-down {
            top: 88%;
            position: absolute;
            bottom: 50px;

            transform: translateX(-50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            color: var(--primary-navy);
            text-decoration: none;
            z-index: 3;
            animation: bounce 2s infinite;
        }

        .scroll-down i {
            font-size: 2rem;
            margin-top: 10px;
            color: var(--primary-yellow);
        }

        .scroll-text {
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            font-weight: 500;
        }

        /* --- Animations --- */
        @keyframes flutter {

            0%,
            100% {
                transform: translateY(0) rotate(0deg);
            }

            25% {
                transform: translateY(-10px) rotate(5deg);
            }

            50% {
                transform: translateY(0) rotate(0deg);
            }

            75% {
                transform: translateY(-8px) rotate(-5deg);
            }
        }

        @keyframes bounce {

            0%,
            20%,
            50%,
            80%,
            100% {
                transform: translateY(0) translateX(-50%);
            }

            40% {
                transform: translateY(-15px) translateX(-50%);
            }

            60% {
                transform: translateY(-7px) translateX(-50%);
            }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* --- Mission Section --- */
        .mission-section {
            padding: 80px 20px;
            position: relative;
            z-index: 2;
            max-width: 1200px;
            margin: 0 auto;
            width: 100%;
        }

        .section-header {
            text-align: center;
            max-width: 800px;
            margin: 0 auto 60px;
            width: 100%;
        }

        .section-title {
            font-size: 2.8rem;
            color: var(--primary-navy);
            margin-bottom: 20px;
            position: relative;
            display: inline-block;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: var(--primary-yellow);
            border-radius: 2px;
        }

        .section-description {
            font-size: 1.2rem;
            line-height: 1.8;
            color: #444;
            max-width: 700px;
            margin: 0 auto;
        }

        /* Mission Container */
        .mission-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 40px;
            width: 100%;
        }

        /* Center Card */
        .mission-center-card {
            background: var(--primary-navy);
            color: white;
            border-radius: 20px;
            padding: 40px;
            text-align: center;
            box-shadow: 0 20px 50px rgba(7, 42, 200, 0.2);
            max-width: 800px;
            width: 100%;
            position: relative;
            overflow: hidden;
            z-index: 2;
        }

        .mission-center-card::before {
            content: '';
            position: absolute;
            top: -50px;
            right: -50px;
            width: 150px;
            height: 150px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            z-index: -1;
        }

        .mission-center-card::after {
            content: '';
            position: absolute;
            bottom: -30px;
            left: -30px;
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            z-index: -1;
        }

        .mission-icon {
            font-size: 3.5rem;
            margin-bottom: 20px;
            color: var(--primary-yellow);
        }

        .mission-center-card h3 {
            font-size: 1.8rem;
            margin-bottom: 15px;
        }

        .mission-center-card p {
            font-size: 1.1rem;
            line-height: 1.6;
            font-weight: 300;
        }

        /* Mission Points Grid */
        .mission-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
        }

        .mission-card {
            background: white;
            border-radius: 15px;
            padding: 30px;
            text-align: center;
            transition: all 0.3s ease;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
            position: relative;
            overflow: hidden;
            border: 3px solid transparent;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .mission-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: var(--primary-navy);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.3s ease;
        }

        .mission-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(7, 42, 200, 0.15);
        }

        .mission-card:hover::before {
            transform: scaleX(1);
        }

        .mission-card.active {
            border-color: var(--primary-yellow);
            background: rgba(30, 150, 252, 0.05);
        }

        .mission-card.active::before {
            transform: scaleX(1);
            background: var(--primary-yellow);
        }

        .point-icon {
            width: 90px;
            height: 90px;
            border-radius: 50%;
            background: rgba(7, 42, 200, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            font-size: 2.2rem;
            color: var(--primary-navy);
            transition: all 0.3s ease;
        }

        .mission-card.active .point-icon {
            background: var(--primary-navy);
            color: white;
        }

        .point-title {
            font-size: 1.4rem;
            color: var(--primary-navy);
            margin-bottom: 15px;
            font-weight: 700;
            line-height: 1.3;
        }

        .point-description {
            font-size: 1rem;
            color: #666;
            line-height: 1.6;
            flex-grow: 1;
        }

        /* Stats Section */
        .mission-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 30px;
            width: 100%;
            margin-top: 60px;
            padding: 40px;
            background: rgba(7, 42, 200, 0.05);
            border-radius: 20px;
        }

        .stat-card {
            text-align: center;
            padding: 20px;
        }

        .stat-number {
            font-size: 3.5rem;
            font-weight: 800;
            color: var(--primary-navy);
            margin-bottom: 10px;
            line-height: 1;
        }

        .stat-label {
            font-size: 1.1rem;
            color: #555;
            font-weight: 500;
        }

        /* History Section */
        .history-section {
            max-width: 1200px;
            margin: 80px auto 200px auto;
            padding: 0 20px;
            width: 100%;
        }

        .history-container {
            display: flex;
            gap: 40px;
            position: relative;
            width: 100%;
        }

        /* History Intro */
        .history-intro {
            flex: 1;
            padding: 30px;
            background: white;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            align-self: flex-start;
            position: sticky;
            top: 120px;
            z-index: 1;
        }

        .history-intro .section-header {
            text-align: left;
            margin-bottom: 30px;
        }

        .history-intro .section-header h2 {
            font-size: 2.2rem;
            color: var(--primary-blue);
            margin-bottom: 10px;
            position: relative;
            display: block;
        }

        .history-intro .section-header h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            transform: none;
            width: 80px;
            height: 4px;
            background: var(--accent-yellow);
            border-radius: 2px;
        }

        .history-intro .section-header p {
            font-size: 1.1rem;
            max-width: 100%;
            margin: 20px 0 0;
            color: #555;
            text-align: left;
        }

        .history-intro h3 {
            font-size: 1.8rem;
            color: var(--primary-blue);
            margin-bottom: 20px;
            line-height: 1.3;
        }

        .history-intro p {
            font-size: 1.1rem;
            margin-bottom: 25px;
            color: #444;
        }

        .history-intro .highlight {
            background: linear-gradient(120deg, rgba(7, 42, 200, 0.1), rgba(30, 150, 252, 0.1));
            padding: 25px;
            border-radius: 10px;
            border-left: 4px solid var(--accent-yellow);
            margin: 30px 0;
        }

        .history-intro .highlight p {
            margin: 0;
            font-style: italic;
            color: var(--primary-blue);
            font-weight: 500;
        }

        .stats {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin-top: 30px;
        }

        .stat-card {
            text-align: center;
            padding: 15px;
        }

        .stat-number {
            font-size: 3.5rem;
            font-weight: 800;
            color: var(--primary-navy);
            margin-bottom: 10px;
            line-height: 1;
        }

        .stat-label {
            font-size: 1.1rem;
            color: #555;
            font-weight: 500;
        }

        /* Timeline */
        .history-timeline {
            flex: 2;
            position: relative;
            padding-left: 40px;
            width: 100%;
        }

        /* Vertical line */
        .history-timeline::before {
            content: '';
            position: absolute;
            top: 0;
            left: 20px;
            height: 100%;
            width: 4px;
            background: var(--secondary-blue);
            border-radius: 2px;
        }

        .timeline-item {
            position: relative;
            margin-bottom: 50px;
            padding: 30px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
        }

        .timeline-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(7, 42, 200, 0.15);
        }

        .timeline-item::before {
            content: '';
            position: absolute;
            top: 40px;
            left: -36px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--accent-yellow);
            border: 4px solid var(--primary-blue);
            z-index: 2;
        }

        .timeline-date {
           
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--primary-blue);
            margin-bottom: 8px;
        }
html[dir='rtl'] .timeline-date{
     direction: ltr;
}
        .timeline-title {
            font-size: 1.5rem;
            color: var(--primary-blue);
            margin-bottom: 15px;
            position: relative;
            display: inline-block;
        }

        .timeline-title::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 50px;
            height: 3px;
            background: var(--accent-yellow);
            border-radius: 2px;
        }

        .timeline-content {
            font-size: 1.05rem;
            color: #444;
        }

        .timeline-item .icon {
            position: absolute;
            top: 30px;
            right: 30px;
            font-size: 1.8rem;
            color: var(--secondary-blue);
            opacity: 0.7;
        }

        /* Quote Section - REDESIGNED */
        .quote-section {
            max-width: 900px;
            margin: 100px auto;
            padding: 0 20px;
            position: relative;
            width: 100%;
        }

        .quote-container {
            background: linear-gradient(135deg, rgba(7, 42, 200, 0.03) 0%, rgba(255, 198, 0, 0.05) 100%);
            border-radius: 20px;
            padding: 60px 40px;
            position: relative;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
            border: 2px solid rgba(7, 42, 200, 0.1);
            width: 100%;
        }

        .quote-icon {
            position: absolute;
            top: 30px;
            left: 40px;
            font-size: 4rem;
            color: var(--primary-yellow);
            opacity: 0.2;
        }

        .quote-text {
            font-size: 1.8rem;
            line-height: 1.7;
            color: var(--primary-navy);
            margin-bottom: 30px;
            position: relative;
            z-index: 2;
            font-weight: 500;
            font-style: italic;
            max-width: 800px;
            margin: 0 auto 40px;
        }

        .quote-author {
            text-align: center;
            margin-top: 20px;
        }

        .author-name {
            font-size: 1.6rem;
            font-weight: 700;
            color: var(--primary-blue);
            margin-bottom: 5px;
        }

        .author-title {
            font-size: 1.1rem;
            color: #666;
            font-weight: 500;
        }

        .signature {
            font-family: 'Dancing Script', cursive;
            font-size: 2.5rem;
            color: rgba(7, 42, 200, 0.3);
            transform: rotate(-5deg);
            margin-top: 20px;
            display: inline-block;
        }

        .decor-circle {
            position: absolute;
            width: 200px;
            height: 200px;
            border-radius: 50%;
            z-index: -1;
        }

        .circle-1 {
            top: -80px;
            left: -80px;
            background: rgba(30, 150, 252, 0.1);
        }

        .circle-2 {
            bottom: -100px;
            right: -100px;
            background: rgba(255, 198, 0, 0.1);
            width: 250px;
            height: 250px;
        }

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Partners Section */
        .partners-section {
            max-width: 1200px;
            width: 100%;
            margin: 100px auto;
            padding: 0 20px;
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .section-header {
            text-align: center;
            max-width: 800px;
            margin: 0 auto 60px;
            width: 100%;
        }

        .section-title {
            font-size: 2.8rem;
            color: var(--primary-navy);
            margin-bottom: 20px;
            position: relative;
            display: inline-block;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: var(--primary-yellow);
            border-radius: 2px;
        }

        .section-description {
            font-size: 1.2rem;
            line-height: 1.8;
            color: #444;
            max-width: 700px;
            margin: 0 auto;
        }

        .partners-container {
            position: relative;
            width: 100%;
            overflow: hidden;
            padding: 40px 0;
            display: flex;
            justify-content: center;
        }

        .partners-scroller {
            display: flex;
            padding: 20px 0;
            animation: scroll 50s linear infinite;
        }

        .partner-card {
            background: white;
            border-radius: 15px;
            padding: 25px;
            margin: 0 20px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
            min-width: 200px;
            height: 200px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
            border: 2px solid rgba(7, 42, 200, 0.1);
            flex-shrink: 0;
        }

        .partner-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(7, 42, 200, 0.15);
            border-color: var(--primary-yellow);
        }

        .partner-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: var(--primary-navy);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.3s ease;
        }

        .partner-card:hover::before {
            transform: scaleX(1);
        }

        .partner-logo {
            max-width: 120px;
            max-height: 80px;
            object-fit: contain;
            filter: grayscale(100%);
            transition: all 0.4s ease;
        }

        .partner-card:hover .partner-logo {
            filter: grayscale(0);
            transform: scale(1.1);
        }

        .partner-name {
            position: absolute;
            bottom: -30px;
            left: 0;
            right: 0;
            text-align: center;
            background: var(--primary-navy);
            color: white;
            padding: 8px;
            font-size: 1rem;
            font-weight: 500;
            opacity: 0;
            transition: all 0.4s ease;
            border-radius: 0 0 12px 12px;
        }

        .partner-card:hover .partner-name {
            opacity: 1;
            bottom: 0;
        }

        .controls {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 40px;
            width: 100%;
        }

        .control-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: var(--primary-navy);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid var(--primary-navy);
        }

        .control-btn:hover {
            background: white;
            color: var(--primary-navy);
        }

        @keyframes scroll {
            0% {
                transform: translateX(0);
            }

            100% {
                transform: translateX(-50%);
            }
        }

        .mobile-indicator {
            display: none;
            text-align: center;
            margin-top: 20px;
            font-size: 0.9rem;
            color: #666;
            width: 100%;
        }

        .mobile-indicator i {
            margin-right: 8px;
            color: var(--primary-blue);
        }


        @media (max-width: 992px) {
            .header-container {
                min-height: auto;
                padding: 60px 20px 40px;
            }

            .college-name {
                font-size: 3.5rem;
                margin-bottom: 30px;
            }

            .tagline {
                font-size: 2rem;
            }

            .butterfly {
                width: 70px;
                height: 70px;
                margin: 0 15px;
            }

            .scroll-down {
                bottom: 20px;
            }

            .mission-section {
                padding: 60px 20px;
                margin: 60px auto;
            }

            .section-header {
                margin-bottom: 40px;
            }

            .section-title {
                font-size: 2.3rem;
            }

            .section-description {
                font-size: 1.1rem;
            }

            .history-intro {
                top: 100px;
            }

            .partners-scroller {
                animation-duration: 60s;
            }
        }

        @media (max-width: 768px) {
            .college-name {
                font-size: 3rem;
            }

            .tagline {
                font-size: 1.8rem;
            }

            .butterfly {
                width: 60px;
                height: 60px;
                margin: 0 10px;
            }

            .section-title {
                font-size: 2.3rem;
            }

            .section-description {
                font-size: 1.1rem;
            }

            .history-intro h3 {
                font-size: 1.9rem;
            }

            .stats {
                grid-template-columns: 1fr;
            }

            .timeline-item {
                padding: 25px;
            }

            .history-container {
                flex-direction: column;
                gap: 30px;
            }

            .history-intro {
                position: relative;
                top: auto;
                width: 100%;
                padding: 25px;
            }

            .history-timeline {
                padding-left: 20px;
            }

            .history-timeline::before {
                left: 10px;
            }

            .timeline-item::before {
                left: -20px;
            }

            .partners-container {
                overflow-x: auto;
                justify-content: flex-start;
            }

            .partners-scroller {
                animation: none;
            }

            .partner-card {
                min-width: 180px;
                height: 180px;
                margin: 0 15px;
            }

            .mobile-indicator {
                display: block;
            }

            .controls {
                display: none;
            }

            /* Quote Section */
            .quote-text {
                font-size: 1.5rem;
            }
        }

        @media (max-width: 576px) {
            .header-container {
                padding: 40px 15px;
            }

            .college-name {
                font-size: 2.5rem;
                letter-spacing: 2px;
            }

            .tagline {
                font-size: 1.5rem;
            }

            .tagline-container {
                flex-direction: column;
                margin: 20px 0;
            }

            .butterfly {
                margin: 15px 0;
            }

            .scroll-down {
                bottom: 20px;
            }

            .mission-section {
                margin: 50px auto;
                padding: 40px 15px;
            }

            .section-header {
                margin-bottom: 30px;
            }

            .section-title {
                font-size: 2rem;
            }

            .section-description {
                font-size: 1.05rem;
            }

            .history-section {
                margin: 50px auto 100px auto;
                padding: 0 15px;
            }

            .history-intro {
                padding: 20px;
            }

            .history-intro h3 {
                font-size: 1.7rem;
            }

            .timeline-title {
                font-size: 1.3rem;
            }

            .timeline-content {
                font-size: 1rem;
            }

            .timeline-item .icon {
                top: 20px;
                right: 20px;
                font-size: 1.5rem;
            }

            .partners-section {
                margin: 60px auto;
                padding: 0 15px;
            }

            .partner-card {
                min-width: 160px;
                height: 160px;
                padding: 20px;
                margin: 0 10px;
            }

            .partner-logo {
                max-width: 100px;
            }

            /* Quote Section */
            .quote-container {
                padding: 40px 20px;
            }

            .quote-text {
                font-size: 1.3rem;
            }

            .author-name {
                font-size: 1.4rem;
            }
        }

        /* Team Section Styles */
        .team-section {
            max-width: 1200px;
            margin: 100px auto;
            padding: 0 20px;
            width: 100%;
            position: relative;
        }

        .team-header {
            text-align: center;
            max-width: 800px;
            margin: 0 auto 60px;
            width: 100%;
        }

        .team-title {
            font-size: 2.8rem;
            color: #072ac8;
            margin-bottom: 20px;
            position: relative;
            display: inline-block;
        }

        .team-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: #ffc600;
            border-radius: 2px;
        }

        .team-description {
            font-size: 1.2rem;
            line-height: 1.8;
            color: #444;
            max-width: 700px;
            margin: 0 auto;
        }

        /* Team Grid */
        .team-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }

        /* Flip Card Container */
        .team-member-card {
            perspective: 1000px;
            height: 420px;
            cursor: pointer;
        }

        .flip-card-inner {
            position: relative;
            width: 100%;
            height: 100%;
            transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            transform-style: preserve-3d;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }

        .team-member-card:hover .flip-card-inner {
            transform: rotateY(15deg);
        }

        .team-member-card.flipped .flip-card-inner,
        .team-member-card.flipped:hover .flip-card-inner {
            transform: rotateY(180deg);
        }

        /* Front and back of the card */
        .flip-card-front,
        .flip-card-back {
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            border-radius: 15px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            background: white;
        }

        /* Front card styling */
        .flip-card-front {
            justify-content: center;
            align-items: center;
            padding: 30px;
            border: 3px solid transparent;
            transition: all 0.4s ease;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 247, 247, 0.95) 100%);
        }

        .flip-card-front::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: #072ac8;
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.4s ease;
        }

        .team-member-card:hover .flip-card-front::before {
            transform: scaleX(1);
        }

        .team-member-card:hover .flip-card-front {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(7, 42, 200, 0.15);
        }

        .team-photo-container {
            width: 180px;
            height: 180px;
            border-radius: 50%;
            position: relative;
            margin-bottom: 25px;
            overflow: hidden;
            border: 4px solid white;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
            transition: all 0.4s ease;
        }

        .team-member-card:hover .team-photo-container {
            transform: scale(1.05);
            box-shadow: 0 15px 30px rgba(7, 42, 200, 0.2);
        }

        .team-photo {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: all 0.5s ease;
        }

        .team-member-card:hover .team-photo {
            transform: scale(1.1);
        }

        .team-name {
            font-size: 1.6rem;
            color: #072ac8;
            margin-bottom: 8px;
            text-align: center;
            font-weight: 700;
        }

        .team-position {
            font-size: 1.1rem;
            color: #1e96fc;
            text-align: center;
            font-weight: 500;
            margin-bottom: 15px;
        }

        .flip-indicator {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-top: 15px;
            color: #072ac8;
            font-weight: 500;
            opacity: 0.8;
            transition: all 0.3s ease;
        }

        .flip-indicator i {
            margin-left: 8px;
            transition: transform 0.5s ease;
        }

        .team-member-card:hover .flip-indicator {
            color: #ffc600;
            font-weight: 600;
        }

        .team-member-card:hover .flip-indicator i {
            transform: translateY(5px);
            animation: bounce 1s infinite;
        }

        /* Back card styling */
        .flip-card-back {
            padding: 30px;
            transform: rotateY(180deg);
            justify-content: space-between;
            border: 3px solid rgba(7, 42, 200, 0.1);
            position: relative;
            overflow: hidden;
        }

        .flip-card-back::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: #ffc600;
            transform-origin: left;
        }

        .team-bio {
            font-size: 1rem;
            color: #444;
            line-height: 1.6;
            margin-bottom: 25px;
            position: relative;
            z-index: 2;
        }

        .team-expertise {
            margin-bottom: 20px;
            position: relative;
            z-index: 2;
        }

        .expertise-title {
            font-size: 1.1rem;
            color: #072ac8;
            margin-bottom: 10px;
            font-weight: 700;
            position: relative;
            display: inline-block;
        }

        .expertise-title::after {
            content: '';
            position: absolute;
            bottom: -3px;
            left: 0;
            width: 40px;
            height: 3px;
            background: #ffc600;
            border-radius: 2px;
        }

        .expertise-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .expertise-tag {
            background: rgba(7, 42, 200, 0.1);
            color: #072ac8;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .expertise-tag:hover {
            background: #072ac8;
            color: white;
            transform: translateY(-3px);
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 15px;
            position: relative;
            z-index: 2;
        }

        .social-link {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #072ac8;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .social-link::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #ffc600, #ff9800);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .social-link:hover {
            transform: translateY(-5px) scale(1.1);
            box-shadow: 0 5px 15px rgba(7, 42, 200, 0.3);
        }

        .social-link:hover::after {
            opacity: 1;
        }

        .social-link i {
            position: relative;
            z-index: 1;
        }

        .social-link:hover i {
            color: white;
        }

        .close-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(7, 42, 200, 0.1);
            color: #072ac8;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 3;
            border: none;
        }

        .close-btn:hover {
            background: #072ac8;
            color: white;
            transform: rotate(90deg);
        }

        /* Decorations */
        .flip-card-back .decor-circle {
            position: absolute;
            width: 120px;
            height: 120px;
            border-radius: 50%;
            z-index: 1;
            opacity: 0.1;
        }

        .circle-1 {
            top: -40px;
            right: -40px;
            background: #072ac8;
        }

        .circle-2 {
            bottom: -50px;
            left: -50px;
            background: #ffc600;
            width: 150px;
            height: 150px;
        }

        /* Animations */
        @keyframes bounce {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-8px);
            }
        }

        @keyframes float {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-10px);
            }
        }

        /* Responsive Design */
        @media (max-width: 992px) {
            .team-title {
                font-size: 2.3rem;
            }

            .team-description {
                font-size: 1.1rem;
            }

            .team-grid {
                gap: 25px;
            }
        }

        @media (max-width: 768px) {
            .team-section {
                margin: 80px auto;
            }

            .team-title {
                font-size: 2.3rem;
            }

            .team-description {
                font-size: 1.1rem;
            }

            .team-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            }

            .team-member-card {
                height: 380px;
            }
        }

        @media (max-width: 576px) {
            .team-section {
                margin: 60px auto;
            }

            .team-title {
                font-size: 2rem;
            }

            .team-description {
                font-size: 1.05rem;
            }

            .team-grid {
                grid-template-columns: 1fr;
                max-width: 400px;
                margin: 0 auto;
            }

            .team-member-card {
                height: 360px;
            }

            .team-photo-container {
                width: 160px;
                height: 160px;
            }
        }

        .team-member-card.flipped .team-photo-container {
            animation: none !important;
        }

        /* Add scrollable bio content */
        .bio-content {
            margin-top: 30px;
            flex-grow: 1;
            overflow-y: auto;
            max-height: 200px;
            padding-right: 10px;
            scrollbar-width: thin;
            scrollbar-color: var(--primary-blue) transparent;
        }

        /* Scrollbar styling */
        .bio-content::-webkit-scrollbar {
            width: 6px;
        }

        .bio-content::-webkit-scrollbar-track {
            background: rgba(7, 42, 200, 0.1);
            border-radius: 10px;
        }

        .bio-content::-webkit-scrollbar-thumb {
            background: var(--primary-blue);
            border-radius: 10px;
        }

        /* Adjust card heights for mobile */
        @media (max-width: 768px) {
            .team-member-card {
                height: 420px;
            }

            .flip-card-back {
                justify-content: flex-start;
            }

            .bio-content {
                max-height: 150px;
            }
        }

        @media (max-width: 576px) {
            .team-member-card {
                height: 480px;
            }

            .bio-content {
                max-height: 200px;
            }

            .flip-card-back {
                padding: 25px 20px;
            }
        }

        /* Scroll indicator for mobile */
        .bio-content:after {
            content: '';
            position: absolute;
            bottom: 70px;
            left: 0;
            right: 0;
            height: 20px;
            background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.8));
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .bio-content.scrollable:after {
            opacity: 1;
        }

        .hiring-container {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
            width: 100%;
            max-width: 500px;
            overflow: hidden;
            position: relative;
            padding: 40px;
            text-align: center;
            margin: 80px auto;
            /* Added margin for spacing */
        }

        .hiring-container::before {
            content: '';
            position: absolute;
            top: -50px;
            right: -50px;
            width: 150px;
            height: 150px;
            background: rgba(30, 150, 252, 0.1);
            border-radius: 50%;
            z-index: 0;
        }

        .hiring-container::after {
            content: '';
            position: absolute;
            bottom: -80px;
            left: -50px;
            width: 200px;
            height: 200px;
            background: rgba(255, 198, 0, 0.1);
            border-radius: 50%;
            z-index: 0;
        }

        .header {
            position: relative;
            z-index: 2;
            margin-bottom: 25px;
        }

        .header h1 {
            font-size: 2.8rem;
            color: #072ac8;
            margin-bottom: 15px;
            position: relative;
            display: inline-block;
        }

        .header h1::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(to right, #ffc107, #ff9800);
            border-radius: 2px;
        }

        .content {
            position: relative;
            z-index: 2;
            margin-bottom: 30px;
        }

        .content p {
            font-size: 1.2rem;
            color: #444;
            line-height: 1.7;
            margin-bottom: 25px;
        }

        .hiring-button {
            position: relative;
            z-index: 2;
            background: linear-gradient(135deg, #072ac8, #1e96fc);
            color: white;
            border: none;
            padding: 18px 45px;
            font-size: 1.2rem;
            font-weight: 600;
            border-radius: 50px;
            cursor: pointer;
            overflow: hidden;
            transition: all 0.4s ease;
            box-shadow: 0 8px 20px rgba(7, 42, 200, 0.3);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
        }

        .hiring-button:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 25px rgba(7, 42, 200, 0.4);
        }

        .hiring-button:active {
            transform: translateY(0) scale(0.98);
        }

        .hiring-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            transition: 0.5s;
        }

        .hiring-button:hover::before {
            left: 100%;
        }

        .floating-icons {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 30px;
            position: relative;
            z-index: 2;
        }

        .floating-icons div {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            color: #072ac8;
            background: rgba(7, 42, 200, 0.1);
            animation: float 4s ease-in-out infinite;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .floating-icons div:nth-child(1) {
            animation-delay: 0s;
        }

        .floating-icons div:nth-child(2) {
            animation-delay: 0.5s;
        }

        .floating-icons div:nth-child(3) {
            animation-delay: 1s;
        }

        .pulse-circle {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            border-radius: 20px;
            z-index: 1;
            pointer-events: none;
            opacity: 0;
        }

        .hiring-button.active~.pulse-circle {
            animation: pulse 1.5s ease-out;
        }

        @keyframes float {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-15px);
            }
        }

        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(30, 150, 252, 0.7);
                opacity: 1;
            }

            70% {
                box-shadow: 0 0 0 20px rgba(30, 150, 252, 0);
                opacity: 0.7;
            }

            100% {
                box-shadow: 0 0 0 40px rgba(30, 150, 252, 0);
                opacity: 0;
            }
        }

        .confetti {
            position: absolute;
            width: 15px;
            height: 15px;
            background: #ffc107;
            border-radius: 50%;
            opacity: 0;
            z-index: 3;
        }

        .button-text {
            position: relative;
            z-index: 2;
        }

        .success-message {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(7, 42, 200, 0.95);
            color: white;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 30px;
            border-radius: 20px;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.5s ease;
            z-index: 10;
        }

        .success-message.show {
            opacity: 1;
            pointer-events: all;
        }

        .success-message h2 {
            font-size: 2.5rem;
            margin-bottom: 20px;
            color: #ffc107;
        }

        .success-message p {
            font-size: 1.2rem;
            text-align: center;
            line-height: 1.7;
            margin-bottom: 30px;
            max-width: 400px;
        }

        .close-message {
            background: #ffc107;
            color: #072ac8;
            border: none;
            padding: 12px 30px;
            font-size: 1.1rem;
            font-weight: 600;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .close-message:hover {
            background: white;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        @media (max-width: 600px) {
            .hiring-container {
                padding: 30px 20px;
            }

            .header h1 {
                font-size: 2.2rem;
            }

            .content p {
                font-size: 1.1rem;
            }

            .hiring-button {
                padding: 16px 35px;
                font-size: 1.1rem;
            }

            .floating-icons div {
                width: 50px;
                height: 50px;
                font-size: 1.5rem;
            }
        }