/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --success-color: #48bb78;
    --error-color: #fc8181;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --nav-width: 260px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Top Header Navigation */
.top-header {
    background-color: var(--white);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.header-logo a {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.header-logo a:hover {
    color: var(--secondary-color);
}

.header-nav {
    display: flex;
    align-items: center;
}

.header-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.header-menu li {
    margin: 0;
}

.header-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.2s, color 0.2s;
    display: block;
}

.header-menu a:hover {
    background-color: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
}

.header-menu a.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Landing Page */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(240, 147, 251, 0.3) 0%, transparent 70%);
    animation: rotate 30s linear infinite reverse;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
}

.cta-button {
    display: inline-block;
    background-color: var(--white);
    color: var(--secondary-color);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Video Section */
.video-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.video-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.newsletter-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    min-height: 400px;
    padding: 40px;
    overflow: visible;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.video-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 50.625%; /* 16:9 aspect ratio (9/16 * 100) */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 50px rgba(102, 126, 234, 0.4);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
}

.workshop-link {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.workshop-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.features {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.2);
    border-color: var(--primary-color);
}

.feature-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* Documentation Layout */
.doc-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--nav-width);
    background-color: var(--light-bg);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    padding: 20px 0;
    top: 0;
    left: 0;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}

.sidebar-header h2 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.sidebar-header a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.sidebar-header a:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

.nav-menu {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 5px;
}

.nav-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    border-left: 3px solid transparent;
}

.nav-menu a:hover {
    background-color: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
}

.nav-menu a.active {
    background-color: rgba(102, 126, 234, 0.15);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

/* Nested navigation */
.nav-menu .nav-submenu {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.nav-menu .nav-submenu li {
    margin-bottom: 0;
}

.nav-menu .nav-submenu a {
    padding-left: 35px;
    font-size: 0.9em;
    border-left-width: 2px;
}

.nav-menu .nav-submenu a:hover {
    background-color: rgba(102, 126, 234, 0.08);
}

/* Nested submenus (third level) */
.nav-menu .nav-submenu .nav-submenu a {
    padding-left: 55px;
    font-size: 0.85em;
}

.content-wrapper {
    flex: 1;
    margin-left: var(--nav-width);
}

.doc-content {
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.doc-content h1 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
    font-weight: 700;
}

.doc-content h2 {
    color: var(--secondary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 700;
}

.doc-content h3 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.doc-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.doc-content ul,
.doc-content ol {
    margin-bottom: 20px;
    margin-left: 30px;
}

.doc-content li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.doc-content code {
    background-color: var(--light-bg);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', Consolas, Monaco, monospace;
    font-size: 0.9em;
    color: #c7254e;
}

.doc-content pre {
    background-color: #282c34;
    color: #abb2bf;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.doc-content pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

.doc-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 20px 0;
    color: #666;
    font-style: italic;
}

.doc-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.doc-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.doc-content table th,
.doc-content table td {
    padding: 12px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.doc-content table th {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    font-weight: 700;
    color: var(--secondary-color);
}

/* Info Boxes */
.info-box {
    background-color: rgba(102, 126, 234, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.warning-box {
    background-color: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.success-box {
    background-color: rgba(72, 187, 120, 0.1);
    border-left: 4px solid var(--success-color);
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.error-box {
    background-color: rgba(252, 129, 129, 0.1);
    border-left: 4px solid var(--error-color);
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
}

/* Topic Tiles for Hub Pages */
.topic-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.topic-tile {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
    text-decoration: none;
    display: block;
    color: inherit;
}

.topic-tile:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.2);
    border-color: var(--primary-color);
}

.topic-tile-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.topic-tile h3 {
    color: var(--secondary-color);
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.topic-tile p {
    color: #666;
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.topic-intro {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(240, 147, 251, 0.05));
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-color);
}

.topic-intro p {
    margin-bottom: 0;
}

/* Blog Tiles */
.blog-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.blog-tile {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
    text-decoration: none;
    display: block;
    color: inherit;
    overflow: hidden;
}

.blog-tile:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.2);
    border-color: var(--primary-color);
}

.blog-tile-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--light-bg);
}

.blog-tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.blog-tile:hover .blog-tile-image img {
    transform: scale(1.05);
}

.blog-tile-content {
    padding: 25px;
}

.blog-tile-content h3 {
    color: var(--secondary-color);
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    line-height: 1.3;
    font-weight: 700;
}

.blog-tile-subtitle {
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.blog-tile-meta {
    color: #999;
    margin: 0;
    font-size: 0.85rem;
    font-style: italic;
}

/* Blog Post Content */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.blog-post-header {
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 30px;
}

.blog-post-header h1 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
}

.blog-post-subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 20px;
    font-weight: 400;
    font-style: italic;
}

.blog-post-meta {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 0.95rem;
}

.blog-post-featured-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 40px;
}

.blog-post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.blog-post-content {
    line-height: 1.8;
    font-size: 1.05rem;
}

.blog-post-content h2 {
    color: var(--secondary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 700;
}

.blog-post-content h3 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.blog-post-content p {
    margin-bottom: 20px;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 20px;
    margin-left: 30px;
}

.blog-post-content li {
    margin-bottom: 10px;
}

.blog-back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.blog-back-link:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.footer p {
    margin: 5px 0;
}

.footer-nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
}

.footer-nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --nav-width: 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .header-menu {
        display: none;
        position: absolute;
        top: 70px;
        right: 0;
        left: 0;
        flex-direction: column;
        background-color: var(--white);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 20px;
        gap: 0;
    }

    .header-menu.open {
        display: flex;
    }

    .header-menu li {
        margin-bottom: 10px;
    }

    .header-menu a {
        padding: 15px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
        z-index: 1000;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .content-wrapper {
        margin-left: 0;
    }

    .doc-content {
        padding: 20px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .video-section {
        padding: 40px 15px;
    }

    .video-section h2 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    .video-container {
        border-radius: 12px;
        box-shadow: 0 8px 30px rgba(102, 126, 234, 0.25);
    }
}

/* Important Privacy Notice */
.privacy {
    background: #f8f9fa;
    color: #1a1a1a;
    padding: 2rem;
    border-left: 6px solid #d63384; /* strong highlight color */
    border-radius: 8px;
    margin: 3rem 0 2rem 0;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    line-height: 1.6;
}

/* Course CTA Section */
.course-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 12px;
    margin: 3rem 0 2rem 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.course-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.course-cta h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.course-cta p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.course-cta .cta-button {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.course-cta .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

@media (max-width: 768px) {
    .course-cta {
        padding: 2rem 1.5rem;
        margin: 2rem 0 1.5rem 0;
    }

    .course-cta h3 {
        font-size: 1.25rem;
    }

    .course-cta p {
        font-size: 1rem;
    }

    .course-cta .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}
