/* Bus Atas Landing Page Styles */
:root {
    --green-primary: #7CB342;
    --green-light: #9CCC65;
    --green-dark: #558B2F;
    --blue-primary: #2196F3;
    --blue-sky: #42A5F5;
    --blue-deep: #1565C0;
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-600: #757575;
    --gray-800: #424242;
    --gray-900: #212121;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--blue-primary);
    color: var(--gray-900);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Animated gradient background */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        var(--blue-deep) 0%, 
        var(--blue-primary) 25%,
        var(--blue-sky) 50%,
        var(--blue-primary) 75%,
        var(--blue-deep) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -2;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Floating shapes */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    background: var(--white);
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: 20%;
    left: -150px;
    animation: float 25s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    right: 10%;
    animation: float 18s ease-in-out infinite 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

/* Main layout */
main {
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 500px;
    animation: slideUp 0.8s ease-out;
}

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

.app-icon-wrapper {
    margin-bottom: 24px;
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.app-icon:hover {
    transform: scale(1.05) rotate(-2deg);
}

.title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.title-bus {
    color: var(--white);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.title-atas {
    color: var(--green-light);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.tagline {
    font-size: 1.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 16px;
}

.description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    max-width: 420px;
}

/* App Store Button */
.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gray-900);
    color: var(--white);
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 14px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.app-store-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: var(--gray-800);
}

.app-store-btn.light {
    background: var(--white);
    color: var(--gray-900);
}

.app-store-btn.light:hover {
    background: var(--gray-100);
}

.apple-logo {
    width: 28px;
    height: 28px;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-small {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.8;
    letter-spacing: 0.02em;
}

.btn-large {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Hero Visual - Phone Mockup */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: slideUp 0.8s ease-out 0.2s both;
}

.phone-mockup {
    perspective: 1000px;
}

.phone-frame {
    width: 280px;
    height: 580px;
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 44px;
    padding: 12px;
    box-shadow: 
        var(--shadow-xl),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.phone-frame:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--gray-100);
    border-radius: 36px;
    overflow: hidden;
}

.screen-content {
    padding: 60px 16px 16px;
    height: 100%;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.mock-header {
    margin-bottom: 20px;
}

.mock-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.mock-stop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 8px;
}

.mock-stop.second {
    margin-top: 16px;
}

.stop-name {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.95rem;
}

.stop-code {
    font-size: 0.8rem;
    color: var(--gray-600);
    background: var(--gray-200);
    padding: 2px 8px;
    border-radius: 6px;
}

.mock-bus {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}

.bus-number {
    background: var(--green-primary);
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 8px;
    min-width: 48px;
    text-align: center;
}

.arrival-times {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
}

.time {
    font-size: 0.85rem;
    color: var(--gray-600);
    padding: 4px 8px;
    background: var(--gray-100);
    border-radius: 6px;
}

.time.arriving {
    background: var(--green-light);
    color: var(--green-dark);
    font-weight: 600;
}

/* Features Section */
.features {
    background: var(--white);
    padding: 100px 24px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--gray-50);
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:nth-child(1) { transition-delay: 0s; }
.feature-card:nth-child(2) { transition-delay: 0.1s; }
.feature-card:nth-child(3) { transition-delay: 0.2s; }
.feature-card:nth-child(4) { transition-delay: 0.3s; }

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    background: var(--white);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-light) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 50%, var(--green-light) 100%);
    padding: 100px 24px;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.cta p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

/* Footer */
footer {
    background: var(--gray-900);
    padding: 40px 24px;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.copyright {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.attribution {
    color: var(--gray-600);
    font-size: 0.8rem;
    max-width: 520px;
    line-height: 1.5;
}

.attribution a {
    color: var(--gray-600);
    text-decoration: underline;
}

.attribution a:hover {
    color: var(--white);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 80px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .title {
        justify-content: center;
    }
    
    .description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .phone-frame {
        width: 240px;
        height: 500px;
        transform: none;
    }
    
    .phone-frame:hover {
        transform: none;
    }
}

@media (max-width: 600px) {
    .title {
        font-size: 3rem;
    }
    
    .tagline {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
    
    .features {
        padding: 60px 16px;
    }
    
    .cta {
        padding: 60px 16px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .app-icon {
        width: 100px;
        height: 100px;
    }
}

/* Initial state for feature cards - they animate in via JS */
.feature-card {
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}
