/*
================================================
TABLE OF CONTENTS
================================================
1.  :root Variables
2.  General & Reset Styles
3.  Typography
4.  Utility Classes
5.  Custom Cursor
6.  Header & Navigation
7.  Hero Section
8.  Section Base Styles
9.  Services Section
10. ROI Calculator Section
11. Pricing Section
12. Testimonials Section
13. Final CTA Section
14. Page Header (for sub-pages)
15. Contact Page Styles
16. Legal Content Page Styles
17. Footer
18. Live Chat Widget
19. Animations & Keyframes
20. Responsive Media Queries
    - 1200px (Large Desktops)
    - 992px (Tablets / Small Desktops)
    - 768px (Tablets)
    - 576px (Mobile Landscape)
================================================
*/

/* 1. :root Variables */
:root {
    --color-primary: #007BFF;
    --color-secondary: #4FD1C5;
    --color-background-dark: #12121E;
    --color-background-light: #1A1A2E;
    --color-text-light: #E0E0E0;
    --color-text-dark: #A0A0B2;
    --color-white: #FFFFFF;
    --color-border: rgba(255, 255, 255, 0.1);

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;

    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --section-padding: 100px 0;
}

/* 2. General & Reset Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
    font-family: var(--font-secondary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    
    /* Hide default cursor */
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover,
button:hover {
    cursor: none;
    /* Use custom cursor on hover */
}

ul {
    list-style: none;
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    color: var(--color-white);
    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;
    color: var(--color-text-dark);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 3. Typography */
.highlight {
    color: var(--color-primary);
}

.text-center {
    text-align: center;
}

.section-title h2 {
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text-dark);
}

/* 4. Utility Classes */
.section-padding {
    padding: var(--section-padding);
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    font-family: var(--font-primary);
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.3);
}

.cta-button.outline {
    background: transparent;
    border-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: none;
}

.cta-button.outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.cta-button.large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* 5. Custom Cursor */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

body.cursor-visible .cursor-dot,
body.cursor-visible .cursor-outline {
    opacity: 1;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    transition: transform 0.1s linear;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-primary);
    transition: width 0.2s, height 0.2s, border-color 0.2s, transform 0.2s ease-out;
}

.cursor-outline.hover {
    width: 60px;
    height: 60px;
    border-color: var(--color-secondary);
}


/* 6. Header & Navigation */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: background-color var(--transition-speed) ease, padding var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

#main-header.scrolled {
    background-color: rgba(18, 18, 30, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-svg {
    transition: transform var(--transition-speed) ease;
}

.logo-link:hover .logo-svg {
    transform: rotate(360deg);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    font-family: var(--font-primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--color-text-light);
    font-weight: 500;
    font-family: var(--font-primary);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-white);
}

#hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

#hamburger-btn .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-white);
    transition: all 0.3s ease-in-out;
}

/* Mobile Nav Toggled State */
#hamburger-btn.is-active .bar:nth-child(2) {
    opacity: 0;
}

#hamburger-btn.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#hamburger-btn.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* 7. Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--color-background-dark);
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: var(--color-text-light);
}

.hero-cta {
    transform: scale(1.1);
}

/* Hero 3D Object */
.hero-3d-object-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    perspective: 1000px;
    pointer-events: none;
}

.hero-3d-object {
    position: absolute;
    width: 200px;
    height: 200px;
    top: calc(50% - 100px);
    left: calc(50% - 100px);
    transform-style: preserve-3d;
    animation: rotate3D 40s infinite linear;
}

.hero-3d-object .face {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid var(--color-primary);
    background: rgba(0, 123, 255, 0.1);
    opacity: 0.3;
}

.face.front {
    transform: rotateY(0deg) translateZ(100px);
}

.face.back {
    transform: rotateY(180deg) translateZ(100px);
}

.face.right {
    transform: rotateY(90deg) translateZ(100px);
}

.face.left {
    transform: rotateY(-90deg) translateZ(100px);
}

.face.top {
    transform: rotateX(90deg) translateZ(100px);
}

.face.bottom {
    transform: rotateX(-90deg) translateZ(100px);
}


/* 8. Section Base Styles */
#services,
#roi-calculator,
#pricing,
#testimonials,
#final-cta,
#contact-page,
.legal-content {
    background-color: var(--color-background-dark);
    position: relative;
}

#roi-calculator,
#testimonials {
    background-color: var(--color-background-light);
}

/* 9. Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background-color: var(--color-background-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--transition-speed) ease;
    transform-style: preserve-3d;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--color-primary);
}

.service-card-inner {
    transform: translateZ(20px);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-speed) ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon svg {
    width: 30px;
    height: 30px;
    color: var(--color-white);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--color-white);
}

/* 10. ROI Calculator Section */
.calculator-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    background-color: var(--color-background-dark);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    margin-top: 4rem;
}

.calculator-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.calculator-inputs .form-group {
    display: flex;
    flex-direction: column;
}

.calculator-inputs .form-group:last-child {
    grid-column: 1 / -1;
}

.calculator-inputs label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text-dark);
}

.calculator-inputs input[type="number"] {
    padding: 12px;
    background-color: var(--color-background-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-white);
    font-size: 1.1rem;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: var(--color-background-light);
    outline: none;
    border-radius: 4px;
    margin-top: 10px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    cursor: pointer;
    border-radius: 50%;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    cursor: pointer;
    border-radius: 50%;
}

#growth-value {
    margin-top: 0.5rem;
    font-weight: bold;
    color: var(--color-secondary);
}

.calculator-results {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calculator-results h3 {
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

#roi-result {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.calculator-results span {
    color: rgba(255, 255, 255, 0.8);
}

/* 11. Pricing Section */
.pricing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-background-light);
    transition: .4s;
    border: 1px solid var(--color-border);
}

.switch .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--color-primary);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    background-color: var(--color-background-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    transition: all var(--transition-speed) ease;
    position: relative;
}

.pricing-card.recommended {
    transform: scale(1.05);
    border: 2px solid var(--color-primary);
    box-shadow: 0 10px 40px rgba(0, 123, 255, 0.2);
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card.recommended:hover {
    transform: translateY(-10px) scale(1.07);
}

.pricing-card .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.pricing-card .price span {
    font-size: 1rem;
    color: var(--color-text-dark);
    font-weight: 400;
}

.pricing-card .price-custom {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 2rem 0 0.5rem;
}

.plan-description {
    height: 40px;
    color: var(--color-text-dark);
}

.pricing-card ul {
    margin: 2rem 0;
    text-align: left;
}

.pricing-card ul li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--color-border);
    position: relative;
    padding-left: 30px;
}

.pricing-card ul li::before {
    content: '✓';
    color: var(--color-secondary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.pricing-card ul li.faded {
    color: #666;
    text-decoration: line-through;
}

.pricing-card ul li.faded::before {
    color: #666;
}

/* 12. Testimonials Section */
.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    height: 280px;
    /* Adjust as needed */
    background-color: var(--color-background-dark);
    border: 1px solid var(--color-border);
    padding: 2rem 3rem;
    border-radius: var(--border-radius);
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateX(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-slide p.quote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--color-text-light);
    position: relative;
    padding-left: 40px;
}

.testimonial-slide p.quote::before {
    content: '“';
    font-family: 'Times New Roman', serif;
    font-size: 5rem;
    color: var(--color-primary);
    position: absolute;
    left: -10px;
    top: -10px;
    opacity: 0.5;
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.author-info h4 {
    margin-bottom: 0.25rem;
    color: var(--color-white);
}

.author-info span {
    color: var(--color-text-dark);
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.slider-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-white);
    font-size: 1.5rem;
    transition: all var(--transition-speed) ease;
}

.slider-controls button:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}


/* 13. Final CTA Section */
#final-cta {
    background: linear-gradient(rgba(18, 18, 30, 0.9), rgba(18, 18, 30, 0.9)), url('https://i.imgur.com/example.jpg') no-repeat center center/cover;
    /* Placeholder for a real image */
    background-attachment: fixed;
}

#final-cta h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

/* 14. Page Header (for sub-pages) */
.page-header {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 60px;
    background-color: var(--color-background-light);
}

.page-header h1 {
    font-size: 3rem;
}

/* 15. Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.contact-form-wrapper h3,
.contact-info-wrapper h3 {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--color-background-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-white);
    font-family: var(--font-secondary);
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
}

.contact-info-wrapper .contact-item {
    margin-bottom: 2rem;
}

.contact-info-wrapper .contact-item h4 {
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}


/* 16. Legal Content Page Styles */
.legal-content {
    background-color: var(--color-background-light);
}

.legal-content .container {
    max-width: 800px;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}

/* 17. Footer */
#main-footer {
    background-color: var(--color-background-light);
    padding: 80px 0 0;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--color-white);
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul li a {
    color: var(--color-text-dark);
    transition: color var(--transition-speed) ease;
}

.footer-col ul li a:hover {
    color: var(--color-white);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-dark);
}


/* 18. Live Chat Widget */
#chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#chat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 123, 255, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease;
}

#chat-icon:hover {
    transform: scale(1.1);
}

#chat-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-white);
}

#chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background-color: var(--color-background-dark);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

#chat-box.open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.chat-header {
    background-color: var(--color-background-light);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
}

.chat-body {
    padding: 1rem;
    height: 150px;
}

.chat-footer {
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--color-border);
}

.chat-footer input {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    outline: none;
}

/* 19. Animations & Keyframes */
.animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn-up 0.8s ease forwards;
}

.hero-content h1.animate-on-load {
    animation-delay: 0.2s;
}

.hero-content p.animate-on-load {
    animation-delay: 0.4s;
}

.hero-content .hero-cta.animate-on-load {
    animation-delay: 0.6s;
}

.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);
}

.services-grid .animate-on-scroll:nth-child(1) {
    transition-delay: 0.1s;
}

.services-grid .animate-on-scroll:nth-child(2) {
    transition-delay: 0.2s;
}

.services-grid .animate-on-scroll:nth-child(3) {
    transition-delay: 0.3s;
}

.services-grid .animate-on-scroll:nth-child(4) {
    transition-delay: 0.4s;
}

.pricing-grid .animate-on-scroll:nth-child(1) {
    transition-delay: 0.1s;
}

.pricing-grid .animate-on-scroll:nth-child(2) {
    transition-delay: 0.2s;
}

.pricing-grid .animate-on-scroll:nth-child(3) {
    transition-delay: 0.3s;
}

/* Text reveal animation */
.reveal-text {
    opacity: 0;
    animation: fadeIn-up 0.8s ease forwards;
}

.section-title.is-visible .reveal-text:nth-child(1) {
    animation-delay: 0.2s;
}

.section-title.is-visible .reveal-text:nth-child(2) {
    animation-delay: 0.4s;
}


@keyframes fadeIn-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate3D {
    from {
        transform: rotateX(0deg) rotateY(0deg);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}


/* 20. Responsive Media Queries */

/* 1200px (Large Desktops) */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .pricing-card.recommended {
        transform: scale(1);
    }
}

/* 992px (Tablets / Small Desktops) */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    #main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 60%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--color-background-light);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
    }

    #main-nav.is-active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
    }

    .header-cta {
        display: none;
    }

    #hamburger-btn {
        display: block;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .calculator-inputs {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* 768px (Tablets) */
@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    #hero {
        text-align: center;
    }

    .hero-3d-object {
        width: 150px;
        height: 150px;
        top: calc(50% - 75px);
        left: calc(50% - 75px);
    }

    .hero-3d-object .face {
        width: 150px;
        height: 150px;
    }

    .face.front {
        transform: rotateY(0deg) translateZ(75px);
    }

    .face.back {
        transform: rotateY(180deg) translateZ(75px);
    }

    .face.right {
        transform: rotateY(90deg) translateZ(75px);
    }

    .face.left {
        transform: rotateY(-90deg) translateZ(75px);
    }

    .face.top {
        transform: rotateX(90deg) translateZ(75px);
    }

    .face.bottom {
        transform: rotateX(-90deg) translateZ(75px);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .testimonial-slider {
        height: 320px;
    }
}

/* 576px (Mobile Landscape) */
@media (max-width: 576px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    body {
        cursor: auto;
        /* Revert to default cursor on mobile */
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col ul {
        padding: 0;
    }
}