/*
    style.css
    Theme: Cassette Tech
    Author: Andre Buchanan Masonry Redesign Project
    Description: A retro-futuristic theme with VHS, glitch, and 3D effects.
*/

/* -------------------------------------------------- */
/* !Table of Contents */
/* -------------------------------------------------- */
/*
    1.  Root Variables & Global Styles
    2.  Animations & Keyframes
    3.  Utility Classes
    4.  General Layout & Container
    5.  Header & Navigation
    6.  Footer
    7.  Hero Section
    8.  Services Section (Flipping Cards)
    9.  Industry Section (Tabs)
    10. Testimonials Section (Carousel)
    11. ROI Calculator Section
    12. Contact Form Section
    13. Interactive Elements (Chat Widget, Spools)
    14. Inner Page Styles (About, Services, Contact)
    15. Legal Page Styles
    16. Responsive Design (Media Queries)
*/


/* -------------------------------------------------- */
/* !1. Root Variables & Global Styles */
/* -------------------------------------------------- */
:root {
    --color-background: #0d0d1a;
    --color-primary: #ff00ff;
    /* Neon Magenta */
    --color-secondary: #00ffff;
    /* Neon Cyan */
    --color-text: #e0e0e0;
    --color-text-dark: #333;
    --color-surface: #1a1a2e;
    --color-border: rgba(0, 255, 255, 0.3);
    --font-heading: 'VT323', monospace;
    --font-body: '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-background);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.7;
    font-weight: 300;
    overflow-x: hidden;
    position: relative;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    max-width: 70ch;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 5px var(--color-primary), 0 0 10px var(--color-primary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* -------------------------------------------------- */
/* !2. Animations & Keyframes */
/* -------------------------------------------------- */

/* VHS Noise Overlay */
.vhs-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAAFVklEQVR42u3BAQ0AAADCoPdPbQ8HFAAAAAAAAAAAAAAAAAAA2RVHIgAAAABJRU5ErkJggg==');
    opacity: 0.08;
    z-index: 1000;
    pointer-events: none;
    animation: vhs-noise 0.1s steps(2) infinite;
}

@keyframes vhs-noise {
    0% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-2px, -2px);
    }

    20% {
        transform: translate(2px, 2px);
    }

    30% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(2px, -2px);
    }

    50% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* Scanline Effect */
.scanline-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    z-index: 2;
}

/* Glitch Effect */
.glitch {
    position: relative;
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.025em -0.05em 0 rgba(0, 255, 0, 0.75), 0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    animation: glitch 500ms infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-background);
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--color-primary);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--color-secondary), 2px 2px var(--color-primary);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, .75), -0.05em -0.025em 0 rgba(0, 255, 0, .75), -0.025em 0.05em 0 rgba(0, 0, 255, .75);
    }

    14% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, .75), -0.05em -0.025em 0 rgba(0, 255, 0, .75), -0.025em 0.05em 0 rgba(0, 0, 255, .75);
    }

    15% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, .75), 0.025em 0.025em 0 rgba(0, 255, 0, .75), -0.05em -0.05em 0 rgba(0, 0, 255, .75);
    }

    49% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, .75), 0.025em 0.025em 0 rgba(0, 255, 0, .75), -0.05em -0.05em 0 rgba(0, 0, 255, .75);
    }

    50% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, .75), 0.05em 0 0 rgba(0, 255, 0, .75), 0 -0.05em 0 rgba(0, 0, 255, .75);
    }

    99% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, .75), 0.05em 0 0 rgba(0, 255, 0, .75), 0 -0.05em 0 rgba(0, 0, 255, .75);
    }

    100% {
        text-shadow: -0.025em 0 0 rgba(255, 0, 0, .75), -0.025em -0.025em 0 rgba(0, 255, 0, .75), -0.05em -0.05em 0 rgba(0, 0, 255, .75);
    }
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(42px, 9999px, 44px, 0);
    }

    5% {
        clip: rect(12px, 9999px, 60px, 0);
    }

    10% {
        clip: rect(32px, 9999px, 80px, 0);
    }

    15% {
        clip: rect(52px, 9999px, 100px, 0);
    }

    20% {
        clip: rect(22px, 9999px, 70px, 0);
    }

    25% {
        clip: rect(42px, 9999px, 60px, 0);
    }

    30% {
        clip: rect(12px, 9999px, 80px, 0);
    }

    35% {
        clip: rect(52px, 9999px, 90px, 0);
    }

    40% {
        clip: rect(32px, 9999px, 70px, 0);
    }

    45% {
        clip: rect(12px, 9999px, 60px, 0);
    }

    50% {
        clip: rect(42px, 9999px, 80px, 0);
    }

    55% {
        clip: rect(22px, 9999px, 90px, 0);
    }

    60% {
        clip: rect(12px, 9999px, 70px, 0);
    }

    65% {
        clip: rect(42px, 9999px, 60px, 0);
    }

    70% {
        clip: rect(22px, 9999px, 80px, 0);
    }

    75% {
        clip: rect(52px, 9999px, 90px, 0);
    }

    80% {
        clip: rect(12px, 9999px, 70px, 0);
    }

    85% {
        clip: rect(42px, 9999px, 60px, 0);
    }

    90% {
        clip: rect(22px, 9999px, 90px, 0);
    }

    95% {
        clip: rect(52px, 9999px, 70px, 0);
    }

    100% {
        clip: rect(12px, 9999px, 60px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(85px, 9999px, 90px, 0);
    }

    5% {
        clip: rect(35px, 9999px, 40px, 0);
    }

    10% {
        clip: rect(15px, 9999px, 20px, 0);
    }

    15% {
        clip: rect(65px, 9999px, 70px, 0);
    }

    20% {
        clip: rect(45px, 9999px, 50px, 0);
    }

    25% {
        clip: rect(25px, 9999px, 30px, 0);
    }

    30% {
        clip: rect(75px, 9999px, 80px, 0);
    }

    35% {
        clip: rect(55px, 9999px, 60px, 0);
    }

    40% {
        clip: rect(35px, 9999px, 40px, 0);
    }

    45% {
        clip: rect(15px, 9999px, 20px, 0);
    }

    50% {
        clip: rect(85px, 9999px, 90px, 0);
    }

    55% {
        clip: rect(65px, 9999px, 70px, 0);
    }

    60% {
        clip: rect(45px, 9999px, 50px, 0);
    }

    65% {
        clip: rect(25px, 9999px, 30px, 0);
    }

    70% {
        clip: rect(75px, 9999px, 80px, 0);
    }

    75% {
        clip: rect(55px, 9999px, 60px, 0);
    }

    80% {
        clip: rect(35px, 9999px, 40px, 0);
    }

    85% {
        clip: rect(15px, 9999px, 20px, 0);
    }

    90% {
        clip: rect(65px, 9999px, 70px, 0);
    }

    95% {
        clip: rect(45px, 9999px, 50px, 0);
    }

    100% {
        clip: rect(25px, 9999px, 30px, 0);
    }
}


/* Fade in on scroll */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transform: translateY(30px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* -------------------------------------------------- */
/* !3. Utility Classes */
/* -------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-subtitle {
    text-align: center;
    margin-top: -2rem;
    margin-bottom: 3rem;
    color: rgba(224, 224, 224, 0.7);
}

.cta-button {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    text-transform: uppercase;
    padding: 0.8rem 2rem;
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    position: relative;
    overflow: hidden;
    transition: color 0.4s ease-in-out;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    transition: left 0.4s ease-in-out;
    z-index: -1;
}

.cta-button:hover {
    color: var(--color-background);
    text-shadow: none;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button .symbol {
    display: inline-block;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.cta-button:hover .symbol {
    transform: translateX(5px);
}

/* -------------------------------------------------- */
/* !4. General Layout & Container */
/* -------------------------------------------------- */
main {
    position: relative;
    z-index: 2;
}


/* -------------------------------------------------- */
/* !5. Header & Navigation */
/* -------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background-color: rgba(13, 13, 26, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
    transition: background-color 0.3s;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 120px;
    filter: invert(1);
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-secondary);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 25px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}


/* -------------------------------------------------- */
/* !6. Footer */
/* -------------------------------------------------- */
.site-footer {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-logo-info .footer-logo {
    height: 120px;
    filter: invert(1);
    margin-bottom: 1rem;
}

.footer-logo-info p {
    color: rgba(224, 224, 224, 0.7);
    margin-bottom: 1.5rem;
}

.footer-contact-info p {
    margin-bottom: 0.5rem;
}

.footer-contact-info strong {
    color: var(--color-secondary);
}

.footer-column h4 {
    color: var(--color-secondary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links ul li,
.footer-legal ul li {
    margin-bottom: 0.75rem;
}

.footer-links a,
.footer-legal a {
    color: var(--color-text);
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--color-primary);
}


.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    color: var(--color-secondary);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    transition: background-color 0.3s, color 0.3s;
}

.social-icons a:hover {
    background-color: var(--color-secondary);
    color: var(--color-background);
    text-shadow: none;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    margin-top: 3rem;
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(224, 224, 224, 0.5);
    font-family: var(--font-heading);
}

/* -------------------------------------------------- */
/* !7. Hero Section */
/* -------------------------------------------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-background-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-background);
    opacity: 0.8;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 7px, var(--color-secondary) 7px, var(--color-secondary) 8px),
        repeating-linear-gradient(90deg, transparent, transparent 9px, var(--color-primary) 9px, var(--color-primary) 10px);
    animation: bg-glitch 0.2s linear infinite;
    z-index: -1;
}

@keyframes bg-glitch {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100px 50px;
    }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 6rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-content .subtitle {
    font-size: 1.25rem;
    max-width: 60ch;
    margin: 0 auto 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-3d-object {
    position: absolute;
    bottom: 5%;
    right: 5%;
    perspective: 1000px;
    z-index: 1;
}

.cube {
    width: 100px;
    height: 100px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-cube 20s infinite linear;
}

.face {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 1px solid var(--color-secondary);
    background: rgba(0, 255, 255, 0.1);
    color: white;
    font-family: var(--font-heading);
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.front {
    transform: rotateY(0deg) translateZ(50px);
}

.back {
    transform: rotateY(180deg) translateZ(50px);
}

.right {
    transform: rotateY(90deg) translateZ(50px);
}

.left {
    transform: rotateY(-90deg) translateZ(50px);
}

.top {
    transform: rotateX(90deg) translateZ(50px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(50px);
}

@keyframes rotate-cube {
    from {
        transform: rotateX(0) rotateY(0);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}


/* -------------------------------------------------- */
/* !8. Services Section (Flipping Cards) */
/* -------------------------------------------------- */
.services-section {
    background-color: var(--color-surface);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: transparent;
    height: 350px;
    perspective: 1000px;
    border: 1px solid var(--color-border);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.service-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-front {
    background-color: var(--color-surface);
}

.card-back {
    background-color: var(--color-primary);
    color: var(--color-background);
    transform: rotateY(180deg);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card-front h3 {
    color: var(--color-secondary);
}

.card-back h3 {
    color: var(--color-background);
    font-size: 1.5rem;
}

.card-back p {
    font-size: 0.9rem;
    font-weight: 400;
}


/* -------------------------------------------------- */
/* !9. Industry Section (Tabs) */
/* -------------------------------------------------- */
.industry-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--color-border);
}

.tab-link {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-text);
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s;
}

.tab-link:hover {
    color: var(--color-primary);
}

.tab-link.active {
    color: var(--color-secondary);
}

.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-secondary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
    text-align: center;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.tab-content p {
    margin: 0 auto 2rem;
}

.industry-image {
    max-width: 600px;
    margin: 0 auto;
    border: 3px solid var(--color-border);
}


/* -------------------------------------------------- */
/* !10. Testimonials Section (Carousel) */
/* -------------------------------------------------- */
.testimonials-section {
    background-color: var(--color-surface);
}

.testimonial-carousel {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 250px;
}

.testimonial-card {
    position: absolute;
    width: 100%;
    top: 0;
    left: 100%;
    opacity: 0;
    transition: all 0.5s ease-in-out;
}

.testimonial-card.active {
    left: 0;
    opacity: 1;
}

.testimonial-card.exit {
    left: -100%;
}

.quote {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--color-secondary);
}

cite {
    font-style: normal;
    font-weight: 700;
}

.testimonial-nav {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.prev-btn,
.next-btn {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.prev-btn:hover,
.next-btn:hover {
    background: var(--color-primary);
    color: var(--color-background);
}

/* -------------------------------------------------- */
/* !11. ROI Calculator Section */
/* -------------------------------------------------- */
.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--color-surface);
    padding: 3rem;
    border: 1px solid var(--color-border);
}

.calculator-form .form-group {
    margin-bottom: 2rem;
}

.calculator-form label {
    display: block;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.calculator-form input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: var(--color-border);
    outline: none;
    cursor: pointer;
}

.calculator-form input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border: 2px solid var(--color-background);
    cursor: pointer;
    box-shadow: 0 0 10px var(--color-primary);
}

.calculator-form span {
    display: block;
    text-align: right;
    margin-top: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-secondary);
}

.calculator-results {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    text-align: center;
}

.result-box {
    padding: 1.5rem;
    border: 1px solid var(--color-border);
}

.result-box p {
    margin: 0;
    color: rgba(224, 224, 224, 0.7);
}

.result-box h3 {
    font-size: 3rem;
    color: var(--color-secondary);
    margin: 0.5rem 0 0 0;
}

.result-box .glitch {
    font-size: 1rem;
}

/* -------------------------------------------------- */
/* !12. Contact Form Section */
/* -------------------------------------------------- */
.contact-form-section {
    background-color: var(--color-surface);
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form .form-row {
    display: flex;
    gap: 2rem;
}

.contact-form .form-row .form-group {
    flex: 1;
}

.contact-form .form-group {
    position: relative;
    margin-bottom: 2.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--color-border);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-bottom-color: var(--color-primary);
}

.contact-form label {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    color: rgba(224, 224, 224, 0.5);
    pointer-events: none;
    transition: all 0.3s;
}

.contact-form input:focus+label,
.contact-form input:not(:placeholder-shown)+label,
.contact-form textarea:focus+label,
.contact-form textarea:not(:placeholder-shown)+label {
    top: -1.2rem;
    left: 0;
    font-size: 0.8rem;
    color: var(--color-primary);
}

/* This is a trick for the placeholder to work with the label animation */
.contact-form input,
.contact-form textarea {
    background-color: rgba(0, 0, 0, 0.01);
    /* To make :placeholder-shown work consistently */
}

.contact-form input:focus,
.contact-form textarea:focus {
    background-color: transparent;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: transparent;
}

.contact-form button {
    display: block;
    margin: 0 auto;
}

/* -------------------------------------------------- */
/* !13. Interactive Elements (Chat Widget, Spools) */
/* -------------------------------------------------- */

/* Live Chat Widget */
.chat-toggle-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-primary);
    border: none;
    cursor: pointer;
    z-index: 101;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px var(--color-primary);
    transition: transform 0.3s;
}

.chat-toggle-button:hover {
    transform: scale(1.1);
}

.chat-toggle-button svg {
    width: 30px;
    height: 30px;
    fill: var(--color-background);
}

.live-chat-widget {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 350px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    z-index: 100;
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.live-chat-widget.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.chat-header {
    background: var(--color-primary);
    color: var(--color-background);
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
}

.close-chat {
    background: none;
    border: none;
    color: var(--color-background);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 1rem;
    height: 250px;
    overflow-y: auto;
}

.chat-body p {
    font-size: 0.9rem;
}

.chat-footer {
    display: flex;
}

.chat-footer input {
    flex: 1;
    border: none;
    border-top: 1px solid var(--color-border);
    background: var(--color-background);
    padding: 0.8rem;
    color: var(--color-text);
}

.chat-footer input:focus {
    outline: none;
}

.chat-footer button {
    background: var(--color-secondary);
    color: var(--color-background);
    border: none;
    padding: 0 1rem;
    cursor: pointer;
    font-family: var(--font-heading);
}

/* Tape Spool Indicator */
.tape-spool-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 99;
    opacity: 0.7;
    pointer-events: none;
}

.spool {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-secondary);
    border-radius: 50%;
    position: relative;
}

.spool::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--color-secondary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.tape-path {
    width: 80px;
    height: 2px;
    background: var(--color-secondary);
}

.tape-counter {
    color: var(--color-secondary);
    font-family: var(--font-heading);
}

/* -------------------------------------------------- */
/* !14. Inner Page Styles (About, Services, Contact) */
/* -------------------------------------------------- */
.page-content {
    padding-top: var(--header-height);
}

.page-header-section {
    padding: 4rem 0;
    text-align: center;
    background: var(--color-surface);
}

.page-header-section h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

/* About Page */
.mission-section .container {
    padding-top: 2rem;
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.mission-image img {
    border: 3px solid var(--color-border);
}

.team-section {
    background: var(--color-surface);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.team-member h3 {
    color: var(--color-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.team-photo-container {
    position: relative;
    overflow: hidden;
    border: 2px solid var(--color-border);
}

.team-photo-container img {
    filter: grayscale(100%) contrast(1.2);
    transition: filter 0.3s;
}

.team-member:hover .team-photo-container img {
    filter: grayscale(0%) contrast(1);
}

/* Services Page */
.service-detail-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 4rem;
}

.service-detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.service-detail-icon {
    font-size: 3rem;
}

.service-detail-content ul {
    list-style: none;
    margin-top: 1.5rem;
    padding-left: 1.5rem;
}

.service-detail-content li {
    position: relative;
    margin-bottom: 0.75rem;
}

.service-detail-content li::before {
    content: '►';
    position: absolute;
    left: -1.5rem;
    color: var(--color-primary);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info-block {
    margin-bottom: 2rem;
}

.contact-info-block h3 {
    color: var(--color-secondary);
}

.map-placeholder {
    position: relative;
    border: 2px solid var(--color-border);
}

.map-placeholder img {
    filter: grayscale(1) contrast(1.2) brightness(0.8);
}

.contact-form-full label,
.contact-form-full legend {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    color: var(--color-secondary);
}

.contact-form-full .form-group {
    margin-bottom: 1.5rem;
}

.contact-form-full input,
.contact-form-full textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-family: var(--font-body);
}

.contact-form-full input:focus,
.contact-form-full textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
}

.radio-group label {
    display: inline-flex;
    align-items: center;
    margin-right: 1.5rem;
    font-family: var(--font-body);
    color: var(--color-text);
    cursor: pointer;
}

.radio-group input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    width: 1.2em;
    height: 1.2em;
    border: 2px solid var(--color-border);
    border-radius: 50%;
    margin-right: 0.5em;
    position: relative;
    top: 2px;
}

.radio-group input[type="radio"]:checked {
    border-color: var(--color-primary);
}

.radio-group input[type="radio"]:checked::after {
    content: '';
    display: block;
    width: 0.6em;
    height: 0.6em;
    border-radius: 50%;
    background-color: var(--color-primary);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* -------------------------------------------------- */
/* !15. Legal Page Styles */
/* -------------------------------------------------- */
.legal-page {
    padding: 4rem 0;
}

.legal-content h2 {
    color: var(--color-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.legal-content p {
    color: rgba(224, 224, 224, 0.8);
}


/* -------------------------------------------------- */
/* !16. Responsive Design (Media Queries) */
/* -------------------------------------------------- */
@media (max-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-content h1 {
        font-size: 5rem;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 4rem 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--color-surface);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 100;
    }

    .nav-links.nav-active {
        transform: translateX(0);
    }

    .nav-toggle {
        display: block;
    }

    .nav-open .hamburger {
        background: transparent;
    }

    .nav-open .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-open .hamburger::after {
        transform: rotate(-45deg);
        top: 0;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-3d-object {
        display: none;
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-column {
        min-width: 100%;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .mission-content {
        grid-template-columns: 1fr;
    }

    .mission-image {
        order: -1;
    }

    .service-detail-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .service-detail-content ul {
        padding-left: 0;
        list-style-position: inside;
    }

    .service-detail-content li::before {
        display: none;
    }

    .tape-spool-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .subtitle {
        font-size: 1rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 0.6rem 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .industry-tabs {
        flex-direction: column;
        border-bottom: none;
    }

    .tab-link {
        border-bottom: 1px solid var(--color-border);
        width: 100%;
    }

    .calculator-wrapper {
        padding: 1.5rem;
    }

    .live-chat-widget {
        width: 90%;
        right: 5%;
    }
}