/* General Styles */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #121212; /* Dark background */
    color: #e0e0e0; /* Light grey text */
    line-height: 1.6;
    position: relative; /* Needed for z-indexing of canvas */
}

#particle-canvas {
    position: fixed; /* Or absolute, depending on scroll behavior desired */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place it behind all other content */
    background-color: #121212; /* Fallback if canvas doesn't load / same as body */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

h1, h2, h3 {
    color: #bb86fc; /* Purple accent for headings */
}

a {
    color: #bb86fc; /* Purple for links */
    text-decoration: none;
}

a:hover {
    color: #ce93d8;
    text-decoration: underline;
}

img, video {
    max-width: 100%;
    height: auto;
    border-radius: 8px; /* Slightly rounded corners for media */
}

/* Header */
header {
    background-color: #1e1e1e; /* Slightly lighter dark for header */
    padding: 10px 0;
    border-bottom: 2px solid #bb86fc;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    margin: 0;
    font-size: 1.8em;
    font-weight: bold;
    color: #bb86fc;
    letter-spacing: 1px;
}

.language-switcher button {
    background-color: transparent;
    color: #bb86fc;
    border: 1px solid #bb86fc;
    padding: 8px 12px;
    margin-left: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.language-switcher button:hover,
.language-switcher button.active {
    background-color: #bb86fc;
    color: #121212;
}

/* Main Content Sections */
main section {
    padding: 40px 0;
    border-bottom: 1px solid #333; /* Separator for sections */
    position: relative; /* Ensure content is above canvas */
    z-index: 1;
}

main section:last-child {
    border-bottom: none;
}

.hero-section h2,
.ai-voice-section h2,
.templates-section h2 {
    text-align: center;
    margin-bottom: 15px; /* Adjusted margin */
    font-size: 2.2em;
}

.section-intro {
    text-align: center;
    color: #b0b0b0; /* Slightly lighter than main text for intros */
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px; /* Constrain width for readability */
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.media-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: center;
}

#heroImage {
    width: 100%;
    object-fit: cover;
}

#heroVideo {
    width: 100%;
}

/* Video Grid for AI Voice and Templates */
.video-grid {
    display: grid;
    gap: 20px;
}

.video-grid video {
    width: 100%;
    background-color: #000; /* Ensure controls are visible if poster fails */
}

/* Content Details Section */
.content-details-section .container {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column */
    gap: 25px; /* Increased gap between modules */
}

.content-details-section .content-module {
    background-color: #1e1e1e; /* Darker background for modules */
    padding: 25px; /* Increased padding */
    border-radius: 8px;
    margin-bottom: 0; /* Gap is handled by grid, remove bottom margin */
    border-left: 4px solid #bb86fc; /* Purple accent line */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-details-section .content-module:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(187, 134, 252, 0.3); /* Purple glow on hover */
}

.content-details-section h3 {
    margin-top: 0;
    font-size: 1.6em; /* Slightly adjusted font size */
    margin-bottom: 15px; /* Added space below h3 */
    color: #bb86fc;
}

.content-details-section p {
    color: #c0c0c0;
    line-height: 1.7; /* Increased line height for better readability */
    font-size: 1em;
}

/* Footer */
footer {
    background-color: #1e1e1e;
    color: #a0a0a0;
    text-align: center;
    padding: 20px 0;
    border-top: 2px solid #bb86fc;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: #bb86fc;
}

/* Responsive Design */
@media (min-width: 768px) {
    .logo h1 {
        font-size: 2.2em;
    }

    .media-container {
        grid-template-columns: repeat(2, 1fr); /* Image and video side-by-side */
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 videos per row */
    }

    .template-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 videos per row for templates */
    }

    .content-details-section .container {
        /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */ /* Old approach */
        grid-template-columns: repeat(2, 1fr); /* Two equal columns */
        gap: 30px; /* Consistent gap for two-column layout */
    }
}

@media (min-width: 1024px) {
    .content-details-section .container {
        /* For very wide screens, you could consider 3 columns if there are many modules */
        /* grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); */
    }
}

@media (max-width: 480px) {
    .language-switcher button {
        padding: 6px 8px;
        font-size: 0.9em;
        margin-left: 5px;
    }

    .hero-section h2,
    .ai-voice-section h2,
    .templates-section h2 {
        font-size: 1.8em;
    }

    .content-details-section h3 {
        font-size: 1.5em;
    }
} 