/* website-demo/css/style.css */

/* Variables for colors and fonts */
:root {
    --color-bg-dark: #FFFFFF; /* Changed from dark to white */
    --color-bg-medium: #F8F9FA; /* Changed from dark-medium to light-gray */
    --color-accent-blue: #007BFF; /* Adjusted blue for light theme */
    --color-accent-purple: #6F42C1; /* Adjusted purple for light theme */
    --color-text-light: #333333; /* Changed from light-gray to dark-gray */
    --color-text-medium: #555555; /* Changed from medium-gray to darker medium-gray */
    --color-text-dark: #777777; /* Changed from dark-gray to lighter dark-gray */
    --font-primary: 'Montserrat', sans-serif; /* Placeholder, will use a generic if not available */
    --font-secondary: 'Rajdhani', sans-serif; /* Placeholder */
    --gradient-hero: linear-gradient(45deg, var(--color-accent-purple), var(--color-accent-blue));
    --gradient-btn: linear-gradient(90deg, var(--color-accent-purple), var(--color-accent-blue));
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-primary);
    background-color: var(--color-bg-dark); /* Now white */
    color: var(--color-text-light); /* Now dark-gray */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll due to animations */
    position: relative;
}

/* Dynamic Background Canvas */
#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.1; /* More subtle for light background */
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-light); /* Now dark-gray */
}

h1 {
    font-size: 3.8em;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    text-shadow: none; /* Removed heavy shadow for light theme */
}

h2 {
    font-size: 2.8em;
    color: var(--color-accent-blue);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-btn);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for light theme */
}

h3 {
    font-size: 1.8em;
    color: var(--color-text-light); /* Now dark-gray */
}

p {
    font-size: 1.1em;
    color: var(--color-text-medium); /* Now darker medium-gray */
}

.subtitle {
    font-size: 1.5em;
    color: var(--color-text-medium); /* Now darker medium-gray */
    margin: 20px 0 40px;
    font-weight: 300;
}

.section-description {
    font-size: 1.2em;
    color: var(--color-text-dark); /* Now lighter dark-gray */
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Header & Navigation */
#site-header {
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Darker shadow */
    backdrop-filter: blur(5px);
}

#site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-secondary);
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-accent-blue);
    text-shadow: none; /* Removed heavy shadow for light theme */
    flex-shrink: 0; /* Prevent shrinking */
    white-space: nowrap; /* Prevent wrapping */
}

.nav-desktop {
    list-style: none;
    margin: 0;
    padding: 0 10px; /* Add some padding for better spacing */
    display: flex;
    align-items: center; /* Vertically align items */
    overflow-x: auto; /* Enable horizontal scrolling */
    white-space: nowrap; /* Prevent items from wrapping */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* For Firefox */
    flex-grow: 1; /* Allow the navigation to take up available space */
    min-width: 0; /* Allow the navigation to shrink and scroll */
}

/* Hide scrollbar for a cleaner look */
.nav-desktop::-webkit-scrollbar {
    display: none;
}

.nav-desktop li {
    margin-left: 0; /* Remove margin, use padding on 'a' for spacing */
    flex-shrink: 0; /* Prevent items from shrinking */
}

.nav-desktop li a {
    text-decoration: none;
    color: var(--color-text-medium); /* Now darker medium-gray */
    font-weight: 500;
    font-size: 1.1em;
    position: relative;
    padding: 10px 15px; /* Adjust padding for better spacing */
    transition: color 0.3s ease;
    display: block; /* Make the whole area clickable */
}

.nav-desktop li a::after {
    content: '';
    position: absolute;
    height: 2px;
    bottom: 5px; /* Adjust based on padding */
    left: 15px;
    width: calc(100% - 30px);
    background: var(--gradient-btn);
    transition: transform 0.3s ease;
    transform: scaleX(0);
    transform-origin: left;
}

.nav-desktop li a:hover {
    color: var(--color-accent-blue);
}

.nav-desktop li a:hover::after {
    transform: scaleX(1);
}

.lang-switch {
    font-weight: 700;
    padding: 2px 8px;
    border: 1px solid var(--color-text-dark);
    border-radius: 5px;
    flex-shrink: 0; /* Prevent shrinking */
}

.lang-switch:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: var(--color-accent-blue);
}

/* Add space between desktop nav and lang switch */
.nav-desktop + .lang-switch {
    margin-left: 20px; /* Adjust as needed */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-btn);
    color: var(--color-bg-dark); /* Now white */
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2); /* Subtle shadow for light theme */
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.4));
    transition: all 0.5s;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-accent-blue);
    border: 2px solid var(--color-accent-blue);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); /* Subtle shadow for light theme */
}

.btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.05); /* Subtle hover for light theme */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Darker shadow for light theme */
}

/* Sections */
section {
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

section:nth-of-type(even) {
    background-color: var(--color-bg-medium); /* Now light-gray */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05); /* Subtle shadow for light theme */
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px; /* Account for fixed header */
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 5em;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-item {
    background-color: var(--color-bg-medium); /* Now light-gray */
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08); /* Subtle shadow for light theme */
    border: 1px solid rgba(0, 0, 0, 0.1); /* Subtle border for light theme */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.05) 0%, transparent 70%); /* Subtle effect */
    opacity: 0;
    transition: opacity 0.5s ease;
    transform: rotate(45deg);
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Darker shadow for light theme */
    border-color: var(--color-accent-blue);
}

.feature-item h3 {
    font-size: 1.6em;
    margin-top: 20px;
    color: var(--color-accent-blue);
}

.feature-item p {
    font-size: 1em;
    color: var(--color-text-dark); /* Now lighter dark-gray */
}

/* Placeholder Icons */
.icon {
    display: inline-block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-btn);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for light theme */
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.icon::after {
    content: '?'; /* Default icon content */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    color: var(--color-bg-medium); /* Now light-gray */
    font-family: var(--font-primary);
    font-weight: bold;
}

.icon-ai-analysis::after { content: '🧠'; }
.icon-content-gen::after { content: '✍️'; }
.icon-knowledge-graph::after { content: '🔗'; }
.icon-analytics::after { content: '📊'; }

/* How It Works Section */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.step-item {
    background-color: var(--color-bg-medium); /* Now light-gray */
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08); /* Subtle shadow for light theme */
    border: 1px solid rgba(0, 0, 0, 0.1); /* Subtle border for light theme */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Darker shadow for light theme */
    border-color: var(--color-accent-purple);
}

.step-number {
    font-family: var(--font-secondary);
    font-size: 3.5em;
    font-weight: bold;
    background: var(--gradient-btn);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    margin-bottom: 20px;
    display: block;
}

.step-item h3 {
    font-size: 1.6em;
    color: var(--color-accent-purple);
    margin-top: 10px;
}

/* Contact Section */
.contact-form {
    max-width: 600px;
    margin: 60px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    background-color: var(--color-bg-medium); /* Now light-gray */
    border: 1px solid rgba(0, 0, 0, 0.15); /* Subtle border for light theme */
    padding: 15px 20px;
    border-radius: 10px;
    color: var(--color-text-medium); /* Now darker medium-gray */
    font-size: 1.1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--color-text-dark); /* Now lighter dark-gray */
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent-blue);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); /* Subtle shadow for light theme */
}

.contact-form textarea {
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--color-bg-medium); /* Now light-gray */
    padding: 60px 0 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.08); /* Subtle border for light theme */
    text-align: left;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.6em;
    margin-bottom: 20px;
    color: var(--color-text-light); /* Now dark-gray */
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.footer-col p, .footer-col ul li a {
    font-size: 1em;
    color: var(--color-text-dark); /* Now lighter dark-gray */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--color-accent-blue);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.08); /* Subtle border for light theme */
    font-size: 0.9em;
    color: var(--color-text-dark); /* Now lighter dark-gray */
}


/* Scroll Fade-in Animation (initial state) */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* Keyframes for simple glow */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 10px rgba(0, 0, 0, 0.05); } /* Subtle shadow */
    50% { box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); } /* Subtle shadow */
    100% { box-shadow: 0 0 10px rgba(0, 0, 0, 0.05); } /* Subtle shadow */
}

/* Partners Section (Carousel) */
.partners-section {
    background-color: var(--color-bg-dark); /* White background */
}

.partners-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-top: 60px;
}

.partners-carousel::before,
.partners-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.partners-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--color-bg-dark), transparent);
}

.partners-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--color-bg-dark), transparent);
}

.carousel-track {
    display: flex;
    animation: scroll 40s linear infinite;
}

.carousel-slide {
    height: 80px;
    margin: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    height: 60px;
    max-width: 150px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.carousel-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Explicit 3 columns for desktop */
    gap: 40px;
    margin-top: 60px;
    text-align: left;
}

.blog-card {
    background: var(--color-bg-dark); /* White */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.blog-card-image {
    height: 200px;
    background-color: var(--color-bg-medium); /* Light gray placeholder */
    background-image: linear-gradient(45deg, rgba(0, 123, 255, 0.1), rgba(111, 66, 193, 0.1));
}

.blog-card-content {
    padding: 30px;
}

.blog-card-category {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--color-accent-purple);
    margin-bottom: 10px;
}

.blog-card-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--color-text-light); /* Dark gray */
}

.blog-card-excerpt {
    font-size: 1em;
    color: var(--color-text-medium);
    margin-bottom: 20px;
}

.blog-card-link {
    font-weight: 600;
    color: var(--color-accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-link:hover {
    text-decoration: underline;
}

/* FAQ Section */
.faq-accordion {
    max-width: 800px;
    margin: 60px auto 0;
    text-align: left;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 25px 0;
    font-family: var(--font-primary);
    font-size: 1.2em;
    font-weight: 600;
    color: var(--color-text-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    color: var(--color-accent-purple);
}

.faq-question .icon-arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-accent-purple);
    border-bottom: 2px solid var(--color-accent-purple);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.faq-item.active .icon-arrow {
    transform: rotate(225deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-answer p {
    padding: 0 0 25px;
    margin: 0;
    font-size: 1em;
    color: var(--color-text-medium);
}


/* Responsive Design */
/* Hamburger Menu */
.hamburger-menu {
    display: none; /* Hidden on desktop */
    width: 30px;
    height: 22px;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1002;
}

.hamburger-menu span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--color-text-light);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger-menu span:nth-child(1) { top: 0px; }
.hamburger-menu span:nth-child(2) { top: 9px; }
.hamburger-menu span:nth-child(3) { top: 18px; }

.hamburger-menu.active span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger-menu.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

/* Mobile Navigation Panel */
.nav-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.nav-mobile.active {
    opacity: 1;
    visibility: visible;
}

.nav-mobile ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-mobile ul li {
    margin: 30px 0;
}

.nav-mobile ul li a {
    font-family: var(--font-secondary);
    font-size: 2em;
    font-weight: 600;
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-mobile ul li a:hover {
    color: var(--color-accent-purple);
}


@media (max-width: 992px) {
    h1 { font-size: 3em; }
    h2 { font-size: 2.2em; }
    .nav-desktop { display: none; } /* Hide desktop nav */
    .hamburger-menu { display: block; } /* Show hamburger */
    .hero-section { height: 80vh; }
    section { padding: 80px 0; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .partners-carousel::before, .partners-carousel::after { width: 80px; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5em; }
    .subtitle { font-size: 1.2em; }
    #site-header .container { flex-direction: row; } /* Keep logo and hamburger on same line */
    .feature-item, .step-item { padding: 30px 20px; }
    .blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.8em; }
    .btn { padding: 12px 25px; font-size: 1em; }
    .feature-grid, .steps-grid { grid-template-columns: 1fr; }
    section { padding: 60px 0; }
}