/*
================================================
TABLE OF CONTENTS
================================================
1.  GLOBAL STYLES & VARIABLES
2.  HELPER CLASSES
3.  HEADER & NAVIGATION
4.  MOBILE NAVIGATION
5.  FOOTER
6.  BUTTONS & FORMS
7.  HERO SECTION (INDEX)
8.  SERVICES SECTION (INDEX)
9.  ABOUT US SECTION (INDEX)
10. STATS SECTION (INDEX)
11. TESTIMONIALS SECTION (INDEX)
12. INDUSTRIES SECTION (INDEX)
13. CALCULATOR SECTION (INDEX)
14. CTA SECTION (INDEX)
15. PAGE-SPECIFIC STYLES (SUBPAGES)
16. INTERACTIVE ELEMENTS (POPUP, CHAT WIDGET)
17. ANIMATIONS & KEYFRAMES
18. RESPONSIVE DESIGN (MEDIA QUERIES)
================================================
*/

/* 1. GLOBAL STYLES & VARIABLES
------------------------------------------------*/
:root {
    --primary-font: 'Poppins', sans-serif;
    --color-bg-dark: #0a0a1a;
    --color-bg-light: #111122;
    --color-primary: #8e2de2;
    --color-secondary: #4a00e0;
    --color-accent: #00c6ff;
    --color-text-light: #f0f0f0;
    --color-text-medium: #a9a9d4;
    --color-text-dark: #333;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-glass: rgba(255, 255, 255, 0.05);
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.2);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.4);
    --header-height: 80px;
    --border-radius: 12px;
    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.4s ease-in-out;
    --transition-slow: 0.6s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--primary-font);
    background-color: var(--color-bg-dark);
    color: var(--color-text-medium);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. HELPER CLASSES
------------------------------------------------*/
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4 {
    color: var(--color-text-light);
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

ul {
    list-style-type: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .subtitle {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
    position: relative;
}

.section-header .subtitle::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background: var(--color-accent);
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    max-width: 600px;
    margin: 15px auto 0;
}

.highlight {
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-text-flow 5s ease infinite;
}

/* 3. HEADER & NAVIGATION
------------------------------------------------*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background-color: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-medium);
}

.header.scrolled {
    background-color: rgba(10, 10, 26, 0.95);
    box-shadow: var(--shadow-medium);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 45px;
    transition: transform var(--transition-medium);
}

.logo-link:hover .logo {
    transform: rotate(10deg) scale(1.1);
}

.nav-list {
    display: flex;
    gap: 35px;
}

.nav-link {
    color: var(--color-text-light);
    font-weight: 500;
    position: relative;
    padding: 10px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    transition: width var(--transition-medium);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1001;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-text-light);
    border-radius: 3px;
    position: absolute;
    transition: all var(--transition-medium);
}

.bar-top {
    top: 0;
}

.bar-middle {
    top: 50%;
    transform: translateY(-50%);
}

.bar-bottom {
    bottom: 0;
}

body.mobile-nav-active .bar-top {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

body.mobile-nav-active .bar-middle {
    opacity: 0;
}

body.mobile-nav-active .bar-bottom {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}


/* 4. MOBILE NAVIGATION
------------------------------------------------*/
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--color-bg-light);
    z-index: 999;
    transition: right var(--transition-medium);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-shadow: var(--shadow-medium);
}

body.mobile-nav-active .mobile-nav {
    right: 0;
}

.mobile-nav nav ul {
    text-align: center;
}

.mobile-nav nav ul li {
    margin: 25px 0;
}

.mobile-nav nav ul a {
    color: var(--color-text-light);
    font-size: 1.5rem;
    font-weight: 500;
}

.mobile-nav nav ul .btn {
    margin-top: 30px;
}

/* 5. FOOTER
------------------------------------------------*/
.footer {
    background-color: var(--color-bg-light);
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

.footer-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.footer-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.footer-shape.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--color-secondary);
    bottom: -150px;
    left: -100px;
}

.footer-shape.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--color-accent);
    top: -50px;
    right: -80px;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--color-border);
}

.footer-col-title {
    margin-bottom: 20px;
    color: var(--color-text-light);
    font-size: 1.2rem;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.footer-about-text {
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--color-glass);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text-light);
    transition: all var(--transition-medium);
}

.social-link:hover {
    background: var(--color-primary);
    transform: translateY(-5px);
    color: var(--color-text-light);
}

.footer-links ul li:not(:last-child) {
    margin-bottom: 10px;
}

.footer-links ul a {
    color: var(--color-text-medium);
}

.footer-links ul a:hover {
    color: var(--color-text-light);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-info li:not(:last-child) {
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--color-primary);
    margin-top: 5px;
}

.contact-info a {
    color: var(--color-text-medium);
}

.contact-info a:hover {
    color: var(--color-text-light);
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
}

/* 6. BUTTONS & FORMS
------------------------------------------------*/
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all var(--transition-medium);
}

.btn-primary {
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    color: var(--color-text-light);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-medium);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(142, 45, 226, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-text-light);
    transform: translateY(-3px);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-text-light);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    background: var(--color-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text-light);
    font-size: 1rem;
    font-family: var(--primary-font);
    transition: border-color var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-medium);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group.full-width {
    width: 100%;
}

/* 7. HERO SECTION (INDEX)
------------------------------------------------*/
.hero {
    padding: 180px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    margin-bottom: 20px;
    font-size: 4rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-visual {
    perspective: 1000px;
}

.hero-3d-card {
    width: 300px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform var(--transition-slow);
    cursor: pointer;
}

.hero-3d-card:hover {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: var(--color-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-shadow: var(--shadow-medium);
}

.card-face.back {
    transform: rotateY(180deg);
}

.card-face i {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.card-face h3 {
    margin-bottom: 10px;
}

/* Hero Background Shapes */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--color-secondary), var(--color-primary));
    opacity: 0.15;
    animation: float 15s ease-in-out infinite;
}

.hero-shape.shape-1 {
    width: 500px;
    height: 500px;
    top: -100px;
    left: -150px;
}

.hero-shape.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    right: -100px;
    animation-delay: 5s;
    animation-direction: reverse;
}

.hero-shape.shape-3 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 20%;
    animation-delay: 2s;
}

/* 8. SERVICES SECTION (INDEX)
------------------------------------------------*/
.services-section {
    padding: 100px 0;
    background-color: var(--color-bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--color-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    transition: all var(--transition-medium);
    transform-style: preserve-3d;
}

.service-card:hover {
    transform: translateY(-15px) rotateX(10deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    background: linear-gradient(145deg, rgba(74, 0, 224, 0.2), rgba(142, 45, 226, 0.2));
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 30px;
    background: linear-gradient(145deg, var(--color-secondary), var(--color-primary));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--color-text-light);
    transition: transform var(--transition-medium);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(15deg);
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-link {
    display: inline-block;
    margin-top: 20px;
    font-weight: 600;
    color: var(--color-text-light);
}

.service-link i {
    transition: transform var(--transition-fast);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* 9. ABOUT US SECTION (INDEX)
------------------------------------------------*/
.about-section {
    padding: 100px 0;
}

.about-section .container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    perspective: 1500px;
}

.about-image {
    width: 100%;
    padding-top: 110%;
    /* Aspect ratio */
    background: url('https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-4.0.3&q=85&fm=jpg&crop=entropy&cs=srgb&w=600') no-repeat center center/cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    transform: rotateY(-20deg) rotateX(10deg);
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.about-section .container:hover .about-image {
    transform: rotateY(0) rotateX(0);
}

.about-content .subtitle {
    text-align: left;
}

.about-content .subtitle::after {
    left: 25px;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 30px;
}

.about-features {
    margin-bottom: 40px;
}

.about-features li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.about-features li:not(:last-child) {
    margin-bottom: 15px;
}

.about-features i {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-top: 4px;
}

/* 10. STATS SECTION (INDEX)
------------------------------------------------*/
.stats-section {
    padding: 80px 0;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
}

.stats-section .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
    color: var(--color-text-light);
}

.stat-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
}

.stat-number::after {
    content: '%';
}

.stat-item:nth-child(2) .stat-number::after {
    content: '+';
}

.stat-item:nth-child(3) .stat-number::after {
    content: '%';
}

.stat-item:nth-child(4) .stat-number::after {
    content: '+';
}

.stat-item p {
    font-weight: 500;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}


/* 11. TESTIMONIALS SECTION (INDEX)
------------------------------------------------*/
.testimonials-section {
    padding: 100px 0;
    background-color: var(--color-bg-light);
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform var(--transition-slow);
}

.testimonial-slide {
    min-width: 100%;
    padding: 40px;
    background: var(--color-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    text-align: center;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity var(--transition-slow);
}

.testimonial-slide.active {
    opacity: 1;
    position: relative;
}

.testimonial-quote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
}

.testimonial-quote::before,
.testimonial-quote::after {
    content: '"';
    font-size: 4rem;
    color: var(--color-primary);
    position: absolute;
    opacity: 0.3;
}

.testimonial-quote::before {
    top: -20px;
    left: -10px;
}

.testimonial-quote::after {
    bottom: -40px;
    right: -10px;
}

.testimonial-author {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.author-info h4 {
    color: var(--color-text-light);
}

.author-info span {
    color: var(--color-primary);
    font-weight: 500;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.slider-btn {
    background: var(--color-glass);
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slider-btn:hover {
    background: var(--color-primary);
}


/* 12. INDUSTRIES SECTION (INDEX)
------------------------------------------------*/
.industries-section {
    padding: 100px 0;
}

.industries-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    background: var(--color-bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
}

.industry-tabs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.industry-tab {
    width: 100%;
    padding: 15px 20px;
    background: var(--color-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text-medium);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all var(--transition-medium);
}

.industry-tab:hover {
    background: rgba(142, 45, 226, 0.2);
    color: var(--color-text-light);
}

.industry-tab.active {
    background: var(--color-primary);
    color: var(--color-text-light);
}

.industry-tab i {
    width: 20px;
    text-align: center;
}

.industry-content-wrapper {
    position: relative;
    min-height: 250px;
}

.industry-content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease;
}

.industry-content.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.industry-content h3 {
    margin-bottom: 15px;
}

.industry-content p {
    margin-bottom: 25px;
}


/* 13. CALCULATOR SECTION (INDEX)
------------------------------------------------*/
.calculator-section {
    padding: 100px 0;
    background-color: var(--color-bg-light);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    background: var(--color-glass);
    padding: 40px;
    border-radius: var(--border-radius);
    align-items: center;
}

.calc-step {
    margin-bottom: 30px;
}

.calc-step h4 {
    margin-bottom: 15px;
}

.calc-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.calc-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.calc-options label:hover {
    background: var(--color-primary);
    color: var(--color-text-light);
}

.calc-options input {
    display: none;
}

.calc-options input:checked+span {
    background-color: var(--color-primary);
}

.calculator-wrapper form label {
    color: var(--color-text-medium);
}

.calculator-wrapper form input[type="checkbox"]:checked~label,
.calculator-wrapper form input[type="radio"]:checked~label {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-color: var(--color-primary);
}


#serviceCalculator button {
    margin-top: 10px;
}

.calculator-result {
    text-align: center;
    padding: 30px;
    border-left: 1px solid var(--color-border);
}

.calculator-result h3 {
    color: var(--color-text-medium);
    font-weight: 400;
}

#estimateResult {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
    margin: 10px 0;
}

.calculator-result small {
    font-style: italic;
}


/* 14. CTA SECTION (INDEX)
------------------------------------------------*/
.cta-section {
    padding: 80px 0;
    text-align: center;
    background: url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?ixlib=rb-4.0.3&q=85&fm=jpg&crop=entropy&cs=srgb&w=1200') no-repeat center center/cover;
    position: relative;
    background-attachment: fixed;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 26, 0.85);
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.cta-content p {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

/* 15. PAGE-SPECIFIC STYLES (SUBPAGES)
------------------------------------------------*/
body.subpage main {
    padding-top: var(--header-height);
}

.page-header {
    padding: 80px 0;
    text-align: center;
    background-color: var(--color-bg-light);
}

.page-header h1 {
    margin-bottom: 15px;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.breadcrumbs a {
    color: var(--color-text-medium);
}

.breadcrumbs span {
    color: var(--color-text-light);
}

.breadcrumbs i {
    font-size: 0.8rem;
}

.page-header .section-description {
    max-width: 700px;
    margin: 20px auto 0;
    font-size: 1.1rem;
}

.page-content,
.contact-section {
    padding: 100px 0;
}

/* Contact Page Styles */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--color-bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.contact-info-panel {
    padding: 50px;
    background: linear-gradient(-45deg, var(--color-secondary), var(--color-primary));
}

.contact-info-panel h2 {
    color: var(--color-text-light);
}

.contact-info-panel p {
    color: rgba(255, 255, 255, 0.9);
    margin: 15px 0 40px;
}

.contact-method {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
}

.method-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: #fff;
}

.method-details h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #fff;
}

.method-details p,
.method-details a {
    color: rgba(255, 255, 255, 0.9);
}

.method-details a:hover {
    color: #fff;
}

.contact-form-wrapper {
    padding: 50px;
}

.contact-form button {
    width: 100%;
}


/* Legal Pages (Disclaimer, Privacy, Terms) */
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper h2 {
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.content-wrapper p {
    margin-bottom: 20px;
}

.content-wrapper ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.content-wrapper ul li {
    margin-bottom: 10px;
}


/* 16. INTERACTIVE ELEMENTS (POPUP, CHAT WIDGET)
------------------------------------------------*/
/* Popup */
.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: all var(--transition-medium);
}

.popup:target {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--color-bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 450px;
    transform: scale(0.7);
    transition: transform var(--transition-medium);
}

.popup:target .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--color-text-medium);
}

.popup-content i {
    font-size: 4rem;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.popup-content h3 {
    margin-bottom: 10px;
}

.popup-close-btn {
    margin-top: 25px;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 998;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--color-secondary), var(--color-primary));
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-medium);
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-toggle .fa-times {
    display: none;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: var(--color-bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 450px;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: all var(--transition-medium);
}

.chat-widget.open .chat-toggle .fa-comments {
    display: none;
}

.chat-widget.open .chat-toggle .fa-times {
    display: block;
}

.chat-widget.open .chat-window {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.chat-header {
    padding: 20px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    color: #fff;
}

.chat-header h3 {
    font-size: 1.2rem;
}

.chat-header p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.chat-body {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
}

.chat-message {
    padding: 10px 15px;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    max-width: 80%;
}

.chat-message.bot {
    background: var(--color-glass);
    align-self: flex-start;
}

.chat-footer {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--color-border);
}

.chat-footer input {
    flex-grow: 1;
    border: none;
    background: transparent;
    color: #fff;
    padding: 0 10px;
}

.chat-footer input:focus {
    outline: none;
}

.chat-footer button {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 1.2rem;
    cursor: pointer;
}

/* 17. ANIMATIONS & KEYFRAMES
------------------------------------------------*/
/* Initial states for scroll animations */
.animate-on-scroll,
.animate-on-load {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow) cubic-bezier(0.19, 1, 0.22, 1), transform var(--transition-slow) cubic-bezier(0.19, 1, 0.22, 1);
}

.animate-on-scroll.visible,
.animate-on-load.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations */
.animate-on-load:nth-child(2) {
    transition-delay: 0.1s;
}

.animate-on-load:nth-child(3) {
    transition-delay: 0.2s;
}

.animate-on-load:nth-child(4) {
    transition-delay: 0.3s;
}

.services-grid .animate-on-scroll:nth-child(2) {
    transition-delay: 0.1s;
}

.services-grid .animate-on-scroll:nth-child(3) {
    transition-delay: 0.2s;
}

.services-grid .animate-on-scroll:nth-child(4) {
    transition-delay: 0.3s;
}

.services-grid .animate-on-scroll:nth-child(5) {
    transition-delay: 0.4s;
}

.services-grid .animate-on-scroll:nth-child(6) {
    transition-delay: 0.5s;
}


@keyframes gradient-text-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

body .highlight {
    background-size: 200% 200%;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -40px);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* 18. RESPONSIVE DESIGN (MEDIA QUERIES)
------------------------------------------------*/
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 50px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-section .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-content .subtitle::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-image {
        transform: none;
    }

    .stats-section .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .industries-wrapper {
        grid-template-columns: 1fr;
    }

    .industry-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .header-cta {
        display: none;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-3d-card {
        width: 250px;
        height: 350px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .contact-info li {
        justify-content: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .calculator-result {
        border-left: none;
        border-top: 1px solid var(--color-border);
        padding-top: 30px;
        margin-top: 20px;
    }

    .slider-controls {
        display: none;
    }

    /* On smaller screens, swiping is preferred. JS would be needed for that. Hiding controls for now. */
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .stats-section .container {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper,
    .contact-info-panel {
        padding: 30px;
    }

    .page-header {
        padding: 60px 0;
    }

    .page-content,
    .contact-section {
        padding: 60px 0;
    }

    .chat-window {
        width: 100%;
        right: -30px;
    }
}