38701-vm/assets/css/style.css
Flatlogic Bot 5db61988c3 sadiq
2026-02-23 06:39:28 +00:00

545 lines
10 KiB
CSS

/*
* AFG CARS 2026 - Modern Premium Marketplace
*/
:root {
/* Refined Color Palette */
--primary: #00d2ff;
--primary-dark: #3a7bd5;
--secondary: #6366f1;
--accent: #f59e0b;
--danger: #ff4b2b;
--success: #00b09b;
--bg-dark: #020617;
--bg-card: rgba(15, 23, 42, 0.6);
--bg-glass: rgba(255, 255, 255, 0.05);
--text-main: #f8fafc;
--text-muted: #94a3b8;
--border-glass: rgba(255, 255, 255, 0.1);
--shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
/* Layout */
--navbar-height: 80px;
--container-max: 1200px;
--radius-lg: 24px;
--radius-md: 12px;
--radius-sm: 6px;
/* Transitions */
--transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Global Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
background-color: var(--bg-dark);
color: var(--text-main);
line-height: 1.7;
min-height: 100vh;
display: flex;
flex-direction: column;
overflow-x: hidden;
}
/* Background Image Overlay */
.bg-hero {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
background: linear-gradient(rgba(2, 6, 23, 0.85), rgba(2, 6, 23, 0.95)), url('../images/pexels/hero-bg.jpg');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
a {
text-decoration: none;
color: inherit;
transition: var(--transition);
}
ul {
list-style: none;
}
img {
max-width: 100%;
display: block;
border-radius: var(--radius-md);
}
/* Typography */
h1, h2, h3, h4 {
font-weight: 800;
line-height: 1.1;
margin-bottom: 1.5rem;
letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: 1.75rem; }
.text-gradient {
background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
/* Layout Components */
.container {
max-width: var(--container-max);
margin: 0 auto;
padding: 0 1.5rem;
}
/* Navbar */
.navbar {
height: var(--navbar-height);
background: rgba(2, 6, 23, 0.7);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border-bottom: 1px solid var(--border-glass);
position: sticky;
top: 0;
z-index: 1000;
display: flex;
align-items: center;
}
.navbar .container {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
}
.logo {
font-size: 1.75rem;
font-weight: 900;
display: flex;
align-items: center;
gap: 0.5rem;
color: #fff;
}
.logo span {
color: var(--primary);
}
.nav-links {
display: flex;
gap: 2.5rem;
}
.nav-links a {
font-weight: 600;
font-size: 0.95rem;
color: var(--text-muted);
}
.nav-links a:hover, .nav-links a.active {
color: var(--primary);
transform: translateY(-1px);
}
.nav-auth {
display: flex;
gap: 1.25rem;
align-items: center;
}
/* Main Content Area */
main {
flex: 1;
padding-bottom: 5rem;
}
/* Sections */
section {
padding: 6rem 0;
}
.section-header {
text-align: center;
max-width: 700px;
margin: 0 auto 4rem;
}
.section-header h2 {
margin-bottom: 1rem;
}
.section-header p {
color: var(--text-muted);
font-size: 1.1rem;
}
/* Buttons */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.8rem 2rem;
border-radius: var(--radius-md);
font-weight: 700;
cursor: pointer;
border: none;
transition: var(--transition);
gap: 0.5rem;
}
.btn-primary {
background: linear-gradient(135deg, var(--primary), var(--primary-dark));
color: white;
box-shadow: 0 10px 20px -10px var(--primary);
}
.btn-primary:hover {
transform: translateY(-3px);
box-shadow: 0 15px 25px -10px var(--primary);
}
.btn-outline {
background: var(--bg-glass);
border: 1px solid var(--border-glass);
color: var(--text-main);
backdrop-filter: blur(10px);
}
.btn-outline:hover {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.3);
transform: translateY(-3px);
}
/* Glass Card */
.glass-card {
background: var(--bg-card);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid var(--border-glass);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-glass);
transition: var(--transition);
}
.glass-card:hover {
border-color: rgba(0, 210, 255, 0.3);
}
/* Hero Section */
.hero {
min-height: calc(100vh - var(--navbar-height));
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: 4rem 0;
position: relative;
}
.hero-home {
background: linear-gradient(rgba(2, 6, 23, 0.4), rgba(2, 6, 23, 0.7)), url('../images/pexels/car_2.jpg');
background-size: cover;
background-position: center;
background-attachment: fixed;
margin-top: calc(var(--navbar-height) * -1);
padding-top: calc(var(--navbar-height) + 4rem);
}
.hero-content {
max-width: 900px;
padding: 2rem;
z-index: 10;
}
.hero-content p {
font-size: 1.25rem;
color: var(--text-main);
text-shadow: 0 2px 4px rgba(0,0,0,0.5);
margin-bottom: 3rem;
}
.hero-content h1 {
text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
/* Features Grid */
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
}
.feature-card {
padding: 3rem;
text-align: center;
}
.feature-icon {
width: 60px;
height: 60px;
background: var(--bg-glass);
border-radius: var(--radius-md);
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 2rem;
font-size: 1.5rem;
color: var(--primary);
border: 1px solid var(--border-glass);
}
/* Testimonials */
.testimonials-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
}
.testimonial-card {
padding: 2.5rem;
}
.testimonial-text {
font-style: italic;
font-size: 1.1rem;
margin-bottom: 2rem;
color: var(--text-main);
}
.testimonial-author {
display: flex;
align-items: center;
gap: 1rem;
}
.author-avatar {
width: 50px;
height: 50px;
background: linear-gradient(var(--primary), var(--secondary));
border-radius: 50%;
}
.author-info h4 {
margin: 0;
font-size: 1rem;
}
.author-info p {
margin: 0;
font-size: 0.85rem;
color: var(--text-muted);
}
/* Marketplace Grid */
.cars-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
gap: 2.5rem;
}
.car-card {
overflow: hidden;
display: block;
}
.car-image {
height: 240px;
overflow: hidden;
position: relative;
}
.car-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: var(--transition);
border-radius: 0;
}
.car-card:hover .car-image img {
transform: scale(1.1);
}
.badge {
position: absolute;
top: 1rem;
right: 1rem;
padding: 0.4rem 1rem;
border-radius: 50px;
font-size: 0.75rem;
font-weight: 700;
z-index: 10;
}
.badge-hot { background: var(--danger); color: white; }
.badge-sold { background: #334155; color: white; }
.badge-new { background: var(--success); color: white; }
.car-info {
padding: 2rem;
}
.car-price {
font-size: 1.5rem;
font-weight: 800;
color: var(--primary);
margin-bottom: 0.5rem;
}
.car-meta {
display: flex;
gap: 1.25rem;
color: var(--text-muted);
font-size: 0.85rem;
margin-top: 1.25rem;
padding-top: 1.25rem;
border-top: 1px solid var(--border-glass);
}
/* Filters */
.filters {
padding: 2.5rem;
}
.filter-row {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1.5rem;
align-items: end;
}
/* Locations / Contact info */
.contact-layout {
display: grid;
grid-template-columns: 1.5fr 1fr;
gap: 3rem;
align-items: start;
}
.location-card {
padding: 1.5rem;
margin-bottom: 1.5rem;
}
.location-card h4 {
color: var(--primary);
margin-bottom: 0.5rem;
}
/* Forms */
.form-group {
margin-bottom: 1.5rem;
}
.form-group label {
display: block;
margin-bottom: 0.75rem;
font-size: 0.9rem;
font-weight: 600;
color: var(--text-muted);
}
.form-control {
width: 100%;
background: rgba(15, 23, 42, 0.4);
border: 1px solid var(--border-glass);
color: white;
padding: 1rem 1.25rem;
border-radius: var(--radius-md);
outline: none;
font-size: 1rem;
transition: var(--transition);
}
.form-control:focus {
border-color: var(--primary);
background: rgba(15, 23, 42, 0.6);
box-shadow: 0 0 0 4px rgba(0, 210, 255, 0.1);
}
select.form-control option {
background: #0f172a;
}
textarea.form-control {
min-height: 150px;
}
/* Footer */
footer {
padding: 5rem 0 3rem;
background: rgba(2, 6, 23, 0.8);
border-top: 1px solid var(--border-glass);
margin-top: auto;
}
.footer-grid {
display: grid;
grid-template-columns: 2fr 1fr 1fr 1.5fr;
gap: 4rem;
margin-bottom: 4rem;
}
.footer-about p {
color: var(--text-muted);
margin-top: 1.5rem;
}
.footer-links h4 {
margin-bottom: 2rem;
font-size: 1.1rem;
}
.footer-links ul li {
margin-bottom: 1rem;
}
.footer-links ul li a {
color: var(--text-muted);
}
.footer-links ul li a:hover {
color: var(--primary);
padding-left: 5px;
}
.footer-bottom {
text-align: center;
padding-top: 3rem;
border-top: 1px solid var(--border-glass);
color: var(--text-muted);
font-size: 0.9rem;
}
/* Responsive */
@media (max-width: 1024px) {
.footer-grid { grid-template-columns: 1fr 1fr; }
.contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
.nav-links { display: none; }
.hero-content { padding: 2rem; }
.footer-grid { grid-template-columns: 1fr; }
section { padding: 4rem 0; }
.filter-row { grid-template-columns: 1fr; }
}