:root {
    --primary-color: #0070BB;
    --secondary-color: #005A9A;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-gray: #666666;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    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-dark);
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
}

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

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center; /* Align items vertically */
}

.nav-links a, .dropdown-btn {
    font-weight: 500;
    transition: var(--transition);
    color: var(--text-dark); /* Ensure text color is consistent */
}

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

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-white);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 8px;
    top: 100%; /* Position right below the parent */
    left: 50%;
    transform: translateX(-50%); /* Center the dropdown */
    padding: 10px 0;
    margin-top: 10px; /* Slight gap */
}

/* Triangle/Arrow for dropdown */
.dropdown-content::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    margin-left: -6px;
    border-width: 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent var(--bg-white) transparent;
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    transition: background-color 0.2s;
}

.dropdown-content a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.download-btn {
    background-color: var(--primary-color);
    color: var(--text-light) !important; /* Override generic link color */
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: var(--transition);
}

.download-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    color: var(--text-light) !important;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 5% 4rem;
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.store-btn:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.store-btn i {
    font-size: 1.8rem;
}

.store-btn div {
    line-height: 1.2;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.app-screenshot {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    border: 8px solid #000; /* Simulating phone bezel */
}

/* Features Section */
.features {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-title p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(0, 112, 187, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 5%;
    background-color: var(--bg-light);
}

.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    gap: 2rem;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 112, 187, 0.3);
}

.step h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.step p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Download Section (Showcase) */
.showcase {
    padding: 5rem 5%;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.showcase h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.showcase p {
    color: rgba(255, 255, 255, 0.9);
}

/* Contact Section */
.contact {
    padding: 5rem 5%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.contact-info {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.contact-item a {
    color: var(--primary-color);
    font-weight: 500;
}

/* Footer */
footer {
    background-color: var(--bg-white);
    padding: 4rem 5% 2rem;
    border-top: 1px solid #eee;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.social-links {
    margin: 2rem 0;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    border-radius: 50%;
    margin: 0 0.5rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.copyright {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        position: relative;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 2rem 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        display: none; /* Hidden by default */
        z-index: 999;
    }

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

    .nav-links {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        width: 100%;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        display: none; /* Keep hidden by default */
        text-align: center;
        background-color: transparent;
        transform: none;
        padding-top: 0;
        width: 100%;
    }
    
    .dropdown:hover .dropdown-content {
        display: block;
    }

    .dropdown-content::before {
        display: none;
    }

    .hero {
        flex-direction: column;
        padding-top: 2rem;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-content p {
        margin: 0 auto 2.5rem;
    }
}
