/**
 * Yalla Namrah Landing Page Styles
 * Modern, vibrant design with purple and gold color scheme
 */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
    --yn-primary: #5B2D82;
    --yn-primary-dark: #3D1E5C;
    --yn-primary-light: #6B3FA0;
    --yn-accent: #FFB800;
    --yn-accent-hover: #FFC107;
    --yn-white: #FFFFFF;
    --yn-text-light: rgba(255, 255, 255, 0.9);
    --yn-text-muted: rgba(255, 255, 255, 0.7);
    --yn-glass: rgba(255, 255, 255, 0.1);
    --yn-glass-border: rgba(255, 255, 255, 0.2);
    --yn-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --yn-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

/* Base Styles for Landing Page */
.yn-landing {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

.yn-landing * {
    box-sizing: border-box;
}

/* Hero Section */
.yn-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--yn-primary-dark) 0%, var(--yn-primary) 50%, var(--yn-primary-light) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    overflow: hidden;
}

/* Animated Background Elements */
.yn-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(107, 63, 160, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 184, 0, 0.15) 0%, transparent 40%);
    animation: yn-pulse 15s ease-in-out infinite;
}

@keyframes yn-pulse {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.1) rotate(5deg);
    }
}

/* Floating Circles */
.yn-floating-circle {
    position: absolute;
    border-radius: 50%;
    background: var(--yn-accent);
    opacity: 0.8;
    animation: yn-float 6s ease-in-out infinite;
}

.yn-floating-circle:nth-child(1) {
    width: 60px;
    height: 60px;
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.yn-floating-circle:nth-child(2) {
    width: 40px;
    height: 40px;
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.yn-floating-circle:nth-child(3) {
    width: 50px;
    height: 50px;
    bottom: 25%;
    left: 8%;
    animation-delay: 2s;
}

.yn-floating-circle:nth-child(4) {
    width: 35px;
    height: 35px;
    bottom: 20%;
    right: 10%;
    animation-delay: 1.5s;
}

@keyframes yn-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Floating Lines */
.yn-floating-line {
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--yn-accent), transparent);
    transform: rotate(45deg);
    animation: yn-line-float 8s ease-in-out infinite;
}

.yn-floating-line:nth-child(5) {
    top: 30%;
    right: 20%;
    animation-delay: 0.5s;
}

.yn-floating-line:nth-child(6) {
    bottom: 35%;
    left: 15%;
    animation-delay: 2s;
    transform: rotate(-45deg);
}

@keyframes yn-line-float {

    0%,
    100% {
        opacity: 0.5;
        transform: rotate(45deg) translateX(0);
    }

    50% {
        opacity: 1;
        transform: rotate(45deg) translateX(20px);
    }
}

/* Hero Content */
.yn-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    animation: yn-fadeInUp 1s ease-out;
}

@keyframes yn-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo */
.yn-logo {
    width: 140px;
    height: 140px;
    margin: 0 auto 30px;
    border-radius: 30px;
    box-shadow: var(--yn-shadow);
    animation: yn-logoFloat 4s ease-in-out infinite;
    background: var(--yn-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.yn-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes yn-logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Typography */
.yn-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    color: var(--yn-white);
    margin: 0 0 20px;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.yn-title span {
    color: var(--yn-accent);
}

.yn-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--yn-text-light);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Download Buttons */
.yn-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.yn-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--yn-transition);
    cursor: pointer;
    border: none;
}

.yn-btn-primary {
    background: var(--yn-accent);
    color: var(--yn-primary-dark);
    box-shadow: 0 10px 30px rgba(255, 184, 0, 0.4);
}

.yn-btn-primary:hover {
    background: var(--yn-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 184, 0, 0.5);
    color: var(--yn-primary-dark);
}

.yn-btn-secondary {
    background: var(--yn-glass);
    color: var(--yn-white);
    border: 2px solid var(--yn-glass-border);
    backdrop-filter: blur(10px);
}

.yn-btn-secondary:hover {
    background: var(--yn-white);
    color: var(--yn-primary);
    transform: translateY(-3px);
}

.yn-btn i {
    font-size: 1.4rem;
}

/* Features Section */
.yn-features {
    background: linear-gradient(180deg, var(--yn-primary-light) 0%, var(--yn-primary) 100%);
    padding: 100px 20px;
    position: relative;
}

.yn-section-title {
    text-align: center;
    color: var(--yn-white);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 60px;
}

.yn-section-title span {
    color: var(--yn-accent);
}

.yn-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.yn-feature-card {
    background: var(--yn-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--yn-glass-border);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--yn-transition);
}

.yn-feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.yn-feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--yn-accent) 0%, #FFD700 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--yn-primary-dark);
    box-shadow: 0 10px 30px rgba(255, 184, 0, 0.3);
}

.yn-feature-title {
    color: var(--yn-white);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.yn-feature-desc {
    color: var(--yn-text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* App Showcase Section */
.yn-showcase {
    background: var(--yn-primary-dark);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.yn-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(107, 63, 160, 0.3) 0%, transparent 70%);
}

.yn-phone-mockup {
    position: relative;
    z-index: 10;
    max-width: 300px;
    margin: 0 auto 50px;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
}

.yn-phone-screen {
    background: linear-gradient(180deg, var(--yn-primary) 0%, var(--yn-primary-light) 100%);
    border-radius: 28px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.yn-phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yn-phone-screen-placeholder {
    color: var(--yn-text-muted);
    font-size: 1.2rem;
}

/* CTA Section */
.yn-cta {
    background: linear-gradient(135deg, var(--yn-primary) 0%, var(--yn-primary-light) 100%);
    padding: 100px 20px;
    text-align: center;
    position: relative;
}

.yn-cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.yn-cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--yn-white);
    margin-bottom: 20px;
}

.yn-cta-desc {
    font-size: 1.2rem;
    color: var(--yn-text-light);
    margin-bottom: 40px;
    line-height: 1.7;
}

/* Footer */
.yn-footer {
    background: var(--yn-primary-dark);
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.yn-footer-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 15px;
    overflow: hidden;
}

.yn-footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yn-footer-text {
    color: var(--yn-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.yn-footer-text a {
    color: var(--yn-accent);
    text-decoration: none;
}

.yn-footer-text a:hover {
    text-decoration: underline;
}

/* Stats Section */
.yn-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.yn-stat {
    text-align: center;
}

.yn-stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--yn-accent);
    display: block;
}

.yn-stat-label {
    font-size: 1rem;
    color: var(--yn-text-muted);
    margin-top: 5px;
}

/* Scroll Indicator */
.yn-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: yn-bounce 2s infinite;
    cursor: pointer;
    text-decoration: none;
}

.yn-scroll-indicator i {
    font-size: 2rem;
    color: var(--yn-text-muted);
}

@keyframes yn-bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-15px);
    }

    60% {
        transform: translateX(-50%) translateY(-7px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .yn-hero {
        padding: 60px 20px;
    }

    .yn-logo {
        width: 100px;
        height: 100px;
        border-radius: 24px;
    }

    .yn-buttons {
        flex-direction: column;
        align-items: center;
    }

    .yn-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .yn-floating-circle,
    .yn-floating-line {
        display: none;
    }

    .yn-stats {
        gap: 30px;
    }

    .yn-stat-number {
        font-size: 2.5rem;
    }

    .yn-feature-card {
        padding: 30px 20px;
    }

    .yn-phone-mockup {
        max-width: 250px;
    }

    .yn-phone-screen {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .yn-hero {
        min-height: auto;
        padding: 80px 15px;
    }

    .yn-section-title {
        font-size: 1.8rem;
    }

    .yn-features,
    .yn-showcase,
    .yn-cta {
        padding: 60px 15px;
    }
}

/* Utility Classes */
.yn-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hide default layout elements on homepage */
body:not(.iner_page) .yn-hide-on-home {
    display: none;
}