 :root {
            --primary-bg : rgb(3, 5, 32);

            --text-color: #ffffff;
            --gradient-start: #ff69b4;
            --gradient-end: #0099ff;
            --nav-bg: rgb(3, 5, 32)
            --button-bg: rgba(255, 255, 255, 0.1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
        }

        body {
            background-color: var(--primary-bg);
            color: var(--text-color);
            /* line-height: 1.5; */
            overflow-x: hidden;
        }

        

        .auth-buttons {
            display: flex;
            gap: 1rem;
        }

        /* Button Styles */
        .btn {
            padding: 0.5rem 1rem;
            border-radius: 6px;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.95rem;
            font-weight: 500;
        }

        .btn-dark {
            background: var(--button-bg);
            color: var(--text-color);
        }

        .btn-dark:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        /* Main Content Styles */
        .main-content {
            margin-left: 200px;
            padding: 7.5rem 2rem 2rem;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .hero {
            max-width: 800px;
            margin: 0 auto;
            margin-top: 2.5rem;
            opacity: 0;
            transform: translateY(20px);
            animation: fadeInUp 1s forwards;
        }

        


        .hero h1 {
            font-size: 5rem; /* Increased from 5rem */
            margin-bottom: 2rem; /* Increased spacing between h1 and p */
            line-height: 1;  /* Tightened line height for larger text */
            font-weight: 700; /* Made slightly bolder */
            letter-spacing: -0.03em; /* Slightly tighter letter spacing */
            background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            max-width: 1200px; /* Optional: prevents text from getting too wide */
        }

        .hero p {
            font-size: 1.2rem; /* Slightly larger paragraph text */
            line-height: 1.6;
            margin-bottom: 2.5rem;
            opacity: 0.8;
            font-weight: 400;
            max-width: 800px; /* Makes paragraph narrower than heading for better readability */
        }

        


        .video-wrapper img.background-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }


        /* Chat Interface Styles */
        .chat-interface {
            position: absolute;
            bottom: 2rem;
            left: 50%;
            transform: translateX(-50%);
            width: 90%;
            max-width: 800px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 12px;
            padding: 1rem;
        }

        .chat-input {
            display: flex;
            gap: 1rem;
            align-items: center;
            background: rgba(0, 0, 0, 0.3);
            padding: 0.8rem 1rem;
            border-radius: 8px;
        }

        .chat-input input {
            flex: 1;
            background: none;
            border: none;
            color: var(--text-color);
            font-size: 1rem;
            outline: none;
        }

        .chat-input input::placeholder {
            color: rgba(255, 255, 255, 0.6);
        }

        .chat-input button {
            background: none;
            border: none;
            color: var(--text-color);
            cursor: pointer;
            font-size: 1.2rem;
            padding: 0.2rem 0.5rem;
            opacity: 0.8;
            transition: opacity 0.3s ease;
        }

        .chat-input button:hover {
            opacity: 1;
        }

        /* Animations */
        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Responsive Styles */
        @media (max-width: 1024px) {
            .hero h1 {
                font-size: 5.5rem;
            }
        }

        @media (max-width: 768px) {
            
            .main-content {
                margin-left: 0;
                padding-top: 5rem;
            }

            .hero h1 {
                font-size: 2.5rem;
            }

            .hero p {
                font-size: 1.1rem;
            }

            .chat-interface {
                width: 95%;
            }
        }

        @media (max-width: 480px) {
            .hero h1 {
                font-size: 3.5rem;
            }

            .auth-buttons .btn {
                padding: 0.4rem 0.8rem;
                font-size: 0.9rem;
            }
        }


        .content-section {
            margin-left: 200px;
            padding: 4rem 2rem;
            max-width: 1000px;
            margin: 0 auto;
        }

        .audio-player {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin: 2rem 0;
            padding: 1rem;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            width: fit-content;
        }

        .play-button {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .duration {
            color: rgba(255, 255, 255, 0.7);
        }

        .share-button {
            margin-left: auto;
            background: none;
            border: none;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            opacity: 0.7;
        }

        .text-content {
            font-size: 1.25rem;
            line-height: 1.6;
            margin: 2rem 0;
            color: rgba(255, 255, 255, 0.9);
            text-align: left;
            text-align: justify;
        }

        .section-title {
            font-size: 3.5rem;
            font-weight: 600;
            margin: 4rem 0 2rem;
            letter-spacing: -0.02em;
        }

        .content-block {
            margin: 3rem 0;
        }

        .content-block p {
            margin: 1.5rem 0;
            font-size: 1.0rem;
            line-height: 1.6;
            color: rgba(255, 255, 255, 0.9);
            text-align: left;
        }

        @media (max-width: 768px) {
            .content-section {
                margin-left: 0;
                padding: 2rem 1rem;
            }

            .section-title {
                font-size: 2.5rem;
                margin: 3rem 0 1.5rem;
            }

            .text-content {
                font-size: 1.1rem;
            }

            .content-block p {
                font-size: 1.1rem;
            }
        }

.ai-knowledge-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem;
    background: #1a1a1a;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.ai-knowledge-nav-item {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.ai-knowledge-nav-item.active {
    background: #333;
}

.ai-qa-section {
    background: #1a1a1a;
    border-radius: 12px;
    height: 500px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.ai-qa-title {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 1.5rem;
    position: sticky;
    top: 0;
    background: #1a1a1a;
    border-radius: 12px 12px 0 0;
    z-index: 2;
}

.ai-qa-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: #444 #1a1a1a;
}

.ai-qa-content::-webkit-scrollbar {
    width: 6px;
}

.ai-qa-content::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.ai-qa-content::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.ai-qa-question {
    background: #2a2a2a;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.ai-qa-answer {
    display: flex;
    gap: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.ai-qa-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
}

.ai-qa-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-qa-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.ai-qa-image-container {
    margin: 1rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.ai-qa-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.ai-qa-footer {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: center;
    background: #1a1a1a;
    border-radius: 0 0 12px 12px;
    position: sticky;
    bottom: 0;
}

.ai-qa-ask-btn {
    background: #2a2a2a;
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s;
}

.ai-qa-ask-btn:hover {
    background: #333;
}

.ai-qa-up-arrow {
    width: 16px;
    height: 16px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(-135deg);
    margin-top: 4px;
}

@media (max-width: 768px) {
    .ai-knowledge-nav {
        padding: 1rem 0.5rem;
        gap: 0.8rem;
    }
    
    .ai-knowledge-nav-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    
    .ai-qa-section {
        height: 400px;
    }
    
    .ai-qa-title {
        padding: 1rem;
        font-size: 1.3rem;
    }
}


.section-title-1 {

    text-align: left;
}

.chart-container {
            width: 100%;
            max-width: 700px;
            position: relative;
            margin: 20px auto;
            overflow-x: auto;
            overflow-y: hidden;
            -ms-overflow-style: none;  /* IE and Edge */
            scrollbar-width: none;  /* Firefox */
        }
        
        /* Hide scrollbar for Chrome, Safari and Opera */
        .chart-container::-webkit-scrollbar {
            display: none;
        }
        
        .pie-chart {
            width: 100%;
            height: auto;
            min-height: 300px; /* Ensures minimum height on all devices */
            position: relative;
            /* Explicitly set aspect ratio to prevent squishing */
            aspect-ratio: 1 / 1;
        }
        
        .slice {
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .slice:hover {
            filter: brightness(1.1) drop-shadow(0 0 5px rgba(255,255,255,0.5));
            transform: scale(1.02);
        }
        
        .slice-inactive {
            opacity: 0.5;
            filter: saturate(0.5);
        }

        .example-text {
            opacity: 0;
            font-size: 12px;
            fill: #131212;
            pointer-events: none;
            transition: opacity 0.3s;
            width: 160px;
            word-wrap: break-word;
        }
        
        .example-line {
            font-size: 11px;
            text-anchor: middle;
        }
        
        .example-box {
            opacity: 0;
            fill: white;
            stroke: #ddd;
            stroke-width: 1;
            rx: 4;
            ry: 4;
            pointer-events: none;
            transition: opacity 0.3s;
        }

        /* Mobile-specific styles */
        @media (max-width: 600px) {
            .chart-container {
                padding: 0;
                margin: 10px auto;
                width: 95%;
                min-height: 350px;
            }
            
            .pie-chart {
                min-height: 350px;
                min-width: 350px; /* Force minimum width */
                width: 100%;
                height: 100%;
            }
            
            /* Increase tap target size on mobile */
            .slice {
                transform-origin: center;
            }
        }



        /* Container for the graphs */
        .graphs-container {
            display: flex;
            flex-direction: row;
            justify-content: center;
            gap: 20px;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0;
        }

        /* Individual graph wrapper */
        .graph-wrapper {
            flex: 1 1 400px;
            min-width: 300px;
            max-width: 500px; /* Limit maximum width */
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            border-radius: 8px;
            overflow: hidden;
            transition: transform 0.3s ease;
            position: relative;
            height: 400px; /* Fixed height */
        }

        /* Graph title styles */
        .graph-title {
            background-color: #030520;
            padding: 10px 15px;
            text-align: center;
            font-weight: bold;
            border-bottom: 1px solid #eaeaea;
            /* Not absolute positioned so it takes up space */
        }

        /* Image styles */
        .graph-wrapper img {
            width: 100%;
            height: calc(100% - 43px); /* Subtract title height */
            object-fit: cover; /* Cover to fill the space */
            display: block;
            margin: 0;
            padding: 0;
        }

        /* Hover effect */
        .graph-wrapper:hover {
            transform: translateY(-5px);
        }

        .graph-wrapper:hover img {
            transform: scale(1.05);
        }

        /* Fullscreen mode */
        .graph-wrapper.fullscreen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: 1000;
            background: rgba(255, 255, 255, 0.95);
            display: flex;
            flex-direction: column;
            justify-content: center;
            max-width: none; /* Override max-width in fullscreen */
        }

        .graph-wrapper.fullscreen img {
            max-height: 90vh;
            max-width: 90vw;
            object-fit: contain;
            margin: auto;
            height: auto; /* Auto height in fullscreen */
        }

        /* Media query for smaller screens */
        @media (max-width: 768px) {
            .graphs-container {
                flex-wrap: wrap; /* Allow wrapping on very small screens */
            }
            
            .graph-wrapper {
                flex: 1 1 100%;
                max-width: 100%;
                height: 350px; /* Slightly smaller height on mobile */
            }
        }