:root {
    --primary: #10B981;
    --primary-dark: #059669;
    --secondary: #3B82F6;
    --dark: #1F2937;
    --light: #F9FAFB;
    --gray: #6B7280;
    --light-gray: #E5E7EB;
}

/* ===== Base Styles ===== */
html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* ===== Header Styles ===== */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    text-decoration: none;
}

.logo img {
    height: 60px;
    margin-right: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ===== Navigation ===== */
nav {
    height: 100%;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    height: 100%;
    gap: 30px;
}

nav ul li {
    height: 100%;
    display: flex;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: all 0.3s;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 16px;
}

nav ul li a:hover {
    color: var(--primary);
}

nav ul li a.btn {
    background-color: var(--primary);
    color: white;
    border-radius: 8px;
}

nav ul li a.btn:hover {
    background-color: var(--primary-dark);
    color: white;
}

/* ===== Button Styles ===== */
.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--gray);
    color: white;
}

.btn-secondary:hover {
    background-color: #4B5563;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.2);
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.tagline {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 40px;
}

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

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
    min-height: 420px;
}

.hero-image img {
    width: 100%;
    max-width: 280px;
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-height: 600px;
    object-fit: cover;
    position: relative;
    z-index: 1;
    transform: translateY(9px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 300px;
    height: calc(100% - 20px);
    background-color: #fff;
    border-radius: 36px;
    z-index: 0;
}

.hero-image img:hover {
    transform: translateY(-1px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* ===== Features Section ===== */
.features {
    padding: 100px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

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

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

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

.feature-card {
    background-color: var(--light);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-icon {
    background-color: rgba(16, 185, 129, 0.5);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

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

/* ===== How It Works Section ===== */
.how-it-works {
    padding: 100px 0;
    background-color: var(--light);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    background-color: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

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

/* ===== Testimonials Section ===== */
.testimonials {
    padding: 100px 0;
    background-color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.testimonial-card {
    background-color: var(--light);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
    color: var(--dark);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.author-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ===== CTA Section ===== */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.app-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: inline-block;
    text-decoration: none;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.footer-social a:hover {
    background-color: var(--primary);
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ===== Error Page Styles ===== */
.error-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 60px;
    text-align: center;
    min-height: calc(100vh - 80px - 91px);
}

.error-content {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 20px;
}

.error-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.error-emoji {
    font-size: 120px;
    margin: 20px 0 30px;
    line-height: 1;
}

.error-message {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 30px;
}

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

/* ===== Contact Page Styles ===== */
.contact-hero {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 120px 0 60px;
}

.contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-hero .tagline {
    font-size: 1.5rem;
    margin-bottom: 20px;
    opacity: 0.9;
    color: white;
}

.contact-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2,
.contact-form h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--dark);
}

.contact-info p {
    margin-bottom: 40px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-method:first-of-type {
    margin-top: 40px;
}

.contact-icon {
    font-size: 24px;
    margin-right: 20px;
}

.contact-details h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.contact-details a {
    color: var(--primary);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-status {
    margin-top: 1rem;
}

/* ===== FAQ Section ===== */
.faq-section {
    padding: 80px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.faq-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.faq-item p {
    color: var(--gray);
    line-height: 1.6;
}

/* ===== Blog Listing Page Styles ===== */
.blog-header {
    padding: 140px 0 30px;
    text-align: center;
    background-color: var(--light);
}

.blog-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.blog-description {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.blog-grid {
    padding: 60px 0 100px;
    background-color: var(--light);
}

.blog-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.blog-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    color: var(--dark);
    text-decoration: none;
    margin-bottom: 12px;
    display: block;
}

.blog-card-title h2 {
    font-size: 1.4rem;
    line-height: 1.4;
    transition: color 0.3s;
}

.blog-card-title:hover h2 {
    color: var(--primary);
}

.blog-card-description {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.blog-card-meta {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
}

/* ===== Individual Blog Page Styles ===== */
.blog-meta {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.blog-content {
    padding: 40px 0 80px;
    background-color: var(--light);
}

.blog-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark);
}

.blog-text h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary);
}

.blog-text p {
    margin-bottom: 20px;
}

.blog-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ===== Related Posts ===== */
.related-posts {
    background-color: white;
    padding: 60px 0 100px;
}

.related-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--dark);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.related-content {
    padding: 20px;
}

.related-content h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.related-content a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s;
}

.related-content a:hover {
    color: var(--primary);
}

.related-content p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== Download Page Styles ===== */
.download-section {
    padding: 160px 0 80px;
    text-align: center;
    background-color: var(--light);
}

.app-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.app-badge {
    height: 60px;
    transition: transform 0.3s;
}

.app-badge:hover {
    transform: translateY(-5px);
}

.app-preview {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.app-screenshot {
    max-width: 280px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ===== Delete Account Page Styles ===== */
.content {
    padding: 160px 0 100px;
}

.steps {
    background-color: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.step {
    display: block;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.step:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.step-content {
    display: block;
}

.step-content h2 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.step-content p {
    color: var(--gray);
    margin-bottom: 10px;
}

.note {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    max-width: 600px;
    margin: 0 auto;
}

.note h3 {
    margin-bottom: 10px;
    color: var(--dark);
}

.note p {
    color: var(--gray);
    line-height: 1.6;
}

.note a {
    color: inherit;
    text-decoration: underline;
}

/* ===== App Store Badge ===== */
.app-store-badge {
    height: 36px;
    transition: transform 0.3s ease;
}

.cta .app-store-badge {
    height: 72px;
    /* Double the size in the CTA section */
}

.app-store-badge:hover {
    transform: translateY(-3px);
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.mt-40 {
    margin-top: 40px;
}

/* ===== Responsive Styles ===== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        padding: 15px 0;
        height: auto;
    }

    header {
        position: relative;
        /* Change to relative positioning */
        box-shadow: none;
        /* Remove shadow to avoid visual overlap */
    }

    .hero {
        padding-top: 60px;
        /* Reduce top padding since header is now relative */
        padding-bottom: 80px;
        /* Reduce bottom padding for better proportions */
    }

    nav ul {
        margin-top: 15px;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    nav ul li {
        margin: 0 8px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        /* Reduce gap for better spacing */
    }

    .hero-content h1 {
        font-size: 2.2rem;
        /* Slightly smaller for better fit */
    }

    .tagline {
        font-size: 1.2rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 30px;
        /* Reduce bottom margin */
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        /* Add gap between buttons */
    }

    .hero-image {
        margin-top: 20px;
        margin-bottom: 20px;
        min-height: 420px;
    }

    .hero-image img {
        width: 100%;
        max-width: 220px;
        border-radius: 28px;
        transform: translateY(9px);
        object-fit: cover;
        max-height: 420px;
    }

    .hero-image::before {
        width: calc(100% - 20px);
        max-width: 240px;
        height: calc(100% - 20px);
        min-height: 400px;
    }

    .features-grid,
    .steps,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-hero h1 {
        font-size: 2.5rem;
    }

    .contact-section,
    .faq-section {
        padding: 60px 0;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .error-code {
        font-size: 6rem;
    }

    .error-title {
        font-size: 2rem;
    }

    .error-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-social {
        justify-content: center;
    }

    .blog-title {
        font-size: 2rem;
    }

    .blog-description {
        font-size: 1.1rem;
    }

    .blog-container {
        padding: 20px;
    }

    .blog-content {
        padding: 30px 0 60px;
    }

    .blog-grid {
        padding: 40px 0 80px;
    }

    .blog-cards {
        grid-template-columns: 1fr;
    }

    .blog-card-title h2 {
        font-size: 1.3rem;
    }

    .blog-card-image {
        height: 180px;
    }

    .related-posts {
        padding: 40px 0 80px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .app-badges {
        flex-direction: column;
        align-items: center;
    }

    .app-preview {
        flex-direction: column;
        align-items: center;
    }

    .app-screenshot {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .steps {
        padding: 30px;
    }

    .step {
        margin-bottom: 25px;
        padding-bottom: 25px;
    }

    .step-number {
        width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 0.9rem;
    }
}