/* ============================================
   VisionEmoji — Website Styles
   Liquid glass + interactive gradient background
   ============================================ */

:root {
    --text-primary: #1a1a1a;
    --text-secondary: #444;
    --text-muted: #777;
    --green: #3a8c3f;
    --green-dark: #2d6e31;
    --green-light: #5cb85c;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: rgba(31, 38, 135, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* ============================================
   Interactive Gradient Background
   ============================================ */

.gradient-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: linear-gradient(135deg,
        #e8f5e9 0%,
        #c8e6c9 20%,
        #dcedc8 40%,
        #f1f8e9 60%,
        #e0f2f1 80%,
        #e8eaf6 100%
    );
    transition: background 0.3s ease;
}

.gradient-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
    transition: transform 0.15s ease-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.4) 0%, transparent 70%);
    top: 10%;
    left: 20%;
    animation: drift-1 20s ease-in-out infinite;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(156, 39, 176, 0.3) 0%, transparent 70%);
    top: 50%;
    right: 10%;
    animation: drift-2 25s ease-in-out infinite;
}

.blob-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(255, 152, 0, 0.3) 0%, transparent 70%);
    bottom: 10%;
    left: 10%;
    animation: drift-3 22s ease-in-out infinite;
}

.blob-4 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(3, 169, 244, 0.25) 0%, transparent 70%);
    top: 30%;
    left: 50%;
    animation: drift-4 18s ease-in-out infinite;
}

.blob-5 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.2) 0%, transparent 70%);
    bottom: 30%;
    right: 30%;
    animation: drift-5 23s ease-in-out infinite;
}

/* Mouse-following blob */
.blob-mouse {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.25) 0%, rgba(156, 39, 176, 0.15) 40%, transparent 70%);
    position: fixed;
    pointer-events: none;
    z-index: -1;
    filter: blur(100px);
    transform: translate(-50%, -50%);
    transition: left 0.4s ease-out, top 0.4s ease-out, background 1s ease;
}

@keyframes drift-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(80px, -60px) scale(1.1); }
    66% { transform: translate(-40px, 40px) scale(0.9); }
}

@keyframes drift-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-70px, 50px) scale(1.15); }
    66% { transform: translate(50px, -30px) scale(0.85); }
}

@keyframes drift-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, 40px) scale(0.9); }
    66% { transform: translate(-50px, -60px) scale(1.1); }
}

@keyframes drift-4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-90px, 50px) scale(1.2); }
}

@keyframes drift-5 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(70px, -40px); }
}

/* Noise overlay */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ============================================
   Floating Emoji Background
   ============================================ */

.emoji-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-emoji {
    position: absolute;
    bottom: -3rem;
    left: var(--x);
    width: var(--size);
    height: var(--size);
    opacity: 0.35;
    animation: float-up var(--duration) var(--delay) linear infinite;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.floating-emoji img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes float-up {
    0% {
        transform: translateY(0) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    5% {
        opacity: 0.35;
        transform: translateY(-5vh) rotate(18deg) scale(1);
    }
    90% {
        opacity: 0.35;
    }
    100% {
        transform: translateY(-110vh) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}

/* ============================================
   Liquid Glass Mixin
   ============================================ */

.glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 8px 32px rgba(31, 38, 135, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* ============================================
   Utility
   ============================================ */

.section {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--green-dark), var(--green-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

/* ============================================
   Hero
   ============================================ */

.hero {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1.5rem 4rem;
}

.hero-content {
    max-width: 700px;
}

.app-icon {
    width: 140px;
    height: 140px;
    border-radius: 28px;
    box-shadow:
        0 0 30px rgba(58, 140, 63, 0.25),
        0 20px 60px rgba(0, 0, 0, 0.12);
    margin-bottom: 2rem;
    animation: icon-glow 4s ease-in-out infinite alternate;
}

@keyframes icon-glow {
    0% { box-shadow: 0 0 30px rgba(58, 140, 63, 0.25), 0 20px 60px rgba(0, 0, 0, 0.12); }
    100% { box-shadow: 0 0 50px rgba(92, 184, 92, 0.35), 0 20px 60px rgba(0, 0, 0, 0.12); }
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--green-dark), var(--green-light), #8fd48f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-emoji {
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
    vertical-align: middle;
}

.hero-emoji img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.badge {
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--green-dark);
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(31, 38, 135, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.badge:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 16px rgba(58, 140, 63, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}

.app-store-link {
    display: inline-block;
    margin-top: 1.8rem;
    transition: all 0.3s ease;
}

.app-store-link img {
    height: 54px;
    width: auto;
}

.app-store-link:hover {
    transform: translateY(-2px);
    filter: brightness(0.3);
}

/* ============================================
   Screenshots / Slideshow
   ============================================ */

.slideshow {
    position: relative;
    max-width: 320px;
    margin: 0 auto;
}

.slideshow-track {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 19.5;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(0.92) translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.slide-card {
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 16px 48px rgba(31, 38, 135, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.slide-card img {
    width: 100%;
    flex: 1;
    object-fit: cover;
    display: block;
}

.slide-caption {
    padding: 0.9rem 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
    flex-shrink: 0;
}

.slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--green);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(58, 140, 63, 0.3);
}

.dot:hover {
    background: var(--green-light);
}

/* ============================================
   Features — Liquid Glass Cards
   ============================================ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    transition: all 0.35s ease;
    box-shadow:
        0 8px 32px rgba(31, 38, 135, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-6px);
    box-shadow:
        0 16px 48px rgba(31, 38, 135, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.feature-icon {
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.feature-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   Tech Stack — Liquid Glass Pills
   ============================================ */

.tech-stack {
    text-align: center;
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px) saturate(170%);
    -webkit-backdrop-filter: blur(14px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 16px rgba(31, 38, 135, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.tech-pill:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow:
        0 8px 24px rgba(58, 140, 63, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
    color: var(--green-dark);
}

.pill-icon {
    display: inline-flex;
    align-items: center;
}

.pill-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem 1.5rem 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-credit {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.footer-credit strong {
    background: linear-gradient(135deg, var(--green-dark), var(--green-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.footer-emojis {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0.6;
}

.footer-emojis img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.footer-emojis img:hover {
    transform: scale(1.3);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
    .hero-title {
        font-size: 3rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gradient-blob {
        filter: blur(60px);
        opacity: 0.4;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 3.5rem 1rem;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .slideshow {
        max-width: 280px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .gradient-blob {
        filter: blur(50px);
        opacity: 0.35;
    }

    .blob-mouse {
        display: none;
    }

    .app-icon {
        width: 110px;
        height: 110px;
    }
}
