/*
Theme Name: My Theme
Theme URI: http://localhost/
Author: Gemini
Author URI: http://localhost/
Description: A custom theme for Scalelab Staff project.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-theme
*/

/*
Theme Name: AI Marketing Platform
Description: High-fidelity marketing showcase with Kittl-style typography and ManyChat-style structure.
Version: 3.0
Author: Senior Frontend Developer
*/

/* --- VARIABLES & DESIGN TOKENS --- */
:root {
    --kb-black: #050505;
    --kb-white: #FFFFFF;
    --kb-bg-light: #F9FAFB;
    
    /* Vibrant but Soft Accents (Kittl Palette) */
    --kb-primary: #000000;
    --kb-accent-purple: #7B61FF;
    --kb-accent-coral: #FF7E5F;
    --kb-accent-teal: #4ECDC4;
    --kb-accent-yellow: #FFD93D;
    
    /* Soft Backgrounds for Accents (Point-wise use) */
    --kb-soft-purple: #F4F2FF;
    --kb-soft-coral: #FFF5F2;
    --kb-soft-teal: #F0FFFE;
    --kb-soft-yellow: #FFFBEB;

    /* Layout & Shadows */
    --section-padding: 120px 0;
    --border-radius-lg: 32px;
    --border-radius-md: 20px;
    --kb-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- BASE STYLES --- */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
    font-family: var(--font-body);
    color: var(--kb-black);
    background-color: var(--kb-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Kittl-Style Large Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--kb-black);
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 5.5rem);
    margin-bottom: 30px;
}

.section-title {
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    margin-bottom: 60px;
}

/* --- NAVIGATION --- */
.navbar {
    z-index: 1030;
    min-height: 100px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar-brand {
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: -0.05em;
}

.nav-link {
    font-weight: 700;
    color: var(--kb-black) !important;
    font-size: 0.95rem;
    padding: 10px 15px !important;
}

/* --- BUTTONS --- */
.btn {
    padding: 16px 36px;
    font-weight: 800;
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    letter-spacing: -0.01em;
}

.btn-kb-primary {
    background-color: var(--kb-black);
    color: var(--kb-white);
}

.btn-kb-primary:hover {
    background-color: var(--kb-accent-purple);
    transform: scale(1.05);
    color: white;
}

.btn-kb-accent {
    background-color: var(--kb-accent-purple);
    color: white;
}

.btn-kb-outline {
    background-color: transparent;
    color: var(--kb-black);
    border: 2px solid #EEE;
}

.btn-kb-outline:hover {
    border-color: var(--kb-black);
    transform: translateY(-3px);
}

/* --- CARDS & GLASS EFFECT --- */
.kb-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--border-radius-lg);
    padding: 50px;
    transition: all 0.5s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.kb-card h3 {
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    color: #FFF !important;
}

.kb-card p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Dashboard-specific card text colors (Dark on Light) */
.main-content .kb-card h1,
.main-content .kb-card h2,
.main-content .kb-card h3,
.main-content .kb-card h4,
.main-content .kb-card h5,
.main-content .kb-card h6,
.main-content .kb-card p,
.main-content .kb-card span,
.main-content .kb-card div {
    color: var(--kb-black) !important;
    text-shadow: none !important;
}

.kb-card:not(.kb-card-static):hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-10px);
}

/* Icon Accents */
.icon-box {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.kb-card:hover .icon-box {
    transform: rotate(-5deg) scale(1.1);
}

/* --- PARALLAX STRUCTURE --- */
.parallax-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    background-color: #000; /* Deep black base */
}

.parallax-img {
    position: fixed;
    top: 0;
    left: 0;
    width: 110vw;
    height: 120vh;
    object-fit: cover;
    will-change: transform;
    z-index: 0; /* lowest layer */
    pointer-events: none;
    backface-visibility: hidden;
}

.parallax-content-wrapper {
    position: relative;
    z-index: 1; /* layer for content */
}

/* --- COLOR UTILS --- */
.bg-soft-purple { background-color: var(--kb-soft-purple); color: var(--kb-accent-purple); }
.bg-soft-coral { background-color: var(--kb-soft-coral); color: var(--kb-accent-coral); }
.bg-soft-teal { background-color: var(--kb-soft-teal); color: var(--kb-accent-teal); }
.bg-soft-yellow { background-color: var(--kb-soft-yellow); color: var(--kb-accent-yellow); }

.text-purple { color: var(--kb-accent-purple); }
.text-coral { color: var(--kb-accent-coral); }
.text-teal { color: var(--kb-accent-teal); }

/* --- PRICING & SERVICES --- */
.price-tag {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--kb-black);
    letter-spacing: -0.05em;
}

.service-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #F5F5F5;
    font-weight: 600;
}

/* --- DASHBOARD & SIDEBAR --- */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    padding: 2rem;
    background: white;
    border-right: 1px solid #F0F0F0;
    display: flex;
    flex-direction: column;
}

.sidebar .navbar-brand {
    margin-bottom: 2rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    color: var(--kb-black);
    text-decoration: none;
    border-radius: var(--border-radius-md);
    transition: all 0.2s ease;
    font-size: 1rem;
    font-weight: 600;
}

.sidebar-link i {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    width: 1.25rem;
    text-align: center;
}

.sidebar-link:hover {
    background: var(--kb-bg-light);
    color: var(--kb-primary);
}

.sidebar-link.active {
    background: var(--kb-soft-purple);
    color: var(--kb-accent-purple) !important;
}

.sidebar-link.text-danger {
    color: #dc3545 !important;
}

.main-content {
    flex-grow: 1;
    padding: 2rem;
}

/* Responsiveness */
@media (min-width: 992px) {
    .parallax-img {
        transform: translate3d(-10vw, -20%, 0);
    }
}

@media (max-width: 991.98px) {
    .dashboard-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        border-right: none;
        min-height: auto;
    }
    .offcanvas .sidebar-link {
        font-size: 1.1rem;
    }
    .offcanvas .sidebar-link i {
        font-size: 1.5rem;
    }
    
    .parallax-img {
        z-index: -1;
    }

    .parallax-wrapper {
        z-index: 1;
    }

    section.py-4 {
        background-image: none !important;
    }
    
    .kb-card {
        padding: 30px;
    }
}

/* --- FOOTER CUSTOM STYLES --- */
.footer-custom, footer, #colophon {
    background: #050505 !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    color: white;
    position: relative;
    z-index: 99; /* highest layer */
}

.footer-divider-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.payment-icons img {
    width: 40px;
    height: 25px;
    object-fit: contain;
    margin-right: 10px;
}

.social-icons .bi {
    font-size: 1.8rem !important;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.social-icons .bi:hover {
    color: rgba(255, 255, 255, 0.9);
}
