/* Custom CSS Variables */
:root {
    --primary: #1C3D2B;
    --secondary: #F2E8D5;
    --accent: #F59E0B;
    --background: #FAFAFA;
    --text-dark: #1a1a1a;
    --text-light: #6b6b6b;
    --animation-duration: 0.6s;
}

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

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Typography System */
h1, h2, h3, h4, h5, h6, .heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.subheading {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
}

p, span, div, a, button, li {
    font-family: 'Nunito', sans-serif;
}

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

/* Cloud Button Styles */
.cloud-button {
    position: absolute;
    top: 25%;
    padding: 18px 40px 16px;
    background: rgba(255, 255, 255, 0.9);
    color: #2d2d2d;
    border: none;
    border-radius: 60% 40% 55% 45% / 45% 60% 40% 55%;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.4s ease;
    z-index: 20;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.08),
        inset 0 -2px 8px rgba(0, 0, 0, 0.05),
        0 20px 40px -20px rgba(0, 0, 0, 0.15),
        0 0 40px rgba(135, 206, 250, 0.6),
        0 0 60px rgba(135, 206, 250, 0.4);
    animation: float 8s ease-in-out infinite;
    backdrop-filter: blur(3px);
    overflow: visible;
}

/* Rain drops container */
.rain-drops {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 50px;
    pointer-events: none;
    overflow: visible;
}

/* Individual rain drops */
.rain-drops::before,
.rain-drops::after,
.cloud-button .rain-drops::before,
.cloud-button .rain-drops::after {
    content: '';
    position: absolute;
    width: 7px;
    height: 40px;
    background: linear-gradient(to bottom,
        rgba(135, 206, 250, 0.8),
        rgba(100, 180, 240, 0.4));
    border-radius: 50%;
    animation: rain-fall 1s linear infinite;
}

.rain-drops::before {
    left: 30%;
    animation-delay: 0s;
}

.rain-drops::after {
    left: 50%;
    animation-delay: 0.5s;
}

/* Additional rain drops */
.cloud-button::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 70%;
    width: 7px;
    height: 40px;
    background: linear-gradient(to bottom,
        rgba(135, 206, 250, 0.8),
        rgba(100, 180, 240, 0.4));
    border-radius: 50%;
    animation: rain-fall 1s linear infinite;
    animation-delay: 0.3s;
    pointer-events: none;
}

.cloud-button::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 20%;
    width: 7px;
    height: 40px;
    background: linear-gradient(to bottom,
        rgba(135, 206, 250, 0.8),
        rgba(100, 180, 240, 0.4));
    border-radius: 50%;
    animation: rain-fall 1s linear infinite;
    animation-delay: 0.7s;
    pointer-events: none;
}

/* Position cloud buttons */
.cloud-button.cloud-left {
    left: 12%;
    animation-delay: 0s;
    transform: rotate(-2deg);
}

.cloud-button.cloud-right {
    right: 12%;
    animation-delay: 4s;
    transform: rotate(2deg);
}

/* Rain fall animation */
@keyframes rain-fall {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateY(50px);
    }
}

/* Floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(var(--rotation, 0deg));
    }
    25% {
        transform: translateY(-8px) translateX(3px) rotate(calc(var(--rotation, 0deg) + 1deg));
    }
    50% {
        transform: translateY(3px) translateX(-2px) rotate(calc(var(--rotation, 0deg) - 1deg));
    }
    75% {
        transform: translateY(-4px) translateX(2px) rotate(var(--rotation, 0deg));
    }
}

.cloud-button.cloud-left {
    --rotation: -2deg;
}

.cloud-button.cloud-right {
    --rotation: 2deg;
}

.cloud-button:hover {
    transform: scale(1.08) rotate(0deg);
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.12),
        inset 0 -2px 10px rgba(0, 0, 0, 0.06),
        0 25px 50px -25px rgba(0, 0, 0, 0.2);
}

/* Tablet adjustments */
@media (max-width: 1024px) {
    .cloud-button {
        padding: 16px 35px 14px;
        font-size: 13px;
    }

    .cloud-button.cloud-left {
        left: 8%;
        top: 22%;
    }

    .cloud-button.cloud-right {
        right: 8%;
        top: 22%;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .cloud-button.cloud-left {
        left: 10%;
        transform: rotate(-2deg);
        top: 30%;
    }

    .cloud-button.cloud-right {
        right: 10%;
        left: auto;
        transform: rotate(2deg);
        top: 30%;
    }

    .cloud-button {
        padding: 10px 20px 8px;
        font-size: 10px;
    }

    /* Keep rain effect on mobile - modern phones can handle it */
    /* Optionally reduce rain drop size for mobile */
    .cloud-button::before,
    .cloud-button::after {
        width: 5px;
        height: 30px;
    }
}

/* Additional Mobile Responsive Fixes */
@media (max-width: 640px) {
    /* Ensure text doesn't overflow on small screens */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
    }

    /* Better padding for mobile */
    section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Improve card spacing on mobile */
    .grid {
        gap: 1rem;
    }

    /* Make buttons more touch-friendly */
    button, a.btn, .btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Placeholder Image Styles */
.placeholder-img {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

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

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

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

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

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

::-webkit-scrollbar-track {
    background: var(--secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0f2419;
}

/* Loading Animation */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, #0f2419 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--secondary);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Premium Parallax Effect */
.parallax {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Premium Button Hover Effects */
.btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-premium:hover::before {
    width: 300px;
    height: 300px;
}

/* Magnetic Button Effect */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Premium Card 3D Effect */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card-3d:hover {
    transform: rotateY(5deg) rotateX(5deg) scale(1.05);
}

/* Text Split Animation */
.split-text {
    overflow: hidden;
}

.split-text span {
    display: inline-block;
    transform: translateY(100%);
    animation: revealText 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes revealText {
    to {
        transform: translateY(0);
    }
}

/* Counter Animation */
.counter {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* Image Zoom on Hover */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.img-zoom:hover img {
    transform: scale(1.15);
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth Underline Animation */
.hover-underline {
    position: relative;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
}

/* Glow Effect on Hover */
.glow-hover {
    transition: all 0.3s ease;
}

.glow-hover:hover {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Pulse Animation for CTA */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Removed Blur Load Effect - Images now load crisp and clear */
img {
    filter: none !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Car Animation for How Your Trip Works */
.car-animation {
    position: absolute;
    top: 79px;
    left: calc(12.5% - 40px); /* Start a bit behind first circle */
    animation: carJourney 10s linear infinite;
    will-change: transform;
}

@keyframes carJourney {
    /* Stop at Step 1 */
    0%, 10% {
        transform: translateX(20px);
    }
    8% {
        transform: translateX(20px) translateY(-3px);
    }

    /* Move to Step 2 */
    25% {
        transform: translateX(calc(25vw - 20px));
    }
    /* Stop at Step 2 */
    27%, 35% {
        transform: translateX(calc(25vw - 20px));
    }
    33% {
        transform: translateX(calc(25vw - 20px)) translateY(-3px);
    }

    /* Move to Step 3 */
    50% {
        transform: translateX(calc(50vw - 40px));
    }
    /* Stop at Step 3 */
    52%, 60% {
        transform: translateX(calc(50vw - 40px));
    }
    58% {
        transform: translateX(calc(50vw - 40px)) translateY(-3px);
    }

    /* Move to Step 4 */
    75% {
        transform: translateX(calc(75vw - 60px));
    }
    /* Stop at Step 4 */
    77%, 85% {
        transform: translateX(calc(75vw - 60px));
    }
    83% {
        transform: translateX(calc(75vw - 60px)) translateY(-3px);
    }

    /* Return to start */
    95% {
        transform: translateX(calc(75vw - 60px)) rotateY(180deg);
    }
    100% {
        transform: translateX(20px) rotateY(0deg);
    }
}

/* Bounce effect when car reaches a step */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Mobile version - vertical animation */
.car-animation-mobile {
    position: absolute;
    left: calc(50% - 12px);
    top: 54px;
    animation: carJourneyMobile 8s linear infinite;
    will-change: transform;
}

@keyframes carJourneyMobile {
    0% {
        transform: translateY(0px);
    }
    25% {
        transform: translateY(180px);
    }
    50% {
        transform: translateY(360px);
    }
    75% {
        transform: translateY(540px);
    }
    95% {
        transform: translateY(540px) rotateY(180deg);
    }
    100% {
        transform: translateY(0px) rotateY(0deg);
    }
}

@media (max-width: 768px) {
    .car-animation {
        display: none !important;
    }
}

/* Cherry Blossom Animation */
.cherry-blossoms {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 5; /* Above image but below text */
}

.petal {
    position: absolute;
    top: -50px; /* Start above viewport */
    background: linear-gradient(135deg, #FF69B4 0%, #FFB7C5 50%, #FFC0CB 100%);
    border-radius: 0 100% 0 100%;
    opacity: 1;
    box-shadow: 0 2px 4px rgba(255, 105, 180, 0.3);
}

/* Different petal sizes - BIGGER */
.petal.small {
    width: 15px;
    height: 20px;
}

.petal.medium {
    width: 20px;
    height: 25px;
}

.petal.large {
    width: 25px;
    height: 30px;
}

@keyframes petalFall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes petalSway {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-20px);
    }
    75% {
        transform: translateX(20px);
    }
}

/* Responsive petal sizes for different devices */
@media (max-width: 640px) {
    /* Mobile phones */
    .petal.small {
        width: 12px;
        height: 16px;
    }
    .petal.medium {
        width: 16px;
        height: 20px;
    }
    .petal.large {
        width: 20px;
        height: 24px;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    /* Tablets */
    .petal.small {
        width: 14px;
        height: 18px;
    }
    .petal.medium {
        width: 18px;
        height: 23px;
    }
    .petal.large {
        width: 22px;
        height: 27px;
    }
}