/* Root variables for consistent theming */
:root {
    --primary-color: #4CAF50; /* Green */
    --secondary-color: #FFC107; /* Amber */
    --accent-color: #2196F3; /* Blue */
    --text-color: #333;
    --light-bg: #e8f5e9;
    --dark-bg: #388e3c;
}

/* Base body styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
    position: relative;
}

/* General Layout Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header styles */
header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}
header h1 {
    margin: 0;
    font-size: 1.8em;
    letter-spacing: 1px;
}

/* Hero Section */
.hero {
    background: linear-gradient(45deg, var(--primary-color), var(--dark-bg));
    color: #fff;
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh; /* Responsive height */
    position: relative;
    overflow: hidden;
}
.hero h2 {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}
.hero p {
    font-size: 1.3em;
    max-width: 600px;
    margin-bottom: 30px;
}
.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.cta-button:hover {
    background-color: #ffda6a;
    transform: translateY(-3px);
}

/* Section Styling (for features and screenshots) */
section {
    padding: 60px 20px;
    text-align: center;
}
section h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-weight: 700;
}

/* Features Section Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.feature-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.feature-item:hover {
    transform: translateY(-10px);
}
.feature-item h3 {
    color: var(--accent-color);
    font-size: 1.5em;
    margin-bottom: 15px;
}
.feature-item p {
    font-size: 1em;
    color: #555;
}

/* Screenshots Section Grid */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.screenshot-item {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
    transition: transform 0.3s ease;
}
.screenshot-item:hover {
    transform: scale(1.03);
}
.screenshot-item img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

/* Footer styles */
footer {
    background-color: var(--dark-bg);
    color: #fff;
    padding: 30px 20px;
    text-align: center;
    font-size: 0.9em;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
    margin-top: 50px;
}
footer p {
    margin: 5px 0;
}
footer a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
footer a:hover {
    color: #fff;
}

/* Animated Bubbles Background */
.background-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}
.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(var(--r), var(--g), var(--b), 0.15);
    animation: moveBubbles 20s linear infinite;
}
.bubble:nth-child(1) { width: 100px; height: 100px; left: 5%; top: 10%; --r: 76; --g: 175; --b: 80; animation-delay: 0s; }
.bubble:nth-child(2) { width: 150px; height: 150px; left: 80%; top: 30%; --r: 255; --g: 193; --b: 7; animation-delay: 4s; }
.bubble:nth-child(3) { width: 70px; height: 70px; left: 20%; top: 60%; --r: 33; --g: 150; --b: 243; animation-delay: 8s; }
.bubble:nth-child(4) { width: 120px; height: 120px; left: 60%; top: 80%; --r: 76; --g: 175; --b: 80; animation-delay: 12s; }
.bubble:nth-child(5) { width: 90px; height: 90px; left: 10%; top: 40%; --r: 255; --g: 193; --b: 7; animation-delay: 16s; }

@keyframes moveBubbles {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0.8; }
    25% { transform: translateY(-20px) translateX(10px) scale(1.05); opacity: 0.9; }
    50% { transform: translateY(-40px) translateX(-10px) scale(1.1); opacity: 1; }
    75% { transform: translateY(-20px) translateX(10px) scale(1.05); opacity: 0.9; }
    100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.8; }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2.5em;
    }
    .hero p {
        font-size: 1.1em;
    }
    section h2 {
        font-size: 2em;
    }
    .features-grid, .screenshots-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .hero {
        padding: 60px 15px;
    }
    .hero h2 {
        font-size: 2em;
    }
    .hero p {
        font-size: 1em;
    }
    .cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    section {
        padding: 40px 15px;
    }
    footer {
        padding: 20px 15px;
    }
}

/* General styles for subpage content */
.subpage-section {
    max-width: 800px;
    margin: 50px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: left; /* Default text alignment for subpages */
}
.subpage-section h1 {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center; /* Center the main title */
}
.subpage-section h2 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 35px;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: left;
}
.subpage-section h3 { /* For FAQ Q: */
    font-size: 1.4em;
    color: var(--accent-color);
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: 600;
    text-align: left;
}
.subpage-section p, .subpage-section ul, .subpage-section li {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #555;
}
.subpage-section ul {
    padding-left: 20px;
    list-style-type: disc;
}
.subpage-section li {
    margin-bottom: 5px;
}

.redirect-link {
    display: inline-block;
    background-color: var(--accent-color); /* Blue for links */
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}
.redirect-link:hover {
    background-color: #1976D2; /* Darker blue */
}