html {
    scroll-behavior: smooth; 
}

h1, h2, h3, .gradient-text, .acc-header span {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800;
}

p, 
.subtitle, 
.bento-item p, 
.feat-list li, 
.acc-body,
.legal-header p {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 400;
    line-height: 1.7; /* Text ko thoda khula aur readable banane ke liye */
}

:root {
    --about-bg: #030407;
    --about-card-bg: rgba(15, 18, 25, 0.6);
    --about-primary: #2563eb;
    --about-accent: #60a5fa;
    --about-text-main: #f8fafc;
    --about-text-dim: #94a3b8;
    --about-border: rgba(255, 255, 255, 0.08);
    --about-glow: rgba(37, 99, 235, 0.3);
    --fa-style-family-classic: "Font Awesome 6 Free";
    /* JavaScript width control */
    --scale: 1; 
}

/* Light Theme Variables */
[data-theme="light"], body.light-mode {
    --about-bg: #f8fafc;
    --about-card-bg: #ffffff;
    --about-text-main: #0f172a;
    --about-text-dim: #475569;
    --about-border: rgba(0, 0, 0, 0.08);
    --about-glow: rgba(37, 99, 235, 0.15);
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --about-bg: #030407;
    --about-card-bg: rgba(15, 18, 25, 0.6);
    --about-text-main: #f8fafc;
    --about-text-dim: #94a3b8;
    --about-border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Force background, color, and FONT on body to override style.css */
body {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    -webkit-user-select: none; 
    -moz-user-select: none;    
    -ms-user-select: none;     
    user-select: none;         
    background-color: var(--about-bg) !important;
    color: var(--about-text-main) !important;
    scroll-behavior: smooth;
    position: relative;
    overflow-x: hidden !important; 
    overflow-y: auto !important;
    zoom: var(--scale) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav .brand, .brand {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 800;
}

.container { width: 90%; max-width: 1100px; margin: auto; }

.nav-link {
    display: flex !important;
    align-items: center;
    gap: 14px; 
    padding: 12px 18px;
    color: var(--about-text-dim);
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    background: transparent;
}

.nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.7;
    transition: all 0.3s ease;
}

/* Sidebar Links Hover */
.nav-link:hover {
    color: var(--about-primary);
    background: rgba(37, 99, 235, 0.08);
    transform: translateX(6px);
}

.nav-link:hover i {
    opacity: 1;
    color: var(--about-primary);
}

/* Sidebar Active Link */
.nav-link.active {
    background: var(--about-primary) !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.nav-link.active i {
    opacity: 1;
    color: #ffffff !important;
}

/* --- Global Typography (Fixed Fonts) --- */
h1, h2, h3, .gradient-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
}

.about-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 0;
}

/* --- Page Header --- */
.page-header { 
    text-align: center; 
    margin-bottom: 80px; 
}

/* Scoped Badge */
.about-container .badge {
    background: rgba(37, 99, 235, 0.1);
    color: var(--about-primary);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

.page-header h1 { 
    font-size: clamp(2.5rem, 6vw, 4rem); 
    margin: 20px 0; 
    line-height: 1.1; 
    color: var(--about-text-main);
}

.gradient-text {
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle { 
    color: var(--about-text-dim); 
    font-size: 1.2rem; 
    max-width: 700px; 
    margin: 0 auto; 
}

/* --- Bento Grid --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 25px;
    margin-bottom: 100px;
    align-items: stretch;
    perspective: 1000px;
}

/* Forced !important on card backgrounds */
.bento-item {
    background: var(--about-card-bg) !important;
    border: 1px solid var(--about-border);
    border-radius: 28px;
    padding: 45px 35px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: default;
    display: flex;
    flex-direction: column;
}

.bento-item:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--about-primary);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1), 
                0 0 20px rgba(37, 99, 235, 0.15);
}

[data-theme="dark"] .bento-item:hover {
    background: rgba(15, 23, 42, 0.95) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 
                0 0 20px rgba(37, 99, 235, 0.1);
}

.bento-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.bento-item:hover::before { opacity: 1; }

.icon-circle {
    width: 50px; height: 50px;
    background: var(--about-primary);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 25px; font-size: 1.2rem;
    transition: all 0.4s ease;
    color: white;
}

.bento-item:hover .icon-circle {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 0 15px var(--about-primary);
}

/* --- Content Typography (Fixed Fonts) --- */
.bento-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--about-text-main);
}

.bento-item p, 
.feat-list li {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    color: var(--about-text-dim);
    line-height: 1.6;
}

.feat-list {
    list-style: none;
    margin-top: 15px;
}

.feat-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.feat-list i {
    color: var(--about-primary);
    font-size: 0.9rem;
    margin-right: 12px;
    margin-top: 4px; 
}

/* --- Modern Accordion --- */
.legal-container { max-width: 900px; margin: 0 auto; }

.modern-accordion { 
    background: var(--about-card-bg) !important; 
    border-radius: 20px; 
    border: 1px solid var(--about-border); 
    overflow: hidden; 
}

.legal-header p {
    margin-bottom: 20px;
    color: var(--about-text-dim);
}

.legal-header h2 {
    color: var(--about-text-main);
}

.acc-item { border-bottom: 1px solid var(--about-border); }
.acc-item:last-child { border-bottom: none; }

.acc-header {
    padding: 24px 32px; display: flex; justify-content: space-between;
    align-items: center; cursor: pointer; transition: 0.3s;
    color: var(--about-text-main);
}

.acc-header span { font-weight: 600; font-size: 1.1rem; }
.acc-header i { transition: 0.4s; color: var(--about-text-dim); }

.acc-body { 
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; 
    padding: 0 32px; color: var(--about-text-dim); 
}

.acc-item.active .acc-body { max-height: 500px; padding-bottom: 24px; }
.acc-item.active .acc-header,
.acc-item.active .acc-header span { color: var(--about-primary); }
.acc-item.active i { transform: rotate(45deg); color: var(--about-primary); }

/* --- Responsive Breakpoints --- */
@media (max-width: 768px) {
    .page-header h1 { font-size: 2.2rem; }
    .bento-item { padding: 35px 25px; }
    .acc-header { padding: 20px; }
    .acc-body { padding: 0 20px; }
}