/*
================================================================================
TABLE OF CONTENTS
================================================================================
1.  :root & CSS Variables
2.  Global Styles & Resets
3.  Typography & Utility Classes
4.  Header & Navigation
5.  Footer
6.  Hero Section
7.  Services Section
8.  About Us Section
9.  Industry Section
10. ROI Calculator Section
11. Testimonials Section
12. Report Section
13. Contact Page Section
14. Legal Pages Section
15. Interactive Elements (Buttons, Forms)
16. Mock Chat Widget
17. Animations & Reveal Effects
18. 3D Elements & Effects
19. Media Queries (Responsiveness)
    - 1200px (Large Desktops)
    - 992px (Tablets)
    - 768px (Mobile Landscape)
    - 576px (Mobile Portrait)
================================================================================
*/

/* 1. :root & CSS Variables */
:root {
    --color-primary-dark: #0A192F;
    --color-primary-light: #112240;
    --color-accent: #64FFDA;
    --color-text-light: #CCD6F6;
    --color-text-dark: #8892B0;
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-shadow: rgba(2, 12, 27, 0.7);

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto Mono', monospace;

    --header-height: 80px;
    --transition-speed: 0.3s;
    --border-radius: 4px;
}

/* 2. Global Styles & Resets */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-primary-dark);
    color: var(--color-text-dark);
    font-family: var(--font-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--color-accent);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--color-white);
}

/* For accessibility: visually hide an element but keep it available to screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 3. Typography & Utility Classes */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text-light);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--color-accent);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
}

.section-title::before {
    content: '';
    display: block;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}

.section-title.text-center p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

main>section {
    padding: 100px 0;
}

/* 4. Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    transition: top 0.3s ease-in-out;
}

.header-scrolled {
    top: -100px;
}

.header-visible {
    top: 0;
    box-shadow: 0 10px 30px -10px var(--color-shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    display: block;
}

.logo img {
    height: 60px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--color-text-light);
    padding: 10px 0;
    position: relative;
    font-size: 1rem;
    font-family: var(--font-secondary);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 30px;
    height: 2px;
    background-color: var(--color-accent);
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease;
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    display: block;
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    bottom: -10px;
}

/* Hamburger animation on open */
.mobile-nav-open .hamburger-inner {
    transform: rotate(45deg);
}

.mobile-nav-open .hamburger-inner::before {
    top: 0;
    opacity: 0;
}

.mobile-nav-open .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
}

/* 5. Footer */
.site-footer {
    background-color: var(--color-primary-light);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-column p,
.footer-column a {
    color: var(--color-text-dark);
    font-size: 0.9rem;
}

.footer-column.about p {
    margin-bottom: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a:hover {
    color: var(--color-accent);
}

.footer-logo img {
    height: 70px;
    margin-bottom: 20px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    padding-top: 20px;
    color: var(--color-text-dark);
    font-size: 0.8rem;
    font-family: var(--font-secondary);
}

/* 6. Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../hero-bg.jpg') no-repeat center center/cover;
    opacity: 0.1;
    z-index: -1;
}

.hero-content {
    max-width: 700px;
}

.hero-content h1 {
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 550px;
    margin-bottom: 40px;
}

/* 7. Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: transparent;
    perspective: 1000px;
    height: 350px;
    border-radius: var(--border-radius);
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    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(--color-primary-light);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-card-back {
    transform: rotateY(180deg);
}

.service-icon {
    height: 50px;
    margin-bottom: 20px;
    filter: invert(84%) sepia(38%) saturate(928%) hue-rotate(97deg) brightness(101%) contrast(104%);
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card-back ul {
    text-align: left;
    margin-bottom: 20px;
    width: 100%;
}

.service-card-back li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.service-card-back li::before {
    content: '✓';
    color: var(--color-accent);
    position: absolute;
    left: 0;
}

/* 8. About Us Section */
.about-section {
    background-color: var(--color-primary-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    perspective: 1500px;
}

.about-image {
    width: 100%;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    background: url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?q=80&w=1932&auto=format&fit=crop') no-repeat center center/cover;
    border-radius: var(--border-radius);
    transition: transform 0.5s ease;
}

.about-image-wrapper:hover .about-image {
    transform: rotateY(15deg) rotateX(5deg) scale(1.05);
}

.stats-grid {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    font-family: var(--font-secondary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-dark);
}

/* 9. Industry Section */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.industry-card {
    background-color: var(--color-primary-light);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.industry-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent);
    box-shadow: 0 10px 30px -15px var(--color-shadow);
}

.industry-card img {
    height: 60px;
    margin: 0 auto 20px;
    filter: invert(84%) sepia(38%) saturate(928%) hue-rotate(97deg) brightness(101%) contrast(104%);
}

/* 10. ROI Calculator Section */
.calculator-section {
    background-color: var(--color-primary-light);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    background-color: var(--color-primary-dark);
    padding: 40px;
    border-radius: var(--border-radius);
}

.calculator-form .form-group {
    margin-bottom: 25px;
}

.calculator-form label {
    display: block;
    margin-bottom: 10px;
    color: var(--color-text-light);
}

.calculator-form input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    background: transparent;
}

.calculator-form input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: var(--color-primary-light);
    border-radius: 5px;
}

.calculator-form input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--color-accent);
    cursor: pointer;
    margin-top: -8px;
    transition: transform 0.2s ease;
}

.calculator-form input[type="range"]:active::-webkit-slider-thumb {
    transform: scale(1.2);
}

.calculator-form span {
    display: inline-block;
    margin-left: 15px;
    font-family: var(--font-secondary);
    color: var(--color-accent);
    font-weight: bold;
}

.calculator-results {
    border-left: 1px solid var(--color-primary-light);
    padding-left: 40px;
}

.calculator-results h3 {
    margin-bottom: 25px;
}

.result-item {
    margin-bottom: 20px;
}

.result-item p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.result-item span {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    font-family: var(--font-secondary);
}

.calculator-results .disclaimer {
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* 11. Testimonials Section */
.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px;
    background-color: var(--color-primary-light);
    border-radius: var(--border-radius);
    text-align: center;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
}

.testimonial-slide.prev {
    transform: translateX(-100%);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--color-accent);
    margin: 0 auto 20px;
}

.testimonial-slide blockquote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--color-text-light);
}

.testimonial-slide cite {
    font-style: normal;
    color: var(--color-text-dark);
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 2;
}

.slider-controls button {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background-color 0.3s;
}

.slider-controls button:hover {
    background: var(--color-white);
}

/* 12. Report Section */
.report-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 40px var(--color-shadow);
}

.report-hotspots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
}

.hotspot-pulse {
    width: 20px;
    height: 20px;
    background: var(--color-accent);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
}

.hotspot-pulse::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hotspot-tooltip {
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary-light);
    color: var(--color-text-light);
    padding: 15px;
    border-radius: var(--border-radius);
    width: 250px;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 10;
    box-shadow: 0 5px 15px var(--color-shadow);
}

.hotspot:hover .hotspot-tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* 13. Contact Page Section */
.contact-page-section {
    padding-top: 150px;
    min-height: 100vh;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-info-wrapper h3 {
    margin-bottom: 20px;
}

.contact-details {
    margin-top: 20px;
}

.contact-details li {
    margin-bottom: 15px;
}

.contact-details strong {
    color: var(--color-text-light);
    display: block;
}

.contact-details span {
    color: var(--color-text-dark);
}

/* 14. Legal Pages Section */
.legal-page-section {
    padding-top: 150px;
    padding-bottom: 100px;
    min-height: 100vh;
}

.legal-page-section .container {
    max-width: 800px;
}

.legal-page-section h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--color-accent);
}

.legal-page-section h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-primary-light);
    padding-bottom: 10px;
}

.legal-page-section p,
.legal-page-section li {
    color: var(--color-text-dark);
    line-height: 1.8;
}

.legal-page-section ul {
    list-style: disc;
    padding-left: 20px;
}

.legal-page-section li {
    margin-bottom: 10px;
}

/* 15. Interactive Elements (Buttons, Forms) */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
}

.btn-primary:hover {
    color: var(--color-primary-dark);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-speed) ease-in-out;
    z-index: -1;
}

.btn-primary:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-secondary {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
    border: 1px solid var(--color-accent);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--color-accent);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background: var(--color-primary-light);
    border: 1px solid var(--color-primary-light);
    border-radius: var(--border-radius);
    color: var(--color-text-light);
    font-family: var(--font-primary);
    transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-group select option {
    background-color: var(--color-primary-light);
    color: var(--color-text-light);
}

/* 16. Mock Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 15px var(--color-shadow);
    transition: transform 0.3s ease;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-toggle svg {
    width: 30px;
    height: 30px;
    fill: var(--color-primary-dark);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: var(--color-primary-dark);
    border: 1px solid var(--color-primary-light);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px var(--color-shadow);
    display: flex;
    flex-direction: column;
    height: 450px;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.chat-widget.open .chat-window {
    transform: scale(1);
}

.chat-header {
    background: var(--color-primary-light);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-accent);
}

.chat-header h3 {
    margin: 0;
    font-size: 1rem;
}

.close-chat {
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
}

.message {
    margin-bottom: 15px;
}

.message p {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    margin-bottom: 5px;
}

.message.received p {
    background: var(--color-primary-light);
    border-bottom-left-radius: 3px;
    color: var(--color-text-light);
}

.chat-footer {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--color-primary-light);
}

.chat-footer input {
    flex-grow: 1;
    border: none;
    background: transparent;
    color: var(--color-text-light);
    padding: 10px;
}

.chat-footer input:focus {
    outline: none;
}

.chat-footer button {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    border: none;
    padding: 0 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
}

/* 17. Animations & Reveal Effects */
.animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-on-load:nth-child(1) {
    animation-delay: 0.2s;
}

.animate-on-load:nth-child(2) {
    animation-delay: 0.4s;
}

.animate-on-load:nth-child(3) {
    animation-delay: 0.6s;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal effect */
.reveal.visible:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal.visible:nth-child(3) {
    transition-delay: 0.2s;
}

.reveal.visible:nth-child(4) {
    transition-delay: 0.3s;
}


@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 18. 3D Elements & Effects */
.hero-3d-element {
    position: absolute;
    bottom: 10%;
    right: 10%;
    width: 100px;
    height: 100px;
    transform-style: preserve-3d;
    animation: rotate3D 20s infinite linear;
}

.hero-3d-element::before,
.hero-3d-element::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-accent);
    opacity: 0.5;
    border-radius: var(--border-radius);
}

.hero-3d-element::after {
    transform: rotateY(90deg);
}

@keyframes rotate3D {
    from {
        transform: rotateX(0deg) rotateY(0deg);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}


/* 19. Media Queries (Responsiveness) */

/* Large Desktops */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image-wrapper {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .stats-grid {
        justify-content: center;
    }

    .industry-grid {
        grid-template-columns: 1fr;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .calculator-results {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--color-primary-light);
        padding-top: 40px;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-column.about,
    .footer-column.contact {
        grid-column: span 2;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(75vw, 400px);
        height: 100vh;
        background: var(--color-primary-light);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease-in-out;
        padding-top: 60px;
        display: flex;
    }

    .main-nav.open {
        right: 0;
        box-shadow: -10px 0 30px -15px var(--color-shadow);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .main-nav ul li {
        width: 100%;
        text-align: center;
    }

    .main-nav a {
        display: block;
        padding: 20px 0;
        font-size: 1.2rem;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .hero {
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .slider-controls {
        padding: 0;
        top: auto;
        bottom: -60px;
        transform: none;
        justify-content: center;
        gap: 20px;
    }

    .testimonial-slider-wrapper {
        padding-bottom: 60px;
    }

    .testimonial-slider {
        height: 350px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column.about,
    .footer-column.contact {
        grid-column: span 1;
    }

    .footer-logo {
        margin: 0 auto 20px;
    }
}

/* Mobile Portrait */
@media (max-width: 576px) {
    .chat-window {
        width: 90vw;
        height: 70vh;
    }

    .hero-3d-element {
        display: none;
    }

    .hotspot-tooltip {
        display: none;
        /* Tooltips can be tricky on mobile, hiding for simplicity */
    }
}