/*
---
TABLE OF CONTENTS
---
1.  GLOBAL STYLES & VARIABLES
2.  HELPER CLASSES & KEYFRAMES
3.  HEADER & NAVIGATION
4.  FOOTER
5.  BUTTONS & FORMS
6.  HERO SECTION & PARTICLES
7.  PAGE HEADERS (CONTACT/LEGAL)
8.  GENERAL SECTION STYLING
9.  SERVICES SECTION (DNA HELIX)
10. ABOUT / FEATURES SECTION
11. INDUSTRY TABS SECTION
12. TESTIMONIALS SECTION
13. ROI CALCULATOR SECTION
14. CTA SECTION
15. CONTACT PAGE SPECIFIC
16. LEGAL PAGES SPECIFIC
17. MISCELLANEOUS (BACK TO TOP, POPUP)
18. RESPONSIVE DESIGN (MEDIA QUERIES)
---
*/

/* 1. GLOBAL STYLES & VARIABLES
-------------------------------------------------- */
:root {
    --primary-color: #5A4FCF;
    --secondary-color: #00C2FF;
    --accent-color: #CB47FF;
    --bg-dark: #0F0529;
    --bg-dark-2: #160A3A;
    --bg-light-transparent: rgba(255, 255, 255, 0.05);
    --text-light: #E0E0E0;
    --text-dark: #2c3e50;
    --text-muted: #a0aec0;
    --border-color: rgba(255, 255, 255, 0.1);
    --font-family: 'Poppins', sans-serif;
    --header-height: 80px;
    --transition-speed: 0.3s;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 10% 10%, rgba(90, 79, 207, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(0, 194, 255, 0.1) 0%, transparent 35%);
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

::selection {
    background-color: var(--primary-color);
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: #fff;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 2. HELPER CLASSES & KEYFRAMES
-------------------------------------------------- */
.section-padding {
    padding: 100px 0;
}

.services-section {

    padding-bottom: 250px;

}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--bg-light-transparent);
    color: var(--secondary-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.section-title {
    margin-bottom: 15px;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
}

/* Load-in Animations */
.animate-on-load {
    opacity: 0;
}

.animate-on-load[data-animation="fade-in-down"] {
    animation: fadeInDown 1s ease-out forwards;
}

.animate-on-load[data-animation="fade-in-up"] {
    animation: fadeInUp 1s ease-out forwards;
}

.animate-on-load[data-delay="200"] {
    animation-delay: 0.2s;
}

.animate-on-load[data-delay="400"] {
    animation-delay: 0.4s;
}

/* Scroll Animations */
[data-animation] {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animation].is-visible {
    opacity: 1;
}

[data-animation="fade-in-up"].is-visible {
    transform: translateY(0);
}

[data-animation="fade-in-up"] {
    transform: translateY(50px);
}

[data-animation="fade-in-down"].is-visible {
    transform: translateY(0);
}

[data-animation="fade-in-down"] {
    transform: translateY(-50px);
}

[data-animation="fade-in-left"].is-visible {
    transform: translateX(0);
}

[data-animation="fade-in-left"] {
    transform: translateX(-50px);
}

[data-animation="fade-in-right"].is-visible {
    transform: translateX(0);
}

[data-animation="fade-in-right"] {
    transform: translateX(50px);
}

/* Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 194, 255, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(0, 194, 255, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 194, 255, 0);
    }
}

@keyframes spectrum-sweep {
    0% {
        transform: translateX(-100%) skewX(-20deg);
    }

    100% {
        transform: translateX(200%) skewX(-20deg);
    }
}

@keyframes helix-in {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.8) rotate(-10deg);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0);
    }
}


/* 3. HEADER & NAVIGATION
-------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color var(--transition-speed) ease, padding var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    padding: 20px 0;
}

.header.scrolled {
    background-color: rgba(15, 5, 41, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 80px;
    filter: brightness(0) invert(1);
    transition: transform var(--transition-speed) ease;
}

.logo-link:hover .logo {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-image: var(--gradient);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: #fff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    width: 28px;
    height: 22px;
    flex-direction: column;
    justify-content: space-between;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-menu.active+.header-actions .menu-toggle .bar:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.nav-menu.active+.header-actions .menu-toggle .bar:nth-child(2) {
    opacity: 0;
}

.nav-menu.active+.header-actions .menu-toggle .bar:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}


/* 4. FOOTER
-------------------------------------------------- */
.footer {
    background-color: var(--bg-dark-2);
    padding-top: 120px;
    position: relative;
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%230F0529' fill-opacity='1' d='M0,192L80,176C160,160,320,128,480,138.7C640,149,800,203,960,208C1120,213,1280,171,1360,149.3L1440,128L1440,0L1360,0C1280,0,1120,0,960,0C800,0,640,0,480,0C320,0,160,0,80,0L0,0Z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: cover;
    transform: translateY(-99px);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 50px;
}

.footer-logo {
    height: 80px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.footer-about-text {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-light-transparent);
    color: var(--text-light);
    transition: all var(--transition-speed) ease;
}

.social-links a:hover {
    background-image: var(--gradient);
    color: #fff;
    transform: translateY(-3px);
}

.footer-col-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-image: var(--gradient);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-muted);
}

.footer-links ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.footer-contact ul li i {
    margin-right: 15px;
    margin-top: 5px;
    color: var(--secondary-color);
}

.footer-contact ul li a {
    color: var(--text-muted);
}

.footer-contact ul li a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 5. BUTTONS & FORMS
-------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-image: var(--gradient);
    color: #fff;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(90, 79, 207, 0.4);
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Base Form Styling */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-light);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    background-color: var(--bg-light-transparent);
    border: 1px solid var(--border-color);
    color: #fff;
    font-family: var(--font-family);
    transition: all var(--transition-speed) ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.3);
}

::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23a0aec0' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

/* Contact Form Specifics */
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ROI Calculator Form Specifics - FIXED */
#roi-form .form-group {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

#roi-form label {
    margin-bottom: 0;
    text-align: left;
    font-weight: 400;
    color: var(--text-muted);
}

#roi-form input {
    width: 160px;
    justify-self: end;
}


/* 6. HERO SECTION & PARTICLES
-------------------------------------------------- */
.hero-section {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-dark);
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-muted);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.mouse {
    width: 25px;
    height: 45px;
    border: 2px solid var(--secondary-color);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 5px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 5px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 25px;
        opacity: 0;
    }
}


/* 7. PAGE HEADERS (CONTACT/LEGAL)
-------------------------------------------------- */
.page-header {
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-dark-2);
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at top left, var(--primary-color) 0%, transparent 40%),
        radial-gradient(circle at bottom right, var(--secondary-color) 0%, transparent 40%);
    opacity: 0.1;
    z-index: 0;
    overflow: hidden;
}

.page-header-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-image: linear-gradient(90deg, transparent, rgba(0, 194, 255, 0.2), transparent);
    animation: spectrum-sweep 6s linear infinite;
}

.page-header h1,
.page-header .page-subtitle {
    position: relative;
    z-index: 1;
}

.page-header .page-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 15px auto 0;
}


/* 8. GENERAL SECTION STYLING
-------------------------------------------------- */
.about-section,
.industry-section,
.roi-section {
    background-color: var(--bg-dark-2);
}

/* 9. SERVICES SECTION (DNA HELIX) - REBUILT AND FIXED
-------------------------------------------------- */
.helix-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    /* Match SVG width */
    height: 1600px;
    margin: 0 auto;
}

.helix-path-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    stroke: rgba(90, 79, 207, 0.2);
    stroke-width: 2px;
    stroke-dasharray: 10 10;
    z-index: 1;
}

.helix-container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    grid-template-rows: repeat(6, 1fr);
    align-items: center;
    justify-items: center;
}

.service-card-helix {
    width: 320px;
    margin-bottom: 30px;
    opacity: 0;
    /* Initially hidden */
}

/* Staggered animation trigger */
.helix-container.animate-in .service-card-helix {
    animation: helix-in 0.8s ease-out forwards;
}

.helix-container.animate-in .service-card-helix:nth-child(1) {
    animation-delay: 0s;
}

.helix-container.animate-in .service-card-helix:nth-child(2) {
    animation-delay: 0.2s;
    justify-self: start;
}

.helix-container.animate-in .service-card-helix:nth-child(3) {
    animation-delay: 0.4s;
    justify-self: end;
}

.helix-container.animate-in .service-card-helix:nth-child(4) {
    animation-delay: 0.6s;
    justify-self: start;
}

.helix-container.animate-in .service-card-helix:nth-child(5) {
    animation-delay: 0.8s;
    justify-self: end;
}

.helix-container.animate-in .service-card-helix:nth-child(6) {
    animation-delay: 1.0s;
    justify-self: start;
}


.service-card-inner {
    width: 100%;
    height: 100%;
    padding: 30px;
    background: rgba(22, 10, 58, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.service-card-inner:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: var(--secondary-color);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background-image: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card-inner h3 {
    margin-bottom: 10px;
    color: #fff;
}

.service-card-inner p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}


/* 10. ABOUT / FEATURES SECTION
-------------------------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    perspective: 1000px;
    height: 280px;
}

.feature-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.feature-card:hover .feature-card-inner {
    transform: rotateY(180deg);
}

.feature-card-front,
.feature-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    padding: 30px;
    border-radius: 15px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.feature-card-back {
    transform: rotateY(180deg);
    background-image: var(--gradient);
}

.feature-card-back h3,
.feature-card-back p {
    color: #fff;
}

.feature-card-back p {
    font-size: 0.9rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light-transparent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 10px;
}

.feature-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
}


/* 11. INDUSTRY TABS SECTION
-------------------------------------------------- */
.industry-tabs-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.industry-tabs-nav {
    display: flex;
    margin-bottom: 40px;
    background-color: var(--bg-light-transparent);
    border-radius: 50px;
    padding: 8px;
    border: 1px solid var(--border-color);
}

.tab-link {
    background-color: transparent;
    border: none;
    padding: 10px 25px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-link.active,
.tab-link:hover {
    background-image: var(--gradient);
    color: #fff;
}

.industry-tabs-content {
    width: 100%;
    max-width: 800px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
    background: var(--bg-light-transparent);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.tab-content ul {
    margin-top: 20px;
}

.tab-content ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.tab-content ul li i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* 12. TESTIMONIALS SECTION
-------------------------------------------------- */
.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    padding: 40px;
    text-align: center;
    background-color: var(--bg-dark-2);
    border: 1px solid var(--border-color);
    border-radius: 15px;
}

.testimonial-content p {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 30px;
}

.testimonial-author {
    display: inline-flex;
    align-items: center;
}

.author-info h4 {
    margin: 0;
    color: #fff;
}

.author-info span {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.slider-nav button {
    background: var(--bg-light-transparent);
    border: 1px solid var(--border-color);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.slider-nav button:hover {
    background-image: var(--gradient);
}

.slider-nav .prev {
    transform: translateX(-60px);
}

.slider-nav .next {
    transform: translateX(60px);
}

/* 13. ROI CALCULATOR SECTION
-------------------------------------------------- */
.roi-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    background: var(--bg-dark);
    padding: 60px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.roi-results h3 {
    margin-bottom: 20px;
    color: #fff;
}

.results-container {
    background-color: var(--bg-dark-2);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    min-height: 270px;
}

.results-container .placeholder-text {
    color: var(--text-muted);
    text-align: center;
    margin-top: 80px;
}

.roi-results small {
    display: block;
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item strong {
    color: var(--secondary-color);
    font-weight: 500;
}


/* 14. CTA SECTION
-------------------------------------------------- */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background-image: radial-gradient(circle, var(--primary-color) -50%, var(--bg-dark) 70%);
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-section .btn {
    animation: pulse 2s infinite;
}

/* 15. CONTACT PAGE SPECIFIC
-------------------------------------------------- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    background: var(--bg-dark-2);
    padding: 50px;
    border-radius: 20px;
}

.contact-info-panel h3 {
    margin-bottom: 20px;
}

.contact-details-list {
    margin-top: 40px;
}

.contact-details-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-details-list li i {
    font-size: 1.5rem;
    margin-right: 20px;
    color: var(--secondary-color);
    width: 25px;
    text-align: center;
    margin-top: 5px;
}

.contact-details-list li h4 {
    margin: 0 0 5px 0;
    color: #fff;
}

.contact-details-list li p,
.contact-details-list li a {
    margin: 0;
    color: var(--text-muted);
}

.contact-details-list li a:hover {
    color: #fff;
}

/* 16. LEGAL PAGES SPECIFIC
-------------------------------------------------- */
.legal-content {
    background: var(--bg-dark-2);
    padding: 50px;
    border-radius: 15px;
}

.legal-content h2 {
    margin-top: 40px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--secondary-color);
}

.legal-content p {
    color: var(--text-muted);
}

/* 17. MISCELLANEOUS (BACK TO TOP, POPUP)
-------------------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-image: var(--gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(90, 79, 207, 0.4);
    color: #fff;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) ease;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--bg-dark-2);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 450px;
    transform: scale(0.9);
    transition: transform var(--transition-speed) ease;
}

.popup.show .popup-content {
    transform: scale(1);
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

.popup-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

.popup-content h3 {
    margin-bottom: 10px;
    color: #fff;
}

.popup-content p {
    color: var(--text-muted);
    margin-bottom: 0;
}


/* 18. RESPONSIVE DESIGN (MEDIA QUERIES)
-------------------------------------------------- */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-dark-2);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left var(--transition-speed) ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 30px;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: flex;
    }

    .roi-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .roi-content,
    .contact-info-panel {
        text-align: center;
    }

    #roi-form .form-group {
        grid-template-columns: 1fr;
        text-align: left;
    }

    #roi-form input {
        width: 100%;
        justify-self: initial;
    }

    .roi-results {
        margin-top: 40px;
    }

    .contact-details-list {
        max-width: 400px;
        margin: 40px auto 0;
        text-align: left;
    }

    /* Switch to mobile-friendly card stack for helix */
    .helix-wrapper {
        height: auto;
    }

    .helix-path-svg {
        display: none;
    }

    .helix-container {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .service-card-helix {
        justify-self: center !important;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .industry-tabs-nav {
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 15px;
    }

    .tab-link {
        flex-grow: 1;
    }

    .slider-nav .prev {
        transform: translateX(-20px);
    }

    .slider-nav .next {
        transform: translateX(20px);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .footer-contact ul li {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .tab-link span {
        display: none;
    }

    .tab-link {
        padding: 12px 18px;
        font-size: 1.2rem;
    }

    .contact-wrapper,
    .roi-wrapper,
    .legal-content {
        padding: 30px;
    }

    .hero-title {
        font-size: 2.4rem;
    }
}