/* ==========================================
   KRISHNA WORKPLACE - Style System (Light Mode)
   ========================================== */

:root {
    --bg-primary: #f3f2f0;
    --bg-secondary: #ffffff;
    --text-primary: #001635;
    --text-muted: #4e5d78;
    --accent-color: #9B6303;
    --border-color: rgba(0, 22, 53, 0.12);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(252, 239, 222, 0.85);
    --glass-border: rgba(155, 99, 3, 0.2);
}

/* Global Reset & Typography */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
}

/* Three.js Background Container */
#three-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.65;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #001635 0%, #9B6303 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.accent-text {
    color: var(--accent-color);
}

/* Navigation Custom Style */
/* Navigation Custom Style */
.custom-nav {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    transition: all 0.3s ease;
    z-index: 1030;
}

.nav-logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 1px;
    text-decoration: none;
    line-height: 1.2;
}

.nav-brand-text {
    color: var(--text-primary);
}

@media (min-width: 1024px) {
    .navbar-status-container {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .nav-logo {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .nav-logo {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
    .badge-sub-text {
        display: none; /* Hide " Connected" word on small viewports */
    }
    .status-badge {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}

@media (max-width: 380px) {
    .nav-logo {
        font-size: 0.9rem;
    }
}

.nav-logo-img {
    height: 40px;
    width: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 576px) {
    .nav-logo-img {
        height: 48px;
    }
}

@media (min-width: 992px) {
    .nav-logo-img {
        height: 56px;
    }
}

@media (min-width: 1400px) {
    .nav-logo-img {
        height: 64px;
    }
}

/* Custom Nav Links and Dropdowns */
.custom-nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary) !important;
    padding: 8px 16px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    opacity: 0.8;
}

.custom-nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-nav-link:hover {
    opacity: 1;
    color: var(--accent-color) !important;
}

.custom-nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Custom Horizontal Links Layout */
.nav-links-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

@media (max-width: 991.98px) {
    .nav-links-list {
        display: none !important;
    }
    .navbar-status-container {
        display: none !important;
    }
}


.status-badge {
    background-color: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 120px 0 80px 0;
    z-index: 1;
}

.hero-badge {
    background: rgba(155, 99, 3, 0.1);
    color: #9B6303;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border: 1px solid rgba(155, 99, 3, 0.25);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-subtitle {
    max-width: 700px;
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 400;
}

.scroll-prompt {
    font-size: 1.5rem;
    color: var(--text-muted);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Brand Cards */
.brand-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color) !important;
}

.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--accent-color);
    transition: height 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(0,0,0,0.02);
}

.brand-card:hover::before {
    height: 10px;
}

.brand-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.brand-card:hover .brand-card-img {
    transform: scale(1.08);
}

.badge-sector {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.brand-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0f172a;
}

.brand-card-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.brand-pinnacle-box {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    padding: 12px 16px;
    border-radius: 12px;
}

.pinnacle-label {
    font-size: 0.68rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 4px;
}

.pinnacle-val {
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
}

.btn-premium {
    background-color: #0f172a;
    color: #ffffff;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-premium:hover {
    background-color: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.25);
}

/* Style Section Controls & Tables */
.section-heading {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
}

.filter-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-weight: 600;
    border-radius: 30px;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.glass-table-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.custom-table th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    border-bottom: 2px solid #edf2f7;
    padding: 18px;
}

.custom-table td {
    padding: 18px;
    border-bottom: 1px solid #edf2f7;
}

.table-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.vibe-pill {
    padding: 6px 12px;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #475569;
    font-weight: 500;
}

.font-code {
    font-family: 'JetBrains Mono', Courier, monospace;
    font-size: 0.85rem;
    padding: 4px 8px;
    background: #f1f5f9;
    border-radius: 4px;
}

/* Philosophy Section Checklist Card */
.checklist-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.checklist-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.checklist-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.checklist-icon {
    color: #22c55e;
    font-size: 1.35rem;
}

/* Footer Section */
.footer-section {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
}

.footer-divider {
    height: 1px;
    width: 150px;
    background: #e2e8f0;
    margin: 0 auto;
}

/* Hero Image Wrapper */
.hero-img-container {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    margin-top: 2rem;
    /* Mobile view: fits portrait aspect ratios naturally */
    aspect-ratio: 2 / 3;
    max-height: 440px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 12%; /* Offsets vertical positioning slightly to keep face elements in the crop viewport */
}

@media (min-width: 576px) {
    .hero-img-container {
        /* Tablet view: landscape crop */
        aspect-ratio: 4 / 3;
        max-height: 350px;
    }
    .hero-image {
        object-position: center 20%;
    }
}

@media (min-width: 992px) {
    .hero-img-container {
        /* Desktop side-by-side view: elegant tall crop next to typography */
        aspect-ratio: 3 / 4;
        max-height: 500px;
        margin-top: 0;
    }
    .hero-image {
        object-position: center 12%;
    }
}

/* Responsive Custom Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.3rem;
    }
    .hero-section {
        padding: 80px 0 50px 0;
    }
    
    /* Table to card layout conversion for Venture Directory */
    .glass-table-container {
        background: transparent;
        border: none;
        box-shadow: none !important;
    }
    .custom-table, 
    .custom-table thead, 
    .custom-table tbody, 
    .custom-table th, 
    .custom-table td, 
    .custom-table tr {
        display: block;
        width: 100%;
    }
    .custom-table thead {
        display: none; /* Hide headings on mobile */
    }
    .custom-table tbody {
        padding: 0;
    }
    .custom-table tr.table-row-anim {
        background: #ffffff;
        border: 1px solid var(--border-color);
        border-radius: 16px;
        padding: 0 !important; /* Shifting padding to cells to prevent rendering engine clipping */
        margin-bottom: 16px;
        box-shadow: var(--shadow-sm);
        transition: transform 0.2s ease;
        overflow: hidden;
    }
    .custom-table tr.table-row-anim:hover {
        transform: translateY(-2px);
    }
    .custom-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px !important; /* Add horizontal padding directly on cells */
        border-bottom: 1px solid rgba(0, 22, 53, 0.06);
        text-align: right;
    }
    .custom-table td:last-child {
        border-bottom: none;
        padding-bottom: 16px !important; /* Extra bottom margin inside card boundary */
        justify-content: center;
        width: 100%;
    }
    .custom-table td:last-child a {
        width: 100%;
        text-align: center;
    }
    .custom-table td::before {
        content: attr(data-label);
        display: inline-block;
        flex-shrink: 0;
        margin-right: 12px;
        font-weight: 700;
        text-align: left;
        color: var(--text-primary);
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    /* Special layout adjustment for first column which contains name and sector info */
    .custom-table td[data-label="Client Brand"] {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        border-bottom: 2px solid rgba(0, 22, 53, 0.08);
        padding-top: 16px !important; /* Extra top margin inside card boundary */
    }
    .custom-table td[data-label="Client Brand"]::before {
        margin-bottom: 8px;
    }
    .logo-cell-container {
        width: 100%;
    }
}

/* Horizontal scrolling for filters on mobile/tablet screens */
@media (max-width: 768px) {
    .filter-controls {
        display: flex;
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        padding: 4px 8px 12px 8px;
        margin-bottom: 24px;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        scrollbar-width: none; /* Hide scrollbars */
    }
    .filter-controls::-webkit-scrollbar {
        display: none;
    }
    .filter-btn {
        flex: 0 0 auto;
        padding: 6px 14px;
        font-size: 0.85rem;
    }
    .section-heading {
        font-size: 1.8rem;
    }
    .comparison-section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
}

/* ==========================================
   INDUSTRY PREVIEW & CALCULATOR SPECIFIC STYLES
   ========================================== */

.preview-sidebar {
    background: #ffffff;
    border-right: 1px solid var(--border-color);
    min-height: 100vh;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--accent-color);
}

.brand-showcase-title {
    font-family: 'Syne', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
}

.showcase-content-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* Specific Interactive Widget Layouts */

/* 1. Events Seating Arranger */
#events-arranger-canvas {
    background: #fafaf9;
    border: 2px dashed #e7e5e4;
    border-radius: 12px;
    min-height: 350px;
    position: relative;
    overflow: hidden;
}

.event-element {
    position: absolute;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: grab;
    user-select: none;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.15s ease;
}

.event-element:active {
    cursor: grabbing;
    transform: scale(1.1);
}

.element-table {
    background: #fff;
    border: 2px solid #d4af37;
    color: #b8901c;
}

.element-floral {
    background: #fef2f2;
    border: 2px solid #f87171;
    color: #ef4444;
    border-radius: 10px;
}

.element-chair {
    background: #eff6ff;
    border: 2px solid #60a5fa;
    color: #3b82f6;
    width: 32px;
    height: 32px;
}

/* 2. CA Compliance Checker & Tax Estimator */
.compliance-progress-bar {
    height: 10px;
    background-color: #f1f5f9;
    border-radius: 50px;
    overflow: hidden;
}

.compliance-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0d6efd 0%, #0dcaf0 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.audit-checkbox-item {
    padding: 14px 18px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.audit-checkbox-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.audit-checkbox-item.checked {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

/* 3. digiaddabox Simulator */
.range-slider-label {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.9rem;
    color: #475569;
}

.stat-card-gradient {
    border-radius: 16px;
    padding: 20px;
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.stat-card-indigo {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
}

.stat-card-pink {
    background: linear-gradient(135deg, #d946ef 0%, #86198f 100%);
}

/* 4. Soul and Mind Breathing Coach */
.breath-circle-container {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.breath-circle-outer {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(25, 135, 84, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(25, 135, 84, 0.15);
}

.breath-circle-inner {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #198754 0%, #2e7d32 100%);
    box-shadow: 0 10px 25px rgba(25, 135, 84, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.15rem;
    transition: transform 0.1s ease;
}

/* 5. Real Estate Mortgage Calculator */
.property-card-lease {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    transition: all 0.3s ease;
}

.property-card-lease:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.property-img-placeholder {
    height: 160px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #cbd5e1;
}
