sangwaritaxi_website/index.css

811 lines
14 KiB
CSS

:root {
--primary: #2563eb;
--secondary: #1e40af;
--accent: #f59e0b;
--light: #f8fafc;
--dark: #1e293b;
--gray: #64748b;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body {
background-color: var(--light);
color: var(--dark);
overflow-x: hidden;
}
/* Header Styles */
header {
background-color: white;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
position: fixed;
width: 100%;
z-index: 1000;
}
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 5%;
max-width: 1400px;
margin: 0 auto;
}
.logo {
display: flex;
align-items: center;
}
.logo img {
height: 40px;
margin-right: 10px;
}
.logo h1 {
font-size: 1.5rem;
font-weight: 700;
color: var(--primary);
}
.logo span {
color: var(--accent);
}
.nav-links {
display: flex;
list-style: none;
}
.nav-links li {
margin-left: 2rem;
}
.nav-links a {
text-decoration: none;
color: var(--dark);
font-weight: 500;
transition: color 0.3s;
}
.nav-links a:hover {
color: var(--primary);
}
.cta-button {
background-color: var(--primary);
color: white;
padding: 0.5rem 1.5rem;
border-radius: 5px;
font-weight: 600;
transition: all 0.3s;
}
.cta-button:hover {
background-color: var(--secondary);
transform: translateY(-2px);
}
.mobile-menu {
display: none;
font-size: 1.5rem;
cursor: pointer;
}
/* Hero Section */
.hero {
background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
background-size: cover;
background-position: center;
height: 100vh;
display: flex;
align-items: center;
padding: 0 5%;
color: white;
}
.hero-content {
max-width: 600px;
}
.hero h2 {
font-size: 3rem;
margin-bottom: 1rem;
line-height: 1.2;
}
.hero p {
font-size: 1.1rem;
margin-bottom: 2rem;
opacity: 0.9;
}
/* Booking Form */
.booking-form {
background-color: white;
padding: 2rem;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
max-width: 1200px;
margin: -80px auto 0;
position: relative;
z-index: 100;
}
.form-title {
text-align: center;
margin-bottom: 1.5rem;
color: var(--primary);
}
.form-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1rem;
}
.form-group {
margin-bottom: 1rem;
position: relative;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
color: var(--dark);
}
.form-group input,
.form-group select {
width: 100%;
padding: 0.8rem 1rem;
border: 1px solid #ddd;
border-radius: 5px;
font-size: 1rem;
background-color: #f8fafc;
transition: all 0.3s;
}
.form-group input:focus,
.form-group select:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}
/* Modern date/time picker styling */
input[type="date"],
input[type="time"] {
appearance: none;
-webkit-appearance: none;
padding-right: 1.5rem;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%232563eb' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 0.5rem center;
background-size: 1rem;
}
input[type="time"] {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%232563eb' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5a.5.5 0 0 0-1 0V9a.5.5 0 0 0 .252.434l3.5 2a.5.5 0 1 0 .496-.868L8 8.71V3.5z'/%3E%3Cpath d='M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm7-8A7 7 0 1 1 1 8a7 7 0 0 1 14 0z'/%3E%3C/svg%3E");
}
.form-submit {
background-color: var(--accent);
color: white;
border: none;
padding: 1rem 2rem;
font-size: 1rem;
font-weight: 600;
border-radius: 5px;
cursor: pointer;
transition: all 0.3s;
width: 100%;
margin-top: 1rem;
}
.form-submit:hover {
background-color: #e69009;
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
}
/* Services Section */
.services {
padding: 5rem 5%;
max-width: 1400px;
margin: 0 auto;
}
.section-title {
text-align: center;
margin-bottom: 3rem;
}
.section-title h2 {
font-size: 2.5rem;
color: var(--dark);
margin-bottom: 1rem;
}
.section-title p {
color: var(--gray);
max-width: 700px;
margin: 0 auto;
}
.services-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
}
.service-card {
background-color: white;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
transition: all 0.3s;
}
.service-card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.service-img {
height: 200px;
overflow: hidden;
}
.service-img img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s;
}
.service-card:hover .service-img img {
transform: scale(1.1);
}
.service-content {
padding: 1.5rem;
}
.service-content h3 {
font-size: 1.3rem;
margin-bottom: 0.5rem;
color: var(--dark);
}
.service-content p {
color: var(--gray);
margin-bottom: 1rem;
}
.service-price {
font-size: 1.2rem;
font-weight: 700;
color: var(--primary);
}
/* Fleet Section */
.fleet {
background-color: #f1f5f9;
padding: 5rem 5%;
}
.fleet-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
max-width: 1400px;
margin: 0 auto;
}
.vehicle-card {
background-color: white;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
transition: all 0.3s;
}
.vehicle-card:hover {
transform: translateY(-5px);
}
.vehicle-img {
height: 180px;
overflow: hidden;
}
.vehicle-img img {
width: 100%;
height: 100%;
object-fit: cover;
}
.vehicle-info {
padding: 1.5rem;
}
.vehicle-info h3 {
font-size: 1.2rem;
margin-bottom: 0.5rem;
}
.vehicle-specs {
display: flex;
flex-wrap: wrap;
gap: 1rem;
margin-bottom: 1rem;
}
.spec-item {
display: flex;
align-items: center;
color: var(--gray);
font-size: 0.9rem;
}
.spec-item i {
margin-right: 5px;
color: var(--primary);
}
.vehicle-price {
font-weight: 700;
color: var(--primary);
margin-bottom: 1rem;
}
.book-now {
background-color: var(--primary);
color: white;
border: none;
padding: 0.5rem 1rem;
border-radius: 5px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s;
width: 100%;
}
.book-now:hover {
background-color: var(--secondary);
}
/* Testimonials */
.testimonials {
padding: 5rem 5%;
max-width: 1400px;
margin: 0 auto;
}
.testimonial-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
}
.testimonial-card {
background-color: white;
padding: 2rem;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
position: relative;
}
.testimonial-card::before {
content: '"';
font-size: 5rem;
color: var(--primary);
opacity: 0.1;
position: absolute;
top: 10px;
left: 20px;
}
.testimonial-content {
margin-bottom: 1.5rem;
position: relative;
z-index: 1;
}
.testimonial-author {
display: flex;
align-items: center;
}
.author-img {
width: 50px;
height: 50px;
border-radius: 50%;
overflow: hidden;
margin-right: 1rem;
}
.author-img img {
width: 100%;
height: 100%;
object-fit: cover;
}
.author-info h4 {
font-size: 1rem;
margin-bottom: 0.2rem;
}
.author-info p {
font-size: 0.8rem;
color: var(--gray);
}
.rating {
color: var(--accent);
margin-top: 0.5rem;
}
/* Footer */
footer {
background-color: var(--dark);
color: white;
padding: 4rem 5% 2rem;
}
.footer-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 2rem;
max-width: 1400px;
margin: 0 auto;
}
.footer-col h3 {
font-size: 1.2rem;
margin-bottom: 1.5rem;
position: relative;
padding-bottom: 0.5rem;
}
.footer-col h3::after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 50px;
height: 2px;
background-color: var(--accent);
}
.footer-col ul {
list-style: none;
}
.footer-col ul li {
margin-bottom: 0.8rem;
}
.footer-col ul li a {
color: #cbd5e1;
text-decoration: none;
transition: color 0.3s;
}
.footer-col ul li a:hover {
color: white;
}
.social-links {
display: flex;
gap: 1rem;
margin-top: 1rem;
}
.social-links a {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
background-color: rgba(255, 255, 255, 0.1);
border-radius: 50%;
color: white;
transition: all 0.3s;
}
.social-links a:hover {
background-color: var(--accent);
transform: translateY(-3px);
}
.footer-bottom {
text-align: center;
padding-top: 2rem;
margin-top: 2rem;
border-top: 1px solid rgba(255, 255, 255, 0.1);
max-width: 1400px;
margin: 0 auto;
}
/* Confirmation Dialog Styles */
.confirmation-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.7);
display: flex;
justify-content: center;
align-items: center;
z-index: 2000;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
}
.confirmation-overlay.active {
opacity: 1;
visibility: visible;
}
.confirmation-dialog {
background-color: white;
border-radius: 15px;
width: 90%;
max-width: 500px;
padding: 2rem;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
transform: translateY(20px) scale(0.95);
transition: all 0.3s ease;
position: relative;
}
.confirmation-overlay.active .confirmation-dialog {
transform: translateY(0) scale(1);
}
.confirmation-header {
text-align: center;
margin-bottom: 1.5rem;
}
.confirmation-header i {
font-size: 4rem;
color: #10b981;
margin-bottom: 1rem;
}
.confirmation-header h3 {
font-size: 1.8rem;
color: var(--dark);
margin-bottom: 0.5rem;
}
.confirmation-header p {
color: var(--gray);
}
.confirmation-details {
background-color: #f8fafc;
border-radius: 10px;
padding: 1.5rem;
margin: 1.5rem 0;
}
.detail-row {
display: flex;
justify-content: space-between;
margin-bottom: 0.8rem;
}
.detail-row:last-child {
margin-bottom: 0;
}
.detail-label {
color: var(--gray);
font-weight: 500;
}
.detail-value {
color: var(--dark);
font-weight: 600;
}
.confirmation-total {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 0;
border-top: 1px dashed #ddd;
margin-top: 1rem;
}
.confirmation-total .detail-label {
font-size: 1.2rem;
}
.confirmation-total .detail-value {
font-size: 1.4rem;
color: var(--primary);
}
.confirmation-actions {
display: flex;
gap: 1rem;
margin-top: 1.5rem;
}
.confirmation-actions button {
flex: 1;
padding: 0.8rem;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s;
}
.confirmation-actions .btn-print {
background-color: white;
border: 1px solid var(--primary);
color: var(--primary);
}
.confirmation-actions .btn-print:hover {
background-color: #f0f5ff;
}
.confirmation-actions .btn-close {
background-color: var(--primary);
border: 1px solid var(--primary);
color: white;
}
.confirmation-actions .btn-close:hover {
background-color: var(--secondary);
border-color: var(--secondary);
}
.close-dialog {
position: absolute;
top: 15px;
right: 15px;
background: none;
border: none;
font-size: 1.2rem;
color: var(--gray);
cursor: pointer;
transition: color 0.3s;
}
.close-dialog:hover {
color: var(--dark);
}
/* Responsive Styles */
@media (max-width: 768px) {
.nav-links {
display: none;
position: absolute;
top: 70px;
left: 0;
right: 0;
background-color: white;
flex-direction: column;
padding: 1rem;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}
.nav-links.active {
display: flex;
}
.nav-links li {
margin: 0.5rem 0;
}
.mobile-menu {
display: block;
}
.hero h2 {
font-size: 2.2rem;
}
.section-title h2 {
font-size: 2rem;
}
.booking-form {
margin-top: -120px;
padding: 1.5rem;
}
.form-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 480px) {
.hero h2 {
font-size: 1.8rem;
}
.hero p {
font-size: 1rem;
}
.section-title h2 {
font-size: 1.8rem;
}
.booking-form {
margin-top: -150px;
}
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(50px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes bounce {
0%, 20%, 50%, 80%, 100% {
transform: translateY(0);
}
40% {
transform: translateY(-20px);
}
60% {
transform: translateY(-10px);
}
}
.hero-content {
animation: fadeIn 1s ease-in-out;
}
.booking-form {
animation: slideUp 0.8s ease-in-out;
}
.confirmation-header i {
animation: bounce 0.6s ease;
}
.animate-on-scroll {
opacity: 0;
transform: translateY(30px);
transition: all 0.6s ease-out;
}
.animate-on-scroll.visible {
opacity: 1;
transform: translateY(0);
}