/*
    Theme: Chrono Systems UI
    Colors:
    - Dark Navy: #0A192F
    - Glowing Amber: #FFC300
    - Pale Cyan: #64FFDA
    - Light Navy: #112240
    - Lightest Navy: #233554
    - Slate: #8892b0
    - Light Slate: #a8b2d1
    - Lightest Slate: #ccd6f6
    - White: #e6f1ff
*/

:root {
    --dark-navy: #0A192F;
    --light-navy: #112240;
    --lightest-navy: #233554;
    --slate: #8892b0;
    --light-slate: #a8b2d1;
    --lightest-slate: #ccd6f6;
    --white: #e6f1ff;
    --amber: #FFC300;
    --cyan: #64FFDA;

    --font-sans: 'Poppins', sans-serif;
    --font-mono: 'Orbitron', sans-serif;

    --header-height: 80px;
    --border-radius: 4px;
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* 1. RESET & BASE STYLES */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--slate) var(--dark-navy);
}

body {
    font-family: var(--font-sans);
    background-color: var(--dark-navy);
    color: var(--slate);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-navy);
}

::-webkit-scrollbar-thumb {
    background-color: var(--slate);
    border-radius: 10px;
    border: 3px solid var(--dark-navy);
}

::selection {
    background-color: var(--lightest-navy);
    color: var(--cyan);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--cyan);
    transition: var(--transition);
}

a:hover {
    color: var(--amber);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-mono);
    color: var(--lightest-slate);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

/* 2. CUSTOM CURSOR */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--cyan);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    background-color: rgba(100, 255, 218, 0.1);
    border: 2px solid var(--cyan);
}

body:hover .cursor-dot,
body:hover .cursor-outline {
    opacity: 1;
}

/* 3. PRELOADER */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-navy);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    width: 300px;
}

.preloader-logo {
    margin-bottom: 20px;
}

.preloader-logo img {
    width: 80px;
    animation: pulse 2s infinite ease-in-out;
}

.preloader-text {
    font-family: var(--font-mono);
    color: var(--cyan);
    margin-bottom: 15px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.preloader-bar {
    width: 100%;
    height: 4px;
    background-color: var(--lightest-navy);
    border-radius: 2px;
    overflow: hidden;
}

.preloader-progress {
    width: 0%;
    height: 100%;
    background-color: var(--amber);
    transition: width 0.1s linear;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* 4. HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.header.scrolled {
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
    height: 70px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--lightest-slate);
    font-family: var(--font-mono);
    font-weight: 700;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

.logo:hover .logo-img {
    transform: rotate(-10deg);
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--lightest-slate);
    position: relative;
    padding: 5px 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--cyan);
    transition: var(--transition);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link.active,
.nav-link:hover {
    color: var(--cyan);
}

.nav-close {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--cyan);
    cursor: pointer;
}

/* 5. BUTTONS */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--cyan);
    color: var(--dark-navy);
    border-color: var(--cyan);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--cyan);
}

.btn-secondary {
    background-color: transparent;
    color: var(--amber);
    border-color: var(--amber);
}

.btn-secondary:hover {
    background-color: rgba(255, 195, 0, 0.1);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-outline {
    background-color: transparent;
    color: var(--cyan);
    border-color: var(--cyan);
}

.btn-outline:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

/* 6. HERO SECTION */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.hero-title span {
    display: block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--light-slate);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.chrono-gears {
    position: relative;
    width: 400px;
    height: 400px;
    transform-style: preserve-3d;
    animation: rotate3D 30s linear infinite;
}

.gear {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed var(--lightest-navy);
    background: radial-gradient(circle, rgba(17, 34, 64, 0) 0%, rgba(17, 34, 64, 0.3) 70%);
}

.gear-1 {
    width: 100%;
    height: 100%;
    animation: rotate-rev 20s linear infinite;
    transform: rotateX(70deg);
    border-style: solid;
    border-color: var(--cyan);
}

.gear-2 {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    animation: rotate 15s linear infinite;
    transform: rotateY(70deg);
    border-style: dashed;
    border-color: var(--amber);
}

.gear-3 {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    animation: rotate-rev 10s linear infinite;
    transform: rotateX(70deg) rotateY(45deg);
    border-style: dotted;
    border-color: var(--light-slate);
}

.gear-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--cyan);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px var(--cyan), 0 0 30px var(--cyan);
}

@keyframes rotate3D {
    from {
        transform: rotateY(0deg) rotateX(10deg);
    }

    to {
        transform: rotateY(360deg) rotateX(10deg);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate-rev {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

.hero-bg-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to left, rgba(17, 34, 64, 0.5), transparent);
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: -1;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-down-indicator a {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--slate);
    border-radius: 12px;
    position: relative;
}

.scroll-down-indicator span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: var(--cyan);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scroll-anim 2s infinite;
}

@keyframes scroll-anim {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* 7. GENERAL SECTION STYLING */
.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(28px, 5vw, 42px);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--amber);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--light-slate);
    max-width: 600px;
    margin: 1rem auto 0;
}

/* 8. SERVICES SECTION */
.services-section {
    background-color: var(--light-navy);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: transparent;
    perspective: 1000px;
    height: 350px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background-color: var(--dark-navy);
    border: 1px solid var(--lightest-navy);
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.service-card-back {
    transform: rotateY(180deg);
    align-items: flex-start;
    text-align: left;
}

.service-icon {
    font-size: 3rem;
    color: var(--cyan);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: var(--amber);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card-back ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    width: 100%;
}

.service-card-back li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 20px;
}

.service-card-back li::before {
    content: '\f0da';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--cyan);
    position: absolute;
    left: 0;
}

/* 9. PROCESS SECTION */
.process-section {
    position: relative;
}

.process-timeline-wrapper {
    position: relative;
    width: 100%;
    margin-top: 50px;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--lightest-navy);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 30px;
    margin-bottom: 50px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 60px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 60px;
    text-align: left;
}

.timeline-content {
    background: var(--light-navy);
    padding: 30px;
    border-radius: var(--border-radius);
    position: relative;
    border: 1px solid transparent;
    transition: var(--transition);
    transform: translateY(20px);
    opacity: 0;
}

.timeline-content.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.timeline-item:hover .timeline-content {
    border-color: var(--cyan);
    transform: translateY(-5px);
}

.timeline-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--dark-navy);
    border: 3px solid var(--cyan);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--cyan);
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -25px;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -25px;
}

.timeline-step {
    font-family: var(--font-mono);
    color: var(--amber);
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-title {
    font-size: 1.5rem;
}

/* 10. INDUSTRIES SECTION */
.industries-section {
    background-color: var(--light-navy);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.industry-item {
    background: var(--dark-navy);
    border: 1px solid var(--lightest-navy);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    cursor: default;
}

.industry-item:hover {
    transform: translateY(-10px);
    border-color: var(--cyan);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.industry-item i {
    font-size: 2.5rem;
    color: var(--cyan);
    margin-bottom: 1rem;
    display: block;
    transition: var(--transition);
}

.industry-item:hover i {
    color: var(--amber);
    transform: scale(1.1);
}

.industry-item h3 {
    font-size: 1.1rem;
    font-family: var(--font-sans);
    font-weight: 600;
}

/* 11. TESTIMONIALS SECTION */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--light-navy);
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--cyan);
}

.testimonial-text {
    position: relative;
    padding-left: 40px;
    margin-bottom: 20px;
}

.testimonial-text i.fa-quote-left {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 2rem;
    color: var(--cyan);
    opacity: 0.5;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info h4 {
    margin-bottom: 0;
    font-size: 1rem;
    font-family: var(--font-sans);
    font-weight: 700;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--slate);
}

/* 12. INTERACTIVE TOOLS SECTION */
.interactive-section {
    background-color: var(--light-navy);
}

.interactive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    align-items: start;
}

.interactive-card {
    background: var(--dark-navy);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--lightest-navy);
    text-align: center;
}

.interactive-icon {
    font-size: 3rem;
    color: var(--amber);
    margin-bottom: 1.5rem;
}

.interactive-card h3 {
    font-size: 1.5rem;
}

.interactive-card p {
    margin-bottom: 2rem;
}

.form-group-inline {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.form-group-inline input {
    width: 100%;
    background: var(--light-navy);
    border: 1px solid var(--lightest-navy);
    color: var(--lightest-slate);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    font-family: var(--font-sans);
}

.form-group-inline input::placeholder {
    color: var(--slate);
}

.roi-result {
    margin-top: 1rem;
    font-family: var(--font-mono);
    color: var(--cyan);
    font-size: 1.1rem;
    min-height: 24px;
}

/* 13. CTA SECTION */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.9)), url('https://www.transparenttextures.com/patterns/clean-textile.png');
}

.cta-title {
    font-size: clamp(24px, 4vw, 36px);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-subtitle {
    max-width: 600px;
    margin: 1rem auto 2rem;
    color: var(--light-slate);
}

/* 14. FOOTER */
.footer {
    padding: 80px 0 30px;
    background-color: #061224;
    border-top: 1px solid var(--lightest-navy);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.footer-col-title {
    font-size: 1.1rem;
    color: var(--lightest-slate);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--cyan);
}

.footer-about .logo {
    margin-bottom: 1rem;
}

.footer-about-text {
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--slate);
    font-size: 1.25rem;
}

.social-links a:hover {
    color: var(--cyan);
    transform: translateY(-3px);
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a,
.footer-links span {
    color: var(--slate);
}

.footer-links a:hover {
    color: var(--cyan);
    padding-left: 5px;
}

.active-legal-link {
    color: var(--cyan);
    font-weight: 500;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1rem;
}

.footer-contact i {
    color: var(--cyan);
    margin-top: 5px;
}

.footer-contact a {
    color: var(--slate);
}

.footer-contact a:hover {
    color: var(--cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--lightest-navy);
    font-size: 0.9rem;
}

/* 15. CONTACT & LEGAL PAGES */
.page-header-section {
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--light-navy);
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
}

.breadcrumbs span {
    color: var(--light-slate);
}

.breadcrumbs a:hover span {
    color: var(--amber);
}

.breadcrumbs i {
    color: var(--slate);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: flex-start;
}

.contact-title {
    font-size: 2.5rem;
}

.contact-subtitle {
    margin-bottom: 3rem;
    color: var(--light-slate);
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 2rem;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--cyan);
    margin-top: 5px;
}

.info-text h4 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    font-family: var(--font-sans);
    font-weight: 600;
}

.info-text a {
    color: var(--slate);
}

.contact-form-wrapper {
    background-color: var(--light-navy);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--lightest-navy);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light-slate);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: var(--dark-navy);
    border: 1px solid var(--lightest-navy);
    border-radius: var(--border-radius);
    color: var(--lightest-slate);
    font-family: var(--font-sans);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
}

.form-group select {
    appearance: none;
}

.select-group {
    position: relative;
}

.select-group::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 1rem;
    top: calc(50% + 12px);
    transform: translateY(-50%);
    color: var(--slate);
    pointer-events: none;
}

/* Legal Pages */
.legal-content {
    background-color: var(--light-navy);
    padding: 50px;
    border-radius: var(--border-radius);
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--lightest-navy);
    color: var(--cyan);
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content p strong {
    color: var(--light-slate);
}

/* 16. MODAL & LIVE CHAT */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--light-navy);
    padding: 30px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    border: 1px solid var(--lightest-navy);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--slate);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-title {
    margin-bottom: 1.5rem;
}

.live-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1500;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    background: var(--cyan);
    color: var(--dark-navy);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3);
    transition: var(--transition);
}

.chat-bubble:hover {
    transform: scale(1.1);
    background: var(--amber);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: var(--light-navy);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(2, 12, 27, 0.7);
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.chat-window.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    background: var(--dark-navy);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
    font-size: 1rem;
}

.chat-header #close-chat {
    background: none;
    border: none;
    color: var(--slate);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 15px;
    height: 300px;
    overflow-y: auto;
}

.chat-message.received p {
    background: var(--lightest-navy);
    padding: 10px 15px;
    border-radius: 15px 15px 15px 0;
    display: inline-block;
    max-width: 80%;
    font-size: 0.9rem;
}

.chat-footer {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--lightest-navy);
}

.chat-footer input {
    flex: 1;
    background: var(--dark-navy);
    border: none;
    padding: 10px;
    color: var(--lightest-slate);
    border-radius: var(--border-radius);
}

.chat-footer button {
    background: var(--cyan);
    border: none;
    color: var(--dark-navy);
    width: 40px;
    margin-left: 10px;
    border-radius: var(--border-radius);
    cursor: pointer;
}

/* 17. ANIMATIONS */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-in {
    opacity: 0;
    transform: translateY(20px);
}

.animate-in.fade-in-right {
    transform: translateX(-20px);
}

.animate-in.fade-in-left {
    transform: translateX(20px);
}

/* 18. RESPONSIVENESS */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 4rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .chrono-gears {
        width: 300px;
        height: 300px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .section-padding {
        padding: 80px 0;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(75vw, 400px);
        height: 100vh;
        background-color: var(--light-navy);
        box-shadow: -10px 0 30px -15px rgba(2, 12, 27, 0.7);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
        padding: 2rem;
    }

    .nav-menu.show-menu {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav-close {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        font-size: 2rem;
        color: var(--cyan);
        background: none;
        border: none;
        cursor: pointer;
    }

    .header-actions .btn {
        display: none;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        padding-left: 60px;
        padding-right: 20px;
        text-align: left;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        left: -5px;
    }

    .chat-window {
        width: calc(100vw - 40px);
        bottom: 70px;
        right: -10px;
    }

    .live-chat-widget {
        bottom: 20px;
        right: 20px;
    }

    .legal-content {
        padding: 30px;
    }
}