1429 lines
49 KiB
PHP
1429 lines
49 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(135deg, rgba(30, 35, 62, 0.88) 0%, rgba(21, 24, 44, 0.82) 50%, rgba(15, 18, 35, 0.92) 100%);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.hero::before {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 2;
|
|
background: radial-gradient(circle at top right, rgba(255, 234, 133, 0.15), transparent 35%),
|
|
radial-gradient(circle at bottom left, rgba(130, 36, 36, 0.2), transparent 40%);
|
|
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, 234, 133, 0.12);
|
|
border: 1px solid rgba(255, 234, 133, 0.3);
|
|
backdrop-filter: blur(14px);
|
|
-webkit-backdrop-filter: blur(14px);
|
|
color: var(--theme-yellow, #FFEA85);
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.05em;
|
|
text-transform: uppercase;
|
|
padding: 9px 20px;
|
|
border-radius: 999px;
|
|
margin-bottom: 24px;
|
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.hero-badge i {
|
|
color: #FFEA85;
|
|
}
|
|
|
|
.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.4);
|
|
color: #ffffff;
|
|
}
|
|
|
|
.hero p {
|
|
font-size: clamp(1rem, 1.2vw, 1.4rem);
|
|
max-width: 760px;
|
|
margin: 24px auto 0;
|
|
color: rgba(255, 255, 255, 0.9);
|
|
letter-spacing: 0.01em;
|
|
}
|
|
|
|
.hero .d-flex {
|
|
margin-top: 36px;
|
|
z-index: 1;
|
|
}
|
|
|
|
.hero .btn {
|
|
min-width: 170px;
|
|
}
|
|
|
|
.hero .btn + .btn {
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.btn-theme {
|
|
background: linear-gradient(135deg, #822424 0%, #df2c3e 100%) !important;
|
|
color: #ffffff !important;
|
|
padding: 14px 32px;
|
|
border-radius: 999px;
|
|
font-weight: 700;
|
|
border: 1px solid rgba(255, 255, 255, 0.2) !important;
|
|
box-shadow: 0 8px 24px rgba(130, 36, 36, 0.4) !important;
|
|
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
|
|
}
|
|
|
|
.btn-theme:hover {
|
|
transform: translateY(-4px) !important;
|
|
box-shadow: 0 12px 30px rgba(130, 36, 36, 0.55) !important;
|
|
}
|
|
|
|
.btn-outline-theme {
|
|
background: rgba(255, 255, 255, 0.12) !important;
|
|
color: #ffffff !important;
|
|
border: 1px solid rgba(255, 255, 255, 0.35) !important;
|
|
padding: 14px 32px;
|
|
border-radius: 999px;
|
|
font-weight: 700;
|
|
backdrop-filter: blur(14px);
|
|
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
|
|
}
|
|
|
|
.btn-outline-theme:hover {
|
|
background: rgba(255, 255, 255, 0.22) !important;
|
|
color: #ffffff !important;
|
|
border-color: #ffffff !important;
|
|
transform: translateY(-4px) !important;
|
|
}
|
|
|
|
.btn-outline-light-custom {
|
|
background: #FFEA85 !important;
|
|
color: #1E233E !important;
|
|
border: none !important;
|
|
padding: 14px 32px;
|
|
border-radius: 999px;
|
|
font-weight: 800;
|
|
box-shadow: 0 8px 24px rgba(255, 234, 133, 0.35) !important;
|
|
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
|
|
}
|
|
|
|
.btn-outline-light-custom:hover {
|
|
background: #ffffff !important;
|
|
color: #1E233E !important;
|
|
transform: translateY(-4px) !important;
|
|
box-shadow: 0 12px 30px rgba(255, 255, 255, 0.4) !important;
|
|
}
|
|
|
|
.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.12);
|
|
border: 1px solid rgba(255, 255, 255, 0.22);
|
|
backdrop-filter: blur(14px);
|
|
-webkit-backdrop-filter: blur(14px);
|
|
border-radius: 999px;
|
|
padding: 11px 22px;
|
|
color: #fff;
|
|
transition: transform 0.3s ease, background-color 0.3s ease;
|
|
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
|
|
}
|
|
|
|
.hero-stat-pill:hover {
|
|
transform: translateY(-4px);
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border-color: rgba(255, 234, 133, 0.4);
|
|
}
|
|
|
|
.hero-stat-pill strong {
|
|
font-size: 18px;
|
|
font-weight: 800;
|
|
line-height: 1;
|
|
color: #FFEA85;
|
|
}
|
|
|
|
.hero-stat-pill span {
|
|
font-size: 12px;
|
|
color: rgba(255, 255, 255, 0.88);
|
|
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 rgba(226, 232, 240, 0.9);
|
|
border-radius: 26px;
|
|
overflow: hidden;
|
|
background: #ffffff;
|
|
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06);
|
|
}
|
|
|
|
.course-card::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 4px;
|
|
background: linear-gradient(90deg, #3E51B8 0%, #FFE618 50%, #BC1A1A 100%);
|
|
opacity: 0.35;
|
|
transition: opacity 0.4s ease, height 0.4s ease;
|
|
z-index: 4;
|
|
}
|
|
|
|
.course-card:hover::before {
|
|
opacity: 1;
|
|
height: 5px;
|
|
}
|
|
|
|
.course-card:hover {
|
|
transform: translateY(-10px);
|
|
box-shadow: 0 25px 50px -10px rgba(62, 81, 184, 0.18);
|
|
border-color: rgba(62, 81, 184, 0.3);
|
|
}
|
|
|
|
.course-image-wrapper {
|
|
position: relative;
|
|
overflow: hidden;
|
|
height: 220px;
|
|
}
|
|
|
|
.course-image-wrapper::after {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
background: linear-gradient(to top, rgba(15, 23, 42, 0.55) 0%, transparent 60%);
|
|
pointer-events: none;
|
|
z-index: 1;
|
|
}
|
|
|
|
.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.09);
|
|
}
|
|
|
|
.courses-section .row.g-4 > div {
|
|
perspective: 1200px;
|
|
}
|
|
|
|
.badge-floating {
|
|
position: absolute;
|
|
top: 16px;
|
|
left: 16px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
background: linear-gradient(135deg, #BC1A1A 0%, #E11D48 100%);
|
|
color: #fff;
|
|
font-weight: 800;
|
|
font-size: 11px;
|
|
padding: 6px 14px;
|
|
border-radius: 999px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
z-index: 2;
|
|
box-shadow: 0 4px 14px rgba(188, 26, 26, 0.4);
|
|
animation: badgePulse 2.4s ease-out infinite;
|
|
}
|
|
|
|
@keyframes badgePulse {
|
|
0% { box-shadow: 0 4px 14px rgba(188, 26, 26, 0.4), 0 0 0 0 rgba(188, 26, 26, 0.45); }
|
|
70% { box-shadow: 0 4px 14px rgba(188, 26, 26, 0.4), 0 0 0 8px rgba(188, 26, 26, 0); }
|
|
100% { box-shadow: 0 4px 14px rgba(188, 26, 26, 0.4), 0 0 0 0 rgba(188, 26, 26, 0); }
|
|
}
|
|
|
|
.course-card .card-body {
|
|
padding: 26px 24px 22px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.course-title {
|
|
font-size: 20px;
|
|
font-weight: 750;
|
|
color: #0F172A;
|
|
margin-bottom: 8px;
|
|
line-height: 1.35;
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
.course-card:hover .course-title {
|
|
color: #3E51B8;
|
|
}
|
|
|
|
.course-author {
|
|
font-size: 13.5px;
|
|
font-weight: 600;
|
|
color: #3085C3;
|
|
margin-bottom: 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.course-short-desc {
|
|
font-size: 14px;
|
|
color: #64748B;
|
|
line-height: 1.6;
|
|
margin-bottom: 16px;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.course-features-container {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.feature-pill {
|
|
background: rgba(62, 81, 184, 0.08);
|
|
color: #3E51B8;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
padding: 5px 12px;
|
|
border-radius: 8px;
|
|
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(62, 81, 184, 0.15);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.course-footer {
|
|
margin-top: auto;
|
|
padding-top: 16px;
|
|
border-top: 1px dashed #E2E8F0;
|
|
}
|
|
|
|
.course-meta-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.rating-star {
|
|
color: #f59e0b;
|
|
font-weight: 750;
|
|
font-size: 14px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.rating-count {
|
|
color: #64748B;
|
|
font-weight: 500;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.status-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
background: rgba(16, 185, 129, 0.1);
|
|
color: #10B981;
|
|
padding: 4px 12px;
|
|
border-radius: 999px;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.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: #f59e0b;
|
|
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: linear-gradient(135deg, #0F2C59 0%, #3E51B8 100%);
|
|
color: #ffffff;
|
|
padding: 12px 24px;
|
|
font-weight: 700;
|
|
border-radius: 999px;
|
|
font-size: 14px;
|
|
transition: all 0.3s ease;
|
|
text-decoration: none;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
box-shadow: 0 6px 18px rgba(62, 81, 184, 0.25);
|
|
}
|
|
|
|
.read-btn .read-btn-arrow {
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.course-card:hover .read-btn {
|
|
background: linear-gradient(135deg, #BC1A1A 0%, #822424 100%);
|
|
color: #ffffff;
|
|
box-shadow: 0 10px 24px rgba(188, 26, 26, 0.35);
|
|
}
|
|
|
|
.course-card:hover .read-btn .read-btn-arrow {
|
|
transform: translateX(5px);
|
|
}
|
|
|
|
/* ===== Why Choose Us ===== */
|
|
.why-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.88) 50%, rgba(15, 23, 42, 0.95) 100%), 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 {
|
|
position: relative;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
backdrop-filter: blur(18px);
|
|
-webkit-backdrop-filter: blur(18px);
|
|
border: 1px solid rgba(255, 255, 255, 0.15);
|
|
border-radius: 26px;
|
|
padding: 44px 30px 38px;
|
|
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
|
|
overflow: hidden;
|
|
height: 100%;
|
|
}
|
|
|
|
.custom-feature-card::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 4px;
|
|
background: linear-gradient(90deg, #3E51B8 0%, #FFE618 50%, #BC1A1A 100%);
|
|
opacity: 0.35;
|
|
transition: opacity 0.4s ease, height 0.4s ease;
|
|
}
|
|
|
|
.custom-feature-card:hover::before {
|
|
opacity: 1;
|
|
height: 5px;
|
|
}
|
|
|
|
.custom-feature-card:hover {
|
|
transform: translateY(-12px);
|
|
background: rgba(255, 255, 255, 0.14);
|
|
border-color: rgba(255, 255, 255, 0.35);
|
|
box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 30px rgba(62, 81, 184, 0.3);
|
|
}
|
|
|
|
.icon-box {
|
|
width: 68px;
|
|
height: 68px;
|
|
background: linear-gradient(135deg, rgba(62, 81, 184, 0.35) 0%, rgba(10, 103, 223, 0.2) 100%);
|
|
color: #60A5FA;
|
|
border-radius: 22px;
|
|
border: 1px solid rgba(96, 165, 250, 0.35);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-bottom: 26px;
|
|
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
|
|
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
}
|
|
|
|
.custom-feature-card:hover .icon-box {
|
|
background: linear-gradient(135deg, #3E51B8 0%, #BC1A1A 100%);
|
|
color: #ffffff;
|
|
border-color: transparent;
|
|
transform: scale(1.12) rotate(6deg);
|
|
box-shadow: 0 15px 30px rgba(188, 26, 26, 0.4), 0 0 20px rgba(62, 81, 184, 0.6);
|
|
}
|
|
|
|
/* ===== 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 me-1 text-warning"></i> Accredited Automotive Engineering Institute</span>
|
|
<h1 class="display-4 fw-extrabold text-white">Automobile Engineering Academy</h1>
|
|
<p class="mb-4 text-white-90 fs-5">Driving Innovation Through Education, Research & Technology</p>
|
|
|
|
<div class="d-flex flex-wrap justify-content-center gap-3">
|
|
<a href="{{ Route::has('apply') ? route('apply') : '#' }}" class="btn btn-theme">
|
|
<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>
|
|
|
|
<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">
|
|
@if($course->badge)
|
|
<span class="badge-floating"><i class="fa-solid fa-bolt"></i> {{ $course->badge }}</span>
|
|
@endif
|
|
|
|
<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 ?? 'Automotive Dept.' }}
|
|
</div>
|
|
<p class="course-short-desc">{{ Str::limit($course->desc, 120) }}</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 ?? 5 }};">
|
|
<span class="star-rating-bg">★★★★★</span>
|
|
<span class="star-rating-fill">★★★★★</span>
|
|
</span>
|
|
{{ $course->rating ?? '5.0' }}
|
|
<span class="rating-count">({{ $course->student ?? '0' }} students)</span>
|
|
</span>
|
|
@if($course->status)
|
|
<span class="small fw-bold status-chip" style="color: #2ecc71;"><i class="fa-solid fa-circle-check"></i> {{ ucfirst($course->status) }}</span>
|
|
@endif
|
|
</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>
|
|
<!-- <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: linear-gradient(135deg, rgba(255, 230, 24, 0.18) 0%, rgba(227, 100, 20, 0.22) 100%); border: 1px solid rgba(255, 230, 24, 0.45); color: #FFE618; padding: 8px 22px; border-radius: 999px;"><i class="fa-solid fa-star"></i> Our Advantage</span>
|
|
<h2 id="why-us-heading" class="display-5 text-white mb-0 fw-bold mt-3" 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">
|
|
<div class="icon-box">
|
|
<i class="fa-solid fa-flask-vial fs-3"></i>
|
|
</div>
|
|
<h4 class="text-white fs-5 mb-3 fw-bold">Modern Laboratories</h4>
|
|
<p class="small mb-0 lh-base" style="color: #CBD5E1;">State-of-the-art facilities equipped with latest industrial testing tools & high-voltage rigs.</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">
|
|
<div class="icon-box">
|
|
<i class="fa-solid fa-graduation-cap fs-3"></i>
|
|
</div>
|
|
<h4 class="text-white fs-5 mb-3 fw-bold">Qualified Lecturers</h4>
|
|
<p class="small mb-0 lh-base" style="color: #CBD5E1;">Learn directly from veteran automotive engineers, researchers, and TVEC certified instructors.</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">
|
|
<div class="icon-box">
|
|
<i class="fa-solid fa-car fs-3"></i>
|
|
</div>
|
|
<h4 class="text-white fs-5 mb-3 fw-bold">Hands-on Training</h4>
|
|
<p class="small mb-0 lh-base" style="color: #CBD5E1;">Gain real-world diagnostics experience inside our dedicated workshop floors & EV testing bays.</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>
|
|
|
|
|
|
|
|
|
|
<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
|
|
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 |