/*
--- GLASSHAVEN THEME ---
Colors:
  - Onyx: #0D0D0D
  - Mist White: #E3F2FD
  - Soft Aqua: #80DEEA
  - Glass Background: rgba(227, 242, 253, 0.05)
*/

/* 1. VARIABLES & GLOBAL STYLES
-------------------------------------------------- */
:root {
    --onyx: #0D0D0D;
    --mist-white: #E3F2FD;
    --soft-aqua: #80DEEA;
    --soft-aqua-darker: #4dd0e1;
    --text-primary: #E3F2FD;
    --text-secondary: #a7cce6;
    --bg-main: #0D0D0D;
    --glass-bg: rgba(227, 242, 253, 0.05);
    --glass-border: rgba(227, 242, 253, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --header-height: 80px;
    --font-main: 'Poppins', sans-serif;
    --transition-smooth: all 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-secondary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--soft-aqua);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--mist-white);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: var(--font-main);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.section-header {
    margin-bottom: 60px;
}

.subtitle {
    display: inline-block;
    color: var(--soft-aqua);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-title {
    margin-bottom: 20px;
}

.section-intro {
    max-width: 700px;
    margin: 0 auto;
}

.highlight {
    color: var(--soft-aqua);
}

/* 2. PRELOADER & BACKGROUND
-------------------------------------------------- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-main);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
}

.preloader-logo {
    animation: pulse 1.5s infinite ease-in-out;
    max-width: 100px;
    filter: invert(1);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--soft-aqua);
    top: 10%;
    left: 10%;
    animation: float 15s infinite alternate;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--mist-white);
    bottom: 5%;
    right: 15%;
    animation: float 20s infinite alternate;
    animation-delay: -5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: #5c6bc0;
    /* A complementary color */
    top: 40%;
    right: 5%;
    animation: float 18s infinite alternate;
    animation-delay: -10s;
}

@keyframes float {
    from {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }

    to {
        transform: translateY(-50px) translateX(30px) rotate(90deg);
    }
}


/* 3. HEADER & NAVIGATION
-------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 50px;
    filter: invert(1);
    transition: var(--transition-smooth);
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--soft-aqua);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--mist-white);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--mist-white);
    transition: all 0.3s ease-in-out;
}

/* 4. BUTTONS
-------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn span {
    z-index: 2;
}

.btn i {
    z-index: 2;
}

.btn-primary {
    background: var(--soft-aqua);
    color: var(--onyx);
    border-color: var(--soft-aqua);
}

.btn-primary:hover {
    background: var(--soft-aqua-darker);
    border-color: var(--soft-aqua-darker);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(128, 222, 234, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--mist-white);
    border-color: var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--soft-aqua);
    color: var(--soft-aqua);
}

.btn-full {
    width: 100%;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* 5. GLASS PANELS & CARDS
-------------------------------------------------- */
.glass-panel,
.service-card,
.testimonial-card,
.about-image-card,
.report-dashboard,
.contact-info-block,
.contact-form-block,
.content-wrapper {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    padding: 40px;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Light scatter effect */
.glass-panel::before,
.service-card::before,
.testimonial-card::before,
.about-image-card::before,
.report-dashboard::before,
.contact-info-block::before,
.contact-form-block::before,
.content-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(227, 242, 253, 0.2) 0%, rgba(227, 242, 253, 0) 70%);
    transition: transform 0.1s linear, opacity 0.3s ease;
    transform: translate(-100%, -100%);
    opacity: 0;
    pointer-events: none;
}

.glass-panel:hover::before,
.service-card:hover::before,
.testimonial-card:hover::before,
.about-image-card:hover::before,
.report-dashboard:hover::before,
.contact-info-block:hover::before,
.contact-form-block:hover::before,
.content-wrapper:hover::before {
    opacity: 1;
}

/* 6. HERO SECTION
-------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text-content h1 {
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-text-content p {
    font-size: 1.1rem;
    max-width: 550px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* 3D Cube */
.hero-visual-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.scene {
    width: 250px;
    height: 250px;
    perspective: 800px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-cube 20s infinite linear;
}

.cube-face {
    position: absolute;
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: var(--soft-aqua);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.cube-front {
    transform: rotateY(0deg) translateZ(125px);
}

.cube-back {
    transform: rotateY(180deg) translateZ(125px);
}

.cube-right {
    transform: rotateY(90deg) translateZ(125px);
}

.cube-left {
    transform: rotateY(-90deg) translateZ(125px);
}

.cube-top {
    transform: rotateX(90deg) translateZ(125px);
}

.cube-bottom {
    transform: rotateX(-90deg) translateZ(125px);
}

@keyframes rotate-cube {
    from {
        transform: rotateX(0deg) rotateY(0deg);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* 7. SERVICES SECTION
-------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 50px 30px;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: var(--soft-aqua);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--onyx);
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 0 30px var(--soft-aqua);
}

.service-card h3 {
    margin-bottom: 15px;
}

/* 8. ABOUT US SECTION
-------------------------------------------------- */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image-card {
    padding: 20px;
}

.about-image-card img {
    border-radius: 15px;
}

.about-text-content p {
    margin-bottom: 30px;
}

.about-features {
    margin-bottom: 40px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}

.about-features i {
    color: var(--soft-aqua);
    font-size: 1.3rem;
}

/* 9. PROCESS SECTION
-------------------------------------------------- */
.process-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 15px;
    right: 15px;
    height: 2px;
    background: linear-gradient(90deg, var(--soft-aqua), transparent);
    z-index: -1;
}

.process-step {
    position: relative;
    padding-top: 80px;
}

.process-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    border: 2px solid var(--soft-aqua);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--soft-aqua);
    background-color: var(--bg-main);
    transition: var(--transition-smooth);
}

.process-step:hover .process-icon {
    background-color: var(--soft-aqua);
    color: var(--onyx);
    transform: scale(1.1);
}

.process-content h3 {
    margin-bottom: 10px;
}

/* 10. INTERACTIVE REPORT SECTION
-------------------------------------------------- */
.report-dashboard {
    padding: 30px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.date-range {
    background: var(--glass-bg);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 500;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.kpi-card,
.chart-card {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 15px;
}

.kpi-card h4 {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 10px;
}

.kpi-card p {
    font-size: 2rem;
    font-weight: 700;
    color: var(--mist-white);
    margin: 0;
}

.kpi-change {
    font-weight: 600;
}

.kpi-change.positive {
    color: #4caf50;
}

.kpi-change.negative {
    color: #f44336;
}

.chart-card.large-card {
    grid-column: 1 / -1;
}

.chart-card h4 {
    margin-bottom: 20px;
}

.chart-placeholder {
    height: 200px;
    display: flex;
    gap: 2%;
    align-items: flex-end;
}

.chart-placeholder .bar {
    width: 100%;
    background: linear-gradient(to top, var(--soft-aqua), var(--soft-aqua-darker));
    border-radius: 5px 5px 0 0;
    animation: bar-grow 1.5s ease-out;
}

@keyframes bar-grow {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

.pie-chart-placeholder {
    width: 150px;
    height: 150px;
    margin: 25px auto 0;
    border-radius: 50%;
    background: conic-gradient(var(--soft-aqua) 0 45%,
            var(--soft-aqua-darker) 45% 75%,
            var(--mist-white) 75% 100%);
    animation: pie-spin 2s ease-out;
}

@keyframes pie-spin {
    from {
        transform: rotate(-180deg);
        opacity: 0;
    }

    to {
        transform: rotate(0deg);
        opacity: 1;
    }
}

/* 11. TESTIMONIALS SECTION
-------------------------------------------------- */
.testimonial-slider-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 15px;
    /* for gap */
}

.testimonial-card {
    padding: 40px;
    position: relative;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 30px;
    color: var(--mist-white);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info h4 {
    margin: 0;
    color: var(--soft-aqua);
}

.author-info span {
    font-size: 0.9rem;
}

.testimonial-quote-icon {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 4rem;
    color: rgba(227, 242, 253, 0.1);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    left: 0;
    display: flex;
    justify-content: space-between;
    padding: 0;
    pointer-events: none;
}

.slider-nav button {
    pointer-events: all;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--mist-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    transform: translateX(-70px);
}

.slider-nav .next-btn {
    transform: translateX(70px);
}

.slider-nav button:hover {
    background: var(--soft-aqua);
    color: var(--onyx);
}

/* 12. CTA SECTION
-------------------------------------------------- */
.cta-section {
    padding: 60px 0;
}

.cta-wrapper {
    background: linear-gradient(135deg, var(--soft-aqua), var(--soft-aqua-darker));
    padding: 60px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cta-content h2 {
    color: var(--onyx);
    margin-bottom: 10px;
}

.cta-content p {
    color: var(--onyx);
    opacity: 0.9;
    margin: 0;
}

.cta-action .btn-primary {
    background: var(--mist-white);
    color: var(--onyx);
    border-color: var(--mist-white);
}

.cta-action .btn-primary:hover {
    background: var(--onyx);
    color: var(--mist-white);
    border-color: var(--onyx);
}

/* 13. FOOTER
-------------------------------------------------- */
.footer {
    padding: 80px 0 30px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--glass-border);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-about .footer-logo img {
    height: 50px;
    filter: invert(1);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-secondary);
}

.footer-social a:hover {
    background: var(--soft-aqua);
    color: var(--onyx);
    border-color: var(--soft-aqua);
}

.footer-links h3,
.footer-contact h3 {
    margin-bottom: 25px;
    color: var(--mist-white);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul a {
    color: var(--text-secondary);
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-contact ul i {
    color: var(--soft-aqua);
    margin-top: 5px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-legal a {
    margin: 0 10px;
    color: var(--text-secondary);
}

.footer-legal span {
    opacity: 0.5;
}

/* 14. PAGE-SPECIFIC STYLES (Contact, Legal)
-------------------------------------------------- */
.page-header {
    padding: 180px 0 100px;
    text-align: center;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 20px auto 0;
}

.breadcrumbs a {
    color: var(--text-secondary);
}

.breadcrumbs span {
    color: var(--mist-white);
}

.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    align-items: flex-start;
}

.contact-info-block {
    padding: 40px;
}

.contact-info-header {
    margin-bottom: 30px;
}

.contact-info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--soft-aqua);
    color: var(--onyx);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.info-text h4 {
    margin-bottom: 5px;
}

.info-text p {
    margin: 0;
}

.contact-social-links {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.contact-form-block {
    padding: 40px;
}

.contact-form .form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-family: var(--font-main);
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--soft-aqua);
    box-shadow: 0 0 10px rgba(128, 222, 234, 0.3);
}

/* Legal Pages */
.legal-content {
    padding-bottom: 100px;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-wrapper h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.content-wrapper h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.content-wrapper ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 1rem;
}

.content-wrapper ul li {
    margin-bottom: 0.5rem;
}

/* 15. UTILITIES (Back to Top, Chat Widget, Popup)
-------------------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--soft-aqua);
    color: var(--onyx);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
}

.chat-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
}

.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--soft-aqua);
    color: var(--onyx);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(128, 222, 234, 0.4);
    transition: transform 0.3s;
}

.chat-button:hover {
    transform: scale(1.1);
}

.chat-button-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--soft-aqua);
    animation: pulse-chat 2s infinite;
    z-index: -1;
}

@keyframes pulse-chat {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    70% {
        transform: scale(1.4);
        opacity: 0;
    }

    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}

.chat-popup {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 350px;
    background: var(--onyx);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.chat-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    padding: 15px 20px;
    background: var(--glass-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 1.1rem;
    margin: 0;
}

.close-chat {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 20px;
    flex-grow: 1;
    height: 300px;
    overflow-y: auto;
}

.chat-message.received {
    background: var(--glass-bg);
    padding: 10px 15px;
    border-radius: 15px 15px 15px 0;
    max-width: 80%;
}

.chat-footer {
    padding: 15px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 10px;
}

.chat-footer input {
    flex-grow: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 10px;
    border-radius: 20px;
    color: var(--text-primary);
}

.chat-footer input:focus {
    outline: none;
    border-color: var(--soft-aqua);
}

.chat-footer button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--soft-aqua);
    color: var(--onyx);
    cursor: pointer;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--onyx);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.popup.show .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
}

.popup-icon {
    font-size: 4rem;
    color: var(--soft-aqua);
    margin-bottom: 20px;
}

/* 16. SCROLL ANIMATIONS
-------------------------------------------------- */
.animate-up,
.animate-left,
.animate-right,
.animate-card {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-left {
    transform: translateX(-50px);
}

.animate-right {
    transform: translateX(50px);
}

.animate-up.in-view,
.animate-left.in-view,
.animate-right.in-view,
.animate-card.in-view {
    opacity: 1;
    transform: translate(0, 0);
}

/* Staggered animation */
[data-delay] {
    transition-delay: var(--delay);
}

/* 17. RESPONSIVE DESIGN
-------------------------------------------------- */
@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--onyx);
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: 0.3s;
        gap: 0;
        padding-top: 40px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 16px 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual-content {
        margin-top: 40px;
        order: -1;
    }

    .scene {
        width: 200px;
        height: 200px;
    }

    .cube-face {
        width: 200px;
        height: 200px;
    }

    .cube-front,
    .cube-back,
    .cube-right,
    .cube-left,
    .cube-top,
    .cube-bottom {
        transform: none;
        /* simplified for mobile */
        opacity: 0.5;
    }

    .cube-front {
        transform: rotateY(0deg) translateZ(100px);
    }

    .cube-back {
        transform: rotateY(180deg) translateZ(100px);
    }

    .cube-right {
        transform: rotateY(90deg) translateZ(100px);
    }

    .cube-left {
        transform: rotateY(-90deg) translateZ(100px);
    }

    .cube-top {
        transform: rotateX(90deg) translateZ(100px);
    }

    .cube-bottom {
        transform: rotateX(-90deg) translateZ(100px);
    }

    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image-content {
        order: -1;
        margin-bottom: 30px;
    }

    .about-text-content {
        text-align: center;
    }

    .about-features {
        max-width: 350px;
        margin: 30px auto 40px;
        text-align: left;
    }

    .process-timeline {
        grid-template-columns: 1fr 1fr;
    }

    .process-timeline::before {
        display: none;
    }

    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }

    .chart-card.large-card {
        grid-column: 1 / -1;
    }

    .cta-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about,
    .footer-contact {
        grid-column: 1 / -1;
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }

    h1 {
        font-size: 2.2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .process-step {
        padding-top: 0;
        padding-left: 100px;
        min-height: 80px;
        display: flex;
        align-items: center;
    }

    .process-icon {
        top: 0;
        left: 0;
    }

    .slider-nav button {
        display: none;
    }

    /* Use swipe on mobile */
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-about,
    .footer-contact {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .chat-widget {
        display: none;
    }

    /* Hide chat on small screens */
}