/*
================================================
ClickForce Squadron Theme
================================================
*/

/* -------------------
   1. CSS Variables & Root Styles
   ------------------- */
:root {
    --hero-blue: #007BFF;
    --signal-red: #FF1744;
    --golden-glow: #FFC400;

    --dark-navy: #0A192F;
    --light-navy: #112240;
    --lightest-navy: #233554;
    --slate: #8892b0;
    --light-slate: #a8b2d1;
    --lightest-slate: #ccd6f6;
    --white: #e6f1ff;

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Share Tech Mono', monospace;

    --header-height: 80px;
    --border-radius: 6px;
    --max-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* -------------------
   2. Base & Reset Styles
   ------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--dark-navy);
    color: var(--slate);
    font-family: var(--font-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    cursor: none;
}

#stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: var(--dark-navy) url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="100" height="100"%3E%3Crect fill="%230A192F" width="100" height="100"/%3E%3Cg fill-opacity="0.4"%3E%3Ccircle fill="%23112240" cx="50" cy="50" r="1"/%3E%3C/g%3E%3C/svg%3E');
    animation: space-pan 120s linear infinite;
}

@keyframes space-pan {
    from {
        background-position: 0 0;
    }

    to {
        background-position: -1000px 500px;
    }
}

a {
    color: var(--hero-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--golden-glow);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
    /* GSAP will handle the initial animation state */
}

.section-subtitle {
    display: block;
    font-family: var(--font-secondary);
    color: var(--hero-blue);
    font-size: 1.1rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--lightest-slate);
    font-weight: 700;
    margin-bottom: 15px;
}

.section-description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--light-slate);
}

.text-center {
    text-align: center;
}

/* -------------------
   3. Custom Cursor
   ------------------- */
.cursor,
.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
}

.cursor {
    width: 8px;
    height: 8px;
    background-color: var(--golden-glow);
    transition: transform 0.1s ease-out;
}

.cursor-follower {
    width: 30px;
    height: 30px;
    border: 1px solid var(--hero-blue);
    transition: transform 0.3s ease-out, background-color 0.2s, opacity 0.2s;
}

.cursor-grow {
    transform: scale(3);
    background-color: rgba(0, 123, 255, 0.2);
    border-color: rgba(0, 123, 255, 0.5);
}

@media (max-width: 768px) {

    .cursor,
    .cursor-follower {
        display: none;
    }

    body {
        cursor: auto;
    }
}

/* -------------------
   4. Header & Navigation
   ------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: top 0.3s ease-in-out, box-shadow 0.3s;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.header.hidden {
    top: -80px;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 45px;
    width: auto;
    filter: invert(1) brightness(1.5);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--light-slate);
    font-family: var(--font-secondary);
    padding: 10px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    opacity: 0;
    background: var(--hero-blue);
    transition: left 0.3s;
}

.nav-link:hover::before,
.nav-link.active::before {
    left: 0;
    opacity: 1;
}

.nav-link:hover,
.nav-link.active {
    color: var(--hero-blue);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--light-navy);
    border-radius: var(--border-radius);
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    min-width: 200px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--slate);
    font-size: 0.9rem;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: var(--lightest-navy);
    color: var(--hero-blue);
}

.menu-toggle {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}


/* -------------------
   5. Buttons & Shared Components
   ------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-weight: 500;
    cursor: none;
    /* For custom cursor */
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease-in-out;
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn i {
    position: relative;
    z-index: 2;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--golden-glow);
    transition: width 0.4s ease-in-out;
    z-index: 1;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    color: var(--dark-navy);
}

.btn-primary {
    background-color: var(--hero-blue);
    color: var(--white);
    border: 1px solid var(--hero-blue);
}

.btn-primary:hover {
    color: var(--dark-navy);
}

.btn-secondary {
    background-color: transparent;
    color: var(--hero-blue);
    border: 1px solid var(--hero-blue);
}

.btn-secondary:hover {
    color: var(--dark-navy);
}

.btn.btn-full {
    width: 100%;
    justify-content: center;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--hero-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.live-chat-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--signal-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(255, 23, 68, 0.4);
    cursor: none;
}


/* -------------------
   6. Hero Section
   ------------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--lightest-slate);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-title .line {
    display: block;
}

.hero-title .accent {
    color: var(--hero-blue);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--light-slate);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

#hero-3d-canvas {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    z-index: 0;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    opacity: 0;
    animation: fadeIn 1s 2s forwards;
}

.mouse {
    width: 25px;
    height: 45px;
    border: 2px solid var(--slate);
    border-radius: 20px;
    position: relative;
}

.mouse span {
    position: absolute;
    display: block;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: var(--slate);
    border-radius: 3px;
    animation: scroll-anim 1.5s infinite;
}

@keyframes scroll-anim {
    0% {
        opacity: 1;
        top: 10px;
    }

    100% {
        opacity: 0;
        top: 25px;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}


/* -------------------
   7. Services Section
   ------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-item {
    background-color: var(--light-navy);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--lightest-navy);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    /* GSAP will handle the initial animation state */
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -15px rgba(2, 12, 27, 0.7);
}

.service-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.1), transparent 40%);
    transform: scale(0);
    transition: transform 0.5s ease;
    z-index: 0;
}

.service-item:hover::before {
    transform: scale(1);
}

.service-icon,
.service-title,
.service-description {
    position: relative;
    z-index: 1;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--hero-blue);
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.25rem;
    color: var(--lightest-slate);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--slate);
}


/* -------------------
   8. Battleground Section
   ------------------- */
.battleground-section {
    background-color: var(--light-navy);
}

.map-container {
    position: relative;
    max-width: 900px;
    margin: auto;
    /* GSAP will handle the initial animation state */
}

.map-image {
    width: 100%;
    height: auto;
    filter: brightness(0.7) contrast(1.2);
}

.hotspot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--signal-red);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: none;
    border: 3px solid rgba(255, 255, 255, 0.7);
}

.hotspot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: var(--signal-red);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
    opacity: 0.7;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }

    70% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

#map-tooltip {
    position: absolute;
    background-color: var(--dark-navy);
    color: var(--white);
    padding: 15px;
    border-radius: var(--border-radius);
    border: 1px solid var(--hero-blue);
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 10;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

#map-tooltip strong {
    display: block;
    color: var(--golden-glow);
    font-family: var(--font-secondary);
    margin-bottom: 5px;
}

#map-tooltip span {
    display: block;
    color: var(--light-slate);
}

#map-tooltip span:first-of-type {
    margin-bottom: 3px;
}


/* -------------------
   9. Chronicles Section (Horizontal Scroll)
   ------------------- */
.chronicles-section {
    padding: 100px 0;
    overflow: hidden;
}

.chronicles-section .container {
    max-width: none;
    width: 100%;
    padding: 0;
}

.chronicles-section .section-header {
    padding: 0 5%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.chronicles-wrapper {
    height: 500px;
    width: 400%;
    /* Depends on number of panels */
    display: flex;
    flex-wrap: nowrap;
}

.chronicles-panels {
    height: 100%;
    width: 100%;
    display: flex;
    padding-left: 5%;
    /* Start offset */
}

.panel {
    width: 25%;
    /* 100 / 4 panels */
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2vw;
    flex-shrink: 0;
}

.panel-content {
    background-color: var(--light-navy);
    border: 2px solid var(--lightest-navy);
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 10px 10px 0px -2px var(--hero-blue);
    transform: skewX(-5deg);
    transition: transform 0.3s, box-shadow 0.3s;
}

.panel-content:hover {
    transform: skewX(0deg) scale(1.02);
    box-shadow: 0 0 0 0 var(--hero-blue), 0px 0px 30px rgba(0, 123, 255, 0.4);
}

.panel-content h3 {
    font-family: var(--font-secondary);
    color: var(--golden-glow);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.panel-content p {
    margin-bottom: 0.75rem;
    color: var(--light-slate);
}

.panel-content strong {
    color: var(--lightest-slate);
}

.panel-content .result {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px dashed var(--lightest-navy);
    color: var(--white);
    font-weight: 500;
}

.panel-content .result i {
    color: var(--golden-glow);
    margin-right: 8px;
}


/* -------------------
   10. Testimonials Section
   ------------------- */
.testimonials-section {
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    gap: 2rem;
    /* JS will handle the sliding */
}

.testimonial-card {
    flex: 0 0 31%;
    /* Show 3 cards roughly */
    background-color: var(--light-navy);
    padding: 2rem;
    border-left: 4px solid var(--hero-blue);
    border-radius: var(--border-radius);
    /* GSAP will handle the initial animation state */
}

.testimonial-card .quote {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--light-slate);
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author h4 {
    color: var(--lightest-slate);
    font-size: 1rem;
    margin: 0;
}

.author span {
    font-family: var(--font-secondary);
    color: var(--hero-blue);
    font-size: 0.9rem;
}


/* -------------------
   11. CTA Section
   ------------------- */
.cta-section {
    background-color: var(--light-navy);
    padding: 80px 0;
    text-align: center;
}

.cta-content {
    /* GSAP will handle the initial animation state */
}

.cta-title {
    color: var(--lightest-slate);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.cta-text {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: var(--light-slate);
}


/* -------------------
   12. Footer
   ------------------- */
.footer {
    background-color: var(--dark-navy);
    border-top: 1px solid var(--lightest-navy);
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 1rem;
    filter: invert(1) brightness(1.5);
}

.footer-about p {
    margin-bottom: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--slate);
    border-radius: 50%;
    color: var(--slate);
}

.footer-socials a:hover {
    color: var(--hero-blue);
    border-color: var(--hero-blue);
    transform: translateY(-3px);
}

.footer-col h3 {
    font-size: 1.1rem;
    color: var(--lightest-slate);
    margin-bottom: 1.5rem;
    font-family: var(--font-secondary);
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links ul a {
    color: var(--slate);
}

.footer-links ul a:hover {
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-contact i {
    color: var(--hero-blue);
    margin-top: 4px;
}

.footer-contact a {
    color: var(--slate);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--lightest-navy);
    font-size: 0.8rem;
}

/* -------------------
   13. Legal & Contact Pages
   ------------------- */
.page-header {
    padding: 160px 0 80px;
    background: linear-gradient(180deg, rgba(10, 25, 47, 0) 0%, var(--dark-navy) 100%);
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--lightest-slate);
    margin-bottom: 10px;
}

.breadcrumbs a {
    color: var(--slate);
}

.breadcrumbs span {
    color: var(--light-slate);
}

.legal-content {
    background-color: var(--light-navy);
    padding: 2rem 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--lightest-navy);
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.5rem;
    color: var(--lightest-slate);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--lightest-navy);
}

.legal-content p,
.legal-content li {
    color: var(--light-slate);
}

.legal-content strong {
    color: var(--golden-glow);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: flex-start;
}

.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--light-navy);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.contact-card:hover {
    transform: scale(1.03);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--hero-blue);
    width: 50px;
    height: 50px;
    background: var(--lightest-navy);
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.contact-details h3 {
    color: var(--lightest-slate);
    font-size: 1.1rem;
}

.contact-details p,
.contact-details a {
    color: var(--slate);
}

.contact-form-container {
    background: var(--light-navy);
    padding: 2.5rem;
    border-radius: var(--border-radius);
}

.form-title {
    color: var(--lightest-slate);
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light-slate);
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--dark-navy);
    border: 1px solid var(--lightest-navy);
    border-radius: var(--border-radius);
    color: var(--white);
    font-family: var(--font-primary);
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--hero-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate);
    pointer-events: none;
}

select.form-input {
    appearance: none;
    -webkit-appearance: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group label {
    margin: 0;
}

.checkbox-group a {
    text-decoration: underline;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--light-navy);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 400px;
    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;
    font-size: 1.5rem;
    color: var(--slate);
    cursor: pointer;
}

.popup-icon {
    font-size: 3rem;
    color: var(--golden-glow);
    margin-bottom: 1rem;
}

.popup-content h3 {
    color: var(--lightest-slate);
    margin-bottom: 0.5rem;
}


/* -------------------
   14. Responsiveness
   ------------------- */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .chronicles-wrapper {
        width: 400%;
    }

    /* Adjust if panels are wider */
    .panel {
        width: 50%;
        max-width: 500px;
        padding: 0 5vw;
    }

    .chronicles-panels {
        padding-left: 20%;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .section {
        padding: 80px 0;
    }

    .header {
        background-color: var(--light-navy);
        box-shadow: none;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: calc(100vh - var(--header-height));
        background-color: var(--light-navy);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: right 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 15px 20px;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding-left: 20px;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .menu-toggle {
        display: block;
        width: 30px;
        height: 22px;
        position: relative;
        cursor: pointer;
        background: none;
        border: none;
    }

    .hamburger,
    .hamburger::before,
    .hamburger::after {
        content: '';
        display: block;
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: var(--lightest-slate);
        transition: transform 0.3s, top 0.3s;
    }

    .hamburger {
        top: 10px;
    }

    .hamburger::before {
        top: -10px;
    }

    .hamburger::after {
        top: 10px;
    }

    .menu-toggle.active .hamburger {
        transform: rotate(45deg);
    }

    .menu-toggle.active .hamburger::before {
        top: 0;
        transform: rotate(90deg);
    }

    .menu-toggle.active .hamburger::after {
        top: 0;
        transform: rotate(90deg);
        opacity: 0;
    }

    .hero-section {
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    #hero-3d-canvas {
        display: none;
    }

    .hero-buttons {
        justify-content: center;
    }

    .testimonial-card {
        flex-basis: 48%;
    }

    .chronicles-wrapper {
        width: 400%;
    }

    .panel {
        width: 90vw;
        max-width: 90vw;
        padding: 0 5vw;
    }

    .chronicles-panels {
        padding-left: 5vw;
    }

    .live-chat-widget,
    .back-to-top {
        bottom: 20px;
    }

    .live-chat-widget {
        left: 20px;
    }

    .back-to-top {
        right: 20px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .testimonial-slider {
        flex-direction: column;
    }

    .testimonial-card {
        flex-basis: 100%;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-contact ul li {
        justify-content: center;
    }

    .legal-content {
        padding: 1.5rem;
    }
}