/*
    Table of Contents
    -----------------
    1.  Global Styles & Variables
    2.  Typography
    3.  Utility Classes
    4.  Header & Navigation
    5.  Mobile Navigation
    6.  Footer
    7.  Buttons & Links
    8.  Forms & Inputs
    9.  Hero Section
    10. Clients Section
    11. Services Section
    12. About Us Section
    13. Interactive Section (ROI Calculator)
    14. Testimonials Section
    15. FAQ Section
    16. CTA Section
    17. Subpage Styles (Legal, Contact)
    18. Popups & Widgets
    19. Animations & Keyframes
    20. Responsive Design (Media Queries)
*/

/* 1. Global Styles & Variables */
:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --accent-color: #00d4ff;
    --dark-bg: #0d1128;
    --light-bg: #1a203f;
    --card-bg: #111833;
    --light-text: #ffffff;
    --medium-text: #c0c8e7;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Poppins', sans-serif;
    --transition-speed: 0.3s ease;
    --border-radius: 8px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Header height */
}

body {
    font-family: var(--body-font);
    background-color: var(--dark-bg);
    color: var(--medium-text);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: var(--transition-speed);
}

a:hover {
    color: var(--light-text);
}

/* 2. Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--heading-font);
    color: var(--light-text);
    line-height: 1.3;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: 1rem;
}

/* 3. Utility Classes */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 4. Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: transparent;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
    background-color: rgba(13, 17, 40, 0.85);
    padding: 0.75rem 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 70px;
    filter: brightness(0) invert(1);
    transition: var(--transition-speed);
}


.nav-list {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--medium-text);
    font-weight: 500;
    position: relative;
    padding-bottom: 0.5rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--light-text);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--light-text);
    transition: all 0.3s ease-in-out;
}

/* 5. Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--dark-bg);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav ul {
    text-align: center;
}

.mobile-nav li {
    margin: 2rem 0;
}

.mobile-nav a {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--light-text);
}

/* Animate mobile toggle button */
.mobile-nav.open+.header .mobile-toggle .bar-top {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-nav.open+.header .mobile-toggle .bar-middle {
    opacity: 0;
}

.mobile-nav.open+.header .mobile-toggle .bar-bottom {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* 6. Footer */
.footer {
    background-color: #080b1a;
    padding: 6rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-shapes .footer-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.footer-shape.shape-1 {
    width: 400px;
    height: 400px;
    background-color: var(--primary-color);
    bottom: -150px;
    left: -150px;
}

.footer-shape.shape-2 {
    width: 300px;
    height: 300px;
    background-color: var(--secondary-color);
    top: -100px;
    right: -100px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.footer-logo {
    height: 70px;
    filter: brightness(0) invert(1);
    margin-bottom: 1.5rem;
}

.footer-about-text {
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--light-bg);
    border-radius: 50%;
    color: var(--medium-text);
    font-size: 1rem;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-3px);
}

.footer-col-title {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul a {
    color: var(--medium-text);
}

.footer-links ul a:hover {
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-info i {
    color: var(--accent-color);
    margin-top: 5px;
}

.contact-info a {
    color: var(--medium-text);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--light-bg);
    padding-top: 2rem;
    position: relative;
    z-index: 1;
}

/* 7. Buttons & Links */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 0.5rem;
    overflow: hidden;
    position: relative;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    box-shadow: 0 5px 15px rgba(37, 117, 252, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 117, 252, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: var(--light-text);
    border-color: var(--light-bg);
}

.btn-secondary:hover {
    background-color: var(--light-bg);
    color: var(--light-text);
}

.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(3px);
}

/* 8. Forms & Inputs */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--medium-text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: var(--dark-bg);
    border: 1px solid var(--light-bg);
    border-radius: var(--border-radius);
    color: var(--light-text);
    font-family: var(--body-font);
    font-size: 1rem;
    transition: var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}

/* 9. Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    /* Header height */
    overflow: hidden;
    background: var(--dark-bg);
}

.hero-content {
    max-width: 750px;
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-content .highlight {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: var(--medium-text);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    z-index: 0;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    top: -10%;
    left: -10%;
    animation: move-shape 15s infinite alternate;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    bottom: -15%;
    right: -5%;
    animation: move-shape 20s infinite alternate-reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    bottom: 20%;
    left: 15%;
    opacity: 0.5;
    animation: move-shape 18s infinite alternate;
}

.hero-3d-object {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
    perspective: 1000px;
    opacity: 0.1;
}

.cube {
    width: 100px;
    height: 100px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform-style: preserve-3d;
    animation: spin-cube 20s infinite linear;
}

.face {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--accent-color);
}

.front {
    transform: rotateY(0deg) translateZ(50px);
}

.back {
    transform: rotateY(180deg) translateZ(50px);
}

.right {
    transform: rotateY(90deg) translateZ(50px);
}

.left {
    transform: rotateY(-90deg) translateZ(50px);
}

.top {
    transform: rotateX(90deg) translateZ(50px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(50px);
}


/* 10. Clients Section */
.clients-section {
    padding: 3rem 0;
    background-color: rgba(0, 0, 0, 0.1);
}

.clients-title {
    text-align: center;
    font-weight: 500;
    margin-bottom: 2rem;
}

.clients-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    font-size: 2rem;
    color: var(--medium-text);
}

.clients-logos i {
    transition: var(--transition-speed);
    opacity: 0.6;
}

.clients-logos i:hover {
    opacity: 1;
    color: var(--light-text);
    transform: scale(1.1);
}


/* 11. Services Section */
.services-section {
    padding: 6rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--light-bg);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(37, 117, 252, 0.1), transparent 70%);
    transition: all 0.6s ease;
    transform: scale(0);
}

.service-card:hover::before {
    transform: scale(3);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.card-link {
    font-weight: 600;
    margin-top: 1.5rem;
    display: inline-block;
}

.card-link i {
    transition: transform 0.3s ease;
    margin-left: 5px;
}

.card-link:hover i {
    transform: translateX(5px);
}

/* 12. About Us Section */
.about-section {
    padding: 6rem 0;
    background-color: var(--light-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.about-image-wrapper img {
    border-radius: var(--border-radius);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: rgba(13, 17, 40, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--card-bg);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--medium-text);
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-features {
    margin: 2rem 0;
}

.about-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.about-features i {
    color: var(--accent-color);
}


/* 13. Interactive Section (ROI Calculator) */
.interactive-section {
    padding: 6rem 0;
}

.interactive-wrapper {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--border-radius);
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
    box-shadow: var(--shadow);
}

.interactive-content .section-tag {
    background: rgba(255, 255, 255, 0.2);
}

.interactive-content p {
    color: rgba(255, 255, 255, 0.9);
}

.calculator-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: var(--border-radius);
}

.calculator-form .form-group {
    margin-bottom: 1rem;
}

.calculator-form label {
    font-size: 0.9rem;
}

.calculator-form input {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.calculator-form button {
    width: 100%;
    margin-top: 1rem;
    background: var(--accent-color);
    color: var(--dark-bg);
    border: none;
    box-shadow: none;
}

.roi-results {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.roi-results h4 {
    margin-bottom: 1rem;
}

.roi-results p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.roi-results span {
    font-weight: 700;
}

/* 14. Testimonials Section */
.testimonials-section {
    padding: 6rem 0;
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '\f10d';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 15rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--dark-bg);
    opacity: 0.2;
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    position: relative;
    height: 350px;
    /* Adjust as needed */
    overflow: hidden;
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-content {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    position: relative;
    margin-bottom: 2rem;
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.8;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-left: 2rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
}

.author-info h4 {
    margin: 0;
}

.author-info span {
    color: var(--medium-text);
    font-size: 0.9rem;
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: -80px;
    right: -80px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
}

.slider-controls button {
    background-color: var(--card-bg);
    border: 1px solid var(--light-bg);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--light-text);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition-speed);
}

.slider-controls button:hover {
    background-color: var(--primary-color);
}

/* 15. FAQ Section */
.faq-section {
    padding: 6rem 0;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--light-bg);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-speed);
}

.faq-question:hover {
    color: var(--accent-color);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.faq-answer p {
    padding: 0 0 1.5rem;
    margin: 0;
}

/* 16. CTA Section */
.cta-section {
    padding: 6rem 0;
}

.cta-wrapper {
    background: linear-gradient(rgba(13, 17, 40, 0.9), rgba(13, 17, 40, 0.9)), url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80') center/cover no-repeat;
    padding: 5rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.cta-wrapper h2 {
    margin-bottom: 1.5rem;
}

.cta-wrapper p {
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* 17. Subpage Styles */
body.subpage {
    background-color: var(--light-bg);
}

.page-header {
    padding: 10rem 0 5rem;
    text-align: center;
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--light-bg) 100%);
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.breadcrumbs {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs span {
    color: var(--light-text);
}

.breadcrumbs a {
    color: var(--medium-text);
}

.page-content {
    padding: 5rem 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--dark-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
}

.content-wrapper h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--light-bg);
}

/* Contact Page Specifics */
.contact-section {
    padding: 6rem 0;
    margin-top: -80px;
    position: relative;
    z-index: 2;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background-color: var(--dark-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-info p {
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
}

.method-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--light-text);
}

.method-details h3 {
    margin-bottom: 0.25rem;
}

.method-details p {
    margin: 0;
}

.method-details a {
    color: var(--medium-text);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-form .full-width {
    grid-column: 1 / -1;
}

.contact-form button {
    grid-column: 1 / -1;
    justify-self: start;
}

/* 18. Popups & Widgets */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.popup:target {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--light-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 400px;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.4s ease;
}

.popup:target .popup-content {
    transform: scale(1);
}

.popup-content i {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1.5rem;
}

.popup-content h3 {
    margin-bottom: 1rem;
}

.popup-content .btn {
    margin-top: 1.5rem;
}

.live-chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--light-text);
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 998;
    transition: var(--transition-speed);
}

.live-chat-widget:hover {
    transform: scale(1.1) rotate(10deg);
}

/* 19. Animations & Keyframes */
@keyframes move-shape {
    from {
        transform: translate(0, 0) rotate(0deg);
    }

    to {
        transform: translate(50px, -50px) rotate(180deg);
    }
}

@keyframes spin-cube {
    from {
        transform: rotateX(0deg) rotateY(0deg);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.animate-on-load {
    animation: fadeIn-up 0.8s ease-out forwards;
    opacity: 0;
}

.animate-on-load:nth-child(2) {
    animation-delay: 0.2s;
}

.animate-on-load:nth-child(3) {
    animation-delay: 0.4s;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Add delays for staggered effect in grids */
.services-grid .animate-on-scroll:nth-child(1) {
    transition-delay: 0s;
}

.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;
}

@keyframes fadeIn-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* 20. Responsive Design */
@media (max-width: 1024px) {

    .about-grid,
    .interactive-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    .slider-controls {
        position: static;
        transform: none;
        margin-top: 2rem;
        justify-content: center;
        gap: 1rem;
    }

    .testimonial-slider {
        height: auto;
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .header-actions .btn {
        display: none;
    }

    .hero-content {
        text-align: left;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-3d-object {
        display: none;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-col-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-info li {
        justify-content: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .contact-form .form-group {
        grid-column: 1 / -1;
    }

    .cta-wrapper {
        padding: 3rem 2rem;
    }

    .interactive-wrapper {
        padding: 2.5rem 2rem;
    }

}