:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --bg-color: #ffffff;
    --text-color: #333333;
    --nav-bg: #ffffff;
    --card-bg: #ffffff;
    --border-color: #e5e5e5;
}

[data-theme="dark"] {
    --primary-color: #60a5fa;
    --secondary-color: #94a3b8;
    --bg-color: #1a1a1a;
    --text-color: #e5e5e5;
    --nav-bg: #1f2937;
    --card-bg: #2d2d2d;
    --border-color: #374151;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

header {
    background-color: var(--nav-bg) !important;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

#theme-toggle {
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

#theme-toggle:hover {
    background-color: var(--border-color);
}

/* Dark mode specific styles */
[data-theme="dark"] header {
    background-color: var(--nav-bg) !important;
}

[data-theme="dark"] .feature-card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] #mobile-menu {
    background-color: var(--nav-bg);
}

[data-theme="dark"] #mobile-menu a {
    color: var(--text-color);
}

/* Add dark mode styles for other elements */
.feature-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

.form-input {
    background-color: var(--bg-color);
    color: var(--text-color);
    border-color: var(--border-color);
}

/* Remove the floating theme toggle button styles */
.theme-toggle {
    display: none;
}

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

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    /* padding-top: 4rem; Account for fixed header */
}

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

/* Form Styles */
.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    background-color: white;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-input::placeholder {
    color: #a0aec0;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232c3e50'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

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

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
}

/* Mobile Menu */
#mobile-menu {
    height: 100vh;
    overflow-y: auto;
}

#mobile-menu a {
    display: block;
    padding: 0.75rem;
    font-size: 1.25rem;
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

#mobile-menu a:hover {
    color: var(--primary-color);
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: var(--light-gray);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* Force 3 columns */
    gap: 2rem;
    margin-top: 2rem;
}

/* Adjust for mobile screens */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;  /* Single column on mobile */
    }
}

/* Add a middle breakpoint for tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);  /* 2 columns on tablets */
    }
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.feature-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Demo Section */
.demo {
    padding: 4rem 0;
}

.demo img {
    transition: transform 0.3s ease;
}

.demo img:hover {
    transform: scale(1.02);
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.demo-image {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.demo-features ul {
    list-style: none;
}

.demo-features li {
    margin-bottom: 1rem;
}

.demo-features i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Pricing Section */
.pricing {
    padding: 4rem 0;
    background: var(--light-gray);
}

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

.pricing-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.pricing-card.popular {
    transform: scale(1.05);
    border: 2px solid var(--primary-color);
}

.popular-tag {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1rem 0;
}

/* CTA Buttons */
.cta-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

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

.cta-button.secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* FAQ Section */
.faq {
    padding: 4rem 0;
    background: white;
}

.faq h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-family: 'Poppins', sans-serif;
}

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

.faq-item {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.faq-item h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background: var(--light-gray);
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 0.8;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-group {
        flex-direction: column;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles for accessibility */
:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.focus-visible:focus:not(:focus-visible) {
    outline: none;
}

/* Support section styles */
[data-theme="dark"] #contribute {
    background-color: var(--card-bg);
}

[data-theme="dark"] #contribute .text-gray-600 {
    color: var(--secondary-color);
}

[data-theme="dark"] #contribute .text-gray-900 {
    color: #1a1a1a;
}

/* Coffee button hover effect */
.bg-\[\#FFDD00\]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.bg-\[\#003087\]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
