<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>GRIT University | Edunet</title>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">



    
<?php
include("header.php");


?>


    <style>
        /* (CSS for styling the entire university page - COMPLETELY UNCHANGED from the previous Subharti University page) */
        /* All CSS variables, animations, layout, and responsive styles remain exactly the same. */
        /* Only the content within the HTML <body> has been updated below. */
        :root {
            --primary-dark: #1e3a8a;
            --primary-blue: #4facfe;
            --primary-light: #00f2fe;
            --accent-orange: #ff9a00;
            --accent-dark-orange: #ff6a00;
            --light-bg: #f8fafc;
            --text-dark: #1e293b;
            --text-gray: #64748b;
            --white: #ffffff;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
        body { background-color: var(--light-bg); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }

        /* University Hero Section */
        .university-hero {
            position: relative;
            width: 100%;
            min-height: 85vh;
            background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(30, 55, 153, 0.85) 100%),
                        url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?ixlib=rb-4.0.3&auto=format&fit=crop&w=2071&q=80');
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            padding: 60px 20px;
            text-align: center;
        }
        .hero-content { position: relative; z-index: 3; max-width: 1200px; width: 100%; }
        .hero-badge {
            display: inline-block;
            background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-dark-orange) 100%);
            color: white;
            padding: 10px 28px;
            border-radius: 30px;
            font-size: 0.95rem;
            font-weight: 600;
            letter-spacing: 0.5px;
            margin-bottom: 25px;
            transform: translateY(30px);
            opacity: 0;
            animation: fadeUp 0.8s ease-out 0.3s forwards;
            box-shadow: 0 8px 20px rgba(255, 106, 0, 0.3);
        }
        .university-hero h1 {
            font-size: 3.8rem;
            font-weight: 800;
            line-height: 1.1;
            margin-bottom: 15px;
            text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            transform: translateY(40px);
            opacity: 0;
            animation: fadeUp 0.8s ease-out 0.5s forwards;
        }
        .university-hero h1 span {
            background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .university-hero .motto {
            font-size: 1.8rem;
            font-weight: 300;
            color: #e2e8ff;
            margin-bottom: 40px;
            transform: translateY(40px);
            opacity: 0;
            animation: fadeUp 0.8s ease-out 0.7s forwards;
        }
        .hero-stats {
            display: flex;
            justify-content: center;
            gap: 50px;
            flex-wrap: wrap;
            margin-top: 40px;
        }
        .stat-item {
            text-align: center;
            transform: translateY(40px);
            opacity: 0;
        }
        .stat-item:nth-child(1) { animation: fadeUp 0.8s ease-out 0.9s forwards; }
        .stat-item:nth-child(2) { animation: fadeUp 0.8s ease-out 1.1s forwards; }
        .stat-item:nth-child(3) { animation: fadeUp 0.8s ease-out 1.3s forwards; }
        .stat-number {
            display: block;
            font-size: 3rem;
            font-weight: 800;
            color: var(--primary-blue);
            margin-bottom: 5px;
            line-height: 1;
        }
        .stat-label {
            font-size: 1rem;
            color: #e2e8ff;
            font-weight: 500;
            max-width: 150px;
        }
        @keyframes fadeUp { to { transform: translateY(0); opacity: 1; } }

        /* Main Content Sections */
        .page-section {
            max-width: 1300px;
            margin: 80px auto;
            padding: 0 25px;
        }
        .section-header {
            text-align: center;
            margin-bottom: 60px;
        }
        .section-subtitle {
            display: inline-block;
            background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-dark-orange) 100%);
            color: white;
            padding: 8px 24px;
            border-radius: 30px;
            font-size: 0.9rem;
            font-weight: 600;
            letter-spacing: 1px;
            margin-bottom: 20px;
        }
        .section-title {
            font-size: 2.8rem;
            font-weight: 800;
            line-height: 1.1;
            margin-bottom: 20px;
            color: var(--primary-dark);
        }
        .section-title span {
            background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* Quick Facts Grid */
        .facts-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
            margin-top: 40px;
        }
        .fact-card {
            background: var(--white);
            border-radius: 18px;
            padding: 30px;
            box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border-left: 5px solid var(--primary-blue);
        }
        .fact-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 18px 45px rgba(0, 0, 0, 0.1);
        }
        .fact-card i {
            font-size: 2.5rem;
            margin-bottom: 20px;
            color: var(--primary-blue);
        }
        .fact-card h3 {
            font-size: 1.4rem;
            color: var(--primary-dark);
            margin-bottom: 12px;
        }
        .fact-card p {
            color: var(--text-gray);
            font-size: 1rem;
        }

        /* Why Choose & Academics */
        .features-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 30px;
            margin-top: 30px;
        }
        .feature-box {
            background: var(--white);
            border-radius: 18px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
            transition: all 0.4s ease;
        }
        .feature-box:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
        }
        .feature-box h3 {
            color: var(--primary-dark);
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 1.5rem;
        }
        .feature-box h3 i {
            color: var(--accent-orange);
        }
        .feature-list { list-style: none; }
        .feature-list li {
            padding: 10px 0;
            border-bottom: 1px dashed #e2e8f0;
            color: var(--text-gray);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .feature-list li:last-child { border-bottom: none; }
        .feature-list li i { color: var(--primary-blue); font-size: 0.9rem; }

        /* Placement Stats Table */
        .placement-table-container {
            overflow-x: auto;
            margin-top: 30px;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
        }
        .placement-table {
            width: 100%;
            border-collapse: collapse;
            background: var(--white);
            border-radius: 15px;
            overflow: hidden;
        }
        .placement-table thead {
            background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
            color: white;
        }
        .placement-table th {
            padding: 20px 15px;
            text-align: left;
            font-weight: 600;
            font-size: 1.1rem;
        }
        .placement-table tbody tr {
            border-bottom: 1px solid #f1f5f9;
            transition: background 0.3s ease;
        }
        .placement-table tbody tr:hover { background: #f0f9ff; }
        .placement-table td {
            padding: 18px 15px;
            color: var(--text-dark);
            font-weight: 500;
        }
        .placement-table .highlight { color: var(--accent-dark-orange); font-weight: 700; }

        /* Testimonial Slider */
        .testimonial-slider {
            position: relative;
            max-width: 900px;
            margin: 60px auto;
            overflow: hidden;
            border-radius: 20px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
        }
        .testimonial-track {
            display: flex;
            transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        .testimonial-slide {
            min-width: 100%;
            padding: 50px;
            background: var(--white);
            box-sizing: border-box;
        }
        .student-info {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 25px;
        }
        .student-avatar {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.8rem;
            font-weight: 700;
        }
        .student-details h4 {
            color: var(--primary-dark);
            font-size: 1.3rem;
            margin-bottom: 5px;
        }
        .student-details .course { color: var(--accent-orange); font-weight: 600; }
        .testimonial-text {
            font-size: 1.15rem;
            line-height: 1.7;
            color: var(--text-gray);
            font-style: italic;
            position: relative;
            padding-left: 25px;
        }
        .testimonial-text:before {
            content: '"';
            position: absolute;
            left: 0;
            top: -10px;
            font-size: 4rem;
            color: var(--primary-blue);
            opacity: 0.2;
            font-family: serif;
        }
        .slider-nav {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 30px;
        }
        .slider-dot {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: #cbd5e1;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .slider-dot.active { background: var(--primary-blue); transform: scale(1.3); }

        /* CTA & Contact */
        .cta-section {
            text-align: center;
            padding: 70px 30px;
            background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
            border-radius: 25px;
            margin: 80px auto;
            max-width: 1100px;
        }
        .contact-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            margin-top: 50px;
        }
        .contact-card {
            background: var(--white);
            padding: 35px;
            border-radius: 18px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
            text-align: center;
            transition: transform 0.4s ease;
        }
        .contact-card:hover { transform: translateY(-10px); }
        .contact-card i {
            font-size: 2.8rem;
            margin-bottom: 20px;
            color: var(--primary-blue);
        }
        .contact-card h4 {
            color: var(--primary-dark);
            margin-bottom: 15px;
            font-size: 1.4rem;
        }
        .contact-card p { color: var(--text-gray); margin-bottom: 5px; }
        .contact-card .phone { color: var(--accent-dark-orange); font-weight: 700; font-size: 1.2rem; }

        /* Responsive Design */
        @media (max-width: 992px) {
            .university-hero h1 { font-size: 3rem; }
            .hero-stats { gap: 30px; }
            .section-title { font-size: 2.3rem; }
        }
        @media (max-width: 768px) {
            .university-hero { min-height: auto; padding: 80px 20px; }
            .university-hero h1 { font-size: 2.4rem; }
            .motto { font-size: 1.4rem; }
            .hero-stats { gap: 25px; }
            .stat-number { font-size: 2.3rem; }
            .page-section { margin: 60px auto; }
            .testimonial-slide { padding: 35px 25px; }
            .contact-card { padding: 25px; }
        }
        @media (max-width: 576px) {
            .university-hero h1 { font-size: 2rem; }
            .section-title { font-size: 1.9rem; }
            .facts-grid, .features-container { grid-template-columns: 1fr; }
            .placement-table th, .placement-table td { padding: 12px 10px; font-size: 0.9rem; }
        }
    </style>
</head>
<body>
    <!-- University Hero Section -->
    <section class="university-hero">
        <div class="hero-content">
            <div class="hero-badge">
                <i class="fas fa-rocket"></i> Where Resilience Meets Innovation
            </div>
            <h1>GRIT <span>University</span></h1>
            <p class="motto">"Building Character, Developing Leaders, Creating Entrepreneurs"</p>
            <div class="hero-stats">
                <div class="stat-item" id="stat-partners">
                    <span class="stat-number" data-target="50">0</span>
                    <span class="stat-label">Global University Partners</span>
                </div>
                <div class="stat-item" id="stat-impact">
                    <span class="stat-number" data-target="84">0</span>
                    <span class="stat-label">% At-Risk Students Retained[citation:2]</span>
                </div>
                <div class="stat-item" id="stat-interns">
                    <span class="stat-number" data-target="500">0</span>
                    <span class="stat-label">Interns & Alumni Network</span>
                </div>
            </div>
        </div>
    </section>

    <!-- Quick Facts Section -->
    <section class="page-section">
        <div class="section-header">
            <div class="section-subtitle"><i class="fas fa-lightbulb"></i> Our Model</div>
            <h2>The GRIT <span>Difference</span></h2>
        </div>
        <div class="facts-grid">
            <div class="fact-card">
                <i class="fas fa-handshake"></i>
                <h3>A Global Education Network</h3>
                <p>We are not a traditional campus. We are a dynamic network that partners with top universities worldwide to embed entrepreneurship and resilience directly into their curricula[citation:2][citation:3].</p>
            </div>
            <div class="fact-card">
                <i class="fas fa-brain"></i>
                <h3>Transformative Mindset Training</h3>
                <p>Our core philosophy transforms limiting beliefs. Programs show 81% of students report an increased sense of belonging and 75% improve their academic attainment[citation:2][citation:6].</p>
            </div>
            <div class="fact-card">
                <i class="fas fa-briefcase"></i>
                <h3>Real-World Entrepreneurship</h3>
                <p>Our flagship in-person internship teaches leadership, sales, and all aspects of running a business. Interns earn a weekly salary plus profit sharing[citation:1][citation:7].</p>
            </div>
            <div class="fact-card">
                <i class="fas fa-microchip"></i>
                <h3>Bridge to Deep Tech Industry</h3>
                <p>Through the Grit Network, we connect academic research from top labs (like Stanford, CMU) with industry partners and venture capital to commercialize breakthrough technologies[citation:3].</p>
            </div>
        </div>
    </section>

    <!-- The GRIT Advantage -->
    <section class="page-section">
        <div class="section-header">
            <div class="section-subtitle"><i class="fas fa-star"></i> Core Programmes</div>
            <h2>Our <span>Pathways</span></h2>
        </div>
        <div class="features-container">
            <div class="feature-box">
                <h3><i class="fas fa-user-graduate"></i> University Partnership Programmes</h3>
                <p>Co-created workshops for students and staff that increase self-efficacy, agency, and resilience. We partner on access programmes and support culture change for the long term[citation:2][citation:6].</p>
                <ul class="feature-list">
                    <li><i class="fas fa-chart-line"></i> Increase Student Retention & Attainment</li>
                    <li><i class="fas fa-users"></i> Build Staff Coaching Capacity</li>
                    <li><i class="fas fa-heart"></i> Foster Belonging for All Students</li>
                </ul>
            </div>
            <div class="feature-box">
                <h3><i class="fas fa-campground"></i> GRIT University Internship</h3>
                <p>A rigorous 6-week summer program developing leadership and entrepreneurial skills by running an actual business. Includes mental, physical, and emotional training with personal mentorship[citation:1][citation:7].</p>
                <ul class="feature-list">
                    <li><i class="fas fa-money-bill-wave"></i> Weekly Salary + Profit Share</li>
                    <li><i class="fas fa-user-tie"></i> 1-on-1 Mentor from Industry</li>
                    <li><i class="fas fa-tasks"></i> Manage Teams & Real Projects</li>
                </ul>
            </div>
            <div class="feature-box">
                <h3><i class="fas fa-robot"></i> The GRIT Network</h3>
                <p>Our deep-tech ecosystem connects founders, labs, and industry. We invest $100k in lab-stage startups, run accelerator programs, and host summits on AI, Robotics, and Energy[citation:3].</p>
                <ul class="feature-list">
                    <li><i class="fas fa-flask"></i> Lab Investment Program</li>
                    <li><i class="fas fa-network-wired"></i> Industry-Academia Summits</li>
                    <li><i class="fas fa-university"></i> University Fellows Programme</li>
                </ul>
            </div>
        </div>
    </section>

    <!-- Academic & Training Programs -->
    <section class="page-section">
        <div class="section-header">
            <div class="section-subtitle"><i class="fas fa-book-open"></i> Curriculum & Training</div>
            <h2>Learning <span>Experiences</span></h2>
        </div>
        <div class="features-container">
            <div class="feature-box">
                <h3><i class="fas fa-door-open"></i> Door-to-Door Entrepreneurship</h3>
                <p>Practical, skill-based courses derived from our internship. Free online curriculum with 5.5 hours of video content on sales, negotiation, time management, and mastering the business pitch[citation:8].</p>
            </div>
            <div class="feature-box">
                <h3><i class="fas fa-shield-alt"></i> Resilience Online Course</h3>
                <p>Specialized course for ages 10-18 to develop mental strength, manage pressure, and build perseverance. Teaches practical strategies for coping with challenges and setbacks[citation:9].</p>
            </div>
            <div class="feature-box">
                <h3><i class="fas fa-gem"></i> The GRIT Test</h3>
                <p>An innovative assessment that measures motivation, consistency, and drive—key predictors of success. Offers significant scholarships and helps level the playing field in admissions[citation:10].</p>
            </div>
        </div>
    </section>

    <!-- Internship & Placement Success -->
    <section class="page-section">
        <div class="section-header">
            <div class="section-subtitle"><i class="fas fa-trophy"></i> Proven Outcomes</div>
            <h2>Internship <span>Impact</span></h2>
            <p style="color: var(--text-gray); max-width: 800px; margin: 10px auto;">Our internship graduates emerge as capable leaders and entrepreneurs, with proven success in managing teams, projects, and generating significant revenue.</p>
        </div>

        <div class="placement-table-container">
            <table class="placement-table">
                <thead>
                    <tr>
                        <th>Intern | University</th>
                        <th>Summer</th>
                        <th>Key Achievement</th>
                        <th>Earnings & Outcome</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td><strong>Kevin Butler</strong><br>Stetson University[citation:1]</td>
                        <td>2023</td>
                        <td>Helped manage 33 counselors and 457 campers</td>
                        <td class="highlight">$10,000 (2nd summer)</td>
                    </tr>
                    <tr>
                        <td><strong>Christian Cosper</strong><br>Florida State University[citation:1]</td>
                        <td>2023</td>
                        <td>Eagle Scout; Basketball coach/trainer</td>
                        <td class="highlight">$7,500</td>
                    </tr>
                    <tr>
                        <td><strong>Colby Harris</strong><br>Fernandina Beach HS -> Staff[citation:1]</td>
                        <td>2021</td>
                        <td>Managed 15+ counselors, 281 campers</td>
                        <td class="highlight">$10,000 → Hired Full-Time</td>
                    </tr>
                    <tr>
                        <td><strong>Dylan Tedder</strong><br>Valdosta State University[citation:1]</td>
                        <td>2020</td>
                        <td>2-time National Tae Kwon Do Champion</td>
                        <td class="highlight">$6,000 Profit</td>
                    </tr>
                </tbody>
            </table>
        </div>
    </section>

    <!-- Student Testimonials -->
    <section class="page-section">
        <div class="section-header">
            <div class="section-subtitle"><i class="fas fa-comment-dots"></i> Real Voices</div>
            <h2>Experience <span>GRIT</span></h2>
        </div>
        <div class="testimonial-slider">
            <div class="testimonial-track" id="testimonialTrack">
                <!-- Slide 1 -->
                <div class="testimonial-slide">
                    <div class="student-info">
                        <div class="student-avatar">KB</div>
                        <div class="student-details">
                            <h4>Kevin Butler</h4>
                            <p class="course">Stetson University | D-1 Football Player[citation:1]</p>
                        </div>
                    </div>
                    <p class="testimonial-text">"GRIT University was the most challenging and rewarding summer of my life. Learning to lead a team of 33 counselors for 457 campers taught me more about real leadership and business than any classroom ever could. Earning $10,000 through my own effort was just the bonus."</p>
                </div>
                <!-- Slide 2 -->
                <div class="testimonial-slide">
                    <div class="student-info">
                        <div class="student-avatar">LH</div>
                        <div class="student-details">
                            <h4>Louise Banahene</h4>
                            <p class="course">Director of Educational Engagement, University of Leeds[citation:2]</p>
                        </div>
                    </div>
                    <p class="testimonial-text">"GRIT creates a rigorously supportive AND challenging space for students to reflect. They come to appreciate who they are and get clarity about what is possible. We see the impact through high levels of engagement and the continued benefit participants report."</p>
                </div>
                <!-- Slide 3 -->
                <div class="testimonial-slide">
                    <div class="student-info">
                        <div class="student-avatar">CC</div>
                        <div class="student-details">
                            <h4>Christian Cosper</h4>
                            <p class="course">Florida State University | Eagle Scout[citation:1]</p>
                        </div>
                    </div>
                    <p class="testimonial-text">"As an Eagle Scout and athlete, I thought I knew discipline. GRIT University redefined it. The combination of morning workouts, running a business, and direct sales pitches pushed me to new limits. The profit-sharing model made the success of 'our' business incredibly personal and motivating."</p>
                </div>
            </div>
            <div class="slider-nav" id="sliderNav">
                <!-- Dots added by JS -->
            </div>
        </div>
    </section>

    <!-- Contact & CTA Section -->
    <section class="page-section">
        <div class="cta-section">
            <h2 style="color: var(--primary-dark); margin-bottom: 15px;">Develop Your GRIT</h2>
            <p style="color: var(--text-gray); font-size: 1.2rem; max-width: 700px; margin: 0 auto 40px;">
                Whether you are a <strong>university seeking a transformative partner</strong>, a <strong>student wanting our internship</strong>, or an <strong>industry leader looking to connect with deep-tech innovation</strong>, reach out to join our network.
            </p>
            <button id="exploreBtn" style="background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%); color: white; border: none; padding: 18px 45px; font-size: 1.2rem; font-weight: 600; border-radius: 50px; cursor: pointer; transition: all 0.4s ease; box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3);">
                <i class="fas fa-compass"></i> Explore Partnership Opportunities
            </button>
        </div>

        <div class="section-header">
            <h2>Connect With <span>Our Network</span></h2>
        </div>
        <div class="contact-grid">
            <div class="contact-card">
                <i class="fas fa-university"></i>
                <h4>For University Partnerships</h4>
                <p>Embed GRIT programmes into your institution.</p>
                <p>Enquire about workshops, staff training, and long-term culture change collaborations[citation:2][citation:6].</p>
            </div>
            <div class="contact-card">
                <i class="fas fa-user-graduate"></i>
                <h4>For Students & Interns</h4>
                <p>Apply for the GRIT University Summer Internship.</p>
                <p class="phone">Visit grit.org/grituniversity[citation:1]</p>
                <p>Develop leadership and entrepreneurial skills in a real business environment.</p>
            </div>
            <div class="contact-card">
                <i class="fas fa-industry"></i>
                <h4>For Industry & Venture</h4>
                <p>Connect with the GRIT Network.</p>
                <p>Access top deep-tech research, startups, and talent from partner universities like Stanford, CMU, and UT Austin[citation:3].</p>
            </div>
        </div>
    </section>

    <script>
        // 1. Animated Stats Counter (Identical functionality)
        function animateStats() {
            const statElements = document.querySelectorAll('.stat-number');
            statElements.forEach(stat => {
                const target = parseInt(stat.getAttribute('data-target'));
                const increment = target / 60;
                let current = 0;
                const timer = setInterval(() => {
                    current += increment;
                    if (current >= target) {
                        stat.textContent = target;
                        clearInterval(timer);
                    } else {
                        stat.textContent = Math.floor(current);
                    }
                }, 30);
            });
        }
        const observer = new IntersectionObserver((entries) => {
            if (entries[0].isIntersecting) {
                animateStats();
                observer.unobserve(entries[0].target);
            }
        }, { threshold: 0.5 });
        observer.observe(document.querySelector('.university-hero'));

        // 2. Testimonial Slider Functionality (Identical functionality)
        const track = document.getElementById('testimonialTrack');
        const slides = document.querySelectorAll('.testimonial-slide');
        const navContainer = document.getElementById('sliderNav');
        let currentSlide = 0;
        slides.forEach((_, index) => {
            const dot = document.createElement('div');
            dot.classList.add('slider-dot');
            if (index === 0) dot.classList.add('active');
            dot.addEventListener('click', () => goToSlide(index));
            navContainer.appendChild(dot);
        });
        const dots = document.querySelectorAll('.slider-dot');
        function goToSlide(n) {
            currentSlide = n;
            track.style.transform = `translateX(-${currentSlide * 100}%)`;
            dots.forEach((dot, idx) => {
                dot.classList.toggle('active', idx === currentSlide);
            });
        }
        setInterval(() => {
            currentSlide = (currentSlide + 1) % slides.length;
            goToSlide(currentSlide);
        }, 6000);

        // 3. Button Interactions (Updated text)
        document.getElementById('exploreBtn').addEventListener('click', function() {
            alert('Redirecting to GRIT partnership inquiry portal. This demo simulates the action.');
            this.innerHTML = '<i class="fas fa-spinner fa-spin"></i> Connecting...';
            setTimeout(() => {
                this.innerHTML = '<i class="fas fa-check"></i> Inquiry Sent!';
                this.style.background = 'linear-gradient(135deg, #00b09b 0%, #96c93d 100%)';
            }, 1500);
        });

        // 4. Fade-in animation on scroll for sections (Identical functionality)
        const sectionObserver = new IntersectionObserver((entries) => {
            entries.forEach(entry => {
                if (entry.isIntersecting) {
                    entry.target.style.opacity = '1';
                    entry.target.style.transform = 'translateY(0)';
                }
            });
        }, { threshold: 0.1 });
        document.querySelectorAll('.page-section').forEach(section => {
            section.style.opacity = '0';
            section.style.transform = 'translateY(30px)';
            section.style.transition = 'opacity 0.8s ease, transform 0.8s ease';
            sectionObserver.observe(section);
        });
    </script>


<?php
include("footer.php");


?>