/* Custom CSS for AMAN Roadlines Website */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('https://images.unsplash.com/photo-1493663284031-b7e3aaa4cab7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding-top: 76px; /* Account for fixed navbar */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.company-logo {
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffc107;
}

/* Service Cards */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    background: #f8f9fa;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: background 0.3s ease;
}

.service-card:hover .service-icon {
    background: #e9ecef;
}

/* Stats Cards */
.stats-card {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    height: 100%;
}

.stats-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stats-icon {
    background: #f8f9fa;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: background 0.3s ease;
}

.stats-card:hover .stats-icon {
    background: #e9ecef;
}

.stats-number {
    font-size: 3rem;
    line-height: 1;
}

.stats-card h5 {
    color: #333;
    margin-bottom: 1rem;
}

.stats-card p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* About Section */
.about-truck-icon {
    padding: 2rem;
}

.about-truck-icon i {
    opacity: 0.1;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Contact Section */
.contact-section {
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    position: relative;
    margin-bottom: 2rem;
}

.contact-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.badge-text {
    letter-spacing: 2px;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-control {
    border-radius: 25px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1.5rem;
    background: #8b5a5a;
    color: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-control:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
    background: #7a4d4d;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

/* Buttons */
.btn {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-warning {
    background: linear-gradient(45deg, #ffc107, #ffca2c);
    border: none;
    color: #000;
}

.btn-warning:hover {
    background: linear-gradient(45deg, #ffca2c, #ffd93d);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

.btn-dark {
    background: linear-gradient(45deg, #343a40, #495057);
    border: none;
}

.btn-dark:hover {
    background: linear-gradient(45deg, #495057, #6c757d);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 58, 64, 0.4);
}

.btn-outline-light:hover {
    background: #ffc107;
    border-color: #ffc107;
    color: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.75rem;
    }
    
    .service-card,
    .review-card {
        margin-bottom: 1rem;
    }
    
    .contact-section {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .about-truck-icon i {
        font-size: 6rem !important;
    }
}

@media (max-width: 576px) {
    .hero-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading .btn {
    position: relative;
}

.loading .btn::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Success Message */
.alert-success {
    border-radius: 15px;
    border: none;
    background: linear-gradient(45deg, #28a745, #34ce57);
    color: white;
    font-weight: 600;
}

.alert-danger {
    border-radius: 15px;
    border: none;
    background: linear-gradient(45deg, #dc3545, #e74c3c);
    color: white;
    font-weight: 600;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Section Padding */
section {
    scroll-margin-top: 76px; /* Account for fixed navbar */
}

/* Additional Transport Theme Elements */
.truck-pattern {
    background-image: repeating-linear-gradient(
        45deg,
        #ffc107,
        #ffc107 2px,
        transparent 2px,
        transparent 10px
    );
    height: 4px;
    margin: 2rem 0;
}

/* Footer */
footer {
    background: linear-gradient(45deg, #212529, #343a40) !important;
}

footer h5 {
    color: #ffc107;
    margin-bottom: 1rem;
}

/* Scrolling Truck Animation */
.scrolling-truck {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    font-size: 3rem;
    color: #ffc107;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    pointer-events: none;
}

.scrolling-truck.moving {
    animation: truckBounce 0.6s ease-in-out;
}

@keyframes truckBounce {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(10px); }
}

/* Enhanced Background Patterns */
.bg-pattern {
    position: relative;
    overflow: hidden;
}

.bg-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 193, 7, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 193, 7, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Floating Elements */
.floating-element {
    animation: floatUpDown 4s ease-in-out infinite;
}

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Enhanced Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(255, 193, 7, 0.2)), 
                url('https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding-top: 76px;
    min-height: 100vh;
}

/* Particle Effect */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: #ffc107;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: particleFloat 8s infinite linear;
    opacity: 0.6;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Enhanced Service Cards */
.service-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 193, 7, 0.2);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.2), transparent);
    transition: left 0.6s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 193, 7, 0.3);
}

/* Enhanced Stats Cards */
.stats-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 193, 7, 0.2);
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.2), transparent);
    transition: left 0.6s;
}

.stats-card:hover::before {
    left: 100%;
}

.stats-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 193, 7, 0.3);
}

/* Enhanced Buttons */
.btn {
    border-radius: 30px;
    padding: 1rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #ffca2c, #ffd93d);
    border: none;
    color: #000;
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.4);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ffca2c, #ffd93d, #ffe066);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 193, 7, 0.6);
    color: #000;
}

/* Glowing Effect */
.glow {
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 193, 7, 0.5); }
    50% { box-shadow: 0 0 30px rgba(255, 193, 7, 0.8); }
}

/* Enhanced Navbar */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(33, 37, 41, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(33, 37, 41, 0.98) !important;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
}

/* Section Dividers */
.section-divider {
    height: 4px;
    background: linear-gradient(90deg, 
        transparent, 
        #ffc107, 
        #ffca2c, 
        #ffc107, 
        transparent
    );
    margin: 3rem 0;
    border-radius: 2px;
}

/* Enhanced Contact Form */
.contact-section {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 25px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 193, 7, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #f1f1f1, #e9ecef);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ffc107, #ffca2c);
    border-radius: 6px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ffca2c, #ffd93d);
}

/* Address & Location Section */
#location {
    background: linear-gradient(135deg, #212529, #343a40);
    position: relative;
}

#location::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 193, 7, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255, 193, 7, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

#location .container {
    position: relative;
    z-index: 2;
}

.address-info, .working-hours {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 193, 7, 0.2);
    transition: all 0.3s ease;
    height: 100%;
}

.address-info:hover, .working-hours:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.address-info h4, .working-hours h4 {
    font-size: 1.25rem;
    letter-spacing: 1px;
}

.address-info p, .working-hours p {
    font-size: 1rem;
    line-height: 1.6;
}

.map-container {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 193, 7, 0.2);
    transition: all 0.3s ease;
}

.map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.map-container iframe {
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.map-container:hover iframe {
    transform: scale(1.02);
}

/* Address Section Icons */
.address-info i, .working-hours i {
    background: rgba(255, 193, 7, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}

/* Booking Stations Section */
#stations {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: relative;
}

#stations::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(255, 193, 7, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(13, 110, 253, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

#stations .container {
    position: relative;
    z-index: 2;
}

.station-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.station-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffc107, #fd7e14);
    transition: all 0.3s ease;
}

.station-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: #ffc107;
}

.station-card:hover::before {
    height: 6px;
}

.station-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 193, 7, 0.1);
}

.station-header i {
    font-size: 2rem;
    margin-right: 1rem;
    background: rgba(255, 193, 7, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.station-card:hover .station-header i {
    background: rgba(255, 193, 7, 0.2);
    transform: rotate(10deg) scale(1.1);
}

.station-header h5 {
    color: #212529;
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.station-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

.station-content i.fa-map-marker-alt {
    color: #0d6efd !important;
}

.station-content i.fa-phone {
    color: #ffc107 !important;
}

/* Station Card Animation */
.station-card {
    animation: fadeInUp 0.6s ease-out;
}

.station-card:nth-child(1) { animation-delay: 0.1s; }
.station-card:nth-child(2) { animation-delay: 0.2s; }
.station-card:nth-child(3) { animation-delay: 0.3s; }
.station-card:nth-child(4) { animation-delay: 0.4s; }
.station-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Enhancements */
@media (max-width: 768px) {
    .scrolling-truck {
        right: 15px;
        font-size: 2rem;
    }
    
    .service-card, .stats-card {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 0.75rem 2rem;
        font-size: 0.9rem;
    }
    
    .address-info, .working-hours {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .map-container iframe {
        height: 250px;
    }
}