/* Reset and Base Styles */
body, ul, li {
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: 'Arial', sans-serif;
  }
  
  /* Make the header fixed at the top */
.calendar-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    z-index: 1000; /* Higher than sidebar */
    padding: 10px 0;
}

.calendar-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger .bar {
    width: 30px;
    height: 4px;
    background-color: #f05454;
    border-radius: 4px;
}

/* Sidebar styles */
.sidebar {
    position: fixed;
    top: 0;
    left: -250px; /* Hide sidebar off-screen initially */
    width: 250px;
    height: 100%;
    background-color: #111;
    z-index: 999; /* Make sure it is below the header */
    transition: left 0.3s ease-in-out;
}

/* Sidebar links */
.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.sidebar ul li {
    padding: 15px;
    text-align: center;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    display: block;
}

.search2{
    display: none;
}

/* Media query for mobile */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .calendar-grid {
        justify-content: space-between;
    }

    .sidebar {
        z-index: 1001; /* Ensure sidebar comes above header on mobile */
    }

    .nav{
        display: none;
    }

    .search2{
        display: inline-block;
    }
}


  a {
    text-decoration: none;
    color: inherit;
  }
  
  .calendar-header {
    background-color: #1a1a1a;
    color: #fff;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .calendar-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
  }
  
  /* Logo */
  .logo a {
    font-size: 24px;
    font-weight: bold;
    color: #f05454;
  }
  
  /* Date Display */
  .date-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    background-color: #333;
    border-radius: 8px;
    padding: 10px 15px;
  }
  
  .date-display .month {
    font-size: 16px;
    color: #f05454;
  }
  
  .date-display .day {
    font-size: 36px;
    font-weight: bold;
  }
  
  /* Navigation */
  .nav ul {
    display: flex;
    gap: 20px;
  }
  
  .nav ul li a {
    font-size: 16px;
    padding: 5px 10px;
    transition: color 0.3s ease;
  }
  
  .nav ul li a:hover {
    color: #f05454;
  }
  
  /* Search Bar */
  .search-bar {
    position: relative;
  }
  
  .search-bar input {
    padding: 5px 10px;
    font-size: 16px;
    border: 2px solid #333;
    border-radius: 4px;
    background-color: #1a1a1a;
    color: #fff;
    outline: none;
    transition: border-color 0.3s ease;
  }
  
  .search-bar input::placeholder {
    color: #aaa;
  }
  
  .search-bar input:focus {
    border-color: #f05454;
  }
  
  /* Hero Section Styles */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to right, #1a1a1a, #333);
    color: #fff;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
  }
  
  .hero-content {
    max-width: 800px;
  }
  
  .hero-content h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #f05454;
  }
  
  .hero-content h1 span {
    color: #fff;
  }
  
  .hero-content p {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 30px;
  }
  
  .hero-date {
    font-size: 24px;
    font-weight: bold;
    color: #f05454;
    margin-bottom: 30px;
  }
  
  .hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  
  .hero-buttons .btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  .hero-buttons .btn-primary {
    background-color: #f05454;
    color: #fff;
  }
  
  .hero-buttons .btn-primary:hover {
    background-color: #fff;
    color: #f05454;
  }
  
  .hero-buttons .btn-secondary {
    background-color: transparent;
    color: #f05454;
    border: 2px solid #f05454;
  }
  
  .hero-buttons .btn-secondary:hover {
    background-color: #f05454;
    color: #fff;
  }
  

  /* Features Section Styles */
.features {
    padding: 60px 20px;
    background-color: #1a1a1a;
    color: #fff;
    text-align: center;
  }
  
  .features h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #f05454;
  }
  
  .features-description {
    font-size: 16px;
    margin-bottom: 30px;
    color: #ccc;
  }
  
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
  }
  
  .feature-card {
    background-color: #333;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.5);
  }
  
  .feature-card img {
    width: 100px;
    margin-bottom: 15px;
  }
  
  .feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #f05454;
  }
  
  .feature-card p {
    font-size: 14px;
    color: #ccc;
  }
  
  /* Animation for Features Section */
.feature-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  
  .feature-card-visible {
    opacity: 1;
    transform: translateY(0);
  }
  
/* Month-by-Month Preview Section */
.month-preview {
    padding: 60px 20px;
    background-color: #1a1a1a;
    color: #fff;
    text-align: center;
    opacity: 0; /* Start with hidden elements */
    animation: fadeIn 1s forwards; /* Fade-in effect */
}

.month-preview h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #f05454;
    animation: slideUp 0.5s ease-out forwards; /* Slide-up animation */
}

.preview-description {
    font-size: 16px;
    margin-bottom: 30px;
    color: #ccc;
    animation: fadeIn 1.5s 0.2s forwards; /* Fade-in with delay */
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
    opacity: 0;
    animation: fadeIn 2s 0.5s forwards; /* Fade-in with delay */
}

.month-card {
    background-color: #333;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards; /* Upward fade-in animation */
    animation-delay: 0.8s; /* Delay for month cards */
}

.month-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.5);
}

.month-card h3 {
    font-size: 18px;
    color: #f05454;
    margin-bottom: 10px;
}

.month-card p {
    font-size: 14px;
    color: #ccc;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0; /* Hidden initially */
    animation: modalFadeIn 0.6s forwards; /* Modal fade-in */
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: #222;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    color: #fff;
    position: relative;
    transform: scale(0.95);
    animation: modalScaleIn 0.6s forwards; /* Modal scaling animation */
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #f05454;
}

.calendar-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

.calendar-table th,
.calendar-table td {
    border: 1px solid #444;
    padding: 10px;
    text-align: center;
}

.calendar-table th {
    background-color: #333;
    color: #f05454;
}

.calendar-table td {
    background-color: #1a1a1a;
}

.calendar-table td.highlight {
    background-color: #f05454;
    color: #fff;
    font-weight: bold;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalScaleIn {
    from {
        transform: scale(0.95);
    }
    to {
        transform: scale(1);
    }
}

/* Highlighted Features Section */
.highlighted-features {
    padding: 60px 20px;
    background-color: #282828;
    color: #fff;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1.5s forwards;
}

.highlighted-features h2 {
    font-size: 36px;
    color: #f05454;
    margin-bottom: 15px;
    animation: slideUp 0.5s ease-out forwards;
}

.feature-description {
    font-size: 16px;
    margin-bottom: 30px;
    color: #ccc;
    opacity: 0;
    animation: fadeIn 1s 0.5s forwards;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    opacity: 0;
    animation: fadeIn 2s 0.8s forwards;
}

.feature-card {
    background-color: #333;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 1s;
}

.feature-card:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.feature-card h3 {
    font-size: 24px;
    color: #f05454;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 14px;
    color: #ccc;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Newsletter Section */
.newsletter {
    background-color: #1a1a1a; /* Dark background similar to the calendar theme */
    padding: 60px 20px;
    text-align: center;
    color: #fff; /* White text */
}

.newsletter-container {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #f05454; /* Accent color */
}

.newsletter p {
    font-size: 16px;
    color: #ccc; /* Light grey text */
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.newsletter-form input {
    padding: 10px;
    font-size: 16px;
    width: 250px;
    border: 2px solid #333;
    border-radius: 4px;
    background-color: #333; /* Same background as calendar */
    color: #fff; /* White text */
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-form input::placeholder {
    color: #aaa; /* Light grey placeholder */
}

.newsletter-form input:focus {
    border-color: #f05454; /* Accent color on focus */
}

.newsletter-form button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #f05454; /* Button uses the accent color */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #ff6f61; /* Lighter hover effect */
}

#subscription-message {
    margin-top: 15px;
    color: #4CAF50; /* Success message green */
    font-size: 1.2em;
}

.hidden {
    display: none;
}


/* Testimonials Section */
.testimonials {
    padding: 60px 20px;
    background-color: #222;
    color: #fff;
    text-align: center;
}

.testimonials h2 {
    font-size: 36px;
    color: #f05454;
    margin-bottom: 15px;
}

.testimonial-description {
    font-size: 16px;
    margin-bottom: 30px;
    color: #ccc;
}

.testimonial-form {
    margin-bottom: 30px;
}

.testimonial-form input,
.testimonial-form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #333;
    color: #fff;
}

.testimonial-form button {
    background-color: #f05454;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.testimonial-form button:hover {
    background-color: #ff6f61;
}

.testimonial-slider {
    display: flex;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    gap: 40px;
    position: relative;
    width: 80%;
    margin: 0 auto;
}

.testimonial-item {
    flex: 0 0 100%;
    max-width: 300px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.testimonial-item.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
}

.testimonial-text {
    font-size: 16px;
    font-style: italic;
    margin-bottom: 15px;
    color: #ccc;
}

.testimonial-item h4 {
    font-size: 18px;
    color: #f05454;
}

/* Navigation Buttons */
.testimonial-nav {
    background-color: #f05454;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.testimonial-nav:hover {
    background-color: #ff6f61;
}

/* Footer Section */
.footer {
    background-color: #1a1a1a; /* Dark background */
    color: #fff; /* White text */
    padding: 40px 20px;
    text-align: center;
    font-family: 'Arial', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo a {
    font-size: 36px;
    font-weight: bold;
    color: #f05454; /* Accent color */
    text-decoration: none;
}

.footer-logo a:hover {
    color: #ff6f61; /* Hover color */
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links ul li {
    display: inline;
}

.footer-links ul li a {
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #f05454; /* Accent color */
}

.footer-social {
    margin: 20px 0;
}

.footer-social .social-icon {
    color: #fff;
    font-size: 16px;
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social .social-icon:hover {
    color: #f05454; /* Accent color */
}

.footer-bottom {
    margin-top: 20px;
}

.footer-bottom p {
    font-size: 14px;
    color: #ccc; /* Light grey text */
}

.scroll-to-top {
    background-color: #f05454;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    display: inline-block;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

.scroll-to-top:hover {
    background-color: #ff6f61; /* Lighter hover effect */
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-links ul {
        flex-direction: column;
        align-items: center;
    }

    .footer-social {
        display: flex;
        justify-content: center;
        gap: 10px;
    }
}

/* General reset for the layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light Theme */
body.light {
    background-color: #ffffff;
    color: #000000;
}

body.light header, body.light .hero, body.light .features, body.light .feature-card, body.light .month-preview, body.light .calendar-table {
    background-color: #ffffff;
    color: #333;
}

body.light .feature-card {
    border: 1px solid #ddd;
}

body.light .hero {
    background-color: #f0f0f0;
}

/* Dark Theme */
body.dark {
    background-color: #121212;
    color: #ffffff;
}

body.dark header, body.dark .hero, body.dark .features, body.dark .feature-card, body.dark .month-preview, body.dark .calendar-table {
    background-color: #333;
    color: #fff;
}

body.dark .feature-card {
    border: 1px solid #555;
}

body.dark .hero {
    background-color: #222;
}

/* Light/Dark Theme */
body.light-dark {
    background-color: #f0f0f0;
    color: #333;
}

body.light-dark header, body.light-dark .hero, body.light-dark .features, body.light-dark .feature-card, body.light-dark .month-preview, body.light-dark .calendar-table {
    background-color: #ffffff;
    color: #222;
}

body.light-dark .feature-card {
    border: 1px solid #ccc;
}

body.light-dark .hero {
    background-color: #e6e6e6;
}

.event-reminder {
    margin-top: 20px;
}

.event-reminder input,
.event-reminder button {
    padding: 10px;
    margin: 5px;
    font-size: 16px;
}

.event-reminder button {
    cursor: pointer;
}

/* Card Style for Dark Mode */
.calendar-card {
    background-color: #2e2e2e;  /* Dark background for the card */
    border-radius: 12px;  /* Rounded corners for the card */
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);  /* Subtle shadow to give depth */
    margin-bottom: 20px;
}

/* Calendar Table Style */
.calendar-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #2e2e2e;  /* Dark background for the table */
    border-radius: 8px;  /* Rounded corners for the table */
    overflow: hidden;
}

/* Table Header Style */
.calendar-table th, .calendar-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #444;  /* Darker borders */
}

/* Table Header Specific Styling */
.calendar-table th {
    background-color: #3a3a3a;  /* Darker header background */
    color: #f1f1f1;  /* Light text for the header */
}

/* Table Cell Styling */
.calendar-table td {
    background-color: #333;  /* Dark background for the table cells */
    color: #f1f1f1;  /* Light text for the table cells */
    cursor: pointer;
}

.calendar-table td:hover {
    background-color: #444;  /* Slightly lighter background on hover */
}

.calendar-table td.highlight {
    background-color: #f39c12;  /* Highlighted day for holidays or events */
    color: #fff;
}

.calendar-table td.highlight:hover {
    background-color: #f1c40f;  /* Lighter highlight on hover */
}

/* Close button inside the modal */
#close-modal {
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}
