/* === CSS Variables based on "Zen" Palette === */
:root {
    /* Primary Colors */
    --soft-lavender: #D0BCFF;
    --deep-midnight: #0F0D13;
    --ethereal-teal: #00D2FF;
    --ethereal-teal-trans: rgba(0, 210, 255, 0.4);
    
    /* Secondary & Tertiary Accents */
    --muted-lavender-grey: #CCC2DC;
    --soft-coral: #EFB8C8;
    --muted-red: #FFB4AB;
    
    /* Dark Gradient Ends */
    --dark-navy: #1A1A2E;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05); /* slightly subtler for web than 0x1a */
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Fonts */
    --font-main: 'Merriweather', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(180deg, var(--deep-midnight) 0%, var(--dark-navy) 100%);
    background-attachment: fixed;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* === Ambient Cursor Glow === */
#cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(208, 188, 255, 0.08) 0%, transparent 60%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
    mix-blend-mode: screen;
}

/* Active state when clicking */
#cursor-glow.active {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, transparent 60%);
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--deep-midnight);
}
::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--soft-lavender);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(90deg, var(--soft-lavender) 0%, var(--ethereal-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Reusable Classes === */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(208, 188, 255, 0.3);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.7rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--soft-lavender);
    color: var(--deep-midnight);
}

.btn-primary:hover {
    background: #e3d5ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(208, 188, 255, 0.4);
}

.btn-secondary.glass-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #fff;
    backdrop-filter: blur(8px);
}

.btn-secondary.glass-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--soft-lavender);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Glow Utilities */
.glow-teal {
    box-shadow: 0 0 30px var(--ethereal-teal-trans);
}

.glow-teal-text {
    text-shadow: 0 0 20px var(--ethereal-teal-trans);
}

.glow-btn {
    animation: gentle-pulse 3s infinite alternate;
}

@keyframes gentle-pulse {
    0% {
        box-shadow: 0 0 15px rgba(208, 188, 255, 0.2);
    }
    100% {
        box-shadow: 0 0 35px rgba(208, 188, 255, 0.6);
    }
}

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(15, 13, 19, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--soft-lavender);
    text-decoration: none;
}

.logo-img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--muted-lavender-grey);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--soft-lavender);
    text-shadow: 0 0 10px rgba(208, 188, 255, 0.5);
}

/* === Hero Section === */
.hero {
    padding-top: 150px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid var(--ethereal-teal-trans);
    color: var(--ethereal-teal);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--muted-lavender-grey);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cta-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cta-wrapper.cta-center {
    align-items: center;
}

.compatibility-text {
    font-size: 0.8rem;
    color: var(--muted-lavender-grey);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: 0.5rem;
}

.compatibility-text i {
    color: #3DDC84; /* Official Android Green */
}

/* Hero Visual / Mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1200px; /* Essential for 3D effect */
    z-index: 10;
}

.hero-mockup {
    width: 320px;
    height: 600px;
    border-radius: 40px;
    padding: 10px;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.08); /* Lighter border frame */
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    transform-style: preserve-3d;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    will-change: transform, box-shadow;
}

.mockup-screen {
    background: #151A22; /* Specific dark gray/blue from image */
    width: 100%;
    height: 100%;
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3.5rem 1.5rem 1.5rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mockup-screen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 210, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.mockup-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(208, 188, 255, 0.4));
}

.massive-icon {
    font-size: 4rem;
    color: var(--ethereal-teal);
    margin-bottom: 1.5rem;
}

.mockup-screen h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--soft-lavender);
}

.mockup-text {
    color: var(--muted-lavender-grey);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.sentiment-selector {
    display: flex;
    justify-content: space-between;
    width: 90%;
    margin-bottom: 2rem;
}

.sentiment-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.sentiment-btn:hover {
    transform: scale(1.2) translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--soft-lavender);
    box-shadow: 0 5px 15px rgba(208, 188, 255, 0.3);
}

.sentiment-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -25px;
    font-size: 0.7rem;
    background: var(--deep-midnight);
    color: var(--soft-lavender);
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.sentiment-btn:hover::after {
    opacity: 1;
}

.sentiment-btn.active {
    background: var(--ethereal-teal-trans);
    border-color: var(--ethereal-teal);
    transform: scale(1.1);
}

.sentiment-bar {
    width: 100%;
    height: 8px;
    background: var(--glass-border);
    border-radius: 10px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.sentiment-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 60%;
    background: linear-gradient(90deg, var(--ethereal-teal), var(--soft-lavender));
    border-radius: 10px;
}

.glass-subcard {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 1.2rem;
    width: 90%;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.glass-subcard:hover {
    background: rgba(255,255,255,0.05);
    transform: translateX(5px);
    border-color: rgba(208, 188, 255, 0.2);
    box-shadow: -5px 5px 15px rgba(0,0,0,0.2);
}

.glass-subcard i {
    font-size: 1.5rem;
    color: var(--soft-coral);
}

/* === Breathing Exercise Widget === */
.breathing-widget {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 1rem;
    width: 90%;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    height: 120px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.breathing-widget:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(0, 210, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.1);
}

.breathing-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--ethereal-teal);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 4s cubic-bezier(0.4, 0, 0.2, 1), background 4s ease, border-color 4s ease, box-shadow 4s ease;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2), inset 0 0 10px rgba(0, 210, 255, 0.1);
    z-index: 2;
}

.breathing-text {
    font-size: 0.55rem;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
    transition: opacity 1s ease;
    text-shadow: 0 0 5px rgba(0,0,0,0.8);
    text-align: center;
}

/* The Inhale state (Expands and turns Lavender) */
.breathing-circle.inhale {
    transform: scale(3.5);
    background: radial-gradient(circle, rgba(208, 188, 255, 0.4), transparent);
    border-color: rgba(208, 188, 255, 0.1);
    box-shadow: 0 0 30px rgba(208, 188, 255, 0.4);
}

/* The Exhale state (Shrinks and turns Teal) */
.breathing-circle.exhale {
    transform: scale(1);
    background: radial-gradient(circle, var(--ethereal-teal-trans), transparent);
    border-color: var(--ethereal-teal);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
}

/* Background ripple effect for breathing */
.breathing-widget::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: var(--soft-lavender);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.breathing-widget.animating::after {
    animation: breath-pulse 8s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes breath-pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(4); opacity: 0.15; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* Background Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.5;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: var(--soft-lavender);
    top: -50px;
    right: -50px;
    animation: float 8s infinite ease-in-out;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: var(--ethereal-teal);
    bottom: -50px;
    left: -50px;
    animation: float 10s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

/* === About Section === */
.about {
    padding: 100px 0 20px 0;
}

.about-card {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    background: linear-gradient(135deg, rgba(208, 188, 255, 0.05) 0%, rgba(0, 210, 255, 0.05) 100%);
}

.about-icon {
    margin-bottom: 1rem;
    color: var(--soft-lavender);
}

.logo-img-about {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(208, 188, 255, 0.4));
}

.about-content {
    text-align: left;
    margin-top: 2rem;
    color: var(--muted-lavender-grey);
    font-size: 1.05rem;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-content strong {
    color: var(--soft-lavender);
}

/* === Features Section === */
.features {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--muted-lavender-grey);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.05);
    transition: transform 0.3s ease;
}

.icon-lavender {
    color: var(--soft-lavender);
    box-shadow: 0 0 20px rgba(208, 188, 255, 0.2);
}

.icon-teal {
    color: var(--ethereal-teal);
    box-shadow: 0 0 20px var(--ethereal-teal-trans);
}

.icon-coral {
    color: var(--soft-coral);
    box-shadow: 0 0 20px rgba(239, 184, 200, 0.2);
}

.icon-glow {
    color: #fff;
    background: linear-gradient(135deg, var(--soft-lavender), var(--ethereal-teal));
    box-shadow: 0 0 20px rgba(208, 188, 255, 0.4);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--muted-lavender-grey);
    font-size: 0.95rem;
}

/* === Developer Section === */
.developer {
    padding: 100px 0;
}

.dev-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(208, 188, 255, 0.05) 0%, rgba(0, 210, 255, 0.05) 100%);
}

.dev-name {
    font-size: 2rem;
    color: var(--soft-lavender);
    margin-bottom: 0.5rem;
}

.dev-role {
    font-size: 1.1rem;
    color: var(--ethereal-teal);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.dev-bio {
    color: var(--muted-lavender-grey);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: #fff;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    width: fit-content;
    transition: all 0.3s ease;
}

.social-link i {
    font-size: 1.3rem;
    color: var(--soft-lavender);
}

.social-link:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--soft-lavender);
    transform: translateX(5px);
}

.dev-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dev-avatar-container {
    width: 250px;
    height: 250px;
    background: var(--glass-bg);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.dev-avatar-container .massive-icon {
    font-size: 6rem;
    margin: 0;
    z-index: 2;
}

.dev-blob {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--soft-lavender) 0%, transparent 70%);
    opacity: 0.3;
    z-index: 1;
    animation: gentle-pulse 4s infinite alternate;
}

/* === CTA Section === */
.cta-section {
    padding: 80px 0;
    text-align: center;
}

.cta-card {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(208, 188, 255, 0.1) 0%, rgba(0, 210, 255, 0.05) 100%);
    border-color: rgba(208, 188, 255, 0.3);
}

.cta-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-card p {
    font-size: 1.1rem;
    color: var(--muted-lavender-grey);
    margin-bottom: 2rem;
}

/* === Footer === */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 2rem 0;
    background: var(--deep-midnight);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--soft-lavender);
}

.footer-text {
    color: var(--muted-lavender-grey);
    font-size: 0.9rem;
}

/* === Back to Top Button === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--ethereal-teal-trans);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--ethereal-teal);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 210, 255, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--ethereal-teal);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.5);
}

/* === Animations Setup === */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* === Responsive Media Queries === */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 2.5rem auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-mockup {
        margin-top: 2rem;
    }

    .dev-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        align-items: center;
    }

    .dev-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile view */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
