/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors from the app */
    --primary-purple: #331345;
    --deep-purple: rgb(51, 19, 69);
    --accent-purple: rgb(102, 38, 138);
    --dark-overlay: rgba(0, 0, 0, 0.93);
    --text-orange: #ff8c42;
    --text-orange-light: #ffb380;
    --text-white: #ffffff;
    --text-white-dim: rgba(255, 255, 255, 0.7);
    --text-white-soft: rgba(255, 255, 255, 0.85);
    
    /* Typography */
    --font-title: 'IM Fell English SC', serif;
    --font-body: 'Glass Antiqua', serif;
    --font-fallback: Georgia, serif;
}

@font-face {
    font-family: 'Glass Antiqua';
    src: url('assets/fonts/GlassAntiqua-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IM Fell English SC';
    src: url('assets/fonts/IMFellEnglishSC-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: var(--font-body), var(--font-fallback);
    background-color: #0a0a0a;
    color: var(--text-orange-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-title), var(--font-fallback);
    font-weight: normal;
    letter-spacing: 0.05em;
    color: var(--text-orange);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem;
    clip-path: inset(0);
}

.floating-background {
    position: absolute;
    inset: -100px;
    background-image: url('assets/back_txt.png');
    background-size: 400px 400px;
    background-repeat: repeat;
    z-index: -1;
    animation: floatBackground 20s ease-in-out infinite;
}

@keyframes floatBackground {
    0%, 100% { transform: translate(-40px, -40px); }
    25% { transform: translate(-20px, -60px); }
    50% { transform: translate(-60px, -70px); }
    75% { transform: translate(-10px, -20px); }
}

/* Animated Card Columns */
.card-columns {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
    padding: 0 2rem;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.card-column {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    /* opacity: 0.18; */
    filter: blur(1.5px);
    will-change: transform;
    transform: rotate(-15deg);
}

.card-column.column-up {
    /* Animation removed - handled by JavaScript */
}

.card-column.column-down {
    /* Animation removed - handled by JavaScript */
}

.floating-card {
    width: 120px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

@keyframes cardScrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

@keyframes cardScrollDown {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

/* Hide extra columns on smaller screens */
@media (max-width: 1200px) {
    .card-column:nth-child(5) {
        display: none;
    }
}

@media (max-width: 900px) {
    .card-column:nth-child(4) {
        display: none;
    }
}

@media (max-width: 600px) {
    .card-column:nth-child(3) {
        display: none;
    }
    .floating-card {
        width: 80px;
    }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 2;
    position: relative;
    padding: 3rem 2rem;
    background: rgba(30, 15, 40, 0.85);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.app-title {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease-out;
    color: #ff8c42;
}

.tagline {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: #ffb380;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.app-icon {
    width: 110px;
    height: 110px;
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 140, 66, 0.3);
    flex-shrink: 0;
}

.cta-button {
    display: inline-block;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-button.primary {
    transition: transform 0.3s ease, opacity 0.3s ease;
    padding: 10px;
    display: inline-block;
}

.cta-button.primary:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.play-badge {
    height: 60px;
    width: auto;
    /* Google's guideline: minimum 7.6mm, we're using 60px which is above minimum */
    /* Clear space of 1/4 badge height is handled by button padding */
}

.hero-visual {
    margin-top: 4rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.phone-mockup {
    max-width: 300px;
    margin: 0 auto;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.8));
}

.phone-mockup .screenshot {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--deep-purple) 50%, rgba(0, 0, 0, 0) 100%);
    position: relative;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--orange-light);
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background-color: rgba(0, 0, 0, 0.5);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--deep-purple);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(102, 38, 138, 0.4);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    margin-bottom: 1.5rem;
    color: var(--text-orange);
}

.feature-list {
    list-style: none;
    margin-bottom: 1.5rem;
    color: var(--text-orange-light);
}

.feature-list li {
    padding: 0.5rem 0;
    font-size: 1rem;
}

.feature-list li:before {
    content: "• ";
    color: var(--accent-purple);
    font-weight: bold;
}

.feature-description {
    color: var(--text-orange-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* Experience Section */
.experience {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, var(--primary-purple) 50%, rgba(0, 0, 0, 0.5) 100%);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .experience-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1200px;
    }
}

.experience-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.experience-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.experience-item .check {
    font-size: 1.5rem;
    color: var(--accent-purple);
    flex-shrink: 0;
}

.experience-item p {
    font-size: 1.1rem;
    color: var(--text-orange-light);
    margin: 0;
}

/* Screenshots Section */
.screenshots {
    padding: 6rem 2rem;
    background-color: rgba(0, 0, 0, 0.6);
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.screenshot-item {
    text-align: center;
}

.screenshot-item img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease;
}

.screenshot-item img:hover {
    transform: scale(1.05);
}

.screenshot-caption {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-orange-light);
}

/* Privacy Section */
.privacy {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, var(--deep-purple) 100%);
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.privacy-content p {
    margin-bottom: 1.5rem;
    color: var(--text-orange-light);
}

.privacy-link {
    color: var(--text-orange);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: var(--text-orange-light);
    text-decoration: underline;
}

/* Final CTA Section */
.cta-final {
    padding: 6rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, var(--deep-purple) 0%, rgba(0, 0, 0, 0.9) 100%);
}

.cta-final h2 {
    margin-bottom: 2rem;
}

.cta-subtext {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: var(--text-orange-light);
}

/* Footer */
.footer {
    padding: 3rem 2rem 2rem;
    background-color: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-size: 0.95rem;
    color: var(--text-orange-light);
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a,
.footer-links .email-copy {
    color: var(--text-orange-light);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-links .email-copy {
    cursor: pointer;
}

.footer-links .email-copy:hover {
    color: var(--text-orange);
}

.footer-links a:hover {
    color: var(--text-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 140, 66, 0.2);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--text-orange-light);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding: 2rem 1rem;
    }
    
    .about, .features, .experience, .screenshots, .privacy, .cta-final {
        padding: 4rem 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .screenshot-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
