/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6C63FF;
    --secondary: #FF6584;
    --accent: #36D1DC;
    --dark: #1A1A2E;
    --darker: #0F0F1E;
    --light: #F8F9FA;
    --gray: #8A8AA3;
    --success: #4CAF50;
    --warning: #FF9800;
    --gradient: linear-gradient(135deg, var(--primary), var(--accent));
    --gradient-secondary: linear-gradient(135deg, var(--secondary), #FF8E53);
    --glass: rgba(255, 255, 255, 0.1);
    --glass-dark: rgba(0, 0, 0, 0.2);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.2);
    --radius: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--darker);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== ANIMATED BACKGROUND ELEMENTS ===== */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.chat-bubble {
    position: absolute;
    border-radius: 50%;
    background: var(--glass);
    backdrop-filter: blur(10px);
    animation: float 15s infinite ease-in-out;
}

.bubble1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 5%;
    background: rgba(108, 99, 255, 0.1);
    animation-delay: 0s;
}

.bubble2 {
    width: 80px;
    height: 80px;
    top: 70%;
    right: 10%;
    background: rgba(255, 101, 132, 0.1);
    animation-delay: 3s;
}

.bubble3 {
    width: 150px;
    height: 150px;
    bottom: 10%;
    left: 15%;
    background: rgba(54, 209, 220, 0.1);
    animation-delay: 6s;
}

.bubble4 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 20%;
    background: rgba(255, 142, 83, 0.1);
    animation-delay: 9s;
}

.pulse-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.05) 0%, transparent 70%);
    animation: pulse 8s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

/* ===== HEADER ===== */
.glass-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.glass-header:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-lg);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo span {
    color: var(--secondary);
    -webkit-text-fill-color: var(--secondary);
}

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

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    background: var(--glass);
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 70%;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.lang-btn {
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light);
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.cta-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 5% 50px;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    background: var(--gradient-secondary);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    animation: pulse 2s infinite;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 40px;
    line-height: 1.8;
}

.stats {
    display: flex;
    gap: 40px;
    margin: 40px 0;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 5px;
}

.download-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 30px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
    flex: 1;
    max-width: 220px;
}

.store-btn.apple {
    background: #000;
    color: white;
}

.store-btn.google {
    background: white;
    color: #000;
}

.store-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.store-btn i {
    font-size: 28px;
}

.store-btn .small-text {
    display: block;
    font-size: 12px;
    opacity: 0.8;
}

.store-name {
    font-size: 18px;
    font-weight: 600;
}

/* ===== HERO IMAGE ===== */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-iphone {
    position: relative;
    animation: float-iphone 6s infinite ease-in-out;
}

@keyframes float-iphone {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.iphone-mockup {
    width: 300px;
    height: 600px;
    background: linear-gradient(145deg, #2d2d44, #1a1a2e);
    border-radius: 40px;
    padding: 25px;
    position: relative;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.5),
                -20px -20px 60px rgba(255, 255, 255, 0.05);
}

.iphone-mockup::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: #1a1a2e;
    border-radius: 0 0 15px 15px;
    z-index: 2;
}

.iphone-mockup img {
    width: 100%;
    height: 100%;
    border-radius: 25px;
    object-fit: cover;
}

.floating-chat {
    position: absolute;
    bottom: -80px;
    right: -50px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 20px;
    width: 280px;
    box-shadow: var(--shadow);
    animation: float-chat 4s infinite ease-in-out;
    animation-delay: 1s;
}

@keyframes float-chat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.chat-message {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: flex-end;
}

.chat-message.outgoing {
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-content {
    background: var(--glass-dark);
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 180px;
    position: relative;
}

.chat-message.incoming .chat-content {
    border-bottom-right-radius: 4px;
    background: rgba(108, 99, 255, 0.2);
}

.chat-message.outgoing .chat-content {
    border-bottom-left-radius: 4px;
    background: rgba(255, 101, 132, 0.2);
}

.chat-time {
    display: block;
    font-size: 11px;
    color: var(--gray);
    margin-top: 5px;
    text-align: right;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

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

.scroll-indicator i {
    font-size: 24px;
    color: var(--primary);
}

/* ===== SECTIONS COMMON ===== */
section {
    padding: 100px 5%;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-glass {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    margin: 40px 5%;
    padding: 80px 5%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-dark {
    background: var(--dark);
    border-radius: var(--radius-lg);
    margin: 40px 5%;
    padding: 80px 5%;
}

.section-light {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    margin: 40px 5%;
    padding: 80px 5%;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 40px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--glass);
    border-radius: var(--radius);
    transition: var(--transition);
}

.about-feature:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.15);
}

.about-feature i {
    font-size: 24px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-feature h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.about-feature p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--gray);
}

/* ===== CHAT INTERFACE ===== */
.chat-interface {
    background: var(--dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.chat-header {
    background: var(--gradient);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-avatar.small {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.chat-avatar.xs {
    width: 35px;
    height: 35px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.chat-header h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.chat-header p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.chat-messages-preview {
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    min-height: 200px;
}

.chat-msg {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.chat-msg.incoming {
    flex-direction: row;
}

.chat-msg.outgoing {
    flex-direction: row-reverse;
}

.msg-content {
    background: var(--glass);
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 200px;
}

.chat-msg.incoming .msg-content {
    background: rgba(108, 99, 255, 0.2);
    border-bottom-left-radius: 5px;
}

.chat-msg.outgoing .msg-content {
    background: rgba(255, 101, 132, 0.2);
    border-bottom-right-radius: 5px;
}

.chat-input {
    display: flex;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 20px;
    padding: 12px 20px;
    color: white;
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
}

.chat-input input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.chat-input button {
    background: var(--gradient);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-left: 10px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.chat-input button:hover {
    transform: scale(1.1);
}

/* ===== FEATURES SECTION ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--glass);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--light);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.feature-badge {
    display: inline-block;
    background: var(--gradient-secondary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    position: absolute;
    top: 20px;
    right: 20px;
}

.feature-badge.new {
    background: linear-gradient(135deg, #00b09b, #96c93d);
}

/* ===== SCREENSHOTS SECTION ===== */
.screens-carousel {
    position: relative;
    margin-top: 50px;
}

.carousel-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px;
    scrollbar-width: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.screenshot-item {
    flex: 0 0 auto;
    width: 250px;
}

.phone-frame {
    position: relative;
    background: linear-gradient(145deg, #2d2d44, #1a1a2e);
    border-radius: 30px;
    padding: 25px;
    box-shadow: 15px 15px 40px rgba(0, 0, 0, 0.5);
}

.phone-frame img {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    object-fit: cover;
}

.screen-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 0 0 20px 20px;
    text-align: center;
    font-weight: 600;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--gradient);
    transform: scale(1.1);
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--gradient);
    border-radius: var(--radius-lg);
    margin: 40px 5%;
    padding: 80px 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    justify-content: center;
    margin-bottom: 50px;
}

.store-btn.large {
    max-width: 250px;
    padding: 20px 35px;
}

.cta-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.cta-stat {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cta-stat i {
    font-size: 2rem;
    color: white;
}

.cta-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.cta-stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ===== FOOTER ===== */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--light);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-right: 10px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--gray);
}

.contact-info i {
    color: var(--primary);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gradient);
    transform: translateY(-5px);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 15px;
    color: white;
    font-family: 'Cairo', sans-serif;
}

.newsletter-form button {
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.main-footer {
    background: var(--dark);
    padding: 40px 5%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-tagline {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.copyright {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text, .hero-image {
        width: 100%;
        max-width: 100%;
    }
    
    .stats {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .glass-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .lang-btn, .cta-btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .store-btn {
        max-width: 100%;
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .iphone-mockup {
        width: 250px;
        height: 500px;
    }
    
    .floating-chat {
        width: 220px;
        right: -30px;
    }
    
    .carousel-container {
        gap: 15px;
    }
    
    .screenshot-item {
        width: 200px;
    }
}
