/*
    Theme: VELOCITY MATRIX
    Description: A futuristic, motion-heavy theme with brutalist and minimalist influences.
    Core Concepts: Angled panels, kinetic typography, cyan-to-purple gradients, deep graphite backgrounds.
    Author: Your AI Assistant
    Version: 1.0
*/

/* ---------------------------------- */
/* 1. ROOT VARIABLES & GLOBAL STYLES  */
/* ---------------------------------- */
:root {
    --color-primary-cyan: #00e5ff;
    --color-primary-purple: #8e2de2;
    --color-gradient: linear-gradient(135deg, var(--color-primary-cyan), var(--color-primary-purple));
    --color-background: #121212;
    --color-surface: #1e1e1e;
    --color-surface-light: #2a2a2a;
    --color-text-primary: #f0f0f0;
    --color-text-secondary: #a0a0a0;
    --color-border: rgba(255, 255, 255, 0.1);
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Share Tech Mono', monospace;
    --header-height: 80px;
    --transition-fast: 0.2s ease-in-out;
    --transition-slow: 0.4s ease-in-out;
    --angle: -5deg;
}

*,
*::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-primary);
    font-family: var(--font-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    color: var(--color-text-primary);
    line-height: 1.2;
    font-weight: 400;
    text-transform: uppercase;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary-cyan);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-text-primary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.angled-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.angled-section::before,
.angled-section::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 150px;
    background-color: var(--color-background);
    z-index: 1;
    transform: skewY(var(--angle));
}

.angled-section::before {
    top: -75px;
}

.angled-section::after {
    bottom: -75px;
}

.angled-section .container {
    position: relative;
    z-index: 2;
}

.section-header {
    margin-bottom: 60px;
}

.text-center {
    text-align: center;
}

.section-subtitle {
    display: block;
    font-family: var(--font-secondary);
    color: var(--color-primary-cyan);
    margin-bottom: 10px;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title {
    margin-bottom: 20px;
}

.section-description {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------------------------------- */
/* 2. HEADER & NAVIGATION             */
/* ---------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    z-index: 1000;
    transition: background-color var(--transition-slow), box-shadow var(--transition-slow);
    background-color: transparent;
}

.header.scrolled {
    background-color: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    filter: invert(1);
    transition: transform var(--transition-slow);
}

.logo img:hover {
    transform: rotate(360deg);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--color-text-primary);
    font-family: var(--font-secondary);
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    padding: 10px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-slow);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 5px;
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.dropdown-menu li a:hover {
    background-color: var(--color-surface-light);
    color: var(--color-text-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ---------------------------------- */
/* 3. BUTTONS & FORMS                 */
/* ---------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 25px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-family: var(--font-secondary);
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color var(--transition-slow), border-color var(--transition-slow);
    z-index: 1;
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn i {
    position: relative;
    z-index: 2;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform var(--transition-slow);
    z-index: -1;
}

.btn-primary {
    background: var(--color-gradient);
    color: #000;
}

.btn-primary:hover {
    color: var(--color-text-primary);
}

.btn-primary::before {
    background-color: var(--color-background);
    transform: scaleX(0);
    transform-origin: right;
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--color-primary-cyan);
    color: var(--color-primary-cyan);
}

.btn-secondary::before {
    background: var(--color-gradient);
    transform: scaleX(0);
    transform-origin: left;
}

.btn-secondary:hover::before {
    transform: scaleX(1);
    transform-origin: right;
}

.btn-secondary:hover {
    color: #000;
    border-color: transparent;
}

.btn-full {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 5px;
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary-cyan);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.2);
}

.form-group i {
    position: absolute;
    right: 15px;
    top: 42px;
    color: var(--color-text-secondary);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

/* ---------------------------------- */
/* 4. HERO SECTION                    */
/* ---------------------------------- */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 3D CUBES */
.cube {
    position: absolute;
    top: 80vh;
    left: 45vw;
    width: 10px;
    height: 10px;
    border: 1px solid var(--color-primary-cyan);
    transform-style: preserve-3d;
    transform: rotateX(25deg) rotateY(25deg);
    animation: cube-anim 12s linear infinite;
}

.cube:nth-child(2) {
    animation-delay: -2s;
    left: 25vw;
    top: 40vh;
}

.cube:nth-child(3) {
    animation-delay: -4s;
    left: 75vw;
    top: 50vh;
}

.cube:nth-child(4) {
    animation-delay: -6s;
    left: 90vw;
    top: 10vh;
}

.cube:nth-child(5) {
    animation-delay: -8s;
    left: 10vw;
    top: 85vh;
}

.cube:nth-child(6) {
    animation-delay: -10s;
    left: 50vw;
    top: 10vh;
}

@keyframes cube-anim {
    0% {
        transform: scale(0) translateY(0) rotateX(0deg) rotateY(0deg);
        opacity: 1;
    }

    100% {
        transform: scale(5) translateY(-200px) rotateX(360deg) rotateY(720deg);
        opacity: 0;
        border-color: var(--color-primary-purple);
    }
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: 20px;
    font-size: clamp(2.5rem, 6vw, 5rem);
}

.hero-title .highlight {
    background: var(--color-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--color-text-secondary);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--color-text-secondary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}


/* ---------------------------------- */
/* 5. SERVICES SECTION                */
/* ---------------------------------- */
.services-section.angled-section {
    background-color: var(--color-surface);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--color-surface-light);
    padding: 40px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    text-align: center;
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent,
            rgba(0, 229, 255, 0.2),
            transparent 30%);
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.service-card:hover::before {
    opacity: 1;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
    background: var(--color-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.service-title {
    margin-bottom: 15px;
}

.kinetic-text {
    transition: transform 0.1s linear;
}

/* ---------------------------------- */
/* 6. INDUSTRY SECTION                */
/* ---------------------------------- */
.industry-tabs-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    display: flex;
}

.industry-tabs-nav {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-right: 1px solid var(--color-border);
}

.tab-link {
    background-color: transparent;
    border: none;
    color: var(--color-text-secondary);
    padding: 15px 20px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 1rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 5px;
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.tab-link:hover {
    color: var(--color-text-primary);
    background-color: var(--color-surface-light);
}

.tab-link.active {
    color: var(--color-primary-cyan);
    background-color: var(--color-surface-light);
}

.tab-link i {
    width: 20px;
    text-align: center;
}

.industry-tabs-content {
    padding: 40px;
    flex-grow: 1;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content ul {
    list-style: none;
    margin-top: 20px;
}

.tab-content li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

.tab-content li i {
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--color-primary-cyan);
}

/* ---------------------------------- */
/* 7. TESTIMONIALS SECTION            */
/* ---------------------------------- */
.testimonials-section.angled-section {
    background-color: var(--color-surface);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--color-surface-light);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 30px;
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.testimonial-content {
    position: relative;
    margin-bottom: 20px;
}

.testimonial-content p {
    font-size: 1rem;
    font-style: italic;
    color: var(--color-text-primary);
    margin-bottom: 0;
}

.testimonial-content::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 2rem;
    color: var(--color-primary-purple);
    position: absolute;
    top: -10px;
    left: -10px;
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.author-info h4 {
    font-family: var(--font-primary);
    text-transform: none;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* ---------------------------------- */
/* 8. ROI CALCULATOR SECTION          */
/* ---------------------------------- */
.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background-color: var(--color-surface);
    padding: 60px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
}

.calculator-disclaimer {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 20px;
    padding: 15px;
    background-color: var(--color-surface-light);
    border-radius: 5px;
    font-size: 0.9rem;
}

.calculator-disclaimer i {
    color: var(--color-primary-cyan);
    margin-top: 4px;
}

.calculator-form-container {
    padding: 40px;
    border-left: 1px solid var(--color-border);
}

.calculator-form .form-group input {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    text-align: right;
}

.results-container {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.results-container.show {
    opacity: 1;
    transform: translateY(0);
}

.results-container h4 {
    margin-bottom: 20px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 1.1rem;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item strong {
    font-family: var(--font-secondary);
    color: var(--color-text-primary);
}

.result-item.net-roi strong {
    color: var(--color-primary-cyan);
}


/* ---------------------------------- */
/* 9. CTA SECTION                     */
/* ---------------------------------- */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background: var(--color-gradient);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 20%);
    animation: cta-glow 10s infinite alternate;
}

@keyframes cta-glow {
    to {
        transform: scale(1.5);
    }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title,
.cta-text {
    color: var(--color-background);
}

.cta-title {
    margin-bottom: 20px;
}

.cta-text {
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.cta-section .btn-primary {
    background: var(--color-background);
    color: var(--color-primary-cyan);
}

.cta-section .btn-primary:hover {
    background: #fff;
    color: #000;
}

/* ---------------------------------- */
/* 10. FOOTER                         */
/* ---------------------------------- */
.footer {
    background-color: var(--color-surface);
    padding-top: 80px;
    border-top: 1px solid var(--color-border);
    position: relative;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    margin-bottom: 20px;
    font-family: var(--font-secondary);
    color: var(--color-text-primary);
    text-transform: uppercase;
    font-size: 1rem;
}

.footer-about .footer-logo img {
    height: 60px;
    filter: invert(1);
    margin-bottom: 20px;
}

.footer-about p {
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-socials a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text-secondary);
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.footer-socials a:hover {
    background-color: var(--color-primary-cyan);
    border-color: var(--color-primary-cyan);
    color: #000;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--color-text-secondary);
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-text-primary);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--color-primary-cyan);
    margin-top: 5px;
}

.footer-contact a {
    color: var(--color-text-secondary);
}

.footer-contact a:hover {
    color: var(--color-text-primary);
}


.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* ---------------------------------- */
/* 11. PAGE-SPECIFIC STYLES           */
/* ---------------------------------- */
/* Page Header */
.page-header {
    padding-top: 180px;
    padding-bottom: 100px;
    text-align: center;
    background: linear-gradient(rgba(18, 18, 18, 0.8), var(--color-background)), url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
}

.page-header h1 {
    font-size: 3.5rem;
}

.breadcrumbs {
    margin-top: 10px;
    color: var(--color-text-secondary);
}

.breadcrumbs a {
    color: var(--color-primary-cyan);
}

.breadcrumbs span {
    color: var(--color-text-primary);
}

/* Legal & Contact Pages */
.main-content {
    padding: 80px 0;
}

.legal-content,
.contact-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    border-left: 3px solid var(--color-primary-cyan);
    padding-left: 15px;
}

.legal-content p {
    margin-bottom: 20px;
}

/* Contact Page */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--color-surface);
    border-radius: 5px;
    border: 1px solid var(--color-border);
    margin-bottom: 20px;
    transition: transform var(--transition-slow);
}

.contact-card:hover {
    transform: scale(1.03);
}

.contact-icon {
    font-size: 1.8rem;
    color: var(--color-primary-cyan);
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-surface-light);
    border-radius: 50%;
}

.contact-details h3 {
    font-family: var(--font-primary);
    text-transform: none;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-form-container {
    background: var(--color-surface);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
}

.form-title {
    margin-bottom: 30px;
    text-align: center;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

/* Success Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--color-surface);
    padding: 50px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 500px;
    transform: scale(0.7);
    transition: transform var(--transition-slow);
}

.popup.show .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

.popup-icon {
    font-size: 4rem;
    color: var(--color-primary-cyan);
    margin-bottom: 20px;
}

/* ---------------------------------- */
/* 12. UTILITY & MISC                 */
/* ---------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-gradient);
    color: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), visibility var(--transition-slow), transform var(--transition-slow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    background-color: var(--color-text-primary);
    height: 3px;
    width: 100%;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

.nav.active+.header-actions .menu-toggle .hamburger {
    background-color: transparent;
}

.nav.active+.header-actions .menu-toggle .hamburger::before {
    transform: translateY(0) rotate(45deg);
}

.nav.active+.header-actions .menu-toggle .hamburger::after {
    transform: translateY(0) rotate(-45deg);
}


/* ---------------------------------- */
/* 13. RESPONSIVE DESIGN              */
/* ---------------------------------- */
@media (max-width: 1024px) {
    .industry-tabs-wrapper {
        flex-direction: column;
    }

    .industry-tabs-nav {
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 992px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-background);
        padding-top: 100px;
        transition: right 0.5s ease-in-out;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .dropdown-menu {
        position: static;
        background: transparent;
        border: none;
        text-align: center;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 20px 0 0 0;
        min-width: auto;
    }

    .dropdown-menu li a {
        color: var(--color-text-secondary);
        font-size: 1rem;
    }

    .dropdown:hover .dropdown-menu {
        /* Disable hover for mobile */
    }

    .menu-toggle {
        display: block;
    }

    .header-actions .btn {
        display: none;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .calculator-form-container {
        border-left: none;
        border-top: 1px solid var(--color-border);
        padding-top: 40px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about p {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-contact ul li {
        justify-content: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 2.5rem;
    }

    .tab-link {
        flex-direction: column;
        gap: 5px;
        font-size: 0.8rem;
        padding: 10px;
    }

    .tab-link span {
        display: none;
        /* Show only icons on small screens if needed */
    }

    .industry-tabs-content,
    .contact-form-container,
    .calculator-wrapper {
        padding: 20px;
    }
}