:root {
    --primary: #90CAF9;
    --primary-dark: #64B5F6;
    --primary-light: #BBDEFB;
    --secondary: #4FC3F7;
    --dark: #1E293B;
    --dark-light: #334155;
    --light: #F8FAFC;
    --gray: #64748B;
    --gray-light: #CBD5E1;
    --white: #FFFFFF;
    --gradient: linear-gradient(135deg, #90CAF9 0%, #64B5F6 100%);
    --play-gradient: linear-gradient(135deg, #585454 0%, #000000 100%);
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo {
    height: 45px;
    width: auto;
    margin-right: 10px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
}

/* Hero Section */
.hero {
    padding: 180px 0 120px;
    background: var(--gradient);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M1200 120L0 16.48 0 0 1200 0 1200 120z" fill="%23f8fafc"/></svg>');
    background-size: 100% 100px;
    background-repeat: no-repeat;
    background-position: bottom;
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    gap: 10px;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow);
}

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

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.btn-playstore {
    background: var(--play-gradient);
    color: white;
    padding: 14px 24px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

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

.playstore-icon {
    font-size: 1.5rem;
}

.playstore-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.playstore-text small {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Mobile Chat Screen */
.mobile-chat-container {
    position: absolute;
    right: 5%;
    top: 62%;
    transform: translateY(-50%);
    width: 320px;
    height: 640px;
    z-index: 2;
}

.mobile-frame {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    border-radius: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    border: 12px solid #1a1a1a;
}

.mobile-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 25px;
    background: #1a1a1a;
    border-radius: 0 0 15px 15px;
    z-index: 10;
}

.chat-screen {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: var(--gradient);
    padding: 45px 15px 15px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.chat-header i {
    font-size: 18px;
}

.chat-header h3 {
    font-size: 16px;
    margin: 0;
    flex: 1;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f0f2f5;
}

.message {
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.received {
    background: #4f4a40;
    border-bottom-left-radius: 5px;
    align-self: flex-start;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.sent {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 5px;
    align-self: flex-end;
    box-shadow: 0 2px 5px rgba(144, 202, 249, 0.3);
}

.message-time {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 5px;
    text-align: right;
}

.chat-input {
    padding: 15px;
    background: white;
    border-top: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    border: none;
    background: #f1f3f5;
    border-radius: 20px;
    padding: 12px 18px;
    font-size: 14px;
    outline: none;
    pointer-events: none;
    color: #999;
}

.chat-input button {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: none;
    opacity: 0.7;
}

.status-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: white;
    z-index: 5;
}

.status-bar .time {
    font-weight: 600;
}

.status-bar .icons {
    display: flex;
    gap: 5px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sections */
.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background: var(--gradient);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

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

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--white);
    font-size: 32px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: var(--gray);
}

/* How It Works */
.how-it-works {
    background-color: var(--white);
}

.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 50px;
    position: relative;
}

.steps:before {
    content: '';
    position: absolute;
    top: 40px;
    left: 15%;
    width: 70%;
    height: 3px;
    background: var(--gradient);
    z-index: 0;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 25px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
}

.step h3 {
    margin-bottom: 15px;
    font-weight: 600;
}

.step p {
    color: var(--gray);
}

/* Register Section */
.register {
    background: var(--gradient);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.register:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M1200 120L0 16.48 0 0 1200 0 1200 120z" fill="%23ffffff" opacity="0.05"/></svg>');
    background-size: 100% 100px;
    background-repeat: no-repeat;
    background-position: bottom;
}

.register .section-title h2,
.register .section-title p {
    color: var(--white);
}

.register .section-title h2:after {
    background: var(--white);
}

.register-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.register p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.register .btn {
    background: var(--white);
    color: var(--primary);
    padding: 16px 40px;
    font-size: 1.1rem;
}

.register .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.register-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.footer-links {
    display: flex;
    list-style: none;
}

.footer-links li {
    margin-left: 30px;
}

.footer-links a {
    text-decoration: none;
    color: var(--gray-light);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-light);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .mobile-chat-container {
        right: 2%;
    }
}

@media (max-width: 1100px) {
    .mobile-chat-container {
        position: relative;
        margin: 50px auto 0;
        right: auto;
        top: auto;
        transform: none;
    }
    
    .hero {
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .mobile-chat-container {
        width: 300px;
        height: 600px;
    }
    
    .steps:before {
        display: none;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .hero {
        padding: 150px 0 100px;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .mobile-chat-container {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        margin: 50px auto 0;
    }

    .steps {
        flex-direction: column;
    }

    .step {
        margin-bottom: 40px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-links li {
        margin: 10px 15px;
    }

    .register-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .btn {
        padding: 12px 24px;
    }
    
    .mobile-chat-container {
        width: 280px;
        height: 560px;
    }
}