/* Model 2 Premium Styles - Glassmorphism & Bento Box Grid */
:root {
    /* Colors - Dark Theme (Default) */
    --c-bg: #09090b;
    --c-surface: rgba(24, 24, 27, 0.6);
    --c-surface-hover: rgba(39, 39, 42, 0.8);
    --c-border: rgba(255, 255, 255, 0.08);
    
    --c-primary: #10b981;    /* Emerald Green */
    --c-primary-dark: #059669;
    --c-primary-glow: rgba(16, 185, 129, 0.3);
    
    --c-accent: #f59e0b;     /* Amber / Gold */
    --c-accent-glow: rgba(245, 158, 11, 0.2);
    
    --c-text-1: #f8fafc;
    --c-text-2: #94a3b8;
    
    /* Layout & Utilities */
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --radius-pill: 100px;
    
    --glass-blur: blur(16px);
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.3);
    --shadow-glow: 0 0 30px var(--c-primary-glow);
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Typography */
    --f-heading: 'Syne', sans-serif;
    --f-body: 'Plus Jakarta Sans', sans-serif;
}

[data-theme="light"] {
    --c-bg: #f8fafc;
    --c-surface: rgba(255, 255, 255, 0.7);
    --c-surface-hover: rgba(255, 255, 255, 1);
    --c-border: rgba(0, 0, 0, 0.05);
    
    --c-primary: #059669;
    --c-primary-dark: #047857;
    --c-primary-glow: rgba(5, 150, 105, 0.2);
    
    --c-text-1: #0f172a;
    --c-text-2: #475569;
    
    --shadow-soft: 0 20px 40px -15px rgba(0,0,0,0.05);
}

/* Reset & Base HTML */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--f-body);
    background-color: var(--c-bg);
    color: var(--c-text-1);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    position: relative;
    /* Removed SVG noise filter for performance reasons */
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--c-text-1);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }

/* Background Blobs for Premium Feel */
.blob-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--c-primary-glow) 0%, transparent 60%);
    top: -100px;
    right: -200px;
    z-index: -1;
    filter: blur(60px);
    border-radius: 50%;
    animation: float 10s infinite ease-in-out alternate;
}

.blob-2 {
    background: radial-gradient(circle, var(--c-accent-glow) 0%, transparent 60%);
    top: 40%;
    left: -200px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, 50px) scale(1.1); }
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.pt-section { padding-top: 140px; }
.py-section { padding: 100px 0; }
.mb-3 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1.5rem; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

.text-gradient {
    background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.text-muted { color: var(--c-text-2); }

/* Glassmorphism Classes */
.glass-card {
    background: var(--c-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.hover-glow:hover {
    box-shadow: var(--shadow-glow);
    border-color: var(--c-primary);
    transform: translateY(-5px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-family: var(--f-body);
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-primary {
    background: var(--c-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--c-primary-glow);
}

.btn-primary:hover {
    background: var(--c-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--c-primary-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--c-border);
    color: var(--c-text-1);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    border-color: var(--c-text-1);
    background: rgba(255,255,255,0.05);
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.btn-glow:hover::after {
    opacity: 1;
}

/* Header & Navbar */
.header-wrapper {
    position: fixed;
    top: 24px;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    transition: var(--transition);
    padding: 0 24px;
}

.header-wrapper.scrolled {
    top: 12px;
}

.navbar {
    width: 100%;
    max-width: 1000px;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.glass-nav {
    background: var(--c-surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-soft);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: 0 4px 10px var(--c-primary-glow);
}

.logo-text {
    font-family: var(--f-heading);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--c-text-2);
    position: relative;
    padding: 4px 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--c-text-1);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--c-primary);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-blur-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--c-border);
    color: var(--c-text-1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.icon-blur-btn:hover {
    background: var(--c-surface-hover);
    transform: scale(1.05) rotate(5deg);
    border-color: var(--c-primary);
}

.mobile-menu-btn {
    display: none;
}

/* Bento Hero */
.hero-bento {
    min-height: 95vh;
    display: flex;
    align-items: center;
}

.bento-grid-hero {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 20px;
    width: 100%;
}

.bento-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.bento-main {
    grid-column: span 8;
    grid-row: span 2;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-img-1 {
    grid-column: span 4;
    grid-row: span 2;
}

.bento-stats {
    grid-column: span 5;
    grid-row: span 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bento-img-2 {
    grid-column: span 7;
    grid-row: span 1;
    height: 250px;
}

.bento-img-1 img, .bento-img-2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-img-1:hover img, .bento-img-2:hover img {
    transform: scale(1.05);
}

.img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.img-overlay h3 {
    color: white;
    font-size: 1.8rem;
}

.floating-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    border: 1px solid rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
}

.floating-play:hover {
    background: var(--c-primary);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: var(--shadow-glow);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--c-surface-hover);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    width: fit-content;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--c-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 0 var(--c-primary-glow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.display-title {
    font-size: 4.5rem;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.hero-text {
    font-size: 1.15rem;
    color: var(--c-text-2);
    max-width: 550px;
    margin-bottom: 40px;
}

.hero-action-group {
    display: flex;
    gap: 16px;
}

.stat-row {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    padding: 0 20px;
}

.divider-v {
    width: 1px;
    height: 60px;
    background: var(--c-border);
}

.stat-block {
    text-align: center;
}

.stat-block h4 {
    font-family: var(--f-body);
    font-size: 0.85rem;
    color: var(--c-text-2);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.stat-val {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--f-heading);
    line-height: 1;
}

/* Marquee */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background: var(--c-primary);
    padding: 20px 0;
    transform: rotate(-2deg) scale(1.05); /* scale hides edges caused by rotation */
    margin: 80px 0;
    box-shadow: 0 10px 30px var(--c-primary-glow);
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: scroll 20s linear infinite;
    gap: 40px;
    align-items: center;
}

.marquee-content span {
    font-family: var(--f-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.marquee-content i {
    color: var(--c-accent);
    font-size: 1.2rem;
}

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

/* Split Profile Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.align-self-center { align-self: center; }

.section-title {
    font-size: 3.2rem;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.section-desc {
    font-size: 1.15rem;
    color: var(--c-text-2);
    max-width: 600px;
}

.styled-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.styled-list li {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    transition: var(--transition);
}

.styled-list li:hover {
    transform: translateX(10px);
    border-color: var(--c-primary);
}

.list-icon {
    width: 40px;
    height: 40px;
    background: var(--c-surface-hover);
    border: 1px solid var(--c-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-primary);
    font-size: 1.1rem;
}

.list-text {
    font-weight: 600;
    font-size: 1.05rem;
}

.sticky-visual {
    position: sticky;
    top: 140px;
}

.img-stack {
    position: relative;
    height: 550px;
    width: 100%;
}

.img-back {
    width: 85%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    position: absolute;
    top: 0;
    right: 0;
    box-shadow: var(--shadow-soft);
}

.card-front {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 75%;
    padding: 40px;
    background: var(--c-surface);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.accent-border {
    border-left: 6px solid var(--c-primary);
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--c-primary);
    opacity: 0.4;
    margin-bottom: 20px;
}

.card-front p {
    font-size: 1.35rem;
    font-family: var(--f-heading);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 24px;
}

.author {
    font-weight: 700;
    color: var(--c-text-2);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Bento Programs (Responsive Grid) */
.bento-programs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 24px;
}

.p-card {
    padding: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.p-tahfidz { grid-column: span 2; grid-row: span 1; background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), transparent); }
.p-lang { grid-column: span 1; grid-row: span 2; }
.p-it { grid-column: span 1; grid-row: span 1; }
.p-org { grid-column: span 2; grid-row: span 1; background: linear-gradient(135deg, transparent, rgba(245, 158, 11, 0.08)); }

.p-icon {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 3.5rem;
    color: var(--c-text-2);
    opacity: 0.2;
    transition: var(--transition);
}

.p-card:hover .p-icon {
    color: var(--c-primary);
    opacity: 1;
    transform: scale(1.2) rotate(-10deg);
}

.p-card h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.p-card p {
    color: var(--c-text-2);
    font-size: 1.05rem;
}

/* CTA Section */
.cta-banner {
    padding: 100px 40px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), transparent);
}

.glow-border {
    box-shadow: 0 0 0 1px var(--c-primary-glow) inset, var(--shadow-glow);
}

.badge-accent {
    background: rgba(245, 158, 11, 0.1);
    color: var(--c-accent);
    border-color: rgba(245, 158, 11, 0.2);
}

.cta-heading {
    font-size: 4rem;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.cta-desc {
    font-size: 1.25rem;
    color: var(--c-text-2);
    max-width: 600px;
    margin: 0 auto;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Footer */
.glass-footer {
    background: var(--c-surface);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-top: 1px solid var(--c-border);
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding: 100px 24px;
}

.footer-brand p {
    color: var(--c-text-2);
    max-width: 350px;
    margin-top: 20px;
    font-size: 1.05rem;
}

.social-circles {
    display: flex;
    gap: 16px;
}

.social-circles a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--c-surface-hover);
    border: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text-1);
    font-size: 1.2rem;
}

.social-circles a:hover {
    background: var(--c-primary);
    color: white;
    border-color: var(--c-primary);
    transform: translateY(-3px);
}

.footer-links h4, .footer-contact h4 {
    font-family: var(--f-heading);
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links a {
    color: var(--c-text-2);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--c-primary);
    padding-left: 8px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-items li {
    display: flex;
    gap: 16px;
    color: var(--c-text-2);
    font-weight: 500;
}

.contact-items i {
    color: var(--c-primary);
    margin-top: 5px;
    font-size: 1.2rem;
}

.border-top {
    border-top: 1px solid var(--c-border);
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-main { grid-column: span 12; }
    .bento-img-1 { grid-column: span 6; }
    .bento-stats { grid-column: span 6; }
    .bento-img-2 { grid-column: span 12; }
    .display-title { font-size: 3.8rem; }
    .split-layout { grid-template-columns: 1fr; }
    .img-stack { height: 450px; margin-top: 40px; }
    .bento-programs { grid-template-columns: 1fr 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .btn { display: none; }
    .mobile-menu-btn { display: flex; }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--c-surface);
        backdrop-filter: var(--glass-blur);
        padding: 24px;
        border-radius: var(--radius-md);
        border: 1px solid var(--c-border);
        margin-top: 10px;
    }
    
    .bento-img-1, .bento-stats { grid-column: span 12; }
    .display-title { font-size: 2.8rem; }
    .bento-main { padding: 40px 24px; }
    .cta-heading { font-size: 3rem; }
    .cta-actions { flex-direction: column; }
    .bento-programs { grid-template-columns: 1fr; }
    .p-tahfidz, .p-lang, .p-it, .p-org { grid-column: span 1; grid-row: auto; min-height: 220px; }
    .footer-content { grid-template-columns: 1fr; }
    .section-title { font-size: 2.5rem; }
}
