@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Caveat', cursive;
    /* All text simple Caveat as requested */
}

html,
body {
    overflow-x: hidden;
}

body {
    background: linear-gradient(180deg, #87CEEB 0%, #E0F7FA 100%);
    min-height: 100vh;
    color: #333;
    position: relative;
    display: flex;
    flex-direction: column;
}

header,
footer {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    z-index: 100;
    width: 100%;
    padding: 20px 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: none;
}

.brand {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.brand:hover {
    transform: scale(1.05);
}

.lang-selector {
    position: relative;
    display: flex;
    align-items: center;
}

select {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
    padding: 8px 30px 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    cursor: pointer;
    font-family: 'Caveat', cursive;
    font-size: 1.3rem;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

select option {
    background: white;
    color: #333;
}

.cloud-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.material-cloud {
    position: absolute;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' fill-opacity='0.8'%3E%3Cpath d='M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.4));
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.hero-section {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 60px;
    gap: 60px;
}

.hero-text-content {
    flex: 0 1 500px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slogan {
    font-size: 3.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.1;
    color: #444;
}

.sub-slogan {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #555;
    font-weight: 400;
    line-height: 1.3;
}

.store-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.store-btn {
    display: flex;
    align-items: center;
    background: #000;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    /* For badge positioning */
    overflow: visible;
    /* Allow badge to stick out */
}

.coming-soon-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff4d4d;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 10;
    white-space: nowrap;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

.store-text span {
    font-family: 'Caveat', cursive !important;
}

.store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.store-btn img {
    height: 30px;
    margin-right: 10px;
}

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

.store-text span:first-child {
    font-size: 1rem;
    opacity: 0.8;
}

.store-text span:last-child {
    font-size: 1.4rem;
    font-weight: 700;
}

/* Phone Mockup */
.hero-phone {
    flex: 0 0 auto;
}

.phone-mockup {
    width: 320px;
    max-width: 100%;
    /* Slightly wider for content */
    height: 640px;
    background: #000;
    border-radius: 45px;
    border: 10px solid #222;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: rotate(-3deg);
    transition: transform 0.3s;
}

.phone-mockup:hover {
    transform: rotate(0deg);
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 25px;
    background: #222;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 20;
}

/* Internal Phone UI - Matched to Screenshot */
.mockup-screen {
    width: 100%;
    height: 100%;
    background: white !important;
    /* White background as per image */
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px;
    padding-top: 40px;
    /* Space for notches */
}

/* App Header */
.app-top-bar {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: #333;
}

.app-user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.user-details {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eee;
    overflow: hidden;
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.username {
    font-weight: 700;
    font-size: 1.2rem;
}

.view-count {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #999;
    font-size: 0.9rem;
}

/* App Message */
.app-message-area {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    padding-top: 20px;
}

#phone-msg {
    font-size: 1.5rem;
    line-height: 1.5;
    color: #333;
    opacity: 1;
    transition: opacity 0.5s;
    font-weight: 400;
    /* Regular weight like handwriting */
}

/* Bottom Info */
.app-bottom-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 10px;
}

.plane-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 1rem;
}

.plane-type {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashed-line {
    border-top: 2px dashed #ddd;
    width: 100%;
}

.location-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #888;
    font-size: 1rem;
    transition: opacity 0.5s;
}

.interactions {
    display: flex;
    justify-content: space-between;
    /* Spread evenly */
    padding: 10px 0;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #333;
}

.action-btn span {
    font-size: 0.9rem;
}

.bottom-handle {
    width: 100px;
    height: 5px;
    background: #ccc;
    border-radius: 5px;
    align-self: center;
    margin-top: 10px;
}

/* Mission Section */
.mission-section {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    margin: 20px 0;
    width: 100%;
    max-width: 900px;
    text-align: center;
}

.mission-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1a237e;
}

.mission-body {
    font-size: 1.9rem;
    line-height: 1.5;
    color: #333;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.footer-links a {
    color: #444;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
    font-size: 1.4rem;
}

.copyright {
    opacity: 0.7;
    font-size: 1.2rem;
    margin-top: 10px;
    color: #444;
}

.plane-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.paper-plane {
    position: absolute;
    width: 60px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        gap: 40px;
    }

    .hero-text-content {
        text-align: center;
        align-items: center;
        max-width: 100%;
    }

    .store-buttons {
        justify-content: center;
    }

    .phone-mockup {
        width: 280px;
        height: 560px;
        transform: rotate(0deg);
    }

    .slogan {
        font-size: 3rem;
    }

    .mission-title {
        font-size: 2.5rem;
    }

    .main-content {
        padding: 40px 10px;
        /* Reduced side padding on mobile */
    }

    header {
        padding: 20px;
        /* Reduced header padding on mobile */
    }
}

/* Blog Section */
.blog-section {
    width: 100%;
    margin-top: 60px;
    margin-bottom: 40px;
    text-align: center;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #1a237e;
}

.blog-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.blog-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    width: 300px;
    border-radius: 20px;
    /* padding: 20px; */
    /* Removed padding here, put it in content */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    text-align: left;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-image {
    width: 100%;
    height: 180px;
    /* Taller image */
    background-color: #eee;
    background-position: center;
    background-size: cover;
    /* Cover for the photo */
    background-repeat: no-repeat;
}

.blog-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-date {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 8px;
    font-weight: 700;
}

.blog-card h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #1a237e;
    line-height: 1.2;
}

.blog-card p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.4;
    margin-bottom: 20px;
    /* Limit to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    /* Push button down */
}

.blog-read-btn {
    align-self: flex-start;
    color: #1a237e;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.blog-read-btn:hover {
    border-bottom: 2px solid #1a237e;
}

/* Plane Trail Particles */
.trail-particle {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    animation: fadeOut 1s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(0);
    }
}

/* Specific Trail Styles */
.trail-solid {
    background: white;
    box-shadow: 0 0 5px white, 0 0 10px white;
}

.trail-icon {
    font-family: 'Material Symbols Outlined', sans-serif;
    /* Fallback if needed, but we use unicode/svg checks */
    display: flex;
    justify-content: center;
    align-items: center;
    font-style: normal;
}

/* New Footer Layout */
.footer-links-top {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links-top a {
    color: #666;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-links-top a:hover {
    color: #1a237e;
}

.footer-divider {
    width: 200px;
    height: 1px;
    background-color: #e0e0e0;
    margin: 0 auto 20px auto;
}

.footer-links-bottom {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links-bottom a {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links-bottom a:hover {
    color: #555;
}

@media (max-width: 600px) {

    .footer-links-top,
    .footer-links-bottom {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}

/* Plane Animations */
@keyframes flyLeft {
    from {
        transform: translate3d(110vw, 0, 0) scaleX(-1);
    }

    to {
        transform: translate3d(-20vw, 0, 0) scaleX(-1);
    }
}

@keyframes flyRight {
    from {
        transform: translate3d(-20vw, 0, 0) scale(1);
    }

    to {
        transform: translate3d(110vw, 0, 0) scale(1);
    }
}

.paper-plane.fly-left {
    animation-name: flyLeft;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    /* Ensure inline transform doesn't conflict, though keyframes override */
}

.paper-plane.fly-right {
    animation-name: flyRight;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.paper-plane {
    position: absolute;
    width: 60px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    will-change: transform;
}