/*
    CRYSTAL MACHINA THEME
    ---
    Aesthetic: 3D fractal glass, rotating mechanical parts, holographic reflection.
    Colors: Sapphire Blue, Fluorite Green, Night.
*/

/* ------------------- */
/* 1. ROOT & VARIABLES */
/* ------------------- */
:root {
    --sapphire-blue: #009FFD;
    --fluorite-green: #00FFB2;
    --night-black: #0D0D0D;
    --off-black: #1a1a1a;
    --light-gray: #cccccc;
    --medium-gray: #888888;
    --white: #ffffff;

    --font-primary: 'Orbitron', sans-serif;
    --font-secondary: 'Roboto', sans-serif;

    --header-height: 80px;
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s ease;
}

/* ------------------- */
/* 2. GLOBAL RESET & BASE STYLES */
/* ------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--night-black);
    color: var(--light-gray);
    font-family: var(--font-secondary);
    line-height: 1.7;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    color: var(--white);
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(0, 255, 178, 0.1);
}

a {
    color: var(--fluorite-green);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--sapphire-blue);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--sapphire-blue), var(--fluorite-green));
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--medium-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ------------------- */
/* 3. BUTTONS & CTAs   */
/* ------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 5px;
    font-family: var(--font-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.btn span {
    z-index: 2;
}

.btn i {
    z-index: 2;
    transition: transform var(--transition-fast);
}

.btn:hover i {
    transform: translateX(5px);
}

.btn-primary {
    background: linear-gradient(90deg, var(--sapphire-blue), var(--fluorite-green));
    color: var(--night-black);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left var(--transition-slow);
    z-index: 1;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background-color: transparent;
    color: var(--fluorite-green);
    border-color: var(--fluorite-green);
}

.btn-secondary:hover {
    background-color: var(--fluorite-green);
    color: var(--night-black);
    box-shadow: 0 0 15px var(--fluorite-green);
}

.btn-tertiary {
    background: transparent;
    color: var(--white);
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-tertiary:hover {
    color: var(--fluorite-green);
}

/* ------------------- */
/* 4. HEADER & NAVIGATION */
/* ------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: background-color var(--transition-fast), backdrop-filter var(--transition-fast), height var(--transition-fast);
}

.header.scrolled {
    background-color: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    height: 70px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 60px;
    filter: invert(1);
    transition: height var(--transition-fast);
}


.logo-text {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.nav-main {
    display: flex;
}

.nav-list {
    display: flex;
    gap: 35px;
}

.nav-link {
    color: var(--light-gray);
    font-family: var(--font-primary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    padding: 10px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--fluorite-green);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.header-cta {
    padding: 10px 20px;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1001;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    position: absolute;
    left: 0;
    transition: transform var(--transition-fast), top var(--transition-fast), bottom var(--transition-fast);
    border-radius: 2px;
}

.bar:nth-child(1) {
    top: 0;
}

.bar:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.bar:nth-child(3) {
    bottom: 0;
}

.mobile-toggle.active .bar:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-toggle.active .bar:nth-child(2) {
    transform: scaleX(0);
}

.mobile-toggle.active .bar:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
}

.mobile-nav.active {
    transform: translateX(0);
    display: flex;
}

.mobile-nav ul {
    text-align: center;
}

.mobile-nav li {
    margin-bottom: 2rem;
}

.mobile-nav a {
    font-size: 1.5rem;
    font-family: var(--font-primary);
    color: var(--white);
}

/* ------------------- */
/* 5. HERO SECTION     */
/* ------------------- */
.hero-section {
    height: 100vh;
    min-height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(13, 13, 13, 0.5) 0%, var(--night-black) 70%);
    z-index: 0;
}

.crystal-engine {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vmin;
    height: 60vmin;
    min-width: 300px;
    min-height: 300px;
    max-width: 600px;
    max-height: 600px;
    filter: blur(5px) opacity(0.3);
}

.crystal-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15%;
    height: 15%;
    background: radial-gradient(circle, var(--white), var(--fluorite-green), var(--sapphire-blue));
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px var(--fluorite-green), 0 0 40px var(--sapphire-blue), inset 0 0 10px var(--white);
    animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 20px var(--fluorite-green), 0 0 40px var(--sapphire-blue), inset 0 0 10px var(--white);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 30px var(--fluorite-green), 0 0 60px var(--sapphire-blue), inset 0 0 15px var(--white);
    }
}

.ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid;
    transform-style: preserve-3d;
}

.ring-1 {
    border-color: rgba(0, 255, 178, 0.2);
    animation: rotate-x 10s infinite linear;
}

.ring-2 {
    border-color: rgba(0, 159, 253, 0.3);
    animation: rotate-y 12s infinite linear;
    transform: scale(0.8);
}

.ring-3 {
    border-color: rgba(0, 255, 178, 0.4);
    animation: rotate-x 15s infinite linear reverse;
    transform: scale(0.6);
}

.ring-4 {
    border-color: rgba(0, 159, 253, 0.5);
    animation: rotate-y 18s infinite linear reverse;
    transform: scale(0.4);
}

@keyframes rotate-x {
    from {
        transform: scale(var(--scale, 1)) rotateX(0deg) rotateY(20deg);
    }

    to {
        transform: scale(var(--scale, 1)) rotateX(360deg) rotateY(20deg);
    }
}

@keyframes rotate-y {
    from {
        transform: scale(var(--scale, 1)) rotateY(0deg) rotateX(20deg);
    }

    to {
        transform: scale(var(--scale, 1)) rotateY(360deg) rotateX(20deg);
    }
}

.ring-2 {
    --scale: 0.8;
}

.ring-3 {
    --scale: 0.6;
}

.ring-4 {
    --scale: 0.4;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--white), var(--light-gray));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--light-gray);
    margin-bottom: 2rem;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn-up 1s ease forwards;
}

.hero-title.animate-on-load {
    animation-delay: 0.2s;
}

.hero-subtitle.animate-on-load {
    animation-delay: 0.4s;
}

.hero-cta-group.animate-on-load {
    animation-delay: 0.6s;
}

@keyframes fadeIn-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.mouse-icon {
    width: 25px;
    height: 40px;
    border: 2px solid var(--fluorite-green);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--fluorite-green);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite ease-in-out;
}

@keyframes scroll-wheel {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* ------------------- */
/* 6. SERVICES SECTION */
/* ------------------- */
.services-section {
    background-color: var(--off-black);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: transparent;
    perspective: 1000px;
    min-height: 250px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(0, 255, 178, 0.2);
    border-radius: 10px;
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(5px);
}

.service-card-front {
    z-index: 2;
}

.service-card-back {
    background: linear-gradient(135deg, var(--sapphire-blue), var(--fluorite-green));
    color: var(--night-black);
    transform: rotateY(180deg);
    z-index: 1;
}

.service-card-back h3,
.service-card-back p {
    color: var(--night-black);
}

.service-card-back .btn-tertiary {
    color: var(--night-black);
    border: 1px solid var(--night-black);
    border-radius: 5px;
}

.service-card-back .btn-tertiary:hover {
    background: var(--night-black);
    color: var(--white);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--fluorite-green);
    text-shadow: 0 0 15px var(--fluorite-green);
}

.service-title {
    font-size: 1.5rem;
}

/* ------------------- */
/* 7. ABOUT SECTION    */
/* ------------------- */
.about-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.about-image-column {
    position: relative;
}

.about-image-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.about-image-container img {
    border-radius: 10px;
}

.about-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 159, 253, 0.3), rgba(0, 255, 178, 0.3));
    mix-blend-mode: hard-light;
}

.about-image-column::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--sapphire-blue);
    border-radius: 10px;
    z-index: -1;
    transition: transform var(--transition-slow);
}

.about-image-column:hover::before {
    transform: translate(10px, 10px);
}

.about-text-column .section-header {
    text-align: left;
    margin-bottom: 30px;
}

.about-text-column .section-title::after {
    left: 0;
    transform: translateX(0);
}

.about-text-column p {
    margin-bottom: 1rem;
}

.about-features {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.about-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-primary);
}

.about-features i {
    color: var(--fluorite-green);
    font-size: 1.2rem;
}

/* ------------------------ */
/* 8. INDUSTRY FOCUS SECTION */
/* ------------------------ */
.industry-section {
    background-color: var(--off-black);
}

.industry-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.tab-link {
    background: transparent;
    color: var(--light-gray);
    border: 1px solid var(--medium-gray);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-primary);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-link:hover,
.tab-link.active {
    background: var(--fluorite-green);
    color: var(--night-black);
    border-color: var(--fluorite-green);
    box-shadow: 0 0 15px var(--fluorite-green);
}

.tab-content {
    display: none;
    padding: 30px;
    background: rgba(13, 13, 13, 0.8);
    border: 1px solid rgba(0, 255, 178, 0.2);
    border-radius: 10px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.tab-content.active {
    display: block;
    animation: fade-in 0.5s ease;
}

.tab-content h3 {
    font-size: 1.8rem;
    color: var(--fluorite-green);
    margin-bottom: 1rem;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------------------- */
/* 9. TESTIMONIALS SECTION */
/* ---------------------- */
.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    display: flex;
    overflow: hidden;
}

.testimonial-slide {
    min-width: 100%;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(0, 159, 253, 0.2);
    border-radius: 10px;
    background: rgba(26, 26, 26, 0.5);
    transition: transform var(--transition-slow);
}

.testimonial-content p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.testimonial-author .author-name {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--white);
    display: block;
}

.testimonial-author .author-title {
    color: var(--fluorite-green);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 110%;
    left: -5%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--medium-gray);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.slider-btn:hover {
    background: var(--sapphire-blue);
    border-color: var(--sapphire-blue);
    box-shadow: 0 0 15px var(--sapphire-blue);
}

/* ---------------------------- */
/* 10. ROI CALCULATOR SECTION   */
/* ---------------------------- */
.roi-calculator-section {
    background-color: var(--off-black);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: rgba(13, 13, 13, 0.8);
    padding: 40px;
    border: 1px solid rgba(0, 255, 178, 0.2);
    border-radius: 10px;
    max-width: 900px;
    margin: 0 auto;
}

.calculator-form .form-group {
    margin-bottom: 20px;
}

.calculator-form label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
}

.calculator-form input {
    width: 100%;
    padding: 12px;
    background: var(--off-black);
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    color: var(--white);
    font-size: 1rem;
}

.calculator-form button {
    width: 100%;
    margin-top: 10px;
}

.calculator-results {
    border-left: 1px solid rgba(0, 255, 178, 0.2);
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calculator-results h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--fluorite-green);
}

.result-item {
    margin-bottom: 1.5rem;
}

.result-item h4 {
    font-size: 1rem;
    color: var(--light-gray);
    margin-bottom: 5px;
}

.result-item p {
    font-size: 2.5rem;
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--white);
}

.calculator-results .disclaimer {
    font-size: 0.8rem;
    color: var(--medium-gray);
    margin-top: auto;
}

/* ------------------- */
/* 11. FOOTER          */
/* ------------------- */
.footer {
    background-color: var(--off-black);
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(13, 13, 13, 0.9) 0%, var(--off-black) 100%);
    opacity: 0.5;
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0, 255, 178, 0.2);
}

.footer-column .footer-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-logo-link img {
    height: 60px;
    filter: invert(1);
}

.footer-about p {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--medium-gray);
    border-radius: 50%;
    color: var(--light-gray);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--fluorite-green);
    color: var(--night-black);
    border-color: var(--fluorite-green);
    transform: translateY(-3px);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--light-gray);
    position: relative;
}

.footer-links ul li a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
    color: var(--sapphire-blue);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.footer-links ul li a:hover::before {
    opacity: 1;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--light-gray);
}

.contact-list i {
    color: var(--sapphire-blue);
    margin-top: 5px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--medium-gray);
}

/* ------------------- */
/* 12. SUBPAGES        */
/* ------------------- */
.page-header {
    padding: 150px 0 80px;
    text-align: center;
    background: linear-gradient(rgba(13, 13, 13, 0.8), rgba(13, 13, 13, 0.8)), url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.breadcrumbs a {
    color: var(--light-gray);
}

.breadcrumbs i {
    margin: 0 10px;
    font-size: 0.8rem;
}

.breadcrumbs span {
    color: var(--fluorite-green);
}

/* CONTACT PAGE */
.contact-section {
    background-color: var(--off-black);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    background: rgba(13, 13, 13, 0.8);
    border: 1px solid rgba(0, 159, 253, 0.2);
    border-radius: 10px;
}

.contact-info-panel {
    padding: 40px;
    background: var(--off-black);
    border-radius: 10px 0 0 10px;
}

.panel-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info-panel>p {
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.method-icon {
    font-size: 1.5rem;
    color: var(--sapphire-blue);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--sapphire-blue);
    border-radius: 50%;
}

.method-details h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--white);
}

.contact-form-wrapper {
    padding: 40px;
}

.contact-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form .form-group {
    flex: 1;
}

.form-group.full-width {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    background: var(--off-black);
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-secondary);
    transition: border-color var(--transition-fast);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--fluorite-green);
    box-shadow: 0 0 10px rgba(0, 255, 178, 0.5);
}

/* LEGAL PAGES */
.legal-content {
    background-color: var(--off-black);
}

.legal-content .content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(13, 13, 13, 0.8);
    padding: 40px;
    border: 1px solid rgba(0, 255, 178, 0.1);
    border-radius: 10px;
}

.legal-content h2 {
    font-size: 1.8rem;
    color: var(--fluorite-green);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

/* ------------------- */
/* 13. POPUP & WIDGETS */
/* ------------------- */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--off-black);
    padding: 40px;
    border-radius: 10px;
    z-index: 1002;
    text-align: center;
    width: 90%;
    max-width: 400px;
    border: 1px solid var(--fluorite-green);
    box-shadow: 0 0 30px rgba(0, 255, 178, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast);
}

.popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content .fa-check-circle {
    font-size: 4rem;
    color: var(--fluorite-green);
    margin-bottom: 1rem;
}

.popup-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.popup-content p {
    margin-bottom: 1.5rem;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* CHAT WIDGET */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 998;
}

.chat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--sapphire-blue), var(--fluorite-green));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--night-black);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 255, 178, 0.4);
    transition: transform var(--transition-fast);
}

.chat-icon:hover {
    transform: scale(1.1);
}

.chat-icon .fa-times {
    display: none;
}

.chat-widget.open .fa-comments {
    display: none;
}

.chat-widget.open .fa-times {
    display: block;
}

.chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: var(--off-black);
    border-radius: 10px;
    border: 1px solid var(--medium-gray);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    transform-origin: bottom right;
}

.chat-widget.open .chat-box {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    background: var(--night-black);
    padding: 20px;
}

.chat-header h3 {
    font-size: 1.2rem;
}

.chat-header p {
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.chat-body {
    padding: 20px;
    font-size: 0.95rem;
}

.chat-footer {
    padding: 20px;
    border-top: 1px solid var(--medium-gray);
}

.chat-footer .btn {
    width: 100%;
}

/* ------------------- */
/* 14. ANIMATIONS      */
/* ------------------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------- */
/* 15. RESPONSIVENESS  */
/* ------------------- */

/* Tablets and below */
@media (max-width: 992px) {

    .nav-main,
    .header-cta {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .about-content-wrapper,
    .calculator-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image-column {
        max-width: 500px;
        margin: 0 auto;
    }

    .about-text-column .section-header {
        text-align: center;
    }

    .about-text-column .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .calculator-results {
        border-left: none;
        border-top: 1px solid rgba(0, 255, 178, 0.2);
        padding-left: 0;
        padding-top: 40px;
        text-align: center;
    }

    .slider-controls {
        display: none;
        /* Simple fallback for touch devices */
    }

    .testimonial-slider {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
    }

    .testimonial-slide {
        scroll-snap-align: center;
    }

    .contact-info-panel {
        border-radius: 10px 10px 0 0;
    }
}

/* Mobile phones */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .header.scrolled {
        height: 60px;
    }

    .logo {
        height: 35px;
    }

    .header.scrolled .logo {
        height: 30px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta-group .btn {
        width: 80%;
        max-width: 300px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }

    .contact-form .form-group {
        margin-bottom: 20px;
    }

    .footer-main {
        text-align: center;
    }

    .footer-about .footer-logo-link {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .contact-list li {
        justify-content: center;
    }

    .footer-links ul li a::before {
        display: none;
        /* Simplify for mobile */
    }
}