/*
* Digital Marketing Agency Redesign
* styles.css
*/

/* -------------------
   1. Global Styles & Variables
   ------------------- */
:root {
    --color-primary: #9f55ff;
    --color-secondary: #00d4ff;
    --color-accent: #ff3c83;
    --color-bg-dark: #0a0a14;
    --color-bg-light: #121223;
    --color-bg-glass: rgba(18, 18, 35, 0.6);
    --color-border: rgba(159, 85, 255, 0.2);
    --color-text-primary: #e0e0e0;
    --color-text-secondary: #a0a0b0;
    --color-text-headings: #ffffff;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto Mono', monospace;
    --header-height: 80px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-primary);
    color: var(--color-text-headings);
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* -------------------
   2. Layout & Overlays
   ------------------- */


#stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
}

.content-section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-header.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header .section-tag {
    font-family: var(--font-secondary);
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}


/* -------------------
   3. Header & Navigation
   ------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 2rem;
    background: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.main-header.scrolled {
    background: rgba(10, 10, 20, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 80px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: rotate(360deg);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-headings);
    font-family: var(--font-secondary);
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--color-text-primary);
    font-weight: 600;
    position: relative;
    padding: 5px 0;
}

.nav-link span {
    font-family: var(--font-secondary);
    color: var(--color-secondary);
    margin-right: 0.5rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-toggle-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle-btn .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-text-headings);
    transition: all 0.3s ease-in-out;
}


/* -------------------
   4. Buttons & Common Elements
   ------------------- */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(4px);
}

.btn-primary {
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    color: #fff;
    box-shadow: 0 4px 15px rgba(159, 85, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(159, 85, 255, 0.5);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-headings);
    border: 2px solid var(--color-secondary);
}

.btn-secondary:hover {
    background: var(--color-secondary);
    color: var(--color-bg-dark);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* -------------------
   5. Hero Section
   ------------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--header-height) 5% 0;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 50%;
    z-index: 10;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: -webkit-linear-gradient(45deg, var(--color-text-headings), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 550px;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-animation-container {
    perspective: 1000px;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cube {
    width: 250px;
    height: 250px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-cube 30s infinite linear;
}

.face {
    position: absolute;
    width: 250px;
    height: 250px;
    border: 2px solid var(--color-border);
    background: var(--color-bg-glass);
    backdrop-filter: blur(5px);
    color: var(--color-text-headings);
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.face i {
    font-size: 3rem;
    color: var(--color-secondary);
}

.front {
    transform: rotateY(0deg) translateZ(125px);
}

.back {
    transform: rotateY(180deg) translateZ(125px);
}

.right {
    transform: rotateY(90deg) translateZ(125px);
}

.left {
    transform: rotateY(-90deg) translateZ(125px);
}

.top {
    transform: rotateX(90deg) translateZ(125px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(125px);
}

@keyframes rotate-cube {
    from {
        transform: rotateY(0deg) rotateX(0deg);
    }

    to {
        transform: rotateY(360deg) rotateX(360deg);
    }
}

/* -------------------
   6. Services Section
   ------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-bg-light);
    padding: 2.5rem 2rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: rotate-glow 5s linear infinite;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(159, 85, 255, 0.2);
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-icon {
    font-size: 3rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

@keyframes rotate-glow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* -------------------
   7. About Section
   ------------------- */
.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(159, 85, 255, 0.3), rgba(0, 212, 255, 0.3));
    z-index: 1;
}

.about-image img {
    display: block;
    transition: transform 0.4s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.stats-container {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    font-family: var(--font-secondary);
}

.stat-label {
    display: block;
    color: var(--color-text-secondary);
}

/* -------------------
   8. Process Section
   ------------------- */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(var(--color-bg-light), var(--color-primary), var(--color-bg-light));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 2rem 0;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    padding: 20px 30px;
    background: var(--color-bg-light);
    position: relative;
    border-radius: 6px;
    width: 45%;
    border: 1px solid var(--color-border);
    opacity: 0;
    transform: translateY(50px);
    transition: 0.6s;
}

.timeline-item.is-visible .timeline-content {
    opacity: 1;
    transform: translateY(0);
}


.timeline-content.right {
    text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: right;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
}

.step-number {
    font-family: var(--font-secondary);
    color: var(--color-secondary);
    margin-right: 0.5rem;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    border: 4px solid var(--color-bg-dark);
    z-index: 10;
    box-shadow: 0 0 0 5px rgba(159, 85, 255, 0.3);
}

/* -------------------
   9. Industry Section
   ------------------- */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.industry-item {
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg-light);
    transition: all 0.3s ease;
}

.industry-item:hover {
    background: var(--color-bg-dark);
    transform: scale(1.05);
    border-color: var(--color-primary);
}

.industry-item i {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.industry-item p {
    font-size: 0.9rem;
    margin: 0;
}


/* -------------------
   10. Testimonials Section
   ------------------- */
.testimonials-section {
    background: var(--color-bg-light);
}

.testimonial-slider-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    min-height: 250px;
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    padding: 2rem;
    text-align: center;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
    visibility: hidden;
}

.testimonial-slide.active {
    opacity: 1;
    transform: scale(1);
    position: relative;
    visibility: visible;
}

.testimonial-quote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--color-text-primary);
}

.testimonial-author {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
}

.author-name {
    display: block;
    font-weight: 700;
    color: var(--color-text-headings);
}

.author-title {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.slider-controls button {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
}

.slider-controls button:hover {
    background: var(--color-primary);
    color: #fff;
}


/* -------------------
   11. Report Section
   ------------------- */
.report-dashboard {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 2rem;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
}

.date-range {
    font-family: var(--font-secondary);
    color: var(--color-text-secondary);
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.report-card {
    background: var(--color-bg-dark);
    padding: 1.5rem;
    border-radius: 8px;
    position: relative;
}

.report-card.kpi {
    grid-column: span 1;
}

.report-card.chart {
    grid-column: span 2;
    grid-row: span 1;
}

.report-card.list {
    grid-column: span 2;
    grid-row: span 1;
}

.report-card h4 {
    color: var(--color-text-secondary);
    font-weight: 400;
    margin-bottom: 1rem;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-headings);
}

.kpi-change {
    font-size: 0.9rem;
}

.kpi-change.positive {
    color: #4caf50;
}

.kpi-change.negative {
    color: #f44336;
}

.tooltip {
    position: absolute;
    bottom: 105%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-bg-dark);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.report-card.kpi:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.chart-container {
    height: 150px;
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    justify-content: center;
}

.bar {
    width: 50px;
    background: linear-gradient(var(--color-secondary), var(--color-primary));
    border-radius: 4px 4px 0 0;
    position: relative;
    animation: grow-bar 1s ease-out forwards;
    transform-origin: bottom;
    transform: scaleY(0);
}

.bar-label {
    position: absolute;
    bottom: -25px;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
}

@keyframes grow-bar {
    to {
        transform: scaleY(1);
    }
}

.report-card.list ul {
    list-style: none;
}

.report-card.list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
}

.report-card.list li:last-child {
    border-bottom: none;
}

.report-card.list span {
    color: #4caf50;
    font-family: var(--font-secondary);
}

/* -------------------
   12. CTA Section
   ------------------- */
.cta-section {
    padding: 80px 5%;
    text-align: center;
    background: url(https://www.transparenttextures.com/patterns/az-subtle.png), linear-gradient(45deg, var(--color-bg-light), var(--color-bg-dark));
}

.cta-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.cta-content p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}


/* -------------------
   13. Footer
   ------------------- */
.main-footer {
    background: var(--color-bg-light);
    padding: 60px 5% 20px;
    border-top: 1px solid var(--color-border);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 30px;
    height: 2px;
    background: var(--color-primary);
}

.footer-col.footer-info p {
    font-size: 0.9rem;
    margin-top: 1rem;
}

.footer-links ul li,
.footer-legal ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a,
.footer-legal ul li a {
    color: var(--color-text-secondary);
}

.footer-links ul li a:hover,
.footer-legal ul li a:hover {
    color: var(--color-text-headings);
    padding-left: 5px;
}

.footer-contact-details p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.footer-contact-details i {
    color: var(--color-secondary);
    margin-top: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* -------------------
   14. Page Specific (Contact, Legal)
   ------------------- */
.page-main {
    padding: calc(var(--header-height) + 60px) 5% 60px;
}

.terminal-window {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.title-bar {
    background: var(--color-bg-light);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    border-radius: 8px 8px 0 0;
}

.title-bar .title {
    font-family: var(--font-secondary);
    color: var(--color-text-secondary);
}

.buttons {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.minimize {
    background: #ffbd2e;
}

.maximize {
    background: #27c93f;
}

.close {
    background: #ff5f56;
}

.window-content {
    padding: 2.5rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 1px dashed var(--color-border);
    padding-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
}

.legal-content h2 {
    margin: 2rem 0 1rem;
    color: var(--color-secondary);
}

.legal-content p {
    color: var(--color-text-primary);
}

.contact-page-wrapper {
    display: flex;
    gap: 3rem;
}

.contact-details-panel {
    flex: 1;
}

.contact-form-panel {
    flex: 1.5;
}

.contact-list {
    margin-top: 2rem;
}

.contact-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.contact-list i {
    font-size: 1.5rem;
    color: var(--color-secondary);
    width: 25px;
    text-align: center;
}

.contact-list h4 {
    color: var(--color-text-headings);
    margin-bottom: 0;
}

.contact-list p,
.contact-list a {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group-row {
    display: flex;
    gap: 1.5rem;
}

.form-group-row .form-group {
    flex: 1;
}

.contact-form label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px;
    background: var(--color-bg-dark);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(159, 85, 255, 0.3);
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--color-bg-light);
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
    max-width: 450px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup.active .popup-content {
    transform: scale(1);
}

.popup-icon {
    font-size: 4rem;
    color: #27c93f;
    margin-bottom: 1rem;
}

.popup-content h3 {
    margin-bottom: 1rem;
}

.popup-content p {
    margin-bottom: 2rem;
}

/* -------------------
   15. Live Chat Widget
   ------------------- */
#chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1001;
}

#chat-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

#chat-button:hover {
    transform: scale(1.1);
}

#chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#chat-window.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    padding: 1rem;
    background: var(--color-bg-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
}

#close-chat {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 1rem;
}

.chat-body p {
    font-size: 0.9rem;
}

#chat-form input,
#chat-form textarea {
    margin-bottom: 0.8rem;
}

/* -------------------
   16. Animations & Transitions
   ------------------- */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* -------------------
   17. Responsiveness
   ------------------- */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    .hero-content h1 {
        font-size: 3.2rem;
    }

    .main-nav {
        display: none;
    }

    .nav-toggle-btn {
        display: block;
    }

    .main-nav.active {
        display: flex;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--color-bg-dark);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--color-border);
    }

    .main-nav.active ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: calc(var(--header-height) + 40px);
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-animation-container {
        width: 100%;
        height: 300px;
        margin-top: 2rem;
    }

    .cube,
    .face {
        width: 200px;
        height: 200px;
    }

    .front,
    .back {
        transform: translateZ(100px);
    }

    .right {
        transform: rotateY(90deg) translateZ(100px);
    }

    .left {
        transform: rotateY(-90deg) translateZ(100px);
    }

    .top {
        transform: rotateX(90deg) translateZ(100px);
    }

    .bottom {
        transform: rotateX(-90deg) translateZ(100px);
    }

    .about-content {
        flex-direction: column;
    }

    .stats-container {
        justify-content: center;
    }

    .report-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .report-card.chart,
    .report-card.list {
        grid-column: span 2;
    }

    .contact-page-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .content-section,
    .page-main {
        padding-left: 3%;
        padding-right: 3%;
    }

    .process-timeline::after {
        left: 30px;
    }

    .timeline-item {
        flex-direction: row !important;
        justify-content: flex-start;
    }

    .timeline-content {
        width: calc(100% - 80px);
        text-align: left !important;
    }

    .timeline-icon {
        left: 30px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact-details p {
        justify-content: center;
    }

    .report-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .form-group-row {
        flex-direction: column;
        gap: 0;
    }
}