/* Table of Contents
-----------------------------------
1.  CSS Variables & Global Styles
2.  General Typography & Helpers
3.  Buttons & Reusable Components
4.  Header & Navigation
5.  Hero Section
6.  About / Why Choose Us Section
7.  Services Section (3D Cards)
8.  Process Section (Timeline)
9.  ROI Calculator Section
10. Testimonials Section (Slider)
11. Pricing Section
12. CTA Section
13. Footer
14. Page-Specific Styles (Contact, Legal)
15. Animations & Keyframes
16. Floating Widgets (Back to Top, Chat)
17. Media Queries (Responsiveness)
    - 1200px (Large Desktops)
    - 992px (Tablets)
    - 768px (Small Tablets / Large Mobiles)
    - 576px (Mobiles)
----------------------------------- */

/* 1. CSS Variables & Global Styles
----------------------------------- */
:root {
    --primary-color: #0a043c;
    --secondary-color: #1a125a;
    --accent-color: #00c9c8;
    --accent-hover-color: #00a1a0;
    --light-text-color: #f4f4f4;
    --medium-text-color: #a9a9b3;
    --dark-text-color: #333;
    --background-light: #f9f9ff;
    --background-dark: #05021e;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-background: linear-gradient(145deg, #1d1767, #15104e);
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    --header-height: 80px;
    --border-radius: 8px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --transition-speed: 0.3s;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-dark);
    color: var(--medium-text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

/* 2. General Typography & Helpers
----------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--light-text-color);
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--accent-hover-color);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    color: var(--accent-color);
    background-color: rgba(0, 201, 200, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.section-title {
    margin-bottom: 1rem;
}

.section-intro {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

section {
    padding: 6rem 0;
}


/* 3. Buttons & Reusable Components
----------------------------------- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 201, 200, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--light-text-color);
    border-color: var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 201, 200, 0.3);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
}

/* 4. Header & Navigation
----------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease, height var(--transition-speed) ease;
    background-color: transparent;
}

.header.scrolled {
    background-color: rgba(10, 4, 60, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    height: 70px;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 80px;
    filter: brightness(0) invert(1);
    transition: height var(--transition-speed) ease;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--light-text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .line {
    width: 25px;
    height: 2px;
    background-color: var(--light-text-color);
    margin: 5px 0;
    transition: all var(--transition-speed) ease-in-out;
}

.hamburger.active .line1 {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .line2 {
    opacity: 0;
}

.hamburger.active .line3 {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 5. Hero Section
----------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-sphere {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-color) 0%, rgba(26, 18, 90, 0) 60%);
    filter: blur(50px);
    opacity: 0.3;
    animation: float 10s ease-in-out infinite;
}

.sphere1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 5%;
    animation-duration: 12s;
}

.sphere2 {
    width: 500px;
    height: 500px;
    bottom: 5%;
    right: 10%;
    animation-duration: 15s;
    animation-delay: 2s;
}

.sphere3 {
    width: 300px;
    height: 300px;
    top: 20%;
    right: 25%;
    animation-duration: 10s;
    animation-delay: 1s;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-visual-3d {
    perspective: 1000px;
    position: relative;
}

.hero-image {
    width: 100%;
    border-radius: var(--border-radius);
    transform: rotateY(-20deg) rotateX(10deg);
    box-shadow: -20px 20px 50px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease-out;
}

.hero-visual-3d:hover .hero-image {
    transform: rotateY(0) rotateX(0);
}

.floating-icon {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: var(--light-text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease-out;
    transform-style: preserve-3d;
}

.hero-visual-3d:hover .floating-icon {
    transform: translateZ(50px) scale(1.1);
}

.icon-chart {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    top: -20px;
    right: 50px;
    transform: translateZ(30px);
}

.icon-target {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    bottom: 100px;
    left: -25px;
    transform: translateZ(20px);
}

.icon-users {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
    bottom: -30px;
    right: 30px;
    transform: translateZ(40px);
}


/* 6. About / Why Choose Us Section
----------------------------------- */
.about-section {
    background-color: var(--background-light);
    color: var(--dark-text-color);
}

.about-section h2,
.about-section h3 {
    color: var(--dark-text-color);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 60px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.card-title {
    margin-bottom: 1rem;
}

.card-description {
    font-size: 0.95rem;
}

/* 7. Services Section (3D Cards)
----------------------------------- */
.services-section {
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(26, 18, 90, 0.8) 0%, rgba(26, 18, 90, 0) 70%);
    z-index: -1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card-container {
    perspective: 1500px;
}

.service-card {
    width: 100%;
    height: 350px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-card-container:hover .service-card {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.card-front {
    background: var(--card-background);
    border: 1px solid var(--border-color);
}

.card-front i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.card-front h3 {
    margin-bottom: 0.5rem;
}

.card-back {
    background: linear-gradient(145deg, var(--accent-color), var(--accent-hover-color));
    transform: rotateY(180deg);
    color: var(--primary-color);
}

.card-back h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.card-back ul {
    margin-bottom: 2rem;
    text-align: left;
}

.card-back li {
    margin-bottom: 0.5rem;
}

.card-back .btn {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border-color: var(--primary-color);
}

.card-back .btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* 8. Process Section (Timeline)
----------------------------------- */
.process-section {
    background-color: var(--background-light);
    color: var(--dark-text-color);
}

.process-section h2,
.process-section h3 {
    color: var(--dark-text-color);
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: #ddd;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    z-index: 1;
}

.timeline-item {
    padding: 1rem 3rem;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 60px rgba(0, 0, 0, 0.05);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}

.timeline-dot {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 4px solid var(--accent-color);
    background-color: white;
    top: 30px;
    border-radius: 50%;
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-step {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(0, 201, 200, 0.2);
    position: absolute;
    top: -10px;
}

.timeline-item:nth-child(odd) .timeline-step {
    left: 1.5rem;
}

.timeline-item:nth-child(even) .timeline-step {
    right: 1.5rem;
}

/* 9. ROI Calculator Section
----------------------------------- */
.calculator-section {
    background: var(--card-background);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    background-color: var(--secondary-color);
    padding: 4rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.calculator-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.calculator-form .form-group {
    display: flex;
    flex-direction: column;
}

.calculator-form label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.calculator-form input {
    background-color: var(--primary-color);
    border: 1px solid var(--border-color);
    color: var(--light-text-color);
    padding: 0.8rem;
    border-radius: 5px;
    font-size: 1rem;
}

.calculator-form input::placeholder {
    color: var(--medium-text-color);
}

.calculator-form button {
    grid-column: 1 / -1;
    margin-top: 1rem;
}

.roi-result {
    grid-column: 1 / -1;
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--primary-color);
    border-radius: 5px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light-text-color);
    display: none;
    /* Hidden by default */
}

.roi-result.visible {
    display: block;
}

.roi-result span {
    color: var(--accent-color);
}

/* 10. Testimonials Section (Slider)
----------------------------------- */
.testimonials-section {
    background-color: var(--background-light);
    color: var(--dark-text-color);
}

.testimonials-section h2,
.testimonials-section h4 {
    color: var(--dark-text-color);
}

.testimonial-slider-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform var(--transition-speed) ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    padding: 2rem;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 60px rgba(0, 0, 0, 0.05);
}

.testimonial-content p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 2rem;
}

.testimonial-content p::before {
    content: '“';
    font-family: Georgia, serif;
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 3rem;
    color: var(--accent-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    margin: 0;
}

.testimonial-author span {
    font-size: 0.9rem;
    color: #666;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.slider-controls button {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    pointer-events: all;
    transition: background-color var(--transition-speed) ease;
}

.slider-controls button:hover {
    background-color: var(--accent-hover-color);
}

/* 11. Pricing Section
----------------------------------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 30px rgba(0, 201, 200, 0.3);
}

.featured-tag {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.pricing-header h3 {
    font-size: 1.8rem;
}

.pricing-header p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.price sup {
    font-size: 1.5rem;
    font-weight: 500;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--medium-text-color);
}

.pricing-features {
    text-align: left;
    margin-bottom: 2.5rem;
}

.pricing-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pricing-features i {
    width: 20px;
}

.fa-check {
    color: var(--accent-color);
}

.fa-times {
    color: #555;
}

/* 12. CTA Section
----------------------------------- */
.cta-section {
    background: url('https://images.unsplash.com/photo-1516321497487-e288fb19713f?q=80&w=1470&auto=format&fit=crop') no-repeat center center/cover;
    position: relative;
    text-align: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 4, 60, 0.8);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* 13. Footer
----------------------------------- */
.footer {
    background-color: var(--primary-color);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: var(--light-text-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-about .logo {
    display: block;
    margin-bottom: 1.5rem;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-text-color);
}

.social-links a:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--medium-text-color);
}

.footer-links a:hover {
    color: var(--light-text-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-contact i {
    color: var(--accent-color);
    margin-top: 5px;
}

.footer-contact a {
    color: var(--medium-text-color);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

/* 14. Page-Specific Styles (Contact, Legal)
----------------------------------- */
.page-header {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    text-align: center;
    background: var(--secondary-color);
}

.page-header h1 {
    font-size: 3rem;
}

.contact-page-section,
.legal-content {
    padding: 6rem 0;
    background-color: var(--background-light);
    color: var(--dark-text-color);
}

.legal-content {
    background-color: #fff;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 60px rgba(0, 0, 0, 0.05);
}

.content-wrapper h2 {
    margin: 2rem 0 1rem;
    color: var(--dark-text-color);
}

.content-wrapper ul {
    list-style: disc;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background-color: #fff;
    padding: 4rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 60px rgba(0, 0, 0, 0.05);
}

.contact-grid h3 {
    color: var(--dark-text-color);
}

.contact-info-item {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: flex-start;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    width: 30px;
    text-align: center;
    margin-top: 5px;
}

.contact-info-item h4 {
    margin-bottom: 0.3rem;
    color: var(--dark-text-color);
}

.contact-info-item p {
    margin: 0;
}

.contact-form .form-row {
    display: flex;
    gap: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
    flex: 1;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color var(--transition-speed) ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 201, 200, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
}

/* 15. Animations & Keyframes
----------------------------------- */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
    }

    100% {
        transform: translateY(0px) rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.fade-in-up {
    transform: translateY(50px);
}

.animate-on-scroll.slide-in-left {
    transform: translateX(-50px);
}

.animate-on-scroll.slide-in-right {
    transform: translateX(50px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0);
    transition-delay: var(--delay, 0s);
}

/* 16. Floating Widgets (Back to Top, Chat)
----------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-speed) ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--accent-hover-color);
    transform: scale(1.1);
}

.live-chat-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 999;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.live-chat-widget:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: scale(1.1) rotate(10deg);
}

/* 17. Media Queries (Responsiveness)
----------------------------------- */
/* 1200px */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

/* 992px (Tablets) */
@media (max-width: 992px) {
    :root {
        --header-height: 70px;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    section {
        padding: 4rem 0;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        display: flex;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        gap: 2rem;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-visual {
        order: 1;
        margin-bottom: 3rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .process-timeline::after {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content {
        text-align: left;
    }

    .timeline-dot {
        left: 20px;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* 768px (Small Tablets / Large Mobiles) */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about,
    .footer-col:last-child {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .calculator-form {
        grid-template-columns: 1fr;
    }

    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* 576px (Mobiles) */
@media (max-width: 576px) {
    body {
        font-size: 0.95rem;
    }

    h1,
    .hero-title {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .about-grid,
    .services-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        padding: 2rem;
    }

    .content-wrapper {
        padding: 1.5rem;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .live-chat-widget {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}