/* Reset and base styles for better SEO and accessibility */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #333;
    font-size: 16px;
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
/*    border-bottom: 1px solid #ddd;*/
}

header .logo img {
    height: 50px;
}

header nav a {
    margin: 0 10px;
    text-decoration: none;
    color: #000;
}

main {
    flex: 1;
    padding: 20px;
    background-color: #fff;
    text-align: center;
}

.intro {
    margin-bottom: 20px;
}

/* Typography hierarchy for better SEO */
.intro h1 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c3e50;
}

.intro h2 {
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 400;
    margin-bottom: 20px;
    color: #555;
}

.intro p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.intro a img {
    width: 150px;
    transition: transform 0.3s ease;
}

.intro a img:hover {
    transform: scale(1.05);
}

/* New sections styling */
.features {
    padding: 60px 20px;
    background-color: #f8f9fa;
    margin: 40px 0;
}

.features h2 {
    font-size: clamp(24px, 4vw, 36px);
    margin-bottom: 40px;
    color: #2c3e50;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 20px;
}

.feature p {
    color: #666;
    line-height: 1.6;
}

.testimonials {
    padding: 60px 20px;
    background-color: #fff;
}

.testimonials h2 {
    font-size: clamp(24px, 4vw, 36px);
    margin-bottom: 40px;
    color: #2c3e50;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.testimonials blockquote {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid #007BFF;
    margin: 0;
    font-style: italic;
}

.testimonials cite {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    color: #666;
    font-style: normal;
}

.cta {
    padding: 60px 20px;
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: clamp(24px, 4vw, 36px);
    margin-bottom: 20px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.download-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.download-buttons a {
    width: 150px;
    height: 53px;
}

.download-buttons a.web-app-button {
    width: 185px;
}

.calendar {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
    max-width: 630px;
    margin: auto;
}

.calendar-day {
    width: 150px;
    height: 150px;
    background-color: #eee;  /* Default color for empty cells */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.calendar-day.blue {
    background-color: #007BFF;
    opacity: 0;  /* Start with invisible */
    transition: opacity 1s ease-in;  /* Set duration and easing for fade-in */
}

.calendar-day.purple {
    background-color: #6f42c1;
    opacity: 0;  /* Start with invisible */
    transition: opacity 1s ease-in;  /* Set duration and easing for fade-in */
}

.calendar-day.orange {
    background-color: #fd7e14;
    opacity: 0;  /* Start with invisible */
    transition: opacity 1s ease-in;  /* Set duration and easing for fade-in */
}

a.web-app-button {
    background: #007BFF;
    color: #fff;
    border-radius: 5px;
    padding: 0px 12px;
    height: 53px;
    font-weight: 600;
    text-decoration: none;
    line-height: 53px;
}

.logo {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

form#supportForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

form#supportForm span {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

form#supportForm textarea {
    font-family: Arial;
}

form#supportForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: Arial;
}

input#supportBtn {
    background: #007BFF;
    color: #fff;
    height: 45px;
    font-weight: bold;
}

footer {
/*    background-color: #f8f8f8;*/
    padding: 5px 0;
    text-align: center;
/*    border-top: 1px solid #ddd;*/
}

footer p {
    font-size: 10px;
}

.support {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    text-align: left;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input, textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    padding: 10px 15px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top:20px;
}

button:hover {
    background-color: #0056b3;
}

/* Enhanced mobile responsiveness for better SEO */
@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    header nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    main {
        padding: 15px;
    }
    
    .intro {
        margin-bottom: 40px;
    }
    
    .features {
        padding: 40px 15px;
        margin: 20px 0;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonials {
        padding: 40px 15px;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .cta {
        padding: 40px 15px;
    }
    
    .download-buttons {
        flex-direction: column;
    }

    .calendar {
        padding: 0px;
    }

    .calendar-grid {
        gap: 10px;
        max-width: 100%;
    }
    
    .calendar-day {
        width: auto;
        height: 120px;
    }
}

@media screen and (max-width: 480px) {
    .logo {
        flex-direction: column;
        gap: 10px;
    }
    
    header nav a {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .calendar-grid {
        gap: 5px;
    }
    
    .calendar-day {
        width: 100%;
        height: 100px;
        font-size: 16px;
    }
    
    .feature {
        padding: 20px;
    }
    
    .testimonials blockquote {
        padding: 20px;
    }
}

/* Performance improvements */
img {
    max-width: 100%;
    height: auto;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #007BFF;
    outline-offset: 2px;
}