/* Global Styles */
:root {
    --primary-color: #544981;
    --secondary-color: #2D264B;
    --accent-color: #f8c156;
    --dark-color: #34303D;
    --light-color: #F5F4F4;
    --text-color: #544981;
    --border-radius: 5px;
    --box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    margin-bottom: 15px;
    line-height: 1.3;
}

p {
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background: var(--secondary-color);
    color: white;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--box-shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 24px;
    margin: 0;
    color: var(--primary-color);
}

nav ul {
    display: flex;
}

nav li {
    margin-left: 20px;
}

nav a {
    color: var(--dark-color);
    font-weight: 500;
}

nav a:hover {
    color: var(--primary-color);
}

nav a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.download-btn {
    background: var(--primary-color);
    color: white !important;
    padding: 8px 16px;
    border-radius: var(--border-radius);
}

.download-btn:hover {
    background: var(--secondary-color);
}

.qr-image {
    width: 20vw;
}

.qr-image img {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1527838832700-5059252407fa?fm=jpg&q=60&w=3000&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') center center/cover no-repeat;
    color: white;
    padding: 120px 0;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 25px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 35px;
}

/* Features Section */
.features {
    padding: 80px 0;
}

.features h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.about h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
}

.about p {
    text-align: justify;
    max-width: 900px;
    margin: 0 auto 20px;
}

/* Page Content */
.page-content {
    padding: 60px 0;
    min-height: calc(100vh - 190px);
}

.page-content h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
}

.subtitle {
    text-align: center;
    font-size: 18px;
    margin-bottom: 40px;
    color: #666;
}

/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
}

.contact-form textarea {
    resize: vertical;
}

.contact-info {
    background: var(--primary-color);
    color: white;
    padding: 30px;
    border-radius: var(--border-radius);
}

.contact-info h3 {
    margin-bottom: 25px;
    font-size: 22px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 20px;
    margin-left: 15px;
}

.social-links {
    margin-top: 30px;
    display: flex;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-left: 15px;
    color: white;
    transition: background 0.3s ease;
}

.social-icon:hover {
    background: white;
    color: var(--primary-color);
}

/* Terms & Privacy Pages */
.terms-section,
.privacy-section {
    margin-bottom: 40px;
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.terms-section h3,
.privacy-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.update-date {
    text-align: right;
    font-style: italic;
    color: #777;
    margin-top: 20px;
}

/* Download Page */
.download-redirect {
    text-align: center;
    padding: 40px 0;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.app-store,
.play-store {
    display: flex;
    align-items: center;
    font-size: 18px;
    padding: 15px 30px;
}

.app-store i,
.play-store i {
    margin-left: 10px;
    font-size: 24px;
}

.qr-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.qr-box {
    text-align: center;
    background: white;
    padding: 5px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    background: #f5f5f5;
    border: 1px dashed #ccc;
}

.qr-placeholder i {
    font-size: 80px;
    color: #aaa;
}

/* Footer Styles */
footer {
    background: var(--dark-color);
    color: white;
    padding: 25px 0;
    text-align: center;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: #ddd;
    margin: 0 10px;
}

.footer-links a:hover {
    color: white;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    nav {
        display: flex;
    }

    nav ul {
        flex-direction: row;
        align-items: center;
        margin-top: 0;
    }

    nav li {
        margin: 0 5px;
    }

    .hero {
        padding: 80px 0;
    }

    .hero h2 {
        font-size: 32px;
    }

    .hero p {
        font-size: 18px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .qr-image {
        width: 60vw;
    }
}

@media (max-width: 480px) {
    .download-buttons {
        flex-direction: column;
    }
}