/* Custom CSS for GK Drop Taxi - Dark Theme Design */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Remove default list styles and spacing */
ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: #ffffff;
    background-color: #1a1a1a;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Remove default margins from all elements */
* {
    margin: 0;
    padding: 0;
}

/* Reset specific elements that might have default spacing */
h1, h2, h3, h4, h5, h6, p {
    margin-top: 0;
}

section {
    margin: 0;
    padding: 0;
}

/* Remove white space - Full width containers */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

@media (min-width: 769px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

@keyframes pulse-custom {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out;
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Mobile Menu Styles */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, visibility 0.3s ease-out;
    opacity: 0;
    visibility: hidden;
}

#mobileMenu.show {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.3s ease-in, opacity 0.3s ease-in, visibility 0.3s ease-in;
}

#menuIcon, #closeIcon {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#closeIcon {
    opacity: 0;
    transform: rotate(90deg);
}

#mobileMenuBtn.active #menuIcon {
    opacity: 0;
    transform: rotate(90deg);
}

#mobileMenuBtn.active #closeIcon {
    opacity: 1;
    transform: rotate(0deg);
}

/* Smooth transitions */
button, a, input, select {
    transition: all 0.3s ease;
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #fbbf24;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f59e0b;
}

/* Form input focus styles */
input:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.3);
    transform: translateY(-1px);
}

/* Price display */
#priceDisplay {
    animation: slideUp 0.5s ease-out;
}

#priceDisplay.hidden {
    display: none !important;
}

#calculatorPlaceholder.hidden {
    display: none !important;
}

/* Route card hover effect */
article {
    transition: all 0.3s ease;
}

article:hover {
    transform: translateY(-4px);
}

/* WhatsApp button */
.animate-bounce {
    animation: bounce 2s infinite;
}

/* Call button pulse animation */
.animate-pulse-custom {
    animation: pulse-custom 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Dark theme hero section */
.hero-dark {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%231a1a1a" width="1200" height="400"/><circle fill="%23333" cx="200" cy="100" r="3"/><circle fill="%23333" cx="400" cy="150" r="2"/><circle fill="%23333" cx="600" cy="80" r="2.5"/><circle fill="%23333" cx="800" cy="120" r="2"/><circle fill="%23333" cx="1000" cy="90" r="3"/></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

/* White curved divider */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

@media (max-width: 640px) {
    .wave-divider svg {
        height: 40px;
    }
}

/* Yellow section background */
.yellow-section {
    background-color: #fbbf24;
    color: #1a1a1a;
}

/* Dark cards */
.dark-card {
    background: #2a2a2a;
    border: 1px solid #333;
}

.dark-card:hover {
    border-color: #fbbf24;
}

/* Subscription card triangle */
.card-triangle {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #fbbf24;
}

/* Mobile-First Responsive Design - Compact & Optimized */
/* Using 768px breakpoint as requested */
@media (max-width: 768px) {
    /* Touch-friendly inputs - reduced size */
    input, select, button {
        min-height: 42px;
        font-size: 15px;
    }
    
    /* Compact section spacing - reduced padding */
    section {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
    
    /* Reduced heading sizes for mobile */
    h1 {
        font-size: 1.125rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.25rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }
    
    h3 {
        font-size: 1rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }
    
    h4 {
        font-size: 0.9375rem;
        line-height: 1.2;
    }
    
    /* Compact text sizes */
    p {
        font-size: 0.8125rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }
    
    /* Reduced card padding */
    article, .dark-card {
        padding: 0.75rem !important;
        margin-bottom: 0.75rem;
    }
    
    /* Compact container padding */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Hero section - reduced height */
    .hero-dark {
        min-height: 35vh !important;
    }
    
    .hero-content {
        padding: 0.5rem 0;
    }
    
    /* Reduced button sizes */
    button, a.btn, .btn {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }
    
    /* Compact form spacing */
    form .space-y-3 > * + * {
        margin-top: 0.625rem;
    }
    
    form .space-y-4 > * + * {
        margin-top: 0.75rem;
    }
    
    /* Reduced gaps in grids */
    .gap-3 {
        gap: 0.625rem;
    }
    
    .gap-4 {
        gap: 0.75rem;
    }
    
    /* Compact margins */
    .mb-3 {
        margin-bottom: 0.625rem;
    }
    
    .mb-4 {
        margin-bottom: 0.75rem;
    }
    
    .mb-6 {
        margin-bottom: 1rem;
    }
    
    .mb-8 {
        margin-bottom: 1.25rem;
    }
    
    .mb-12 {
        margin-bottom: 1.5rem;
    }
    
    /* Remove excessive spacing */
    .space-y-2 > * + * {
        margin-top: 0.375rem;
    }
    
    .space-y-3 > * + * {
        margin-top: 0.5rem;
    }
    
    .space-y-4 > * + * {
        margin-top: 0.625rem;
    }
    
    /* Compact footer */
    footer {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    footer .gap-4 {
        gap: 1rem;
    }
    
    footer .gap-8 {
        gap: 1.5rem;
    }
    
    /* Route card compact sizing */
    article .relative {
        height: 100px !important;
    }
    
    article > div:last-child {
        padding: 0.625rem !important;
    }
    
    /* Benefits section compact */
    .yellow-section .grid {
        gap: 0.75rem;
    }
    
    .yellow-section .bg-white {
        padding: 0.75rem !important;
    }
    
    /* Fleet section compact */
    #fleet .grid {
        gap: 0.75rem;
    }
    
    #fleet .bg-white {
        padding: 0.75rem !important;
    }
    
    /* Price display compact */
    #priceDisplay {
        padding: 0.75rem !important;
    }
    
    #priceDisplay h3 {
        font-size: 0.9375rem;
        margin-bottom: 0.5rem;
    }
    
    #totalFare {
        font-size: 1.5rem !important;
    }
    
    /* Wave divider smaller on mobile */
    .wave-divider svg {
        height: 30px;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    section {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}

/* Desktop enhancements */
@media (min-width: 1025px) {
    article:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 25px -5px rgba(251, 191, 36, 0.2);
    }
    
    section {
        scroll-margin-top: 80px;
    }
    
    .container {
        max-width: 1200px;
    }
}

/* Button states */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

button:hover:not(:disabled),
a.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

button:active:not(:disabled),
a.button:active {
    transform: translateY(0);
}

/* Accessibility */
*:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .fixed,
    #mobileMenuBtn,
    header {
        display: none;
    }
}

/* Smooth page load */
body {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

/* Image styles */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility classes */
.no-padding {
    padding: 0 !important;
}

.full-width {
    width: 100%;
}

/* Remove gaps between sections */
section + section {
    margin-top: 0;
}

/* Ensure no unwanted vertical spacing */
main > section:first-child {
    margin-top: 0;
}

main > section:last-child {
    margin-bottom: 0;
}

/* Compact line heights for mobile */
@media (max-width: 768px) {
    body {
        line-height: 1.4;
    }
    
    p, li, span {
        line-height: 1.4;
    }
    
    /* Remove any default margins from headings */
    h1, h2, h3, h4, h5, h6 {
        margin-top: 0;
        margin-bottom: 0.5rem;
    }
    
    /* Compact list spacing */
    ul.space-y-1 > li + li {
        margin-top: 0.25rem;
    }
    
    ul.space-y-2 > li + li {
        margin-top: 0.375rem;
    }
}

/* Hero car animation */
@keyframes carSlide {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.car-animate {
    animation: carSlide 1s ease-out;
}
