/* Google Fonts import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #000000;
    --text-color: #f5f5f7;
    --secondary-text: #a1a1a6;
    --link-color: #2997ff;
    --hover-color: #006edb;
    --nav-bg: rgba(0, 0, 0, 0.6);
    /* More transparent */
    --border-color: #333;
    --card-bg: #1c1c1e;
}

html,
body {
    height: 100%;
    /* Robust full height */
    background-color: var(--bg-color);
    /* Ensure black background behind stars */
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100lvh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Utilities */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Header & Navigation */
header {
    background-color: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

nav {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    /* More standard premium padding */
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

.logo-img {
    height: 24px;
    width: auto;
    margin-right: 10px;
    display: block;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.nav-link:hover {
    opacity: 1;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(28, 28, 30, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    min-width: 200px;
    box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    padding: 8px 0;
    z-index: 1001;
    top: 100%;
    right: 0;
    margin-top: 15px;
    /* Gap to bridge */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Pseudo-element to bridge the gap so menu doesn't close */
.dropdown-content::before {
    content: "";
    position: absolute;
    top: -15px;
    /* match margin-top */
    left: 0;
    width: 100%;
    height: 15px;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: background-color 0.1s ease;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apps Scroll Section (now top) */
.apps-scroll-section {
    background-color: transparent;
    /* Transparent for stars */
    padding: 10px 0 20px 0;
    /* Reduced vertical padding */
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.scroll-container {
    width: 100%;
    padding: 20px 0;
    /* Reduced from 40px to save space */
    overflow-x: auto;
    /* Allow manual scroll */
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll on iOS */
    scrollbar-width: none;
    /* Firefox */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.scroll-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.scroll-track {
    display: flex;
    width: max-content;
    padding: 10px 0;
    /* Reduced from 20px */
    /* animation removed for JS control */
}

/* About Section */
.about-section {
    background-color: transparent;
    /* Transparent for stars */
    color: #fff;
    padding: 150px 20px 10px 20px;
    /* Reduced top from 180, bottom from 20 */
    /* Adds top space for navbar, tight bottom for app list */
    text-align: center;
    position: relative;
    z-index: 2;
}

.about-container {
    max-width: 700px;
    margin: 0 auto;
}

.section-logo {
    width: 650px;
    /* Larger logo */
    max-width: 90%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    transition: transform 0.5s ease;
    margin-bottom: 10px;
    display: inline-block;
}

.section-logo:hover {
    transform: scale(1.02);
}

.about-text {
    font-size: 21px;
    line-height: 1.6;
    color: #a1a1a6;
    /* Slightly brighter against stars */
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Readability */
}

/* Starry Background */
/* Starry Background */
#star-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120vh;
    /* Extra tall to cover bottom gap */
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #000000 100%);
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    /* Fade out the bottom edge to mask any cutoffs */
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: twinkle var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes twinkle {
    0% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0.2;
        transform: scale(0.8);
    }
}



/* Pointer events for manual scroll are handled by container */

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 240px;
    /* Wider item area */
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin: 0 10px;
}

.app-item:hover {
    transform: translateY(-10px);
}

.app-icon {
    width: 140px;
    height: 140px;
    border-radius: 32px;
    /* iOS standard curvature */
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Deep shadow */
    object-fit: cover;
    background-color: #222;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: box-shadow 0.3s ease;
}

.app-item:hover .app-icon {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.placeholder-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: rgba(255, 255, 255, 0.2);
    font-weight: 700;
    background: linear-gradient(135deg, #333 0%, #111 100%);
}

.app-name {
    font-size: 19px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
}

.app-tagline {
    font-size: 14px;
    color: #6e6e73;
    text-align: center;
    font-weight: 400;
}




/* Footer */
/* Footer */
footer {
    background-color: transparent;
    padding: 20px 0;
    text-align: center;
    border-top: none;
    font-size: 12px;
    color: #666;
    position: relative;
    z-index: 2;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    nav {
        padding: 0 20px;
    }

    .about-section {
        padding: 100px 20px 20px 20px;
        /* Less top padding on mobile */
    }

    .section-logo {
        width: 90%;
        /* Let it scale */
        max-width: 300px;
        /* Not too huge on mobile */
    }

    .about-text {
        font-size: 18px;
        /* Slightly smaller text */
    }

    .app-item {
        width: 180px;
        /* Smaller items */
    }

    .app-icon {
        width: 100px;
        height: 100px;
        border-radius: 22px;
        margin-bottom: 16px;
    }

    .placeholder-icon {
        font-size: 40px;
    }

    .app-name {
        font-size: 16px;
    }

    .app-tagline {
        font-size: 13px;
    }


}