/* Variables */
:root {
    --bg-color: #0a192f;
    --bg-color-alt: #112240;
    --text-main: #e6f1ff;
    --text-muted: #8892b0;
    --accent-cyan: #64ffda;
    --accent-purple: #bd34fe;
    --gradient-primary: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    --font-main: 'Inter', 'Noto Sans JP', sans-serif;
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

section {
    position: relative;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

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

.mt-4 {
    margin-top: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-color);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(100, 255, 218, 0.5);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-secondary:hover {
    background: rgba(100, 255, 218, 0.1);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navbar */
/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.logo img {
    height: 65px;
    width: auto;
    transition: all 0.3s ease;
}

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

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-main);
}

.nav-links a:hover {
    color: var(--accent-cyan);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Default hidden on mobile */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
        pointer-events: all;
    }

    .nav-links.active a {
        font-size: 1.5rem;
    }
}

.nav-cta {
    margin-left: 20px;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomEffect 20s infinite alternate;
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0.7), rgba(10, 25, 47, 0.9));
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 800px;
}

.hero-tag {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    font-weight: 600;
}


.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
    /* Rich Gradient Text */
    background: linear-gradient(to right, #ffffff 20%, #a5b4fc 40%, #ffffff 60%, #a5b4fc 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

/* Hero Problem List */
.problem-list-hero {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.problem-item-hero {
    color: var(--text-main);
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.problem-item-hero i {
    color: var(--accent-cyan);
    margin-right: 10px;
}

/* Lead Magnet */
.lead-magnet-card {
    background: var(--bg-color-light);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.lead-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 30px auto;
}

.lead-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 20px;
    color: white;
}

.lead-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Risk Section */
.risk-list {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.risk-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 10px;
}

.risk-item i {
    color: var(--accent-cyan);
    margin-top: 5px;
}

@media (max-width: 600px) {
    .lead-form {
        flex-direction: column;
    }
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.scroll-down .mouse {
    width: 20px;
    height: 35px;
    border: 2px solid var(--text-muted);
    border-radius: 10px;
    position: relative;
}

.scroll-down .mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--accent-cyan);
    transform: translateX(-50%);
    border-radius: 50%;
    animation: scrollMouse 2s infinite;
}

/* Stats */
.stats {
    background: var(--bg-color-alt);
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-cyan);
    display: inline-block;
}

.stat-unit {
    display: inline-block;
    font-size: 2rem;
    color: var(--accent-cyan);
}

.stat-label {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Section Header */
.section-header {
    margin-bottom: 60px;
}

.subheading {
    display: block;
    color: var(--accent-cyan);
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.about-card {
    background: rgba(17, 34, 64, 0.7);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.about-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-10px);
    box-shadow: 0 20px 30px -15px rgba(2, 12, 27, 0.7);
    background: rgba(17, 34, 64, 0.9);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--accent-purple);
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.about-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Services List */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.service-row {
    display: flex;
    align-items: center;
    gap: 50px;
}

.service-row:nth-child(even) {
    flex-direction: row-reverse;
}

.service-content {
    flex: 1;
}

.service-content h3 {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 20px;
}

.service-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.service-tags {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.service-tags li {
    font-size: 0.8rem;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 5px 15px;
    border-radius: 20px;
}

.service-image {
    flex: 1;
    height: 300px;
    background: linear-gradient(135deg, #112240, #233554);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.service-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(100, 255, 218, 0.2);
    box-shadow: 0 0 30px var(--accent-cyan);
}

/* Comparison (Mock) */
.comparison-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 400px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    background-color: #333;
    display: flex;
}

.comp-after,
.comp-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.comp-after {
    background: url('assets/images/hero.png') no-repeat center center/cover;
    z-index: 2;
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
    /* Mock initial state */
    /* In a real slider, width would change */
    width: 100%;
    clip-path: inset(0 0 0 50%);
}

.comp-after::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.comp-label {
    position: absolute;
    bottom: 20px;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.comp-before {
    background: #555;
    /* Simulating 'boring' zoom */
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
}

.comp-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #fff;
    z-index: 3;
    cursor: ew-resize;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-color);
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.5);
}

.comp-caption {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Works Grid */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.work-item {
    cursor: pointer;
}

.work-thumb {
    height: 220px;
    background: #233554;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.work-thumb img,
.pkg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.work-item:hover .work-thumb img {
    transform: scale(1.1);
}

.work-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(100, 255, 218, 0.1);
    opacity: 0;
    transition: var(--transition);
}

.work-item:hover .work-thumb {
    transform: translateY(-5px);
}

.work-item:hover .work-thumb::after {
    opacity: 1;
}

.work-info h4 {
    font-size: 1.2rem;
    color: var(--text-main);
}

.work-info span {
    font-size: 0.85rem;
    color: var(--accent-cyan);
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #112240, #0a192f);
    padding: 60px;
    text-align: center;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Filter Buttons */
.works-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    padding: 8px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-cyan);
    color: var(--bg-color);
    border-color: var(--accent-cyan);
    font-weight: 600;
}

/* Works Item Animation */
.work-item {
    transition: all 0.4s ease;
}

.work-item.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
    position: absolute;
    /* Take out of flow to animate properly in grid, but complex. Simple hidden is okay. */
    display: none;
    /* Simplest filter */
}

/* Exit Intent Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-color-alt);
    width: 90%;
    max-width: 700px;
    border-radius: 12px;
    position: relative;
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 0 50px rgba(100, 255, 218, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal-overlay.open .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
}

.modal-body {
    display: flex;
}

.modal-image {
    flex: 1;
    background: url('assets/images/hero.png') no-repeat center center/cover;
    min-height: 300px;
    position: relative;
}

.modal-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(100, 255, 218, 0.2);
}

.modal-text {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-text h3 {
    color: var(--accent-cyan);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.modal-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.modal-link-close {
    text-align: center;
    display: block;
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
    }

    .modal-image {
        min-height: 150px;
    }
}

/* Packages Section - Carousel */
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.carousel-arrow {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-arrow:hover {
    background: var(--accent-cyan);
    color: var(--bg-color);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.3);
}

.carousel-indicators {
    display: flex;
    gap: 12px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent-cyan);
    width: 25px;
    border-radius: 10px;
}

.package-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    border-radius: 16px;
}

.package-carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.pkg-slide {
    flex: 0 0 100%;
    width: 100%;
}

.pkg-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    background: #0a192f;
    padding: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pkg-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pkg-desc {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
}

.pkg-features {
    list-style: none;
    margin-bottom: 30px;
}

.pkg-features li {
    margin-bottom: 15px;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pkg-features li i {
    color: var(--accent-cyan);
    margin-top: 4px;
}

.pkg-price {
    font-size: 1.1rem;
    color: var(--accent-purple);
    font-weight: 600;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pkg-price span {
    color: var(--text-muted);
    font-weight: normal;
    font-size: 0.9rem;
}

.pkg-image {
    background: #112240;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    min-height: 300px;
}

.pkg-img-placeholder {
    font-size: 5rem;
    color: var(--text-muted);
    opacity: 0.3;
}

@media (max-width: 900px) {
    .pkg-grid {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .pkg-image {
        min-height: 250px;
        order: -1;
    }

    .pkg-info h3 {
        font-size: 1.5rem;
    }
}


/* Client Categories */
.logos-section {
    background: #050f1e;
    overflow: hidden;
    padding: 60px 0;
}

.client-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .client-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .client-categories {
        gap: 15px;
    }

    .client-category-item {
        padding: 20px 10px;
    }

    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .client-category-item h4 {
        font-size: 0.95rem;
    }

    .client-category-item p {
        font-size: 0.75rem;
    }
}

.client-category-item {
    background: rgba(17, 34, 64, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: var(--transition);
}

.client-category-item:hover {
    border-color: rgba(100, 255, 218, 0.3);
    background: rgba(17, 34, 64, 0.8);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.category-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(100, 255, 218, 0.1);
    border: 2px solid var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-cyan);
    transition: var(--transition);
}

.client-category-item:hover .category-icon {
    background: var(--accent-cyan);
    color: var(--bg-color);
    transform: scale(1.1);
}

.client-category-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.client-category-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .client-categories {
        grid-template-columns: 1fr;
    }
}


/* Chat Window */
.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: var(--bg-color-alt);
    border: 1px solid var(--accent-cyan);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1000;
}

.chat-window.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chat-header {
    background: var(--gradient-primary);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.chat-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-logo-img {
    height: 24px;
    width: auto;
}

.chat-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    max-width: 80%;
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-message.bot {
    align-self: flex-start;
    display: flex;
    gap: 10px;
}

.bot-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-color-alt);
    border: 1px solid var(--accent-cyan);
    padding: 5px;
    flex-shrink: 0;
}

.chat-message.user {
    align-self: flex-end;
}

.message-content {
    background: #1d2d50;
    padding: 10px 15px;
    border-radius: 12px;
    border-top-left-radius: 2px;
    /* Changed from bottom-left for better chat feel with avatar */
    color: #fff;
}

.chat-message.user .message-content {
    background: var(--accent-cyan);
    color: #0a192f;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 2px;
    font-weight: 500;
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.chat-option-btn {
    background: transparent;
    border: 1px solid var(--accent-purple);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    font-size: 0.85rem;
}

.chat-option-btn:hover {
    background: rgba(189, 52, 254, 0.1);
    transform: translateX(5px);
}

.chat-typing {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin-left: 10px;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    50% {
        opacity: 0.5;
    }
}

/* Floating UI */
.floating-ui {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-color-alt);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.chat-btn {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    overflow: hidden;
}

.float-chat-logo {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.float-btn:hover {
    transform: scale(1.1);
}

/* Contact Form */
/* CTA Checklist */
.cta-checklist {
    max-width: 650px;
    margin: 30px auto 20px;
    background: rgba(255, 255, 255, 0.03);
    padding: 25px 30px;
    border-radius: 12px;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.cta-checklist ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cta-checklist li {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.cta-checklist li:last-child {
    margin-bottom: 0;
}

.cta-checklist i {
    color: var(--accent-cyan);
    margin-top: 3px;
    flex-shrink: 0;
}

/* Booking Wizard */
.booking-wizard-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-color-alt);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.booking-steps {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.step {
    flex: 1;
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.step span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.step.active {
    color: var(--accent-cyan);
    font-weight: 600;
}

.step.active span {
    background: var(--accent-cyan);
    color: var(--bg-color);
    border-color: var(--accent-cyan);
}

.booking-panel {
    display: none;
    padding: 40px;
    animation: fadeIn 0.5s ease;
}

.booking-panel.active {
    display: block;
}

.booking-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.booking-form-grid .form-group:nth-child(4) {
    grid-column: span 2;
}

.required {
    color: #ff4d4d;
}

.booking-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Calendar Styles */
.calendar-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
}

.problem-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px 25px;
    border-radius: 8px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid var(--accent-cyan);
    transition: all 0.3s ease;
}

.problem-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0px);
    }
}

.icon-box {
    font-size: 2.5rem;
    color: var(--accent-purple);
    margin-bottom: 20px;
    animation: floating 3s ease-in-out infinite;
}

.calendar-main {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 12px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.cal-day-header {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 10px 0;
}

.cal-day {
    padding: 12px 0;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.cal-day:hover:not(.disabled) {
    background: rgba(100, 255, 218, 0.1);
}

.cal-day.active {
    background: var(--accent-cyan) !important;
    color: var(--bg-color);
    font-weight: 600;
}

.cal-day.disabled {
    opacity: 0.2;
    cursor: default;
}

.cal-day.today {
    color: var(--accent-cyan);
    text-decoration: underline;
}

.time-slots-container {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.time-slots {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 15px;
}

.time-slot {
    padding: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.time-slot:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.time-slot.active {
    background: var(--accent-cyan);
    color: var(--bg-color);
    border-color: var(--accent-cyan);
}

.time-notice {
    margin-top: 15px;
    font-size: 0.75rem;
}

/* Success Content */
.success-content {
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.booking-summary-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0 30px;
    display: inline-block;
    min-width: 300px;
    text-align: left;
}

@media (max-width: 768px) {
    .booking-form-grid {
        grid-template-columns: 1fr;
    }

    .booking-form-grid .form-group:nth-child(4) {
        grid-column: span 1;
    }

    .calendar-layout {
        grid-template-columns: 1fr;
    }
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: #0a192f;
    border: 1px solid #233554;
    border-radius: 4px;
    color: #fff;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

/* Footer */
footer {
    background: #020c1b;
    padding: 50px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-brand h3 {
    display: none;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 10px;
    opacity: 0.8;
    /* Subtle for footer */
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-links ul {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    text-align: center;
}

/* Flow Section Modernization */
.flow-container {
    position: relative;
    max-width: 900px;
    margin: 40px auto 0;
    padding-left: 60px;
}

.flow-line {
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 27.5px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple));
    opacity: 0.3;
}

.flow-item {
    position: relative;
    margin-bottom: 40px;
}

.flow-item:last-child {
    margin-bottom: 0;
}

.flow-icon {
    position: absolute;
    left: -50px;
    top: 10px;
    width: 50px;
    height: 50px;
    background: var(--bg-color);
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 1.2rem;
    z-index: 2;
    transition: var(--transition);
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.2);
}

.flow-item:hover .flow-icon {
    background: var(--accent-cyan);
    color: var(--bg-color);
    box-shadow: 0 0 25px rgba(100, 255, 218, 0.5);
    transform: scale(1.1);
}

.flow-content {
    background: rgba(17, 34, 64, 0.5);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.flow-item:hover .flow-content {
    background: rgba(17, 34, 64, 0.8);
    border-color: rgba(100, 255, 218, 0.3);
    transform: translateX(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.flow-num {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.flow-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.flow-content p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .flow-container {
        padding-left: 50px;
    }

    .flow-line {
        left: 17.5px;
    }

    .flow-icon {
        left: -55px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
        top: 20px;
    }
}

/* Animations */
.loading-slots,
.error-slots {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* Responsive Line Breaks */
.sp-br {
    display: none;
}

@media (max-width: 768px) {
    .pc-br {
        display: none;
    }

    .sp-br {
        display: block;
    }
}

@keyframes scrollMouse {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 12px;
        opacity: 0;
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {

    /* Global Mobile Adjustments */
    .section-padding {
        padding: 50px 0;
    }

    .container {
        padding: 0 20px;
    }

    /* Hero Optimization */
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 130px;
        /* Increased to prevent header overlap */
        padding-bottom: 60px;
        align-items: flex-start;
        /* Prevent vertical centering from pushing content up */
    }

    .hero-content {
        margin-top: 20px;
    }

    .hero h1 {
        font-size: 1.45rem;
        /* Further reduced to ensure blocks fit without horizontal scroll */
        line-height: 1.5;
        margin-bottom: 1.2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 2rem;
        padding: 0;
    }

    .hero-tag {
        font-size: 0.7rem;
        margin-bottom: 0.8rem;
    }

    /* Fix Case Study Badge Overlap */
    .case-header {
        display: flex;
        flex-direction: column;
        padding-top: 20px;
    }

    .case-header-content {
        order: 2;
    }

    .case-badge {
        position: relative;
        /* Stop absolute positioning */
        top: auto;
        right: auto;
        align-self: flex-start;
        margin-bottom: 15px;
        order: 1;
        font-size: 0.7rem;
        padding: 4px 12px;
    }

    .case-expand-btn {
        margin-top: 15px;
        align-self: center;
        order: 3;
    }

    .about-grid,
    .services-list,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .service-row {
        flex-direction: column-reverse !important;
        text-align: center;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .service-tags {
        justify-content: center;
    }
}

/* Package Filtering */
.pkg-filtering {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.pkg-filter-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pkg-filter-box h4 {
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.pkg-filter-box.target h4 {
    color: var(--accent-cyan);
}

.pkg-filter-box.nontarget h4 {
    color: #ff6b6b;
}

.pkg-filter-box ul {
    list-style: none;
    padding: 0;
}

.pkg-filter-box li {
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.pkg-filter-box i {
    margin-right: 8px;
    font-size: 0.8rem;
}

/* Pricing Card Simple */
.pricing-card-simple {
    background: var(--bg-color-light);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 15px;
    padding: 50px 40px;
    text-align: center;
}

.pricing-card-simple h3 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-note {
    font-size: 1rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .pkg-filtering {
        grid-template-columns: 1fr;
    }
}

/* Case Study Cards - Board Meeting Quality */
.case-study-card {
    background: rgba(17, 34, 64, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 0;
    margin-bottom: 40px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.case-study-card:hover {
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}

.case-study-card.flagship {
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.1);
}

.case-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-primary);
    color: var(--bg-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
}



.case-period {
    font-size: 1rem;
    color: var(--accent-cyan);
    font-weight: 500;
}

.case-period strong {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.1rem;
}

.case-body {
    padding: 40px;
}

.case-section {
    margin-bottom: 35px;
}

.case-section:last-child {
    margin-bottom: 0;
}

.case-section h4 {
    font-size: 1.2rem;
    color: var(--accent-cyan);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.case-section h4 i {
    font-size: 1.1rem;
}

.case-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.case-section li {
    padding: 10px 0 10px 25px;
    position: relative;
    color: var(--text-main);
    line-height: 1.7;
    font-size: 1rem;
}

.case-section li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: bold;
}

.case-timeline {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.timeline-item {
    padding-left: 30px;
    position: relative;
    color: var(--text-main);
    line-height: 1.7;
    font-size: 1rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}

.timeline-item::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 20px;
    width: 2px;
    height: calc(100% + 15px);
    background: rgba(100, 255, 218, 0.2);
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-item strong {
    color: var(--accent-cyan);
}

.case-quote {
    background: rgba(100, 255, 218, 0.05);
    border-left: 4px solid var(--accent-cyan);
    padding: 25px 30px;
    margin-top: 30px;
    border-radius: 8px;
    position: relative;
}

.case-quote i {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    opacity: 0.3;
    margin-bottom: 10px;
}

.case-quote p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-main);
    font-style: italic;
    margin-bottom: 15px;
}

.case-quote cite {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: normal;
    display: block;
}

@media (max-width: 768px) {
    .case-header {
        padding: 25px 25px 20px;
    }

    .case-header h3 {
        font-size: 1.4rem;
    }

    .case-body {
        padding: 25px;
    }

    .case-badge {
        top: 15px;
        right: 15px;
        font-size: 0.75rem;
        padding: 6px 15px;
    }
}

/* Pricing Grid - 3 Package Comparison */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.pricing-package {
    background: rgba(17, 34, 64, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-package:hover {
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-8px);
}

.pricing-package.recommended {
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 40px rgba(100, 255, 218, 0.2);
}

.package-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--gradient-primary);
    color: var(--bg-color);
    padding: 5px 40px;
    font-size: 0.75rem;
    font-weight: 700;
    transform: rotate(45deg);
    z-index: 2;
    text-transform: uppercase;
}

.package-header {
    background: linear-gradient(135deg, rgba(17, 34, 64, 0.9), rgba(10, 25, 47, 0.9));
    padding: 35px 25px 30px;
    text-align: center;
    border-bottom: 2px solid rgba(100, 255, 218, 0.15);
}

.package-header h3 {
    font-size: 1.6rem;
    color: var(--accent-cyan);
    margin-bottom: 15px;
}

.package-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.package-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.package-body {
    padding: 30px 25px;
    flex: 1;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.package-features li {
    padding: 12px 0;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.package-features li i.fa-check {
    color: var(--accent-cyan);
    margin-top: 3px;
}

.package-features li i.fa-times {
    color: rgba(255, 255, 255, 0.2);
    margin-top: 3px;
}

.package-note {
    background: rgba(100, 255, 218, 0.05);
    border-left: 3px solid var(--accent-cyan);
    padding: 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.package-footer {
    padding: 0 25px 30px;
}

.package-footer .btn {
    width: 100%;
    display: block;
    text-align: center;
}

@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Case Study Accordion Enhancements */
.case-header {
    cursor: pointer;
    user-select: none;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px 40px 30px;
    background: linear-gradient(135deg, rgba(17, 34, 64, 0.9), rgba(10, 25, 47, 0.9));
    border-bottom: 2px solid rgba(100, 255, 218, 0.2);
    transition: var(--transition);
}

.case-header:hover {
    background: linear-gradient(135deg, rgba(20, 42, 80, 0.9), rgba(15, 35, 65, 0.9));
}

.case-header:hover h3 {
    color: var(--accent-cyan);
}

.case-header-content {
    flex: 1;
}

.case-header h3 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.3;
    transition: var(--transition);
}

.case-expand-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    gap: 8px;
    min-width: 100px;
    padding: 15px;
    background: rgba(100, 255, 218, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 12px;
    color: var(--accent-cyan);
    transition: var(--transition);
}

.case-header:hover .case-expand-btn {
    background: rgba(100, 255, 218, 0.15);
    border-color: var(--accent-cyan);
    transform: scale(1.05);
}

.expand-text {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
}

.case-header.active .toggle-icon {
    transform: rotate(180deg);
}






.case-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.summary-tag {
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-tag i {
    color: var(--accent-cyan);
    font-size: 0.9rem;
}

.case-body.collapsed {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.3s ease, padding 0.5s ease;
    padding-top: 0;
    padding-bottom: 0;
}

.case-body:not(.collapsed) {
    max-height: 3000px;
    opacity: 1;
    transition: max-height 0.5s ease, opacity 0.3s ease, padding 0.5s ease;
}

@media (max-width: 768px) {
    .case-header h3 {
        font-size: 1.3rem;
    }

    .summary-tag {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

/* FAQ Section */
.faq-container {
    max-width: 900px;
    margin: 40px auto 0;
}

.faq-item {
    background: rgba(17, 34, 64, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(100, 255, 218, 0.3);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.faq-question h4 {
    flex: 1;
    font-size: 1.1rem;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-question h4 i {
    color: var(--accent-cyan);
    font-size: 1rem;
}

.faq-toggle-icon {
    font-size: 1.2rem;
    color: var(--accent-cyan);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-question.active .faq-toggle-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
}

.faq-answer:not(.collapsed) {
    max-height: 1500px;
    padding: 0 30px 30px;
    opacity: 1;
}

.faq-answer p {
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 15px;
}

.faq-answer ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.faq-answer li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: var(--text-main);
    line-height: 1.7;
}

.faq-answer li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: bold;
}

/* FAQ Comparison Table */
.comparison-table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
    padding: 15px 12px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table thead th {
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent-cyan);
    font-weight: 600;
}

.comparison-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.comparison-table td:first-child {
    font-weight: 600;
    color: var(--accent-cyan);
}

.comparison-table td:last-child {
    background: rgba(100, 255, 218, 0.05);
}

@media (max-width: 768px) {
    .faq-question {
        padding: 20px;
    }

    .faq-question h4 {
        font-size: 1rem;
    }

    .faq-answer:not(.collapsed) {
        padding: 0 20px 20px;
    }

    .comparison-table {
        font-size: 0.8rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 8px;
    }
}

/* Lead Magnet Section Enhancements */
.lead-magnet-box {
    background: rgba(2, 12, 27, 0.95);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 30px;
    padding: 60px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.lead-magnet-box::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.tag-white {
    background: var(--accent-cyan);
    color: var(--bg-color);
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.check-list-white {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.check-list-white li {
    padding: 10px 0 10px 30px;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
}

.check-list-white li i {
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}

.lead-form-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Matching Section */
.matching-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.matching-card {
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.matching-card.fit {
    background: rgba(100, 255, 218, 0.05);
    border-color: rgba(100, 255, 218, 0.2);
}

.matching-card.unfit {
    background: rgba(255, 255, 255, 0.02);
    opacity: 0.8;
}

.matching-card h3 {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.matching-card.fit h3 {
    color: var(--accent-cyan);
}

.matching-card.unfit h3 {
    color: var(--text-muted);
}

.matching-list {
    list-style: none;
    padding: 0;
}

.matching-list li {
    padding: 12px 0;
    position: relative;
    padding-left: 25px;
    line-height: 1.6;
}

.matching-card.fit li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}

.matching-card.unfit li::before {
    content: "×";
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .matching-grid {
        grid-template-columns: 1fr;
    }

    .lead-magnet-box {
        padding: 40px 20px;
    }
}

/* Utility: Semantic Text Blocks for Anti-Break - Enhanced */
.txt-block {
    display: inline-block;
    white-space: nowrap;
}
/* AI Estimate Chat Styles */
.floating-ui {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.chat-window {
    width: 380px;
    height: 550px;
    background: var(--bg-color-alt);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 0;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: absolute;
    bottom: 80px;
    right: 0;
}

.chat-window.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chat-header {
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.95), rgba(17, 34, 64, 0.95));
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-weight: 600;
}

.chat-logo-img {
    height: 24px;
    width: auto;
}

.chat-controls {
    display: flex;
    gap: 10px;
}

.chat-controls button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.chat-controls button:hover {
    color: var(--accent-cyan);
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(10, 25, 47, 0.9);
}

.chat-message {
    display: flex;
    gap: 12px;
    max-width: 85%;
    animation: fadeIn 0.3s ease;
}

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.bot-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--accent-cyan);
    padding: 4px;
    background: var(--bg-color);
}

.message-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 12px;
    border-top-left-radius: 2px;
    color: var(--text-main);
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-message.user .message-content {
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 12px;
    border-top-right-radius: 2px;
    border-top-left-radius: 12px;
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: flex-start;
    width: 100%;
    margin-left: 44px; /* Align with bot message content */
    max-width: 85%;
}

.chat-option-btn {
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    font-size: 0.9rem;
}

.chat-option-btn:hover {
    background: rgba(100, 255, 218, 0.1);
}

.chat-option-btn.selected {
    background: var(--accent-cyan);
    color: var(--bg-color);
}

.chat-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 44px;
    padding: 10px;
    opacity: 0.7;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Chat Button Customization */
.chat-btn {
    width: auto !important;
    height: 50px !important;
    border-radius: 25px !important;
    padding: 0 20px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3);
}

.chat-btn-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--bg-color);
    font-weight: 600;
}

.chat-label {
    font-size: 0.95rem;
}

/* Result Styles */
.estimate-result {
    background: rgba(17, 34, 64, 0.8);
    border: 1px solid var(--accent-cyan);
    border-radius: 8px;
    padding: 15px;
    margin-top: 5px;
}

.estimate-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin: 10px 0;
    text-align: center;
}

.estimate-details {
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 10px;
    margin-top: 10px;
}

.estimate-details li {
    margin-bottom: 4px;
}

.chat-cta-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.chat-cta-btn {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    font-size: 0.9rem;
}

.chat-cta-primary {
    background: var(--accent-cyan);
    color: var(--bg-color);
}

.chat-cta-secondary {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .chat-window {
        width: calc(100vw - 40px);
        height: 80vh;
        bottom: 80px;
        right: 20px;
        left: 20px;
    }
    
    .floating-ui {
        bottom: 20px;
        right: 20px;
    }
}

/* Hero Buttons Alignment Fix */
.hero-btn-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.hero-btn-group .btn {
    height: 60px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .hero-btn-group {
        flex-direction: column;
        gap: 15px;
    }
    .hero-btn-group .btn {
        width: 100%;
        max-width: 300px;
        height: 50px;
        font-size: 1rem;
    }
}

/* =========================================
   Final Polish: Refinements & Spacing
   ========================================= */

/* Mobile Line Break Handling */
@media (max-width: 768px) {
    /* Hide breaks in headings to let text flow naturally */
    h1 br, h2 br, h3 br, .section-header br {
        display: none;
    }
    
    /* Adjust text alignment */
    .section-header p, 
    .pkg-info p,
    .case-section ul li,
    .hero-content p {
        text-align: justify; /* Improve block look */
    }
}

/* Improved Spacing for "Clean" Look */
.section-padding {
    padding: 120px 0; /* More breathing room */
}

@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }
}

/* Typography Refinements */
body {
    line-height: 1.8; /* Relaxed reading experience */
}

h2.section-title {
    margin-bottom: 1.5rem;
}

/* Soften Borders for Less Clutter */
.pricing-package, 
.case-study-card,
.pkg-slide,
.faq-item {
    border-color: rgba(255, 255, 255, 0.06); /* Subtler borders */
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.3); /* Softer shadows */
}

/* List Spacing */
.package-features li,
.case-section ul li {
    margin-bottom: 0.8rem; /* More space between items */
    padding-bottom: 0.8rem;
}

/* Chatbot Refinement */
.chat-window {
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.08); /* Darker border */
}

/* Lead Magnet Enhancements */
.pdf-mockup:hover {
    transform: rotate(0deg) scale(1.02) !important;
}

#lead-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#lead-form input:focus {
    outline: none;
    border-color: #e63946 !important;
    background: rgba(255, 255, 255, 0.1) !important;
}
