academy/resources/views/welcome.blade.php

1319 lines
46 KiB
PHP

@extends('layouts.app')
@section('title', 'Home')
@push('styles')
<link rel="preload" as="image"
href="https://images.unsplash.com/photo-1517524206127-48bbd363f3d7?auto=format&fit=crop&w=1600&q=80"
fetchpriority="high">
<link rel="stylesheet" href="{{ asset('css/pages/home.css') }}">
@endpush
@section('content')
<style>
:root {
/* Modern, Sleek Automotive Palette */
--primary: #0F2C59; /* Deep Navy */
--secondary: #E36414; /* Electric Industrial Orange */
--secondary-hover: #C5530E; /* Deeper burnt orange */
--accent-light: #E6FFFA;
--accent-blue: #3085C3; /* Premium Tech Blue */
--bg-light: #F4F6F9; /* Soft slate light gray */
/* Semantic Adjustments */
--text-main: #1E293B;
--text-muted: #64748B;
--card-border: rgba(15, 44, 89, 0.08);
--shadow-color: rgba(15, 44, 89, 0.06);
}
/* ===== Global Improvements ===== */
body {
font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
color: #1E293B;
background-color: #ffffff;
}
.section {
padding: 53px 0;
}
.section-title, h2, h3, h4, h5, h6 {
font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
font-weight: 700;
letter-spacing: -0.01em;
color: var(--primary);
}
/* ===== Premium Theme Buttons ===== */
.btn-theme {
background: #822424;
color: #fff;
padding: 14px 32px;
border-radius: 999px;
font-weight: 700;
box-shadow: none;
transition: transform 0.3s ease, background-color 0.3s ease;
}
.btn-theme:hover {
background: rgba(130, 36, 36, 0.92);
border-color: #fff;
color: #fff;
transform: translateY(-4px);
box-shadow: none;
}
.btn-outline-theme {
background: rgba(255, 255, 255, 0.12);
color: #fff;
border: 2px solid rgba(255, 255, 255, 0.95);
padding: 12px 32px;
border-radius: 999px;
font-weight: 600;
box-shadow: none;
transition: transform 0.3s ease, background-color 0.3s ease;
backdrop-filter: blur(12px);
}
.btn-outline-theme:hover {
background: rgba(255, 255, 255, 0.95);
color: var(--primary);
transform: translateY(-4px);
box-shadow: none;
}
.btn-outline-light-custom {
background: #f2e862;
color: #000000;
border: 2px solid rgba(255, 255, 255, 0.28);
padding: 12px 32px;
border-radius: 999px;
font-weight: 600;
backdrop-filter: blur(12px);
box-shadow: none;
transition: transform 0.3s ease, background-color 0.3s ease;
}
.btn-outline-light-custom:hover {
background: #f2e862;
color: var(--primary);
border-color: #fff;
transform: translateY(-4px);
box-shadow: none;
}
.hero {
min-height: 92vh;
position: relative;
overflow: hidden;
display: flex;
align-items: center;
box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.28);
}
.hero-slideshow {
position: absolute;
inset: 0;
z-index: 0;
}
.hero-slide {
position: absolute;
inset: 0;
background-position: center;
background-size: cover;
opacity: 0;
transform: scale(1);
transition: opacity 2s ease-in-out, transform 7s ease-out;
}
.hero-slide.active {
opacity: 1;
transform: scale(1.09);
}
.hero-dots {
position: absolute;
left: 0;
right: 0;
bottom: 26px;
z-index: 3;
display: flex;
justify-content: center;
gap: 10px;
}
.hero-dot {
width: 10px;
height: 10px;
border-radius: 50%;
border: 2px solid rgba(255, 255, 255, 0.6);
background: rgba(255, 255, 255, 0.15);
padding: 0;
cursor: pointer;
transition: all 0.3s ease;
}
.hero-dot:hover {
background: rgba(255, 255, 255, 0.5);
}
.hero-dot.active {
background: #f2e862;
border-color: #f2e862;
width: 26px;
border-radius: 999px;
}
.hero-overlay {
position: absolute;
inset: 0;
z-index: 1;
background: linear-gradient(rgba(207, 226, 255, 0.88), rgba(0, 9, 15, 0.75));
pointer-events: none;
}
.hero::before {
content: '';
position: absolute;
inset: 0;
z-index: 2;
background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 28%),
radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.08), transparent 30%);
pointer-events: none;
}
.hero-content {
position: relative;
z-index: 3;
width: 100%;
max-width: 980px;
margin: 0 auto;
padding: 48px 24px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
color: #fff;
}
.hero-badge {
display: inline-flex;
align-items: center;
gap: 8px;
background: rgba(255, 255, 255, 0.12);
border: 1px solid rgba(255, 255, 255, 0.25);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
color: #fff;
font-size: 13px;
font-weight: 600;
letter-spacing: 0.04em;
text-transform: uppercase;
padding: 8px 18px;
border-radius: 999px;
margin-bottom: 22px;
}
.hero-badge i {
color: #f2e862;
}
.hero h1 {
font-size: clamp(3rem, 5vw, 5.2rem);
font-weight: 800;
margin: 0;
line-height: 1.05;
letter-spacing: -0.04em;
text-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}
.hero p {
font-size: clamp(1rem, 1.2vw, 1.4rem);
max-width: 760px;
margin: 24px auto 0;
color: rgba(255, 255, 255, 0.92);
letter-spacing: 0.01em;
}
.hero .d-flex {
margin-top: 36px;
z-index: 1;
}
.hero .btn {
min-width: 170px;
}
.hero .btn + .btn {
margin-left: 10px;
}
.hero-stats {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 14px;
margin-top: 44px;
z-index: 1;
position: relative;
}
.hero-stat-pill {
display: flex;
align-items: center;
gap: 10px;
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.18);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border-radius: 999px;
padding: 10px 20px;
color: #fff;
transition: transform 0.3s ease, background-color 0.3s ease;
}
.hero-stat-pill:hover {
transform: translateY(-3px);
background: rgba(255, 255, 255, 0.16);
}
.hero-stat-pill strong {
font-size: 17px;
font-weight: 800;
line-height: 1;
font-variant-numeric: tabular-nums;
}
.hero-stat-pill span {
font-size: 12px;
color: rgba(255, 255, 255, 0.78);
display: block;
letter-spacing: 0.02em;
}
.section-eyebrow {
display: inline-flex;
align-items: center;
gap: 8px;
text-transform: uppercase;
font-weight: 700;
font-size: 12.5px;
letter-spacing: 0.1em;
color: #822424;
background: rgba(130, 36, 36, 0.07);
padding: 7px 16px;
border-radius: 999px;
margin-bottom: 14px;
}
.courses-section {
background-color: var(--bg-light);
}
.course-card {
position: relative;
border: 1px solid var(--card-border);
border-radius: 18px;
overflow: hidden;
background: #fff;
transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.4s ease;
box-shadow: 0 5px 15px var(--shadow-color);
}
.course-card::after {
content: '';
position: absolute;
inset: 0;
z-index: 3;
pointer-events: none;
background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
transform: translateX(-120%);
transition: transform 0.9s ease;
}
.course-card:hover::after {
transform: translateX(120%);
}
.course-card:hover {
transform: translateY(-8px);
box-shadow: 0 24px 45px rgba(15, 44, 89, 0.16);
border-color: rgba(48, 133, 195, 0.25);
}
.course-image-wrapper {
position: relative;
overflow: hidden;
height: 210px;
}
.course-card img {
height: 100%;
width: 100%;
object-fit: cover;
transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.course-card:hover img {
transform: scale(1.12);
}
.courses-section .row.g-4 > div {
perspective: 1200px;
}
.badge-floating {
position: absolute;
top: 15px;
left: 15px;
display: inline-flex;
align-items: center;
gap: 5px;
background: #BC1A1A;
color: #fff;
font-weight: 700;
font-size: 11px;
padding: 5px 12px;
border-radius: 30px;
text-transform: uppercase;
letter-spacing: 0.05em;
z-index: 2;
box-shadow: 0 4px 10px rgba(0,0,0,0.15), 0 0 0 0 rgba(188, 26, 26, 0.45);
animation: badgePulse 2.4s ease-out infinite;
}
@keyframes badgePulse {
0% { box-shadow: 0 4px 10px rgba(0,0,0,0.15), 0 0 0 0 rgba(188, 26, 26, 0.45); }
70% { box-shadow: 0 4px 10px rgba(0,0,0,0.15), 0 0 0 8px rgba(188, 26, 26, 0); }
100% { box-shadow: 0 4px 10px rgba(0,0,0,0.15), 0 0 0 0 rgba(188, 26, 26, 0); }
}
.course-card .card-body {
padding: 24px;
display: flex;
flex-direction: column;
flex-grow: 1;
}
.course-title {
font-size: 20px;
font-weight: 700;
color: var(--primary);
margin-bottom: 8px;
line-height: 1.4;
transition: color 0.3s ease;
}
.course-card:hover .course-title {
color: #914040;
}
.course-author {
font-size: 13.5px;
font-weight: 500;
color: var(--accent-blue);
margin-bottom: 12px;
display: flex;
align-items: center;
gap: 6px;
}
.course-short-desc {
font-size: 14px;
color: #556575;
line-height: 1.6;
margin-bottom: 15px;
}
.course-features-container {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 15px;
}
.feature-pill {
background: rgba(48, 133, 195, 0.08);
color: var(--accent-blue);
font-size: 12px;
font-weight: 600;
padding: 4px 10px;
border-radius: 6px;
display: inline-flex;
align-items: center;
gap: 6px;
transition: transform 0.3s ease, background-color 0.3s ease;
}
.course-card:hover .feature-pill {
background: rgba(48, 133, 195, 0.15);
transform: translateY(-2px);
}
.course-footer {
margin-top: auto;
padding-top: 15px;
border-top: 1px solid rgba(15, 44, 89, 0.08);
}
.course-meta-row {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 15px;
}
.rating-star {
color: #f39c12;
font-weight: 700;
font-size: 14px;
display: inline-flex;
align-items: center;
gap: 6px;
}
.rating-count {
color: var(--text-muted);
font-weight: 500;
}
.status-chip {
display: inline-flex;
align-items: center;
gap: 5px;
background: rgba(46, 204, 113, 0.1);
padding: 4px 10px;
border-radius: 999px;
}
.star-rating {
position: relative;
display: inline-block;
font-size: 12px;
line-height: 1;
letter-spacing: 2px;
}
.star-rating-bg {
color: #dde3ea;
}
.star-rating-fill {
position: absolute;
top: 0;
left: 0;
overflow: hidden;
white-space: nowrap;
width: 0;
color: #f39c12;
transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.star-rating.filled .star-rating-fill {
width: calc(var(--rating) / 5 * 100%);
}
.read-btn {
background:#822424;
color: white;
padding: 12px 20px;
font-weight: 700;
border-radius: 14px;
font-size: 14px;
transition: all 0.3s ease;
text-decoration: none;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}
.read-btn .read-btn-arrow {
transition: transform 0.3s ease;
}
.course-card:hover .read-btn {
background: #6a1c1c;
color: #fff;
box-shadow: 0 8px 18px rgba(130, 36, 36, 0.3);
}
.course-card:hover .read-btn .read-btn-arrow {
transform: translateX(4px);
}
/* ===== Why Choose Us ===== */
.why-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(rgba(17, 17, 39, 0.9), rgba(0, 9, 15, 0.6)), url('https://images.unsplash.com/photo-1581093803931-46e730e7622e?auto=format&fit=crop&w=1600&q=80');
background-position: center;
background-size: cover;
z-index: 1;
}
.why-content-wrapper {
position: relative;
z-index: 2;
}
.custom-feature-card {
background: rgba(255, 255, 255, 0.43);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 20px;
padding: 36px 30px;
transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.custom-feature-card:hover {
transform: translateY(-8px);
background: rgba(0, 0, 0, 0.07);
border-color: rgb(255, 255, 255);
box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}
.icon-box {
background: #6a2525;
color: #FFE618;
width: 64px;
height: 64px;
border-radius: 16px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 22px;
box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
transition: all 0.35s ease;
}
.custom-feature-card:hover .icon-box {
transform: scale(1.08) rotate(-4deg);
}
.custom-feature-card:hover .icon-box {
background: #6a2525;
color: #faf9f5;
}
/* ===== Animations ===== */
.animate-on-scroll {
opacity: 0;
transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up-init { transform: translateY(34px) scale(0.98); }
.zoom-in-init { transform: scale(0.95); }
.animate-on-scroll.animated {
opacity: 1;
transform: translateY(0) scale(1);
}
/* ===== CTA Callout ===== */
.cta-card {
background: linear-gradient(135deg, var(--primary), #1a3f7a);
border-radius: 28px;
padding: 40px 40px;
position: relative;
overflow: hidden;
box-shadow: 0 25px 60px rgba(15, 44, 89, 0.25);
}
.cta-card::before {
content: '';
position: absolute;
inset: 0;
background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 40%),
radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.08), transparent 45%);
pointer-events: none;
}
.cta-glow {
position: absolute;
width: 340px;
height: 340px;
border-radius: 50%;
filter: blur(90px);
pointer-events: none;
opacity: 0.35;
}
.cta-glow-1 {
top: -120px;
left: -80px;
background: var(--accent-blue);
}
.cta-glow-2 {
bottom: -140px;
right: -60px;
background: var(--secondary);
}
.cta-card > *:not(.cta-glow) {
position: relative;
z-index: 1;
}
.cta-eyebrow {
display: inline-flex;
align-items: center;
gap: 8px;
background: rgba(255, 255, 255, 0.12);
border: 1px solid rgba(255, 255, 255, 0.25);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
color: #FFE618;
font-size: 12px;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
padding: 6px 16px;
border-radius: 999px;
margin-bottom: 14px;
}
.cta-card h2 {
color: #fff;
font-size: clamp(1.6rem, 3vw, 2.4rem);
margin-bottom: 10px !important;
}
.cta-card p {
color: rgba(255, 255, 255, 0.82);
margin-bottom: 22px !important;
}
.cta-actions {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 14px;
}
.cta-trust {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 26px;
margin-top: 22px;
padding-top: 16px;
border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.cta-trust-item {
display: inline-flex;
align-items: center;
gap: 8px;
color: rgba(255, 255, 255, 0.85);
font-size: 14px;
font-weight: 600;
}
.cta-trust-item i {
color: #FFE618;
}
/* ===== Modal Styling ===== */
#courseFinderModal .modal-content {
border-radius: 20px;
overflow: hidden;
}
.custom-modal-header {
background-color: white;
color: var(--primary);
border-bottom: 3px solid var(--secondary);
padding: 20px 23px;
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
}
.modal-close-btn {
width: 36px;
height: 36px;
min-width: 36px;
border-radius: 50%;
border: none;
background: rgba(15, 44, 89, 0.08);
color: var(--primary);
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 15px;
transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.modal-close-btn:hover {
background: var(--secondary);
color: #fff;
transform: rotate(90deg);
}
</style>
{{-- ===================== HERO ===================== --}}
@php
$heroSlides = [
'https://images.unsplash.com/photo-1517524206127-48bbd363f3d7?auto=format&fit=crop&w=1600&q=80',
'https://images.unsplash.com/photo-1553440569-bcc63803a83d?auto=format&fit=crop&w=1600&q=80',
'https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?auto=format&fit=crop&w=1600&q=80',
'https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1600&q=80',
'https://images.unsplash.com/photo-1493238792000-8113da705763?auto=format&fit=crop&w=1600&q=80',
'https://images.unsplash.com/photo-1502877338535-766e1452684a?auto=format&fit=crop&w=1600&q=80',
'https://images.unsplash.com/photo-1581093803931-46e730e7622e?auto=format&fit=crop&w=1600&q=80',
'https://images.unsplash.com/photo-1487754180451-c456f719a1fc?auto=format&fit=crop&w=1600&q=80',
];
@endphp
<section class="hero" role="banner" aria-label="Automobile Engineering Academy Introduction">
<div class="hero-slideshow" aria-hidden="true">
@foreach($heroSlides as $index => $slideImage)
<div class="hero-slide {{ $index === 0 ? 'active' : '' }}" style="background-image: url('{{ $slideImage }}');"></div>
@endforeach
</div>
<div class="hero-overlay" aria-hidden="true"></div>
<div class="hero-dots" aria-hidden="true">
@foreach($heroSlides as $index => $slideImage)
<button type="button" class="hero-dot {{ $index === 0 ? 'active' : '' }}" data-slide-index="{{ $index }}" aria-label="Show slide {{ $index + 1 }}"></button>
@endforeach
</div>
<div class="container h-100">
<div class="hero-content text-center animate-on-scroll animated fade-up-init">
<span class="hero-badge"><i class="fa-solid fa-award"></i> Accredited Automotive Engineering Institute</span>
<h1 class="display-4">Automobile Engineering Academy</h1>
<p class="mb-4">Driving Innovation Through Education, Research &amp; Technology</p>
<div class="d-flex flex-wrap justify-content-center gap-3">
<a href="{{ Route::has('apply') ? route('apply') : '#' }}" class="btn btn-theme" style="background: #822424; border: 2px solid #FFF;">
<i class="fa-solid fa-user-plus me-2"></i>Apply Now
</a>
<a href="/courses" class="btn btn-outline-theme">
<i class="fa-solid fa-book-open me-2"></i>Explore Courses
</a>
<a href="mailto:imadhigp@gmail.com" class="btn btn-outline-light-custom">
<i class="fa-solid fa-phone me-2"></i>Contact Admissions
</a>
</div>
<div class="hero-stats">
<div class="hero-stat-pill">
<i class="fa-solid fa-user-graduate"></i>
<div><strong class="count-up" data-count-target="2.5" data-count-decimals="1" data-count-suffix="k+">0k+</strong><span>Graduates</span></div>
</div>
<div class="hero-stat-pill">
<i class="fa-solid fa-chalkboard-user"></i>
<div><strong class="count-up" data-count-target="12" data-count-suffix="+">0+</strong><span>Expert Lecturers</span></div>
</div>
<div class="hero-stat-pill">
<i class="fa-solid fa-briefcase"></i>
<div><strong class="count-up" data-count-target="95" data-count-suffix="%">0%</strong><span>Placement Rate</span></div>
</div>
<div class="hero-stat-pill">
<i class="fa-solid fa-award"></i>
<div><strong class="count-up" data-count-target="15" data-count-suffix="+">0+</strong><span>Yrs Excellence</span></div>
</div>
</div>
</div>
</div>
</section>
{{-- ===================== COURSES SECTION ===================== --}}
<section class="section courses-section" aria-labelledby="courses-heading">
<div class="container">
<div class="text-center mb-5 animate-on-scroll fade-up-init">
<span class="section-eyebrow"><i class="fa-solid fa-graduation-cap"></i> Academic Programs</span>
<h2 id="courses-heading" class="display-5 mb-2" style="font-weight: 700; color:#2D355B;">Our Top Courses</h2>
<p class="text-muted fs-5">Explore our professional, industry-recognized automotive engineering curriculums.</p>
</div>
@php
$courses = [
[
'id' => 'course-1',
'category' => 'mechanical',
'level' => 'ol',
'image' => 'https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?auto=format&fit=crop&w=800&q=80',
'title' => 'Automotive Engineering Course',
'desc' => 'Learn vehicle design, engine technology, diagnostics and manufacturing workflows comprehensively.',
'author' => 'Automotive Engineering Dept.',
'rating' => '4.9',
'students' => '1.2k students',
'badge' => 'Popular'
],
[
'id' => 'course-2',
'category' => 'mechanical',
'level' => 'al',
'image' => 'https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=800&q=80',
'title' => 'Mechanical Systems Course',
'desc' => 'Study power transmission systems, active suspension, breaking dynamics and diagnostics.',
'author' => 'Tech & Service Campus',
'rating' => '4.7',
'students' => '850 students',
'badge' => 'Bestseller'
],
[
'id' => 'course-3',
'category' => 'ev',
'level' => 'al',
'image' => 'https://images.unsplash.com/photo-1502877338535-766e1452684a?auto=format&fit=crop&w=800&q=80',
'title' => 'Electric Vehicle Tech Course',
'desc' => 'Master advanced EV battery management, powertrains, smart networks and electric mobility.',
'author' => 'EV Research Institute',
'rating' => '4.8',
'students' => '640 students',
'badge' => 'New'
]
];
@endphp
<div class="row g-4 mb-5">
@foreach($courses as $key => $course)
<div class="col-lg-4 col-md-6 d-flex align-items-stretch animate-on-scroll fade-up-init" style="transition-delay: {{ $key * 100 }}ms;">
<div class="card course-card w-100 d-flex flex-column">
<a href="/courses" style="text-decoration:none;">
<div class="course-image-wrapper">
<span class="badge-floating"><i class="fa-solid fa-bolt"></i> {{ $course['badge'] }}</span>
<img src="{{ $course['image'] }}" alt="{{ $course['title'] }}" loading="lazy">
</div>
<div class="card-body">
<h4 class="course-title">{{ $course['title'] }}</h4>
<div class="course-author">
<i class="fa-solid fa-graduation-cap"></i> {{ $course['author'] }}
</div>
<p class="course-short-desc">{{ $course['desc'] }}</p>
<div class="course-features-container">
<span class="feature-pill"><i class="fas fa-tools"></i> Practical Labs</span>
<span class="feature-pill"><i class="fas fa-certificate"></i> Accredited</span>
</div>
<div class="course-footer">
<div class="course-meta-row">
<span class="rating-star">
<span class="star-rating" style="--rating: {{ $course['rating'] }};">
<span class="star-rating-bg">★★★★★</span>
<span class="star-rating-fill">★★★★★</span>
</span>
{{ $course['rating'] }}
<span class="rating-count">({{ $course['students'] }})</span>
</span>
<span class="small fw-bold status-chip" style="color: #2ecc71;"><i class="fa-solid fa-circle-check"></i>Active</span>
</div>
<a href="/courses" class="read-btn">View Details <i class="fa-solid fa-arrow-right read-btn-arrow"></i></a>
</div>
</div>
</a>
</div>
</div>
@endforeach
</div>
<div class="text-center animate-on-scroll fade-up-init">
<a href="/courses" class="btn btn-theme" style="background:#822424;">
View All Courses <i class="fa-solid fa-arrow-right ms-2"></i>
</a>
</div>
</div>
</section>
{{-- ===================== WHY CHOOSE US ===================== --}}
<section class="section why-section text-white position-relative overflow-hidden" aria-labelledby="why-us-heading" style="background-attachment: fixed;">
<div class="why-overlay"></div>
<div class="position-absolute top-0 start-0 w-100 h-100" style="z-index: 0;">
<img src="https://images.unsplash.com/photo-1487754180451-c456f719a1fc?auto=format&fit=crop&w=1600&q=80"
alt="Background Lab" class="w-100 h-100" style="object-fit: cover; opacity: 0.12; filter: grayscale(30%) brightness(80%);">
</div>
<div class="container why-content-wrapper position-relative" style="z-index: 2;">
<div class="text-center mb-5 animate-on-scroll fade-up-init">
<span class="section-eyebrow" style="background: rgba(255,255,255,0.12); color: #FFE618;"><i class="fa-solid fa-star"></i> Our Advantage</span>
<h2 id="why-us-heading" class="display-5 text-white mb-0 fw-bold" style="letter-spacing: -0.02em;">Why Choose Us?</h2>
</div>
<div class="row g-4 justify-content-center animate-on-scroll fade-up-init">
<div class="col-md-6 col-lg-4">
<div class="custom-feature-card h-100 d-flex flex-column align-items-center text-center p-4" style="border-radius: 20px; transition: all 0.4s ease;">
<div class="icon-box d-flex align-items-center justify-content-center" style="box-shadow: 0 10px 20px rgba(0,0,0,0.15); border-radius: 16px;">
<i class="fa-solid fa-flask-vial fs-3 fa-beat-hover"></i>
</div>
<h4 class="text-white fs-5 mb-3 fw-semibold">Modern Laboratories</h4>
<p class="text-white-50 small mb-0 lh-base">State-of-the-art facilities equipped with latest industrial testing tools.</p>
</div>
</div>
<div class="col-md-6 col-lg-4">
<div class="custom-feature-card h-100 d-flex flex-column align-items-center text-center p-4" style="border-radius: 20px; transition: all 0.4s ease;">
<div class="icon-box d-flex align-items-center justify-content-center" style="box-shadow: 0 10px 20px rgba(0,0,0,0.15); border-radius: 16px;">
<i class="fa-solid fa-graduation-cap fs-3 fa-bounce-hover"></i>
</div>
<h4 class="text-white fs-5 mb-3 fw-semibold">Qualified Lecturers</h4>
<p class="text-white-50 small mb-0 lh-base">Learn directly from veteran automotive engineers and researchers.</p>
</div>
</div>
<div class="col-md-6 col-lg-4">
<div class="custom-feature-card h-100 d-flex flex-column align-items-center text-center p-4" style="border-radius: 20px; transition: all 0.4s ease;">
<div class="icon-box d-flex align-items-center justify-content-center" style="box-shadow: 0 10px 20px rgba(0,0,0,0.15); border-radius: 16px;">
<i class="fa-solid fa-car fs-3 fa-shake-hover"></i>
</div>
<h4 class="text-white fs-5 mb-3 fw-semibold">Hands-on Training</h4>
<p class="text-white-50 small mb-0 lh-base">Gain real-world diagnostics experience inside our dedicated workshop floors.</p>
</div>
</div>
</div>
</div>
</section>
{{-- ===================== CALL TO ACTION ===================== --}}
<section class="section py-5 animate-on-scroll zoom-in-init">
<div class="container">
<div class="cta-card text-center">
<div class="cta-glow cta-glow-1" aria-hidden="true"></div>
<div class="cta-glow cta-glow-2" aria-hidden="true"></div>
<span class="cta-eyebrow"><i class="fa-solid fa-graduation-cap"></i> Enrollment Open for 2026</span>
<h2 class="display-6 mb-3">Join the Future of Automotive Engineering</h2>
<p class="mb-4 max-width-600 mx-auto">Shape your technical career through modern innovation, practical mastery, and expert guidance.</p>
<div class="cta-actions">
<a href="{{ Route::has('apply') ? route('apply') : '#' }}" class="btn btn-theme" style="background: #822424; border: 2px solid #FFF;">
<i class="fa-solid fa-user-plus me-2"></i>Apply Now
</a>
<a href="/courses" class="btn btn-outline-theme">
<i class="fa-solid fa-book-open me-2"></i>Explore Courses
</a>
</div>
<div class="cta-trust">
<span class="cta-trust-item"><i class="fa-solid fa-circle-check"></i> Accredited Programs</span>
<span class="cta-trust-item"><i class="fa-solid fa-circle-check"></i> Flexible Learning</span>
<span class="cta-trust-item"><i class="fa-solid fa-circle-check"></i> Career Support</span>
</div>
</div>
</div>
</section>
{{-- ===================== COURSE FINDER MODAL ===================== --}}
<div class="modal fade" id="courseFinderModal" tabindex="-1" aria-labelledby="courseFinderModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-lg modal-dialog-scrollable">
<div class="modal-content border-0 shadow">
<div class="modal-header custom-modal-header">
<h5 class="modal-title fw-bold fs-6 fs-md-5" id="courseFinderModalLabel">
<i class="fa-solid fa-compass me-2"></i>Find Your Course
</h5>
<button type="button" class="modal-close-btn" data-bs-dismiss="modal" aria-label="Close">
<i class="fa-solid fa-xmark"></i>
</button>
</div>
<div class="modal-body p-3 p-md-4">
<form id="courseFinderForm">
{{-- Qualification Field --}}
<div class="mb-3">
<label for="educationLevel" class="form-label fw-semibold text-dark small fs-6">
<i class="fa-solid fa-user-degree me-1 text-primary"></i> What is your highest educational qualification?
</label>
<select class="form-select form-select-lg border-2 fs-6" id="educationLevel" required>
<option value="" selected disabled>Select Educational Qualification</option>
<option value="ol">Completed Ordinary Level (O/L)</option>
<option value="al">Completed Advanced Level (A/L)</option>
<option value="diploma">Diploma / Vocational Qualification</option>
</select>
</div>
{{-- Interest Area Field --}}
<div class="mb-4">
<label for="interestArea" class="form-label fw-semibold text-dark small fs-6">
<!-- <i class="fa-solid fa-car-battery me-1 text-primary"></i> Which area of Automotive Engineering interests you most? -->
</label>
<select class="form-select form-select-lg border-2 fs-6" id="interestArea" required>
<option value="" selected disabled>Select Field of Interest</option>
<option value="mechanical">Automotive Mechanical & Diagnostics</option>
<option value="ev">Electric Vehicles (EV) & Battery Technology</option>
<option value="all">General Automotive Engineering (All Areas)</option>
</select>
</div>
{{-- Submit Button --}}
<button type="submit" class="btn btn-theme w-100 py-2.5 fw-bold text-white shadow-sm" style="background:#822424;">
<i class="fa-solid fa-magnifying-glass me-2"></i>Find Recommended Courses
</button>
</form>
{{-- Result Area --}}
<div id="recommendedResults" class="mt-4" style="display: none;">
<hr class="my-3 my-md-4">
<h5 class="fw-bold text-success mb-3 fs-6 fs-md-5">
<i class="fa-solid fa-circle-check me-2"></i>Recommended Courses for You:
</h5>
<div id="resultsContainer" class="row g-3">
<!-- JS injected courses will appear here -->
</div>
</div>
</div>
</div>
</div>
</div>
<!-- <div class="modal fade" id="courseFinderModal" tabindex="-1" aria-labelledby="courseFinderModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-lg">
<div class="modal-content" style="width:60%;">
<div class="modal-header custom-modal-header">
<h5 class="modal-title fw-bold" id="courseFinderModalLabel">
<i class="fa-solid fa-compass me-2"></i>Find Your Course
</h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body p-4">
<form id="courseFinderForm">
<div class="mb-3">
<label for="educationLevel" class="form-label fw-semibold text-dark">
<i class="fa-solid fa-user-degree me-1 text-primary"></i> What is your highest educational qualification?
</label>
<select class="form-select border-2" id="educationLevel" required style=" padding: .375rem 2.25rem 2.375rem .75rem;height: 89px;">
<option value="" selected disabled>Select Educational Qualification</option>
<option value="ol">Completed Ordinary Level (O/L)</option>
<option value="al">Completed Advanced Level (A/L)</option>
<option value="diploma">Diploma / Vocational Qualification</option>
</select>
</div>
<div class="mb-4">
<label for="interestArea" class="form-label fw-semibold text-dark">
Which area of Automotive Engineering interests you most?
</label>
<select class="form-select border-2" id="interestArea" required style=" padding: .375rem 2.25rem 2.375rem .75rem;height: 89px;">
<option value="" selected disabled>Select Field of Interest</option>
<option value="mechanical">Automotive Mechanical & Diagnostics</option>
<option value="ev">Electric Vehicles (EV) & Battery Technology</option>
<option value="all">General Automotive Engineering (All Areas)</option>
</select>
</div>
<button type="submit" class="btn btn-theme w-100" style="background:#822424;">
<i class="fa-solid fa-magnifying-glass me-2"></i>Find Recommended Courses
</button>
</form> -->
{{-- Result Area --}}
<!-- <div id="recommendedResults" class="mt-4" style="display: none;">
<hr class="my-4">
<h5 class="fw-bold text-success mb-3">
<i class="fa-solid fa-circle-check me-2"></i>Recommended Courses for You:
</h5>
<div id="resultsContainer" class="row g-3">
</div>
</div>
</div>
</div>
</div>
</div> -->
<script>
document.addEventListener('DOMContentLoaded', function () {
// 0. Hero Background Slideshow
const heroSlides = document.querySelectorAll('.hero-slide');
const heroDots = document.querySelectorAll('.hero-dot');
if (heroSlides.length > 1) {
let activeSlide = 0;
let slideTimer;
const goToSlide = (index) => {
heroSlides[activeSlide].classList.remove('active');
heroDots[activeSlide]?.classList.remove('active');
activeSlide = index;
heroSlides[activeSlide].classList.add('active');
heroDots[activeSlide]?.classList.add('active');
};
const startSlideTimer = () => {
clearInterval(slideTimer);
slideTimer = setInterval(() => {
goToSlide((activeSlide + 1) % heroSlides.length);
}, 5500);
};
heroDots.forEach(dot => {
dot.addEventListener('click', () => {
goToSlide(parseInt(dot.dataset.slideIndex, 10));
startSlideTimer();
});
});
startSlideTimer();
}
// 0b. Stat Counters (count up when scrolled into view)
const counters = document.querySelectorAll('.count-up');
if (counters.length) {
const animateCounter = (el) => {
const target = parseFloat(el.dataset.countTarget);
const decimals = parseInt(el.dataset.countDecimals || '0', 10);
const suffix = el.dataset.countSuffix || '';
const duration = 1600;
const startTime = performance.now();
const tick = (now) => {
const progress = Math.min((now - startTime) / duration, 1);
const eased = 1 - Math.pow(1 - progress, 3);
const value = target * eased;
el.textContent = value.toFixed(decimals) + suffix;
if (progress < 1) {
requestAnimationFrame(tick);
} else {
el.textContent = target.toFixed(decimals) + suffix;
}
};
requestAnimationFrame(tick);
};
const counterObserver = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
animateCounter(entry.target);
counterObserver.unobserve(entry.target);
}
});
}, { threshold: 0.4 });
counters.forEach(el => counterObserver.observe(el));
}
// 0c. Course Card 3D Tilt + Image Parallax
const canHover = window.matchMedia('(hover: hover) and (pointer: fine)').matches;
if (canHover) {
document.querySelectorAll('.course-card').forEach(card => {
const img = card.querySelector('.course-image-wrapper img');
card.addEventListener('mouseenter', () => {
card.style.transition = 'box-shadow 0.4s ease, border-color 0.4s ease';
if (img) img.style.transition = 'none';
});
card.addEventListener('mousemove', (e) => {
const rect = card.getBoundingClientRect();
const relX = (e.clientX - rect.left) / rect.width;
const relY = (e.clientY - rect.top) / rect.height;
const rotateY = (relX - 0.5) * 12;
const rotateX = (0.5 - relY) * 12;
card.style.transform = `translateY(-8px) scale(1.015) rotateX(${rotateX}deg) rotateY(${rotateY}deg)`;
if (img) {
img.style.transform = `scale(1.14) translate(${(relX - 0.5) * -14}px, ${(relY - 0.5) * -14}px)`;
}
});
card.addEventListener('mouseleave', () => {
card.style.transition = 'transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease';
card.style.transform = '';
if (img) {
img.style.transition = 'transform 0.6s cubic-bezier(0.16, 1, 0.3, 1)';
img.style.transform = '';
}
});
});
}
// 0d. Animated Star Rating Fill
const starRatings = document.querySelectorAll('.star-rating');
if (starRatings.length) {
const starObserver = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('filled');
starObserver.unobserve(entry.target);
}
});
}, { threshold: 0.4 });
starRatings.forEach(el => starObserver.observe(el));
}
// 1. Scroll Animations
const animatedElements = document.querySelectorAll('.animate-on-scroll');
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('animated');
observer.unobserve(entry.target);
}
});
}, { threshold: 0.1 });
animatedElements.forEach(el => observer.observe(el));
// 2. Auto Open Modal on Site Load
const courseModalElement = document.getElementById('courseFinderModal');
if (courseModalElement && typeof bootstrap !== 'undefined') {
const courseModal = new bootstrap.Modal(courseModalElement);
courseModal.show();
}
// 3. Course Recommendation Logic
const allCourses = @json($courses);
const form = document.getElementById('courseFinderForm');
const resultsArea = document.getElementById('recommendedResults');
const resultsContainer = document.getElementById('resultsContainer');
form.addEventListener('submit', function (e) {
e.preventDefault();
const selectedLevel = document.getElementById('educationLevel').value;
const selectedInterest = document.getElementById('interestArea').value;
// Filter logic
const filtered = allCourses.filter(course => {
const matchCategory = (selectedInterest === 'all') || (course.category === selectedInterest);
const matchLevel = (selectedLevel === 'ol' && course.level === 'ol') ||
(selectedLevel === 'al') ||
(selectedLevel === 'diploma');
return matchCategory && matchLevel;
});
// Display Results
resultsContainer.innerHTML = '';
if (filtered.length > 0) {
filtered.forEach(course => {
const cardHTML = `
<div class="col-md-6">
<div class="card h-100 border shadow-sm">
<img src="${course.image}" class="card-img-top" style="height: 120px; object-fit: cover;" alt="${course.title}">
<div class="card-body p-3 d-flex flex-column justify-content-between">
<div>
<h6 class="fw-bold mb-1" style="color: var(--primary);">${course.title}</h6>
<p class="small text-muted mb-2">${course.desc.substring(0, 60)}...</p>
</div>
<a href="/courses" class="btn btn-sm btn-outline-primary mt-2" style="color: #fff;
background: #953f3f;border-color:white;">View Details</a>
</div>
</div>
</div>
`;
resultsContainer.innerHTML += cardHTML;
});
} else {
resultsContainer.innerHTML = `<p class="text-muted">No specific courses matched your criteria. Please explore all available courses.</p>`;
}
resultsArea.style.display = 'block';
});
});
</script>
@endsection