/* Variables */
:root {
    --primary-color: #800020;
    /* UNIRAZAK Maroon */
    --primary-dark: #5a0016;
    --secondary-color: #f4f4f4;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --bg-light: #f9f9f9;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    background-image: radial-gradient(circle at 10% 20%, rgba(128, 0, 32, 0.03) 0%, rgba(128, 0, 32, 0.01) 40%, transparent 80%);
    background-attachment: fixed;
    /* Subtle texture stays in place */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    color: var(--text-color);
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    /* Ensure it looks clickable */
    perspective: 1000px;
    /* Enable 3D space */
}

.logo:hover {
    transform: scale(1.1);
    /* Stronger raised effect */
}

.logo-placeholder {
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy spring */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo:hover .logo-placeholder {
    transform: translateZ(20px) translateY(-5px) rotate(-10deg);
    /* 3D pop and swift tilt */
    background-color: var(--primary-dark);
    box-shadow: 0 15px 30px rgba(128, 0, 32, 0.4);
    /* Deep shadow for depth */
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 10px;
    border-radius: 4px;
    background: linear-gradient(to right, var(--primary-color) 50%, transparent 50%);
    background-size: 200% 100%;
    background-position: right bottom;
    transition: all 0.3s ease-out;
}

.nav-links a:hover {
    color: white;
    background-position: left bottom;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: radial-gradient(circle at top right, rgba(128, 0, 32, 0.05), transparent 40%);
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    background: rgba(128, 0, 32, 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: rgba(128, 0, 32, 0.05);
    transform: translateY(-2px);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    height: 500px;
    /* Ensure height for canvas */
}

#brain-canvas {
    width: 100%;
    height: 100%;
    max-width: 600px;
    max-height: 600px;
}

/* Cards Grid */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
    display: inline-block;
}

.card:hover .icon {
    transform: scale(1.2) rotate(5deg);
    color: var(--primary-color);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

/* Dark Section (How it works) */
.dark-section {
    background-color: #1a1a1a;
    color: white;
}

.text-white h2 {
    color: white;
}

.text-white p {
    color: rgba(255, 255, 255, 0.7);
}

.steps {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
}

.step {
    text-align: center;
    flex: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 20px;
}

.step h3 {
    color: white;
}

.step p {
    color: rgba(255, 255, 255, 0.7);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding-bottom: 20px;
}

/* Footer */
.footer {
    background-color: #f9f9f9;
    margin-bottom: 5px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}



.steps {
    flex-direction: column;
}

/* ChatKit Container */
#chatkit-container,
openai-chatkit {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 400px;
    height: 600px;
    z-index: 2000;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: none;
}

#chatkit-container.active,
openai-chatkit.active {
    display: block;
}

/* Chat Toggle Button */
#chat-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #800020;
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.3);
    cursor: pointer;
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

#chat-toggle-btn:hover {
    transform: scale(1.1);
    background-color: #600018;
}
}