:root {
    --background: #FEF9F5;
    --primary: #D66D4C;
    --secondary: #AA775F;
    --button: #A36854;
    --text: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --background: #1B1816;
    --primary: #AA7B6B;
    --secondary: #A3735B;
    --button: #A07361;
    --text: #F5F5F5;
    --text-light: #CCCCCC;
    --white: #2A2624;
    --shadow: rgba(0, 0, 0, 0.3);
}

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

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Avenir Next', sans-serif;
    background-color: var(--background);
    color: var(--text);
    transition: all 0.3s ease;
    overflow-x: hidden;
}

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

/* Header */
header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: var(--background);
    box-shadow: 0 2px 10px var(--shadow);
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo span {
    margin-left: 10px;
}

/* Add this to your existing .logo styles */
.logo-img {
    height: 32px;
    width: auto;
    margin-right: 10px;
    transition: transform 0.3s ease;
    border-radius: 3px;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-img {
        height: 28px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 24px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text);
    margin-left: 20px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text);
}

/* Hero Section */
.hero {
    padding-top: 150px;
    padding-bottom: 100px;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-light);
    line-height: 1.6;
}

.app-screenshots {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    flex: 1;
}

/* Carousel Styles */
.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  .carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to contain */
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }
  .carousel-item.active {
    opacity: 1;
  }

/* Update these carousel styles */
.carousel-dots {
    position: relative; /* Changed from absolute */
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    z-index: 10;
}

.dot {
    width: 10px; /* Slightly larger */
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2); /* Darker for light mode */
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary); /* Use primary color */
    transform: scale(1.2);
}

/* For dark mode */
[data-theme="dark"] .dot {
    background-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .dot.active {
    background-color: var(--primary);
}

.phone-mockup {
    width: 278px;
    height: 580px;
    background-color: var(--text);
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 20px 40px var(--shadow);
    position: relative;
}

.phone-screen {
    width: 258px;
    height: 558px;
    position: absolute;
    top: 10px;
    left: 10px;
    border-radius: 30px;
    overflow: hidden;
    background-color: var(--background);
}

.phone-screen img {
    width: 100%;
    height: auto; /* Changed from 100% to auto */
    max-height: 100%;
    object-fit: contain; /* Added to maintain aspect ratio */
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--button);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--shadow);
}

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

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

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

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

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

.feature-card {
    background-color: var(--background);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px var(--shadow);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
    display: block;
    width: 100%;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Categories Showcase */
.categories {
    padding: 100px 0;
    background-color: var(--background);
}

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

.category-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
}

.category-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 1.2rem;
    color: var(--primary);
}

.categories-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--text-light);
    font-size: 1rem;
}

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

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

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.step p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background-color: var(--background);
}

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

.testimonial-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

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

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary);
}

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

/* Blog Section */
.blog {
    padding: 100px 0;
    background-color: var(--white);
}

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

.blog-card {
    background-color: var(--background);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 25px;
}

.blog-content h3 a {
    color: var(--primary);
    text-decoration: none;
}

.blog-date {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.blog-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.blog-card p {
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 20px;
}

.link {
    color: var(--primary);
    text-decoration: none;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.read-more:hover {
    text-decoration: underline;
}

.read-more svg {
    width: 20px;
    height: 20px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover svg {
    transform: translateX(5px);
}

/* Download Section */
.download {
    padding: 100px 0;
    background-color: var(--primary);
    color: white;
    text-align: center;
}

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

.download p {
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.store-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.store-btn {
    background-color: white;
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.store-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.store-btn svg {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

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

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

.footer-column h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

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

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

.footer-links a {
    text-decoration: none;
    color: var(--text-light);
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--background);
    border-radius: 50%;
    color: var(--primary);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--text-light);
    opacity: 0.7;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Mobile Responsiveness */
@media (min-width: 992px) {
    .steps {
        display: flex;
        justify-content: space-between;
        gap: 20px;
    }
    
    .step {
        flex: 1;
    }
}

@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        order: -1; /* Moves content above the image */
        text-align: center;
        margin-bottom: 40px;
    }
    
    .app-screenshots {
        margin-top: 30px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {

    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .feature-card, .testimonial-card {
        padding: 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .phone-mockup {
        width: 240px;
        height: 500px;
    }
    
    .phone-screen {
        width: 220px;
        height: 480px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--background);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px var(--shadow);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .store-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }

    .hero h1 {
        font-size: 1.8rem;
    }
    
    .phone-mockup {
        width: 240px;
        height: 500px;
    }
    
    .phone-screen {
        width: 220px;
        height: 480px;
    }
    
    .feature-card, .blog-card, .testimonial-card {
        padding: 20px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}

/* FAQ Section - Accordion Style */
.faq {
    padding: 100px 0;
    background-color: var(--white);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 20px 0;
}

[data-theme="dark"] .faq-item {
    border-bottom-color: rgba(255,255,255,0.1);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 15px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary);;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--text);
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-light);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 20px;
}

.faq-answer ol {
    padding-left: 20px;
    margin: 10px 0;
}

.faq-answer li {
    margin-bottom: 8px;
}