/* ====================================
   TABLE OF CONTENTS
   ====================================
   1.  GLOBAL STYLES & VARIABLES
   2.  REUSABLE COMPONENTS (Buttons, Containers, etc.)
   3.  NANO-MACHINE ANIMATIONS & KEYFRAMES
   4.  LOADER
   5.  HEADER & NAVIGATION
   6.  FOOTER
   7.  HERO SECTION
   8.  SERVICES SECTION
   9.  ABOUT SECTION
   10. ROI CALCULATOR SECTION
   11. INDUSTRIES SECTION
   12. TESTIMONIALS SECTION
   13. CTA SECTION
   14. LIVE CHAT WIDGET
   15. LEGAL & CONTACT PAGES
   16. POPUP STYLES
   17. RESPONSIVENESS (MEDIA QUERIES)
   ==================================== */

/* ===== 1. GLOBAL STYLES & VARIABLES ===== */
:root {
    --header-height: 5rem;

    /* Colors - Based on a futuristic, nano-tech theme */
    --primary-color: #00aaff;
    /* Bright Cyan */
    --primary-color-alt: #00c6ff;
    --secondary-color: #08e2b9;
    /* Teal/Green Accent */
    --dark-color-1: #0a192f;
    /* Deep Navy */
    --dark-color-2: #112240;
    /* Lighter Navy */
    --dark-color-3: #233554;
    /* Slate */
    --light-color-1: #ccd6f6;
    /* Lightest Slate */
    --light-color-2: #8892b0;
    /* Slate Text */
    --white-color: #ffffff;
    --black-color: #000000;
    --border-color: rgba(0, 170, 255, 0.2);

    /* Fonts */
    --body-font: 'Roboto', sans-serif;
    --heading-font: 'Poppins', sans-serif;

    /* Font Weights */
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;

    /* Transitions & Shadows */
    --transition-fast: 0.2s ease-in-out;
    --transition-smooth: 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    --box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    --box-shadow-light: 0 4px 15px rgba(0, 170, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 16px;
    background-color: var(--dark-color-1);
    color: var(--light-color-2);
    line-height: 1.7;
}

h1,
h2,
h3,
h4 {
    font-family: var(--heading-font);
    font-weight: var(--font-bold);
    color: var(--light-color-1);
    line-height: 1.3;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-color-alt);
}

img {
    max-width: 100%;
    height: auto;
}

.text-center {
    text-align: center;
}

/* ===== 2. REUSABLE COMPONENTS ===== */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-padding {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-header .subtitle {
    color: var(--primary-color);
    font-family: var(--heading-font);
    font-weight: var(--font-medium);
    margin-bottom: 10px;
    display: block;
}

.section-header h2 {
    margin-bottom: 15px;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 5px;
    font-family: var(--heading-font);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-color-1);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color-alt);
    color: var(--primary-color-alt);
}

.btn-secondary:hover {
    background-color: var(--primary-color-alt);
    color: var(--dark-color-1);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* ===== 3. NANO-MACHINE ANIMATIONS & KEYFRAMES ===== */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
}

.animate-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-in[data-animation="fade-in-left"].is-visible {
    transform: translateX(-50px);
}

.animate-in[data-animation="fade-in-right"].is-visible {
    transform: translateX(50px);
}

.animate-in[data-animation="zoom-in"].is-visible {
    transform: scale(0.9);
}

.animate-in.is-visible[data-animation="fade-in-left"],
.animate-in.is-visible[data-animation="fade-in-right"] {
    transform: translateX(0);
}

.animate-in.is-visible[data-animation="zoom-in"] {
    transform: scale(1);
}

/* Nano Build-Up Animation */
.animate-in[data-animation="build-up"] {
    position: relative;
    opacity: 1;
    /* override default */
    transform: none;
    /* override default */
}

.animate-in[data-animation="build-up"]>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease 0.4s, transform 0.5s ease 0.4s;
}

.animate-in[data-animation="build-up"]::before,
.animate-in[data-animation="build-up"]::after {
    content: '';
    position: absolute;
    background: var(--primary-color);
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}

.animate-in[data-animation="build-up"]::before {
    /* Horizontal line */
    left: 0;
    top: 0;
    width: 100%;
    height: 1px;
    transform: scaleX(0);
    transform-origin: left;
}

.animate-in[data-animation="build-up"]::after {
    /* Vertical line */
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
    transform: scaleY(0);
    transform-origin: top;
}

.animate-in[data-animation="build-up"].is-visible::before {
    transform: scaleX(1);
}

.animate-in[data-animation="build-up"].is-visible::after {
    transform: scaleY(1);
    transition-delay: 0.2s;
}

.animate-in[data-animation="build-up"].is-visible>* {
    opacity: 1;
    transform: translateY(0);
}


@keyframes nano-grid {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 40px 40px;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* ===== 4. LOADER ===== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-color-1);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    width: 150px;
    margin-bottom: 20px;
}

.loader-logo img {
    animation: float 2s ease-in-out infinite;
}

.loader-bar {
    width: 150px;
    height: 3px;
    background-color: var(--dark-color-3);
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: var(--primary-color);
    transform-origin: left;
    animation: load 2s linear infinite;
}

@keyframes load {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(100%);
    }
}


/* ===== 5. HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: background-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.header.scrolled {
    background-color: rgba(10, 25, 47, 0.85);
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo img {
    height: 80px;
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    color: var(--light-color-1);
    font-family: var(--heading-font);
    font-weight: var(--font-medium);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-close {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--light-color-1);
    cursor: pointer;
}


/* ===== 6. FOOTER ===== */
.footer {
    background-color: var(--dark-color-2);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.footer-col .logo img {
    height: 80px;
    margin-bottom: 20px;
}

.footer-about-text {
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--dark-color-3);
    color: var(--light-color-1);
    border-radius: 50%;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--dark-color-1);
    transform: translateY(-5px);
}

.footer-col-title {
    color: var(--light-color-1);
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--light-color-2);
}

.footer-links ul li a:hover {
    color: var(--white-color);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--light-color-2);
}

.footer-contact ul li i {
    color: var(--primary-color);
    margin-top: 5px;
}

.footer-contact ul li a {
    color: var(--light-color-2);
}

.footer-contact ul li a:hover {
    color: var(--white-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
}

/* ===== 7. HERO SECTION ===== */
.hero-section {
    padding: 150px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.nano-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 170, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 170, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    animation: nano-grid 4s linear infinite;
}

.hero-bg-shape {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 200px;
    background: var(--dark-color-1);
    border-radius: 50% / 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    z-index: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.hero-content .subtitle {
    color: var(--primary-color);
    font-family: var(--heading-font);
    font-weight: var(--font-medium);
}

.hero-content h1 {
    margin: 10px 0 20px;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-3d-sphere {
    width: 100%;
    height: 500px;
    animation: float 4s ease-in-out infinite;
    z-index: 2;
}

.hero-image-bg {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 170, 255, 0.2) 0%, rgba(10, 25, 47, 0) 70%);
    z-index: 1;
}


/* ===== 8. SERVICES SECTION ===== */
.services-section {
    position: relative;
    background-color: var(--dark-color-1);
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--dark-color-2);
    padding: 40px 30px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-light);
    border-color: var(--primary-color);
}

.service-card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    margin-bottom: 25px;
}

.service-card-link {
    font-family: var(--heading-font);
    font-weight: var(--font-medium);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-card-link i {
    transition: var(--transition-fast);
}

.service-card:hover .service-card-link i {
    transform: translateX(5px);
}

/* ===== 9. ABOUT SECTION ===== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    border-radius: 5px;
    position: relative;
    z-index: 2;
}

.about-image-bg {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    z-index: 1;
    transition: var(--transition-smooth);
}

.about-image-wrapper:hover .about-image-bg {
    transform: translate(10px, 10px);
}

.about-experience-badge {
    position: absolute;
    bottom: 20px;
    right: -30px;
    background-color: var(--dark-color-3);
    border: 2px solid var(--primary-color);
    width: 130px;
    height: 130px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 3;
    box-shadow: var(--box-shadow);
}

.badge-number {
    font-size: 2.5rem;
    font-weight: var(--font-extrabold);
    color: var(--primary-color);
    line-height: 1;
}

.badge-text {
    font-size: 0.9rem;
    color: var(--light-color-1);
}

.about-content p {
    margin-bottom: 20px;
}

.about-features-list {
    margin-bottom: 30px;
}

.about-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.about-features-list i {
    color: var(--secondary-color);
}

/* ===== 10. ROI CALCULATOR SECTION ===== */
.roi-calculator-section {
    background-color: var(--dark-color-2);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    background-color: var(--dark-color-1);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
}

.calculator-form .form-group {
    margin-bottom: 25px;
}

.calculator-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: var(--font-medium);
    color: var(--light-color-1);
}

.calculator-form input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: var(--dark-color-3);
    outline: none;
    border-radius: 5px;
}

.calculator-form input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
}

.calculator-form input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
}

.range-value {
    display: block;
    text-align: right;
    font-weight: var(--font-bold);
    color: var(--secondary-color);
    margin-top: 5px;
}

.calculator-results {
    background-color: var(--dark-color-2);
    padding: 30px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

.calculator-results h4 {
    margin-bottom: 20px;
    text-align: center;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    color: var(--light-color-2);
}

.result-value {
    font-weight: var(--font-bold);
    color: var(--light-color-1);
}

.total-roi .result-value {
    color: var(--secondary-color);
    font-size: 1.5rem;
}


/* ===== 11. INDUSTRIES SECTION ===== */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.industry-card {
    background: var(--dark-color-2);
    padding: 30px;
    border-radius: 5px;
    border-bottom: 3px solid var(--dark-color-3);
    text-align: center;
    transition: var(--transition-smooth);
}

.industry-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--secondary-color);
}

.industry-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: inline-block;
    line-height: 1;
}

.industry-card h3 {
    margin-bottom: 10px;
}


/* ===== 12. TESTIMONIALS SECTION ===== */
.testimonials-section {
    background-color: var(--dark-color-2);
}

.testimonial-slider-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: var(--dark-color-1);
    padding: 30px;
    border-radius: 5px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--box-shadow-light);
}

.testimonial-quote-icon {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.5;
    margin-bottom: 15px;
}

.testimonial-text {
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.author-info h4 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--light-color-2);
}

/* ===== 13. CTA SECTION ===== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.9)), url('https://images.unsplash.com/photo-1517048676732-d65bc937f952?q=80&w=1740&auto=format&fit=crop') no-repeat center center/cover;
}

.cta-content p {
    max-width: 600px;
    margin: 20px auto 30px;
    font-size: 1.1rem;
}

/* ===== 14. LIVE CHAT WIDGET ===== */
.live-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background: var(--dark-color-2);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    z-index: 1001;
    overflow: hidden;
    transition: var(--transition-smooth);
    transform: translateY(calc(100% - 60px));
}

.live-chat-widget.open {
    transform: translateY(0);
}

.chat-header {
    background: var(--primary-color);
    color: var(--dark-color-1);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: var(--heading-font);
    font-weight: var(--font-semibold);
    font-size: 1.2rem;
}

.chat-close {
    margin-left: auto;
    cursor: pointer;
    font-size: 1.5rem;
}

.chat-body {
    height: 350px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
}

.message {
    margin-bottom: 15px;
    display: flex;
}

.message p {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    line-height: 1.4;
}

.message.received p {
    background: var(--dark-color-3);
    border-bottom-left-radius: 2px;
}

.message.sent {
    justify-content: flex-end;
}

.message.sent p {
    background: var(--primary-color);
    color: var(--dark-color-1);
    border-bottom-right-radius: 2px;
}

.chat-input {
    display: flex;
    border-top: 1px solid var(--border-color);
}

.chat-input input {
    flex-grow: 1;
    background: transparent;
    border: none;
    padding: 15px;
    color: var(--white-color);
    font-size: 1rem;
}

.chat-input input:focus {
    outline: none;
}

.chat-input button {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    padding: 0 20px;
    cursor: pointer;
}

/* ===== 15. LEGAL & CONTACT PAGES ===== */
.page-header-section {
    padding: 150px 0 120px;
    background-color: var(--dark-color-2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header-section .hero-bg-shape {
    background-color: var(--dark-color-1);
}

.page-header-desc {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 15px auto 30px;
}

.breadcrumbs a {
    color: var(--light-color-2);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs span {
    color: var(--light-color-1);
}

.breadcrumbs i {
    font-size: 0.8rem;
    margin: 0 10px;
}

/* Contact Page */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background-color: var(--dark-color-2);
    padding: 50px;
    border-radius: 10px;
    margin-top: -80px;
    position: relative;
    z-index: 5;
}

.contact-info-panel h3 {
    margin-bottom: 15px;
}

.contact-info-panel p {
    margin-bottom: 30px;
}

.contact-details-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-details-list i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-details-list h4 {
    margin-bottom: 5px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: var(--font-medium);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px;
    background-color: var(--dark-color-1);
    border: 1px solid var(--dark-color-3);
    border-radius: 5px;
    color: var(--light-color-1);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea {
    resize: vertical;
}

/* Legal Pages */
.legal-content-wrapper {
    background-color: var(--dark-color-1);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--dark-color-2);
    padding: 40px;
    border-radius: 5px;
}

.legal-content h2 {
    margin: 40px 0 15px;
}

.legal-content p {
    margin-bottom: 15px;
}


/* ===== 16. POPUP STYLES ===== */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1002;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--dark-color-2);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    border: 1px solid var(--primary-color);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup.show .popup-content {
    transform: scale(1);
}

.popup-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.popup-content h3 {
    margin-bottom: 15px;
}

.popup-content p {
    margin-bottom: 30px;
}


/* ===== 17. RESPONSIVENESS (MEDIA QUERIES) ===== */

/* Tablets and small desktops */
@media (max-width: 992px) {
    :root {
        --header-height: 4.5rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 60%;
        height: 100vh;
        background-color: var(--dark-color-2);
        box-shadow: var(--box-shadow);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        transition: right var(--transition-smooth);
    }

    .nav-menu.show-menu {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 30px;
        width: 100%;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .nav-close {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        font-size: 2rem;
        color: var(--light-color-1);
        background: none;
        border: none;
        cursor: pointer;
    }

    .nav-toggle {
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 30px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image-wrapper {
        grid-row: 1;
        margin-bottom: 40px;
    }

    .about-container,
    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        margin-bottom: 40px;
    }

    .testimonial-slider-wrapper {
        grid-template-columns: 1fr 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    .hero-section {
        padding-top: 120px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .services-grid,
    .industries-grid,
    .testimonial-slider-wrapper {
        grid-template-columns: 1fr;
    }

    .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;
    }

    .contact-wrapper {
        padding: 30px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .live-chat-widget {
        width: 100%;
        max-width: calc(100% - 40px);
    }
}

@media (max-width: 480px) {
    .nav-menu {
        width: 80%;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }

    .about-experience-badge {
        width: 110px;
        height: 110px;
        right: -15px;
    }

    .badge-number {
        font-size: 2rem;
    }

    .calculator-wrapper {
        padding: 20px;
    }
}