/* Add styles here */
/* --- RESET & BASIC STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

/* --- VARIABLES --- */
:root {
    --primary-blue: #6cb6ff;
    --header-bg: #f0f8ff;
    --light-bg: #f5f9fc;
    --text-dark: #111;
    --text-gray: #666;
    --border-radius: 8px;
}

/* --- HEADER / NAVBAR --- */
header {
    background-color: var(--header-bg);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
}

.nav-links a {
    font-size: 0.95rem;
    color: #555;
    margin-right: 1.5rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-select {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-login {
    background-color: var(--primary-blue);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-login:hover {
    opacity: 0.9;
}

/* --- PROFILE DROPDOWN STYLES --- */

/* The container for the button and menu */
.profile-dropdown {
    position: relative;
    display: inline-block;
}

/* The button that opens the menu */
.profile-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #333;
    transition: all 0.2s;
}

.profile-btn:hover {
    background-color: #f8f9fa;
    border-color: #ccc;
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* The actual dropdown menu (hidden by default) */
.dropdown-content {
    display: none; /* Hidden */
    position: absolute;
    right: 0;
    top: 120%; /* Pushes it slightly down from button */
    background-color: white;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-radius: 8px;
    border: 1px solid #eee;
    z-index: 1000;
    overflow: hidden;
}

/* Show the menu when the "show" class is added by JS */
.dropdown-content.show {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

/* Dropdown Header (Name/Email) */
.dropdown-header {
    padding: 12px 16px;
    background-color: #f5f9fc;
    border-bottom: 1px solid #eee;
}

.user-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #333;
}

.user-email {
    font-size: 0.8rem;
    color: #666;
    margin-top: 2px;
}

/* Dropdown Links */
.dropdown-content a {
    color: #333;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: background 0.1s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown-content hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 0;
}

.dropdown-content a.logout {
    color: #d93025; /* Red for logout */
}

.dropdown-content a.logout:hover {
    background-color: #ffebeb;
}

/* Simple fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- HERO SECTION --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 10%;
    gap: 3rem;
    background-color: #fff;
}

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

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

.hero p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    max-width: 90%;
}

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

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary {
    background-color: #eef3f8;
    color: var(--text-dark);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    height: 350px;
}

/* --- HOW IT WORKS SECTION --- */
.how-it-works {
    background-color: var(--light-bg);
    padding: 4rem 10%;
    text-align: center;
}

.section-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #777;
    margin-bottom: 0.5rem;
    display: inline-block;
    background: #e0e0e0;
    padding: 2px 8px;
    border-radius: 4px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.section-subtitle {
    color: var(--text-gray);
    margin-bottom: 3rem;
}

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

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

.step-item p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
    padding: 0 1rem;
}

/* --- FEATURES SECTION --- */
.features {
    padding: 5rem 10%;
    text-align: center;
    background-color: #fff;
}

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

.feature-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-img-container {
    width: 100%;
    height: 200px;
    background-color: #ddd;
}

.feature-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-content {
    padding: 1.5rem;
}

.feature-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

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

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 3rem 5%;
    }

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

    header {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-left {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links a {
        margin: 0 0.5rem;
    }
}
