/*
--- TABLE OF CONTENTS ---
1.  Global Styles & Variables
2.  Utility Classes
3.  Header & Navigation
4.  Mobile Navigation
5.  Footer
6.  Buttons & Forms
7.  Hero Section
8.  Services Section
9.  About Section
10. Interactive Report Section
11. ROI Calculator Section
12. Testimonials Section
13. CTA Section
14. Subpage & Legal Page Styles
15. Contact Page Styles
16. Popup Modal
17. Live Chat Widget
18. Animations & Keyframes
19. Responsive Design (Media Queries)
*/


/* 1. Global Styles & Variables
--------------------------------------------- */
:root {
    --primary-color: #00f2fe;
    --secondary-color: #4facfe;
    --dark-blue: #090e24;
    --medium-blue: #131a36;
    --light-blue: #1b2347;
    --text-color: #c5c8d9;
    --heading-color: #ffffff;
    --white-color: #ffffff;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.2);
    --success-color: #4caf50;
    --error-color: #f44336;

    --font-family: 'Poppins', sans-serif;
    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-family);
    background-color: var(--dark-blue);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--white-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    position: relative;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
}

.section-description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-color);
}


/* 2. Utility Classes
--------------------------------------------- */
.hidden {
    display: none;
}

.animate-fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.animate-fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: var(--delay, 0s);
}

.animate-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}


/* 3. Header & Navigation
--------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(9, 14, 36, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all var(--transition-speed);
    border-bottom: 1px solid var(--border-color);
}

.header.scrolled {
    height: 70px;
    box-shadow: 0 5px 20px var(--shadow-color);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    height: 40px;
    transition: transform var(--transition-speed);
}

.logo-link:hover .logo {
    transform: scale(1.05);
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--text-color);
    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(--secondary-color), var(--primary-color));
    transition: width var(--transition-speed);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white-color);
}

.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(--white-color);
    border-radius: 3px;
    position: absolute;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.bar-top {
    top: 0;
}

.bar-middle {
    top: 50%;
    transform: translateY(-50%);
}

.bar-bottom {
    bottom: 0;
}

body.mobile-nav-open .bar-top {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

body.mobile-nav-open .bar-middle {
    opacity: 0;
}

body.mobile-nav-open .bar-bottom {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}


/* 4. Mobile Navigation
--------------------------------------------- */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--medium-blue);
    z-index: 999;
    transition: right 0.4s ease-in-out;
    padding-top: calc(var(--header-height) + 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
}

.mobile-nav.is-open {
    right: 0;
}

.mobile-nav nav ul {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.mobile-nav nav ul li a {
    color: var(--white-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.mobile-nav nav ul li .btn {
    margin-top: 20px;
}


/* 5. Footer
--------------------------------------------- */
.footer {
    background-color: var(--medium-blue);
    padding-top: 80px;
    position: relative;
}

.footer-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.footer-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
}

.footer-shape.shape-1 {
    width: 300px;
    height: 300px;
    background-color: var(--primary-color);
    bottom: -150px;
    left: -100px;
}

.footer-shape.shape-2 {
    width: 200px;
    height: 200px;
    background-color: var(--secondary-color);
    top: -100px;
    right: -80px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.footer-col-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.footer-about-text {
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--light-blue);
    border-radius: 50%;
    color: var(--white-color);
    transition: all var(--transition-speed);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--dark-blue);
    transform: translateY(-3px);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-color);
    font-size: 0.95rem;
    transition: all var(--transition-speed);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.contact-info-list i {
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
    width: 16px;
    text-align: center;
}

.contact-info-list a {
    color: var(--text-color);
}

.contact-info-list a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    color: var(--text-color);
}


/* 6. Buttons & Forms
--------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-transform: capitalize;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn-primary {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: var(--dark-blue);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.2);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--dark-blue);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--heading-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--light-blue);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c5c8d9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}


/* 7. Hero Section
--------------------------------------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background: linear-gradient(-45deg, var(--dark-blue), var(--medium-blue), var(--dark-blue));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

.hero-content {
    max-width: 650px;
    text-align: left;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    right: 15%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    left: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 40%;
    animation-delay: 4s;
}

.hero-3d-sphere {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    background-image: radial-gradient(circle at center, var(--secondary-color) 0%, transparent 70%);
    opacity: 0.3;
    z-index: 1;
}


/* 8. Services Section
--------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--medium-blue);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    perspective: 1000px;
    min-height: 280px;
}

.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;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card-front {
    text-align: center;
}

.service-card-back {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--dark-blue);
    transform: rotateY(180deg);
    border-radius: var(--border-radius);
}

.service-card-back h3 {
    color: var(--dark-blue);
}

.service-card-back ul {
    text-align: left;
    margin: 15px 0;
    flex-grow: 1;
}

.service-card-back ul li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.service-card-back .btn {
    background: var(--dark-blue);
    color: var(--white-color);
    align-self: flex-start;
}

.service-card-back .btn:hover {
    background: var(--white-color);
    color: var(--dark-blue);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}


/* 9. About Section
--------------------------------------------- */
#about {
    background-color: var(--medium-blue);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    border-radius: var(--border-radius);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.about-experience-box {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: var(--dark-blue);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    width: 150px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.experience-years {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.about-experience-box span {
    font-size: 0.9rem;
    font-weight: 600;
}

.about-text-wrapper .section-title {
    font-size: 2.4rem;
}

.about-features-list {
    margin: 25px 0;
}

.about-features-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.about-features-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
}


/* 10. Interactive Report Section
--------------------------------------------- */
.report-wrapper {
    background-color: var(--medium-blue);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 40px;
}

.report-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.report-tab-button {
    background-color: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-tab-button:hover,
.report-tab-button.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--dark-blue);
    font-weight: 600;
}

.report-content {
    display: none;
}

.report-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.metric-card {
    background-color: var(--light-blue);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
}

.metric-card h4 {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
}

.metric-change {
    font-weight: 600;
}

.metric-change.positive {
    color: var(--success-color);
}

.metric-change.negative {
    color: var(--error-color);
}

.traffic-chart {
    margin-top: 30px;
}

.bar-item {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.bar-label {
    width: 150px;
    font-size: 0.9rem;
}

.bar {
    height: 25px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 5px;
    position: relative;
    animation: growBar 1s ease-out;
}

.bar-value {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dark-blue);
    font-size: 0.8rem;
    font-weight: 700;
}

.conversions-list {
    margin-top: 30px;
}

.conversions-list li {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.conversions-list li i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.conversions-list li span {
    flex-grow: 1;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--light-blue);
    border-radius: 5px;
    overflow: hidden;
    flex-basis: 100%;
    margin-top: 5px;
}

.progress-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 5px;
    animation: growBar 1.5s ease-out;
}


/* 11. ROI Calculator Section
--------------------------------------------- */
#roi-calculator-section {
    background-color: var(--medium-blue);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background-color: var(--light-blue);
    padding: 50px;
    border-radius: var(--border-radius);
}

.calculator-text .section-subtitle {
    margin-bottom: 15px;
}

.calculator-text .section-title {
    font-size: 2.2rem;
}

.calculator-form input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: var(--medium-blue);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    transition: opacity .2s;
}

.calculator-form input[type="range"]:hover {
    opacity: 0.8;
}

.calculator-form input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

.calculator-form input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.calculator-form label span {
    color: var(--primary-color);
    font-weight: 700;
}

.calculator-results {
    margin-top: 30px;
    background-color: var(--medium-blue);
    padding: 20px;
    border-radius: var(--border-radius);
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.result-item:last-child {
    border-bottom: none;
}

.result-item strong {
    font-size: 1.3rem;
    color: var(--primary-color);
}


/* 12. Testimonials Section
--------------------------------------------- */
.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 50px;
}

.testimonial-slider {
    position: relative;
    min-height: 350px;
    overflow: hidden;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--medium-blue);
    border-radius: var(--border-radius);
    padding: 40px;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
    visibility: hidden;
}

.testimonial-slide.active {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    margin-bottom: 20px;
}

.testimonial-quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
}

.author-name {
    display: block;
    font-weight: 700;
    color: var(--white-color);
}

.author-title {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0;
}

.slider-btn {
    background-color: var(--light-blue);
    color: var(--white-color);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.slider-btn:hover {
    background-color: var(--primary-color);
    color: var(--dark-blue);
}


/* 13. CTA Section
--------------------------------------------- */
.cta-section {
    background: url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?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::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 14, 36, 0.9);
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
}

.cta-text {
    margin-bottom: 30px;
}


/* 14. Subpage & Legal Page Styles
--------------------------------------------- */
body.subpage {
    background-color: var(--dark-blue);
}

.page-header-section {
    padding: 120px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, var(--dark-blue), var(--light-blue));
    position: relative;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header-content h1 {
    font-size: 3rem;
}

.page-header-content p {
    max-width: 600px;
    margin: 0 auto 20px;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--text-color);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs span {
    color: var(--primary-color);
}

.page-header-shapes .page-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.page-header-shapes .shape-1 {
    width: 250px;
    height: 250px;
    background-color: var(--primary-color);
    bottom: -120px;
    left: 5%;
}

.page-header-shapes .shape-2 {
    width: 150px;
    height: 150px;
    background-color: var(--secondary-color);
    top: -50px;
    right: 10%;
}

.page-content {
    padding: 80px 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--medium-blue);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.content-wrapper h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.content-wrapper ul {
    list-style: disc;
    padding-left: 20px;
    margin: 1.5rem 0;
}

.content-wrapper li {
    margin-bottom: 10px;
}


/* 15. Contact Page Styles
--------------------------------------------- */
.contact-section {
    background-color: var(--dark-blue);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background-color: var(--medium-blue);
    padding: 50px;
    border-radius: var(--border-radius);
}

.contact-info h2 {
    font-size: 2rem;
}

.contact-methods {
    margin-top: 30px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.method-icon {
    width: 50px;
    height: 50px;
    background-color: var(--light-blue);
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.method-details h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.method-details p {
    margin-bottom: 0;
}

.method-details a {
    color: var(--text-color);
}

.method-details a:hover {
    color: var(--primary-color);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* 16. Popup Modal
--------------------------------------------- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: var(--medium-blue);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    width: 90%;
    max-width: 400px;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.popup-overlay.show .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    line-height: 1;
}

.popup-icon {
    font-size: 3.5rem;
    color: var(--success-color);
    margin-bottom: 20px;
}

.popup-content h3 {
    margin-bottom: 10px;
}

.popup-content p {
    margin-bottom: 30px;
}


/* 17. Live Chat Widget
--------------------------------------------- */
#liveChatWidget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 998;
}

#chatToggleBtn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: var(--dark-blue);
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

#chatToggleBtn:hover {
    transform: scale(1.1);
}

#chatToggleBtn .fa-times {
    display: none;
}

#liveChatWidget.open #chatToggleBtn .fa-comments {
    display: none;
}

#liveChatWidget.open #chatToggleBtn .fa-times {
    display: block;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background-color: var(--medium-blue);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 400px;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

#liveChatWidget.open .chat-window {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.chat-header {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: var(--dark-blue);
    padding: 15px;
    text-align: center;
    flex-shrink: 0;
}

.chat-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--dark-blue);
}

.chat-header p {
    font-size: 0.8rem;
    margin: 0;
}

.chat-body {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 15px;
    display: flex;
}

.chat-message p {
    background-color: var(--light-blue);
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-message.agent p {
    border-bottom-left-radius: 0;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.user p {
    background-color: var(--primary-color);
    color: var(--dark-blue);
    border-bottom-right-radius: 0;
}

.chat-footer {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.chat-footer input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 10px;
    color: var(--white-color);
}

.chat-footer input:focus {
    outline: none;
}

.chat-footer button {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 10px;
}


/* 18. Animations & Keyframes
--------------------------------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes growBar {
    from {
        width: 0;
    }

    to {
        width: var(--final-width);
    }
}

.bar[style*="width: 65%"] {
    --final-width: 65%;
}

.bar[style*="width: 20%"] {
    --final-width: 20%;
}

.bar[style*="width: 10%"] {
    --final-width: 10%;
}

.bar[style*="width: 5%"] {
    --final-width: 5%;
}

.progress-bar span[style*="width: 85%"] {
    --final-width: 85%;
}

.progress-bar span[style*="width: 62%"] {
    --final-width: 62%;
}

.progress-bar span[style*="width: 45%"] {
    --final-width: 45%;
}


/* 19. Responsive Design (Media Queries)
--------------------------------------------- */
@media (max-width: 992px) {
    .nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    h1 {
        font-size: 2.8rem;
    }

    h2,
    .section-title {
        font-size: 2.2rem;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
        padding: 0 20px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-3d-sphere {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image-wrapper {
        margin-bottom: 50px;
    }

    .about-experience-box {
        right: 0;
        left: 0;
        margin: 0 auto;
    }

    .about-features-list li {
        justify-content: center;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .calculator-text {
        text-align: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info {
        text-align: center;
    }

    .contact-methods {
        max-width: 400px;
        margin: 30px auto 0;
    }

    .contact-method {
        text-align: left;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }

    .header-cta span {
        display: none;
    }

    .header-cta i {
        font-size: 1.2rem;
    }

    .btn {
        padding: 10px 24px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        padding: 30px;
    }

    .report-wrapper {
        padding: 30px;
    }

    .report-tabs {
        gap: 10px;
    }

    .report-tab-button {
        padding: 8px 18px;
    }

    .testimonial-slider-wrapper {
        padding: 0;
    }

    .testimonial-slider {
        min-height: auto;
    }

    .testimonial-slide {
        position: relative;
        opacity: 1;
        transform: none;
        visibility: visible;
        margin-bottom: 20px;
    }

    .testimonial-slide:not(.active) {
        display: none;
    }

    .slider-controls {
        position: static;
        transform: none;
        width: auto;
        justify-content: center;
        margin-top: 10px;
        gap: 20px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .contact-info-list li {
        justify-content: center;
    }

    .chat-window {
        width: calc(100vw - 40px);
    }
}

@media (max-width: 480px) {

    h1,
    .page-header-content h1 {
        font-size: 2.2rem;
    }

    h2,
    .section-title {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 15px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .about-experience-box {
        position: relative;
        bottom: auto;
        right: auto;
        margin: -40px auto 0;
        width: 140px;
        padding: 15px;
    }

    .experience-years {
        font-size: 2.5rem;
    }

    .calculator-wrapper {
        padding: 30px;
    }

    .testimonial-slide {
        padding: 25px;
    }

    .testimonial-quote {
        font-size: 1rem;
    }
}