<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>HRIT 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>
        /* === ALL CSS FROM THE SUBHARTI UNIVERSITY PAGE IS PRESERVED HERE === */
        /* The entire stylesheet is identical, ensuring the same layout, animations, and color theme. */
        :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-1523050854058-8df90110c9f1?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&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: none;
            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-university"></i> UGC Approved | AICTE Approved
            </div>
            <h1>HRIT <span>University</span></h1>
            <p class="motto">"Fostering innovation, empowering students, and creating global leaders." </p>
            <div class="hero-stats">
                <div class="stat-item" id="stat-programs">
                    <span class="stat-number" data-target="14">0</span>
                    <span class="stat-label">Faculties & 220+ Programs</span>
                </div>
                <div class="stat-item" id="stat-partnership">
                    <span class="stat-number" data-target="1">0</span>
                    <span class="stat-label">Academic Collaboration with IIT Ropar</span>
                </div>
                <div class="stat-item" id="stat-placements">
                    <span class="stat-number" data-target="30">0+</span>
                    <span class="stat-label">Students Shortlisted (Recent Drive)</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> At a Glance</div>
            <h2>University <span>Quick Facts</span></h2>
        </div>
        <div class="facts-grid">
            <div class="fact-card">
                <i class="fas fa-map-marked-alt"></i>
                <h3>Premier Location</h3>
                <p>Located in Ghaziabad, Delhi NCR, providing students with access to the opportunities of India's national capital region.</p>
            </div>
            <div class="fact-card">
                <i class="fas fa-graduation-cap"></i>
                <h3>Diverse & Inclusive</h3>
                <p>Home to a vibrant community with 44% female students and intercultural diversity, making it a preferred institute in NCR.</p>
            </div>
            <div class="fact-card">
                <i class="fas fa-award"></i>
                <h3>Recognized Excellence</h3>
                <p>Recipient of the Quality Council of India (QCI) certificate for excellence in education and approved by UGC, AICTE, BCI, PCI.</p>
            </div>
            <div class="fact-card">
                <i class="fas fa-users"></i>
                <h3>Industry-Ready Focus</h3>
                <p>Features TCS certified labs and offers overseas study opportunities with Magna Carta College, University of Wales Oxford.</p>
            </div>
        </div>
    </section>

    <!-- Why Choose HRIT & Academic Excellence -->
    <section class="page-section">
        <div class="section-header">
            <div class="section-subtitle"><i class="fas fa-star"></i> The HRIT Advantage</div>
            <h2>Why <span>Choose HRIT?</span></h2>
        </div>
        <div class="features-container">
            <div class="feature-box">
                <h3><i class="fas fa-handshake"></i> Strategic Industry Partnerships</h3>
                <ul class="feature-list">
                    <li><i class="fas fa-university"></i> Academic collaboration with IIT Ropar</li>
                    <li><i class="fas fa-chart-line"></i> MoU with Croma Campus for enhanced IT & corporate placements</li>
                    <li><i class="fas fa-laptop-code"></i> IBM collaboration for BCA (Hons.) & MCA programs</li>
                    <li><i class="fas fa-briefcase"></i> New Center of Excellence on campus for skill development</li>
                </ul>
            </div>
            <div class="feature-box">
                <h3><i class="fas fa-user-graduate"></i> Holistic Student Development</h3>
                <ul class="feature-list">
                    <li><i class="fas fa-wrench"></i> Hands-on, application-oriented courses with practical training</li>
                    <li><i class="fas fa-calendar-alt"></i> Year-round FREE skill development activities & workshops</li>
                    <li><i class="fas fa-plane"></i> Focus on entrepreneurship and start-up promotion</li>
                    <li><i class="fas fa-globe"></i> Opportunity to learn foreign languages for global readiness</li>
                </ul>
            </div>
            <div class="feature-box">
                <h3><i class="fas fa-bullseye"></i> Career-First Approach</h3>
                <ul class="feature-list">
                    <li><i class="fas fa-industry"></i> Regular industrial visits, paid internships, and hackathons</li>
                    <li><i class="fas fa-file-alt"></i> Professional workshops for LinkedIn profiles & résumés</li>
                    <li><i class="fas fa-comments"></i> Mock interviews to build confidence for placements</li>
                    <li><i class="fas fa-network-wired"></i> Strong alumni network providing real-world connections</li>
                </ul>
            </div>
        </div>
    </section>

    <!-- Academic Programs Section -->
    <section class="page-section">
        <div class="section-header">
            <div class="section-subtitle"><i class="fas fa-book-open"></i> Explore Education</div>
            <h2>Academic <span>Programs</span></h2>
        </div>
        <div class="features-container">
            <div class="feature-box">
                <h3><i class="fas fa-laptop-code"></i> Engineering & Technology</h3>
                <p>B.Tech in CSE, AI/ML, Data Science, Civil, Mechanical, ECE, EEE. M.Tech programs available. Known for hands-on training and TCS certified labs.</p>
            </div>
            <div class="feature-box">
                <h3><i class="fas fa-balance-scale"></i> Management, Law & Commerce</h3>
                <p>BBA (Aviation, Logistics), B.Com (Hons.), MBA. BA.LL.B, LL.B, LL.M. Curriculum integrates live projects and industry case studies.</p>
            </div>
            <div class="feature-box">
                <h3><i class="fas fa-stethoscope"></i> Health & Applied Sciences</h3>
                <p>B.Pharm, D.Pharm, M.Pharm. B.Sc in Biotechnology, Microbiology, Forensic Science, Yoga. BPT, GNM in Health Sciences.</p>
            </div>
            <div class="feature-box">
                <h3><i class="fas fa-paint-brush"></i> Computer Apps, Media & More</h3>
                <p>BCA, MCA (IBM Collab.), B.Sc (Computer Science). BA-JMC, Hotel Management (BHMCT), B.Sc Agriculture, and diverse Arts programs.</p>
            </div>
        </div>
    </section>

    <!-- Placement Success Section -->
    <section class="page-section">
        <div class="section-header">
            <div class="section-subtitle"><i class="fas fa-trophy"></i> Career Launchpad</div>
            <h2>Placement <span>Success</span></h2>
            <p style="color: var(--text-gray); max-width: 800px; margin: 10px auto;">The Training & Placement Cell is dedicated to translating academic potential into professional success through industry readiness and strong corporate partnerships.</p>
        </div>

        <div class="placement-table-container">
            <table class="placement-table">
                <thead>
                    <tr>
                        <th>Key Partnership / Drive</th>
                        <th>Focus For</th>
                        <th>Key Benefit / Outcome</th>
                        <th>Timeline / Status</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>Strategic MoU with Croma Campus</td>
                        <td>All Students</td>
                        <td class="highlight">Enhanced IT & Corporate Placements</td>
                        <td>Active (Aug 2025)</td>
                    </tr>
                    <tr>
                        <td>Placement Drive by Planet Spark</td>
                        <td>BBA/BA/MBA/MCA/B.Com</td>
                        <td class="highlight">2025/2026 Batch Opportunities</td>
                        <td>24 Sep 2025</td>
                    </tr>
                    <tr>
                        <td>Placement Drive by EXPANSION SOFT</td>
                        <td>B.Tech CSE / MCA</td>
                        <td class="highlight">Campus Recruitment</td>
                        <td>20 Sep 2025</td>
                    </tr>
                    <tr>
                        <td>Recent Campus Drive Result</td>
                        <td>Multiple Programs</td>
                        <td class="highlight">30+ Shortlisted from 55+ Participants</td>
                        <td>July-Aug 2025</td>
                    </tr>
                </tbody>
            </table>
            <p style="text-align: center; color: var(--text-gray); font-size: 0.9rem; padding: 15px;">Source: Official University Notices & Updates | Special MBA/BBA/B.Com drive scheduled for August.</p>
        </div>
    </section>

    <!-- Student Testimonials -->
    <section class="page-section">
        <div class="section-header">
            <div class="section-subtitle"><i class="fas fa-comment-dots"></i> Alumni Voices</div>
            <h2>Student <span>Testimonials</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">KT</div>
                        <div class="student-details">
                            <h4>Kamlesh Tiwari</h4>
                            <p class="course">B.Tech, Computer Science</p>
                        </div>
                    </div>
                    <p class="testimonial-text">"Graduating with a B.Tech in Computer Science from HRIT was one of my best decisions. The passionate professors, practical curriculum, and internship opportunities gave me real-world skills and connections. HRIT prepared me for success, and I highly recommend it!"</p>
                </div>
                <!-- Slide 2 -->
                <div class="testimonial-slide">
                    <div class="student-info">
                        <div class="student-avatar">PK</div>
                        <div class="student-details">
                            <h4>Pallav Kumar Gopal</h4>
                            <p class="course">MBA</p>
                        </div>
                    </div>
                    <p class="testimonial-text">"These happy times at HRIT added an extra layer of richness to my educational journey. They served as a reminder that learning extends beyond the classroom walls, and that personal happiness is an integral part of the holistic college experience."</p>
                </div>
                <!-- Slide 3 -->
                <div class="testimonial-slide">
                    <div class="student-info">
                        <div class="student-avatar">VM</div>
                        <div class="student-details">
                            <h4>Vaishali Mishra</h4>
                            <p class="course">BCA</p>
                        </div>
                    </div>
                    <p class="testimonial-text">"If you seek quality education and an environment fostering happiness and connections, HRIT is the place to be. Proud to be an HRIT alumna, I cherish the knowledge and values it instilled in me. Thank you, HRIT, for being an outstanding platform for success!"</p>
                </div>
            </div>
            <div class="slider-nav" id="sliderNav">
                <!-- Dots will be 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;">Begin Your HRIT Journey</h2>
            <p style="color: var(--text-gray); font-size: 1.2rem; max-width: 700px; margin: 0 auto 40px;">
                Admissions are open for 2025-26. The university offers a multidisciplinary education under one umbrella in a conducive learning environment in Ghaziabad, NCR.
            </p>
            <button id="enquireBtn" 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-download"></i> Download Information Brochure
            </button>
        </div>

        <div class="section-header">
            <h2>Get In <span>Touch</span></h2>
            <p style="color: var(--text-gray);">Reach out for admissions, placement, or general queries.</p>
        </div>
        <div class="contact-grid">
            <div class="contact-card">
                <i class="fas fa-headset"></i>
                <h4>Central Admission Helpline</h4>
                <p>For All Program Enquiries</p>
                <p class="phone">93555 33833</p>
                <p> Mon-Sat: 10 AM - 5 PM</p>
            </div>
            <div class="contact-card">
                <i class="fas fa-briefcase"></i>
                <h4>Training & Placement Cell</h4>
                <p>Mr. Sanjeev Srivastava, Dean</p>
                <p class="phone">+91-9953320290</p>
                <p> dean.placements@hrituniversity.edu.in</p>
            </div>
            <div class="contact-card">
                <i class="fas fa-map-marker-alt"></i>
                <h4>University Address</h4>
                <p>HRIT University, Ghaziabad</p>
                <p>Delhi-NCR, Uttar Pradesh</p>
                <p>India</p>
            </div>
        </div>
    </section>

    <script>
        // 1. Animated Stats Counter
        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 + (stat.id.includes('placements') ? '+' : '');
                        clearInterval(timer);
                    } else {
                        stat.textContent = Math.floor(current);
                    }
                }, 30);
            });
        }
        // Trigger when hero section is in view
        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
        const track = document.getElementById('testimonialTrack');
        const slides = document.querySelectorAll('.testimonial-slide');
        const navContainer = document.getElementById('sliderNav');
        let currentSlide = 0;
        // Create navigation dots
        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);
            });
        }
        // Auto-slide every 6 seconds
        setInterval(() => {
            currentSlide = (currentSlide + 1) % slides.length;
            goToSlide(currentSlide);
        }, 6000);

        // 3. Button Interactions
        document.getElementById('enquireBtn').addEventListener('click', function() {
            alert('For the official information brochure and detailed fee structure, please visit the official website or contact the admission helpline.');
            this.innerHTML = '<i class="fas fa-spinner fa-spin"></i> Requesting...';
            setTimeout(() => {
                this.innerHTML = '<i class="fas fa-check"></i> Brochure Link Sent!';
                this.style.background = 'linear-gradient(135deg, #00b09b 0%, #96c93d 100%)';
            }, 1500);
        });

        // 4. Fade-in animation on scroll for sections
        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");


?>