:root {
    --primary-color: #8B4FA6;
    --secondary-color: #FF69B4;
    --light-pink: #FFE6F2;
    --white: #FFFFFF;
    --pink: #ef96ae;
    --text-color: #666666; /* Add text color variable */
    --card-text: #333333; /* Add card text color variable */
}

[data-theme="dark"] {
    --primary-color: #9B6FB6; /* Lighter purple for dark mode */
    --secondary-color: #FF8DC7; /* Lighter pink for dark mode */
    --light-pink: #2C1F33;
    --white: #1A1A1A;
    --text-color: #FFFFFF; /* Add text color variable */
    --card-text: #FFFFFF; /* Add card text color variable */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    transition: color 0.3s ease, background-color 0.3s ease; /* Add transitions for smooth color changes */
}

body {
    background: linear-gradient(135deg, var(--light-pink), #F8F0FF);
}

.navbar {
    padding: 1rem;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

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

.nav-link {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link.login {
    background: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link.login:hover {
    background: #ff4fa7;
    color: var(--white);
    transform: scale(1.05);
}

.navbar-brand {
    color: var(--pink);
    font-size: 1.8rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-heart {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 3rem 0;
}

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

.hero-image {
    flex: 1;
    text-align: center;
}

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

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--card-text); /* Add text color */
}

[data-theme="dark"] .feature-card {
    background: #2C1F33; /* Darker background for cards in dark mode */
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

.btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .nav-links {
        display: none;
    }

    .menu-button {
        display: block;
    }
}

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

.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-left: auto; /* This will push it to the right */
    margin-right: 1rem; /* Add space before login button */
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2C1F33;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider-icons {
    display: flex;
    justify-content: space-between;
    padding: 0 6px;
    align-items: center;
    height: 100%;
    color: var(--white);
}

.hero-content p {
    color: var(--text-color) !important; /* Override inline style */
}

[data-theme="dark"] .hero-content h1 {
    color: #B68FCC !important; /* Lighter purple for headings in dark mode */
}
.hero-content h1 {
    font-size: 25pt; /* Lighter purple for headings in dark mode */
}

[data-theme="dark"] .hero-content p {
    color: #FFFFFF !important;
}

.feature-card h3,
.feature-card h4 {
    color: var(--secondary-color) !important; /* Override inline style */
}

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

section h2 {
    color: var(--secondary-color) !important; /* Override inline style */
}

[data-theme="dark"] .nav-link:hover {
    color: #FF8DC7; /* Lighter pink for hover in dark mode */
}

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

.faq-item {
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.faq-question {
    padding: 1rem;
    background: var(--primary-color);
    color: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.faq-toggle {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

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

.faq-item.active .faq-answer {
    padding: 1rem;
    max-height: 200px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}