:root {
    --primary-green: #57C878;
    --dark-green: #3D9E5C;
    --light-bg: #f4f9f6;
    --white: #ffffff;
    --text-dark: #2d3436;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
}


/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--dark-green);
    text-decoration: none;
}

.logo-img {
    height: 40px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-dark);
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--primary-green);
}

.nav-links li a.active {
    color: var(--primary-green);
    position: relative;
}

.nav-links li a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--primary-green);
    border-radius: 2px;
}

.hamburger {
    background: transparent;
    border: 1px solid #dfe6e9;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hamburger-lines {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    box-shadow: 0 7px 0 var(--text-dark), 0 -7px 0 var(--text-dark);
}

/* Pages Styling */
.page {
    display: none;
    padding: 4rem 10%;
    min-height: 80vh;
    animation: fadeIn 0.5s ease;
}

.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
    background: radial-gradient(circle at top, rgba(87, 200, 120, 0.15), transparent 60%);
    border-radius: 24px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--primary-green);
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 2rem;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.hero-download {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* How It Works */
.how-it-works {
    margin-top: 2.5rem;
    text-align: center;
}

.how-it-works h2 {
    margin-bottom: 1.5rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.step {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-green);
    color: white;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

/* Cards */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.card i {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

/* Safety */
.safety {
    margin-top: 3rem;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.safety h2 {
    margin-bottom: 1rem;
    text-align: center;
}

.safety ul {
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.safety li::before {
    content: "✓";
    color: var(--primary-green);
    font-weight: 700;
    margin-right: 8px;
}

/* Contact Form */
.contact-container form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 2rem auto;
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.06);
    padding: 2rem;
}

.content-container h2 {
    margin-bottom: 0.75rem;
}

.last-updated {
    color: #5f6c72;
    margin-bottom: 1.5rem;
}

.policy-text h3 {
    margin-top: 1.4rem;
    margin-bottom: 0.55rem;
}

.policy-text ul {
    padding-left: 1.2rem;
}

.contact-container input, .contact-container textarea {
    margin-bottom: 1rem;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.field-label {
    font-weight: 600;
    margin-bottom: 0.4rem;
}

/* Footer */
footer {
    background: #2d3436;
    color: white;
    padding: 3rem 10%;
    text-align: center;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.footer-links a {
    color: #dfe6e9;
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover,
.footer-links a.active-link {
    color: var(--primary-green);
}

.social-icons {
    margin-top: 1.5rem;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary-green);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 0 24px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
        gap: 18px;
        align-items: center;
        justify-content: flex-start;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        z-index: 999;
        transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.2s ease;
    }
    .nav-links.nav-active {
        max-height: 320px;
        opacity: 1;
        padding: 16px 24px 20px;
        pointer-events: auto;
    }
    .nav-links li a {
        margin-left: 0;
        font-size: 1.2rem;
    }
    .hamburger {
        display: inline-flex;
        z-index: 1001;
    }
    .hero h1 { font-size: 2rem; }
    .content-container {
        padding: 1.4rem;
    }
}

@keyframes drawerSlideDown {
    from { transform: translateY(-12px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.download-app {
    text-align: center;
    padding: 40px 20px;
}

.download-text {
    font-size: 1rem;
    color: #666;
    margin-bottom: 14px;
}

.download-icons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    margin: 10px;
}

.download-btn i {
    font-size: 18px;
}

.ios {
    background-color: black;
}

.android {
    background-color: #3DDC84;
    color: black;
}

.download-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.6rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.download-icon.android {
    background: #3ddc84;
    color: #fff;
}

.download-icon.ios {
    background: #000;
    color: #fff;
}

.download-icon:hover {
    transform: scale(1.1);
}

@media (max-width: 520px) {
    .download-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Reset password page */
.reset-password-container {
    max-width: 440px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.06);
    text-align: center;
}

.reset-state {
    display: block;
}

.reset-state--hidden {
    display: none !important;
}

.reset-loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 3px solid var(--light-bg);
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: reset-spin 0.8s linear infinite;
}

@keyframes reset-spin {
    to { transform: rotate(360deg); }
}

.reset-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(87, 200, 120, 0.2);
    border: 2px solid rgba(87, 200, 120, 0.35);
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.reset-icon i {
    display: block;
    line-height: 1;
    font-size: 1.35rem;
}

.reset-icon--error {
    background: rgba(214, 48, 49, 0.15);
    color: #d63031;
}

.reset-icon--success {
    background: rgba(87, 200, 120, 0.25);
    color: var(--dark-green);
}

.reset-password-container h2 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.reset-subtitle {
    color: #5f6c72;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.reset-form {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.reset-form .field-label {
    margin-top: 0.5rem;
}

.reset-form .field-label:first-child {
    margin-top: 0;
}

.reset-form input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.reset-form input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 2px rgba(87, 200, 120, 0.2);
}

.reset-error {
    color: #d63031;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.reset-error--hidden {
    display: none;
}

.reset-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
}

.reset-link:hover {
    text-decoration: underline;
}

.reset-password-container .btn-primary {
    margin-top: 1rem;
    width: 100%;
}
