/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
    max-width: 100%;
    width: 100%;
    height: 100%; /* Add height to enable proper footer positioning */
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --background-color: #fff;
    --font-family: 'Inter', sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    padding-top: 60px; /* Ensure content starts below fixed header */
    display: flex;
    flex-direction: column;
    min-height: 100%; /* Ensure body takes at least full height */
    margin-left: 0; /* No default left margin */
}

main {
    flex: 1 0 auto; /* Allow main to grow but not shrink, taking available space */
    padding: 20px; /* Consistent padding */
    margin-left: 0; /* No default left margin */
    max-width: 100%; /* Ensure it can't exceed viewport width */
    width: 100%; /* Use full width */
    box-sizing: border-box; /* Include padding in width calculation */
    transition: margin-left 0.3s ease;
}

/* Special styling for calendar page */
body.theme-neon main .calendar-container {
    padding-top: 60px; /* Give calendar container more top space */
}

body.sidebar-open main {
    margin-left: 200px; /* Only add margin when sidebar is open */
}

/* Only for desktop, not for mobile */
@media (max-width: 768px) {
    body.sidebar-open main {
        margin-left: 0; /* No margin on mobile even with sidebar open */
    }
}

/* Footer styles */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    width: 100%;
    position: relative; /* Position relative to ensure it stays visible */
    flex-shrink: 0; /* Prevent footer from shrinking */
}

/* Content styles */
.hero {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 3rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

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

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

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

.cta {
    background: #ff7e5f;
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.cta button {
    background: white;
    color: #ff7e5f;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.cta button:hover {
    background: #f0f0f0;
}

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

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

/* Additional spacing for fixed header */
.spacing-for-header {
    padding-top: 80px;
}
/* Hero Section inspired by sample */
.hero-section {
    padding: 6rem 5% 6rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a001a 100%);
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    margin-left: 0;
    padding-left: 5%;
}

.hero-content {
    max-width: 800px;
    z-index: 10;
    position: relative;
    text-align: center;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--accent-purple);
    text-shadow: 0 0 20px var(--accent-purple);
    animation: textGlow 2s infinite alternate;
}

.hero-content p {
    margin-bottom: 3.5rem;
    font-size: 1.2rem;
    color: var(--dark-text);
}

/* CTA Button and Glow Effect */
.cta-button, .download-button, .showcase-button {
    display: inline-block;
    padding: 1rem 3rem;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    color: var(--text-color);
    border: none;
    cursor: pointer;
    box-shadow: 0 0 15px var(--primary-purple);
    animation: glowAnimation 1.5s infinite alternate;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover, .download-button:hover, .showcase-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--primary-purple);
}

/* Features Section */
.features-section {
    padding-top: 8rem;
    padding-bottom: 4rem;
    padding-left: 10%;
    padding-right: 10%;
    text-align: center;
    margin-left: 0;
    padding-left: 10%;
}

.features-section h2, .showcase-section h2, .download-section h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--primary-purple);
    text-shadow: 0 0 10px rgba(108, 92, 231, 0.5);
}

.feature-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.feature-item {
    background: rgba(108, 92, 231, 0.1);
    border: 2px solid var(--secondary-purple);
    padding: 2.5rem;
    border-radius: 15px;
    width: 300px;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.2);
    transition: transform 0.3s;
}

.feature-item h3 {
    color: var(--accent-purple);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

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

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(108, 92, 231, 0.4);
}

/* Showcase Section */
.showcase-section {
    padding: 4rem 10%;
    text-align: center;
    margin-left: 0;
    padding-left: 10%;
}

.showcase-container {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    max-width: 800px;
    margin: 0 auto;
}

.showcase-card {
    color: var(--dark-text);
    text-align: left;
}

.showcase-card h3 {
    color: var(--primary-purple);
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.showcase-card p {
    margin-bottom: 1.5rem;
    text-align: center;
}

.showcase-card ul {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.showcase-card li {
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.showcase-button {
    display: block;
    text-align: center;
    margin: 2rem auto 0;
    width: fit-content;
}

/* Download Section */
.download-section {
    background: var(--card-bg);
    padding: 4rem 10%;
    border-top: 1px solid rgba(108, 92, 231, 0.1);
    text-align: center;
    margin-left: 0;
    padding-left: 10%;
}

.download-section p {
    color: var(--dark-text);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.download-button {
    margin-top: 2rem;
}


@media (max-width: 700px) {
    .spacing-for-header {
        padding-top: 70px;
    }
}