/* Responsive header and navigation styles */
header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.logo svg {
    margin-right: 8px;
}

.logo h1 {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
    color: #333;
}

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

.nav-links li a {
    display: block;
    text-decoration: none;
    color: #0066cc;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-links li a:hover {
    background: #f0f7ff;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #0066cc;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile navigation styles */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        width: 100%;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        z-index: 999;
    }

    .nav-links.active {
        max-height: 300px;
        padding: 10px 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        padding: 12px;
        width: 100%;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Animation for mobile menu button */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Adjust hero section for mobile */
    .hero .container {
        flex-direction: column;
    }

    .hero-content, .hero-image {
        width: 100%;
        padding: 10px;
    }

    /* Responsive features grid */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Responsive screenshots section */
    .screenshot-gallery {
        grid-template-columns: 1fr;
    }

    /* Adjust about section */
    .about-content {
        flex-direction: column;
    }
    
    .about-text, .about-image {
        width: 100%;
    }

    /* Adjust why section */
    .why-grid {
        grid-template-columns: 1fr;
    }

    /* Adjust user-friendly section */
    .user-friendly-grid {
        grid-template-columns: 1fr;
    }

    .nav-links .theme-item {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 10px 0;
    }
    
    .nav-links .theme-item button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
    }
    
    .nav-links .theme-item button svg {
        width: 24px;
        height: 24px;
    }
    
    /* Add a label for the theme toggle in mobile view */
    .nav-links .theme-item::before {
        content: "Theme:";
        display: inline-block;
        margin-right: 10px;
        line-height: 40px;
        color: var(--text-color);
    }
}

/* Adjust section padding for mobile */
@media (max-width: 768px) {
    .hero {
        padding-top: 80px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* Theme styles */
:root {
    /* Updated with new light mode blue */
    --primary-color: #0066cc;
    --secondary-color: #004c99;
    --text-color: #333333;
    --background-color: #ffffff;
    --card-bg: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --code-bg: #f4f4f4;
    --highlight-bg: rgba(0, 102, 204, 0.1);
    --header-bg: white;
    --section-bg: white;
    --footer-bg: #f5f5f5;
}

body.dark-theme {
    /* Updated with new dark mode blue */
    --primary-color: #4eaaff;
    --secondary-color: #3d86cc;
    --text-color: #e0e0e0;
    --background-color: #121212;
    --card-bg: #1e1e1e;
    --border-color: #333333;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --code-bg: #2a2a2a;
    --highlight-bg: rgba(78, 170, 255, 0.1);
    --header-bg: #252525;
    --section-bg: #1a1a1a;
    --footer-bg: #252525;
}

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

/* Header dark mode styles */
header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 4px var(--shadow-color);
}

.logo h1 {
    color: var(--text-color);
}

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

.nav-links li a:hover {
    background-color: var(--card-bg);
}

/* Feature cards dark mode */
.feature-card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

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

.feature-card svg {
    stroke: var(--primary-color);
}

/* Sections dark mode */
.section-title {
    color: var(--primary-color);
}

.features, .demo, .screenshots, .about, .why-section, 
.availability-section, .user-friendly-section, .contact {
    background-color: var(--section-bg);
}

/* Footer dark mode */
footer {
    background-color: var(--footer-bg);
    color: var(--text-color);
}

.footer-logo svg {
    stroke: var(--text-color);
}

.footer-logo span {
    color: var(--text-color);
}

/* Why section cards */
.why-card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

.why-card h3 {
    color: var(--text-color);
}

.why-number {
    color: #ffffff; /* Change to white for better visibility */
    background-color: var(--primary-color); /* Use primary color as background */
    border: 2px solid var(--primary-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 1rem;
}

/* Availability section */
.availability-content p {
    color: var(--text-color);
}

.availability-note a {
    color: var(--primary-color);
}

/* Theme toggle button */
.theme-item button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: background-color 0.2s ease;
}

.theme-item button:hover {
    background-color: var(--card-bg);
}

.theme-item svg {
    width: 20px;
    height: 20px;
}

/* Initially hide one of the icons based on default theme */
body:not(.dark-theme) .sun-icon,
body.dark-theme .moon-icon {
    display: none;
}

/* Mobile menu button */
.mobile-menu-btn span {
    background-color: var(--primary-color);
}

@media (max-width: 768px) {
    .nav-links {
        background-color: var(--header-bg);
    }
}

/* Blog button style */
.blog-button {
    display: inline-block;
    background-color: #0066cc;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 20px;
    font-weight: bold;
    transition: background-color 0.3s;
}
.blog-button:hover {
    background-color: #004c99;
}
