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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f5f5f5;
    color: #1a1a2e;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0 20px;
}

/* Header */
.header {
    padding-top: 48px;
    padding-bottom: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: #4361ee;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a2e;
    letter-spacing: -0.5px;
}

/* Main Content */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.icon-wrapper {
    width: 120px;
    height: 120px;
    background: #4361ee;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(67, 97, 238, 0.3);
}

.bus-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    object-position: center;
    filter: grayscale(100%) brightness(1.4) contrast(1.2);
}

/* Footer with scrolling icons */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding-bottom: env(safe-area-inset-bottom, 8px);
    padding-left: 0;
    padding-right: 0;
    height: 70px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.transport-icons {
    position: relative;
    width: 100%;
    height: 50px;
}

.transport-icon {
    position: absolute;
    height: 40px;
    width: auto;
    flex-shrink: 0;
    will-change: transform;
}

/* TFI Bus - drives left to right */
.tfi-bus {
    bottom: 2px;
    animation: driveRight 12s linear infinite;
}

@keyframes driveRight {
    0% {
        transform: translateX(calc(-100% - 80px));
    }
    100% {
        transform: translateX(100vw);
    }
}

/* Aircoach - drives right to left */
.aircoach {
    bottom: 2px;
    animation: driveLeft 9s linear infinite;
}

@keyframes driveLeft {
    0% {
        transform: translateX(100vw);
    }
    100% {
        transform: translateX(calc(-100% - 80px));
    }
}

/* Mobile optimizations */
@media (max-width: 380px) {
    .container {
        padding: 0 16px;
    }

    .header {
        padding-top: 32px;
    }

    .icon-wrapper {
        width: 96px;
        height: 96px;
        border-radius: 28px;
    }

    .bus-image {
        width: 64px;
        height: 64px;
    }

    .transport-icon {
        height: 32px;
    }
}

/* Handle viewport height issues on mobile browsers */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .footer {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
}

/* For browsers that support dvh */
@media (hover: none) and (pointer: coarse) {
    body {
        min-height: 100dvh;
    }
}
