/* ==========================================
   KAIZEN INFOMATICS - MAIN STYLESHEET
   ========================================== */

:root {
    --kz-primary: #C4122F;
    --kz-primary-dark: #960c23;
    --kz-primary-light: #ff2a4b;
    --kz-dark: #121316;
    --kz-dark-accent: #1e2025;
    --kz-gray-light: #f8f9fa;
    --kz-border-color: #e9ecef;
    --kz-text-muted: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #2b2f38;
    background-color: #ffffff;
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-size: 1rem;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

/* Geometric Letterhead Accent Bars */
.kz-accent-line {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.kz-accent-line span:nth-child(1) { width: 40px; height: 4px; background: var(--kz-primary); }
.kz-accent-line span:nth-child(2) { width: 20px; height: 4px; background: var(--kz-dark-accent); }

/* Top Bar */
.top-bar {
    background-color: var(--kz-dark);
    color: #d1d5db;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 2px solid var(--kz-primary);
}
.top-bar a {
    color: #e5e7eb;
    text-decoration: none;
    transition: color 0.2s;
}
.top-bar a:hover {
    color: var(--kz-primary-light);
}

/* Navbar */
.navbar {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 12px 0;
    transition: all 0.3s ease;
}
.navbar.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 1050;
}
.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--kz-dark) !important;
    margin: 0 8px;
    padding: 8px 14px !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--kz-primary) !important;
    background-color: rgba(196, 18, 47, 0.05);
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 14px;
    right: 14px;
    height: 2.5px;
    background-color: var(--kz-primary);
    border-radius: 2px;
}

/* Buttons */
.btn-kz-primary {
    background: linear-gradient(135deg, var(--kz-primary), var(--kz-primary-dark));
    color: #ffffff;
    font-weight: 600;
    padding: 11px 26px;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 14px rgba(196, 18, 47, 0.35);
    transition: all 0.3s ease;
    font-size: 1rem;
}
.btn-kz-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 18, 47, 0.5);
    color: #ffffff;
}
.btn-kz-outline {
    border: 2px solid var(--kz-dark);
    color: var(--kz-dark);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    background: transparent;
    transition: all 0.3s ease;
    font-size: 1rem;
}
.btn-kz-outline:hover {
    background: var(--kz-dark);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Dynamic Pages Display System */
.page-view {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}
.page-view.active-page {
    display: block;
    opacity: 1;
}

/* Hero Section */
.hero-section {
    background: radial-gradient(circle at top right, rgba(196, 18, 47, 0.08) 0%, transparent 60%),
                linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero-title {
    font-size: 3.4rem;
    line-height: 1.15;
    color: var(--kz-dark);
    margin-bottom: 24px;
}
.hero-title span {
    color: var(--kz-primary);
    position: relative;
}

/* Geometric Header Corners */
.corner-accent-wrapper {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    padding: 30px;
}
.corner-accent-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 50px;
    height: 50px;
    border-top: 4px solid var(--kz-primary);
    border-right: 4px solid var(--kz-dark-accent);
    border-top-right-radius: 16px;
}
.corner-accent-wrapper::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: -2px;
    width: 50px;
    height: 50px;
    border-bottom: 4px solid var(--kz-primary);
    border-left: 4px solid var(--kz-dark-accent);
    border-bottom-left-radius: 16px;
}

/* Cards */
.kz-card {
    background: #ffffff;
    border: 1px solid #edf0f2;
    border-radius: 14px;
    padding: 32px 26px;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    height: 100%;
}
.kz-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(18, 19, 22, 0.08);
    border-color: rgba(196, 18, 47, 0.3);
}
.card-icon-box {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    background: rgba(196, 18, 47, 0.08);
    color: var(--kz-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 22px;
    transition: all 0.3s ease;
}
.kz-card:hover .card-icon-box {
    background: var(--kz-primary);
    color: #ffffff;
    transform: rotateY(180deg);
}

/* Stats Strip */
.stats-strip {
    background: var(--kz-dark);
    color: white;
    padding: 50px 0;
    border-top: 3px solid var(--kz-primary);
}
.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
}
.stat-number span {
    color: var(--kz-primary-light);
}

/* Contact Details Card */
.contact-info-card {
    background: var(--kz-dark);
    color: white;
    border-radius: 16px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}
.contact-info-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--kz-primary) 0%, transparent 70%);
    opacity: 0.3;
}

/* Page Headers */
.page-hero {
    background: linear-gradient(135deg, var(--kz-dark) 0%, #1c1f26 100%);
    color: #ffffff;
    padding: 80px 0;
    position: relative;
    border-bottom: 4px solid var(--kz-primary);
}

/* Footer */
.footer {
    background-color: #0b0c0e;
    color: #a0a6b1;
    padding: 80px 0 25px;
    position: relative;
    border-top: 4px solid var(--kz-primary);
}
.footer-title {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: var(--kz-primary);
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: #a0a6b1;
    text-decoration: none;
    transition: all 0.2s ease;
}
.footer-links a:hover {
    color: #ffffff;
    padding-left: 6px;
    color: var(--kz-primary-light);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
    margin-top: 50px;
    font-size: 0.9rem;
}

/* Tech Floating Tags */
.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #334155;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    margin: 4px;
}

/* Industry Cards */
.industry-card {
    background: #ffffff;
    border: 1px solid #edf0f2;
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}
.industry-card:hover {
    border-color: var(--kz-primary);
    box-shadow: 0 12px 28px rgba(196, 18, 47, 0.08);
    transform: translateY(-4px);
}
.industry-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(196, 18, 47, 0.08);
    color: var(--kz-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
}

/* FAQ Accordion */
.accordion-item {
    border: 1px solid #edf0f2;
    border-radius: 12px !important;
    margin-bottom: 12px;
    overflow: hidden;
}
.accordion-button {
    font-weight: 600;
    font-size: 1rem;
    padding: 18px 24px;
    background: #ffffff;
    color: var(--kz-dark);
    border: none;
}
.accordion-button:not(.collapsed) {
    background: rgba(196, 18, 47, 0.04);
    color: var(--kz-primary);
}
.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}
.accordion-button::after {
    background-size: 1rem;
}
.accordion-body {
    padding: 0 24px 20px;
    color: var(--kz-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Testimonial Cards */
.testimonial-card {
    background: #ffffff;
    border: 1px solid #edf0f2;
    border-radius: 14px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}
.testimonial-stars i {
    color: #f59e0b;
    font-size: 0.9rem;
}
.testimonial-text {
    font-style: italic;
    color: #475569;
    line-height: 1.7;
    margin: 16px 0;
}

/* Team Cards */
.team-card {
    background: #ffffff;
    border: 1px solid #edf0f2;
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}
.team-card:hover {
    border-color: var(--kz-primary);
    box-shadow: 0 12px 28px rgba(196, 18, 47, 0.08);
    transform: translateY(-4px);
}
.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--kz-primary), var(--kz-primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 16px;
}

/* Form Controls */
.form-control, .form-select {
    font-size: 1rem;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}
.form-control:focus, .form-select:focus {
    border-color: var(--kz-primary);
    box-shadow: 0 0 0 0.2rem rgba(196, 18, 47, 0.15);
}
.form-label {
    font-size: 0.95rem;
    margin-bottom: 6px;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .stat-number {
        font-size: 2rem;
    }
}
@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    .display-6 {
        font-size: 1.8rem;
    }
}