Krish101pp's picture
Create a complete website for a service-based startup called RoadBuddy.
1549c74 verified
Raw History Blame Contribute Delete
7.66 kB
:root {
--primary-blue: #2563eb;
--secondary-orange: #f97316;
--accent-green: #10b981;
--text-dark: #1f2937;
--text-light: #6b7280;
--bg-light: #f9fafb;
--white: #ffffff;
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', 'Poppins', sans-serif;
line-height: 1.6;
color: var(--text-dark);
background-color: var(--white);
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
/* Hero Section */
.hero {
position: relative;
height: 100vh;
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
url('http://static.photos/travel/1200x630/1') center/cover;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
color: var(--white);
}
.hero-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(16, 185, 129, 0.7));
}
.hero-content {
position: relative;
z-index: 2;
}
.hero-title {
font-size: 3.5rem;
font-weight: 700;
margin-bottom: 1rem;
}
.hero-subtitle {
font-size: 1.5rem;
margin-bottom: 2rem;
opacity: 0.9;
}
.hero-buttons {
display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
}
.hero-stats {
display: flex;
justify-content: center;
gap: 3rem;
margin-top: 3rem;
}
.stat {
text-align: center;
}
.stat h3 {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 0.5rem;
}
/* Buttons */
.btn {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 12px 30px;
border-radius: 30px;
text-decoration: none;
font-weight: 600;
transition: all 0.3s ease;
border: none;
cursor: pointer;
font-size: 1rem;
}
.btn-primary {
background-color: var(--primary-blue);
color: var(--white);
}
.btn-primary:hover {
background-color: #1d4ed8;
transform: translateY(-2px);
}
.btn-secondary {
background-color: transparent;
color: var(--white);
border: 2px solid var(--white);
}
.btn-secondary:hover {
background-color: var(--white);
color: var(--primary-blue);
}
/* Section Headers */
.section-header {
text-align: center;
margin-bottom: 3rem;
}
.section-header h2 {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 1rem;
}
.section-header p {
color: var(--text-light);
font-size: 1.2rem;
}
/* How It Works */
.how-it-works {
padding: 80px 0;
background-color: var(--bg-light);
}
.steps-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
}
.step-card {
text-align: center;
padding: 2rem;
background: var(--white);
border-radius: 15px;
box-shadow: var(--shadow);
transition: transform 0.3s ease;
}
.step-card:hover {
transform: translateY(-5px);
}
.step-icon {
width: 80px;
height: 80px;
background: linear-gradient(135deg, var(--primary-blue), var(--accent-green));
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 1.5rem;
color: var(--white);
font-size: 2rem;
}
/* Services */
.services {
padding: 80px 0;
}
.services-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 2rem;
}
.service-card {
text-align: center;
padding: 2rem;
background: var(--white);
border-radius: 15px;
box-shadow: var(--shadow);
transition: all 0.3s ease;
}
.service-card:hover {
transform: translateY(-5px);
box-shadow: var(--shadow-lg);
}
.service-icon {
width: 70px;
height: 70px;
background-color: var(--bg-light);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 1.5rem;
color: var(--primary-blue);
font-size: 1.8rem;
}
/* Why Choose Us */
.why-choose-us {
padding: 80px 0;
background-color: var(--bg-light);
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
}
.feature-card {
text-align: center;
padding: 2rem;
background: var(--white);
border-radius: 15px;
box-shadow: var(--shadow);
}
.feature-icon {
width: 70px;
height: 70px;
background-color: var(--bg-light);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 1.5rem;
color: var(--accent-green);
font-size: 1.8rem;
}
/* Become Partner */
.become-partner {
padding: 80px 0;
}
.partner-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 3rem;
align-items: center;
}
.partner-benefits {
margin: 2rem 0;
}
.benefit {
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: 1rem;
}
.partner-image img {
width: 100%;
border-radius: 15px;
box-shadow: var(--shadow-lg);
}
/* Testimonials */
.testimonials {
padding: 80px 0;
background-color: var(--bg-light);
}
.testimonials-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
}
.testimonial-card {
background: var(--white);
padding: 2rem;
border-radius: 15px;
box-shadow: var(--shadow);
}
.rating {
color: #fbbf24;
margin-bottom: 1rem;
}
.user-info {
display: flex;
align-items: center;
gap: 1rem;
margin-top: 1.5rem;
}
.user-info img {
width: 60px;
height: 60px;
border-radius: 50%;
}
/* About Us */
.about-us {
padding: 80px 0;
}
.about-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 3rem;
align-items: center;
}
.about-image img {
width: 100%;
border-radius: 15px;
}
/* Contact */
.contact {
padding: 80px 0;
}
.contact-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 3rem;
}
.contact-item {
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: 2rem;
}
.contact-item i {
width: 50px;
height: 50px;
background-color: var(--bg-light);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: var(--primary-blue);
font-size: 1.5rem;
}
.contact-form {
background: var(--white);
padding: 2rem;
border-radius: 15px;
box-shadow: var(--shadow);
}
.form-group {
margin-bottom: 1.5rem;
}
.form-group input,
.form-group textarea {
width: 100%;
padding: 12px 15px;
border: 1px solid #e5e7eb;
border-radius: 8px;
font-size: 1rem;
}
/* Responsive Design */
@media (max-width: 768px) {
.hero-title {
font-size: 2.5rem;
}
.hero-subtitle {
font-size: 1.2rem;
}
.partner-content,
.about-content,
.contact-content {
grid-template-columns: 1fr;
}
.hero-stats {
gap: 1.5rem;
}
.stat h3 {
font-size: 2rem;
}
}
/* Animations */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.fade-in {
animation: fadeInUp 0.6s ease;
}
/* Loading States */
.loading {
opacity: 0.7;
pointer-events: none;
}
/* Utility Classes */
.text-center {
text-align: center;
}
.mb-4 {
margin-bottom: 1rem;
}
.mt-4 {
margin-top: 1rem;
}
.p-4 {
padding: 1rem;
}
.m-4 {
margin: 1rem;
}