/* Table of Contents
--------------------------------
1.  Global Styles & Variables
2.  Typography
3.  Buttons & Links
4.  Layout & Container
5.  Header & Navigation
6.  Mobile Navigation
7.  Footer
8.  Hero Section
9.  Services Section
10. About Us Section
11. ROI Calculator Section
12. Industries Section
13. Testimonials Section
14. CTA Section
15. Page-Specific Styles (Contact, Legal)
16. Animations & Keyframes
17. Utility Classes
18. Responsive Media Queries
-------------------------------- */

/* 1. Global Styles & Variables */
:root {
    --primary-color: #FFBF00;
    /* A vibrant, warm amber */
    --secondary-color: #C355F5;
    /* A bright magenta/purple accent */
    --dark-bg: #1A1A2E;
    /* A very dark purple */
    --medium-bg: #2A2A4E;
    /* A slightly lighter dark purple for cards */
    --light-bg: #3A3A6E;
    /* A lighter purple for hover states/borders */
    --text-primary: #EAEAEA;
    /* A soft, light grey for body text */
    --text-secondary: #A9A9A9;
    /* A muted grey for subtitles and metadata */
    --text-headings: #FFFFFF;
    /* Pure white for maximum contrast on headings */
    --white: #ffffff;
    --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --header-height: 80px;
    --box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.5);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    font-family: var(--font-family-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

body::-webkit-scrollbar-thumb {
    background-color: var(--light-bg);
    border-radius: 20px;
    border: 3px solid var(--dark-bg);
}

/* 2. Typography */
h1,
h2,
h3,
h4 {
    color: var(--text-headings);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    max-width: 65ch;
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
}

.section-title::before {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 auto 1rem;
}

.text-center .section-title::before {
    margin: 0 auto 1rem;
}

.highlight {
    color: var(--primary-color);
}

/* 3. Buttons & Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    color: var(--primary-color);
    font-size: 1rem;
    font-family: var(--font-family-mono);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-align: center;
}

.btn:hover {
    background-color: rgba(0, 170, 255, 0.1);
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(100, 255, 218, 0.2);
}

.btn-secondary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--secondary-color);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* 4. Layout & Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

main {
    padding-top: var(--header-height);
}

section {
    padding: 100px 0;
}

/* 5. Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: var(--header-height);
    transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.site-header.scrolled {
    height: 70px;
    box-shadow: var(--box-shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    display: block;
}

.logo img {
    height: 50px;
    filter: brightness(0) invert(1);
    transition: transform var(--transition-speed) ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

.main-nav li {
    margin: 0 1.5rem;
}

.main-nav a {
    color: var(--text-primary);
    font-family: var(--font-family-mono);
    padding: 0.5rem 0;
    position: relative;
    font-size: 0.9rem;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

/* 6. Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    z-index: 1001;
    cursor: pointer;
}

.hamburger {
    display: block;
    position: relative;
    width: 28px;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.25s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.25s ease-in-out;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

.mobile-nav-open .hamburger {
    background-color: transparent;
}

.mobile-nav-open .hamburger::before {
    transform: rotate(45deg);
}

.mobile-nav-open .hamburger::after {
    transform: rotate(-45deg);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: min(75vw, 400px);
    height: 100vh;
    background-color: var(--medium-bg);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding: 100px 20px;
}

.mobile-nav.open {
    transform: translateX(0);
    box-shadow: -10px 0px 30px -15px rgba(2, 12, 27, 0.7);
}

.mobile-nav nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.mobile-nav ul {
    list-style: none;
    width: 100%;
}

.mobile-nav li {
    margin: 2rem 0;
}

.mobile-nav a {
    color: var(--text-headings);
    font-size: 1.25rem;
    font-family: var(--font-family-mono);
}

.mobile-nav .btn {
    margin-top: 2rem;
}


/* 7. Footer */
.site-footer {
    background-color: var(--medium-bg);
    padding: 80px 0 30px;
    border-top: 1px solid var(--light-bg);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    color: var(--text-headings);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column.footer-about .footer-logo img {
    height: 50px;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.footer-column p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul a {
    color: var(--text-secondary);
    transition: color var(--transition-speed);
}

.footer-column ul a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--primary-color);
    margin-top: 3px;
}

.footer-contact a {
    color: var(--text-secondary);
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--light-bg);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

.live-chat-support button {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: var(--font-family-sans);
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

.live-chat-support button:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

.live-chat-support svg {
    width: 20px;
    height: 20px;
}

/* 8. Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-primary);
    max-width: 50ch;
}

.hero-buttons {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

/* 3D Sphere CSS */
.sphere-container {
    width: 400px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
}

.sphere {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    animation: rotateSphere 30s linear infinite;
}

.sphere-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 50%;
}

/* Generate sphere faces with different rotations */
.sphere-face:nth-child(1) {
    transform: rotateY(0deg);
}

.sphere-face:nth-child(2) {
    transform: rotateY(20deg);
}

.sphere-face:nth-child(3) {
    transform: rotateY(40deg);
}

.sphere-face:nth-child(4) {
    transform: rotateY(60deg);
}

.sphere-face:nth-child(5) {
    transform: rotateY(80deg);
}

.sphere-face:nth-child(6) {
    transform: rotateY(100deg);
}

.sphere-face:nth-child(7) {
    transform: rotateY(120deg);
}

.sphere-face:nth-child(8) {
    transform: rotateY(140deg);
}

.sphere-face:nth-child(9) {
    transform: rotateY(160deg);
}

.sphere-face:nth-child(10) {
    transform: rotateX(90deg) rotateZ(0deg);
}

.sphere-face:nth-child(11) {
    transform: rotateX(90deg) rotateZ(20deg);
}

.sphere-face:nth-child(12) {
    transform: rotateX(90deg) rotateZ(40deg);
}

.sphere-face:nth-child(13) {
    transform: rotateX(90deg) rotateZ(60deg);
}

.sphere-face:nth-child(14) {
    transform: rotateX(90deg) rotateZ(80deg);
}

.sphere-face:nth-child(15) {
    transform: rotateX(90deg) rotateZ(100deg);
}

.sphere-face:nth-child(16) {
    transform: rotateX(90deg) rotateZ(120deg);
}

.sphere-face:nth-child(17) {
    transform: rotateX(90deg) rotateZ(140deg);
}

.sphere-face:nth-child(18) {
    transform: rotateX(90deg) rotateZ(160deg);
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-down-indicator a {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    position: relative;
}

.scroll-down-indicator span {
    display: block;
    width: 4px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    animation: scroll-anim 2s infinite;
}

/* 9. Services Section */
.services-section {
    background-color: var(--medium-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--light-bg);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -15px rgba(2, 12, 27, 0.8);
}

.service-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 48px;
    height: 48px;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-headings);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
}

.service-link {
    font-family: var(--font-family-mono);
    color: var(--secondary-color);
    font-weight: bold;
    margin-top: 1.5rem;
}

/* 10. About Us Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-wrapper-3d {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: -20px 20px 50px rgba(0, 0, 0, 0.5);
}

.image-wrapper-3d:hover {
    transform: rotateY(0) rotateX(0);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: saturate(0) contrast(1.2);
    transition: filter var(--transition-speed) ease;
}

.about-image:hover img {
    filter: none;
}

.about-content h2 {
    text-align: left;
}

.about-content .section-title::before {
    margin: 0 0 1rem;
}

.about-list {
    list-style: none;
    margin-top: 2rem;
}

.about-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 1.5rem;
}

.about-list svg {
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.about-list strong {
    display: block;
    color: var(--text-headings);
}

/* 11. ROI Calculator Section */
.roi-section {
    background-color: var(--medium-bg);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background-color: var(--light-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 3rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.form-group input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: var(--dark-bg);
    outline: none;
    border-radius: 5px;
}

.form-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid var(--dark-bg);
}

.form-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
}

.form-group span {
    display: block;
    text-align: right;
    margin-top: 0.5rem;
    font-family: var(--font-family-mono);
    color: var(--secondary-color);
}

.calculator-results {
    background-color: var(--dark-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calculator-results h3 {
    color: var(--text-headings);
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.result-label {
    color: var(--text-secondary);
}

.result-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-headings);
    font-family: var(--font-family-mono);
}

.roi-highlight {
    color: var(--secondary-color);
    font-size: 2.5rem;
}

.calculator-results .disclaimer {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: auto;
    margin-bottom: 1rem;
}

/* 12. Industries Section */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.industry-card {
    background-color: var(--medium-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed) ease;
}

.industry-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px -15px rgba(2, 12, 27, 0.8);
}

.industry-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-speed) ease;
}

.industry-card:hover .industry-image {
    transform: scale(1.05);
}

.industry-content {
    padding: 1.5rem;
}

.industry-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-headings);
}

.industry-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 13. Testimonials Section */
.testimonials-section {
    background-color: var(--medium-bg);
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 350px;
    /* To prevent layout shift */
}

.testimonial-slide {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
}

.testimonial-slide.active {
    display: flex;
    animation: fadeIn 0.5s ease-in-out;
}

.testimonial-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    margin-bottom: 1.5rem;
}

.testimonial-slide blockquote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-primary);
    max-width: 60ch;
    margin-bottom: 1.5rem;
    border: none;
}

.testimonial-slide blockquote::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.5;
    line-height: 0;
    margin-right: 5px;
}

.testimonial-slide blockquote::after {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.5;
    line-height: 0;
    margin-left: 5px;
}


.testimonial-slide cite {
    font-style: normal;
}

.testimonial-slide cite strong {
    display: block;
    color: var(--text-headings);
}

.testimonial-slide cite span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.slider-controls button {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--light-bg);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-size: 1.5rem;
    pointer-events: all;
}

.slider-prev {
    margin-left: -60px;
}

.slider-next {
    margin-right: -60px;
}

.slider-controls button:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

/* 14. CTA Section */
.cta-section {
    background: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.9)), url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?q=80&w=1740&auto=format&fit=crop') no-repeat center center/cover;
    padding: 120px 0;
}

.cta-section p {
    max-width: 60ch;
    margin: 1.5rem auto;
}

.cta-section .btn {
    margin-top: 1rem;
}

/* 15. Page-Specific Styles (Contact, Legal) */
.page-header {
    background-color: var(--medium-bg);
    text-align: center;
    padding: 80px 0;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-header p {
    margin: 1rem auto 0;
    font-size: 1.1rem;
}

.contact-page-section {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info h3 {
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.info-item svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    margin-top: 5px;
}

.info-item h4 {
    margin-bottom: 0.25rem;
}

.info-item p {
    margin: 0;
}

.contact-form-wrapper {
    background-color: var(--medium-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--light-bg);
    border: 1px solid var(--light-bg);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: var(--font-family-sans);
    transition: border-color var(--transition-speed);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form button {
    width: 100%;
    margin-top: 1rem;
}

.legal-page {
    padding: 80px 0;
}

.legal-page .container {
    max-width: 800px;
}

.legal-page h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.legal-page h2 {
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-bg);
}

.legal-page p,
.legal-page li {
    color: var(--text-secondary);
}

.legal-page ul {
    list-style-position: inside;
    padding-left: 1rem;
}

.legal-page ul li {
    margin-bottom: 0.5rem;
}

/* 16. Animations & Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoom-in {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scroll-anim {
    0% {
        transform: translateY(0) translateX(-50%);
        opacity: 1;
    }

    100% {
        transform: translateY(10px) translateX(-50%);
        opacity: 0;
    }
}

@keyframes rotateSphere {
    from {
        transform: rotateY(0deg) rotateX(0deg);
    }

    to {
        transform: rotateY(360deg) rotateX(360deg);
    }
}

/* 17. Utility Classes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
}

.fade-in-up.is-visible {
    animation: fade-in-up 0.8s forwards;
}

.slide-in-left.is-visible {
    animation: slide-in-left 0.8s forwards;
}

.slide-in-right.is-visible {
    animation: slide-in-right 0.8s forwards;
}

.zoom-in.is-visible {
    animation: zoom-in 0.8s forwards;
}

.text-center {
    text-align: center;
}

.text-center p {
    margin-left: auto;
    margin-right: auto;
}

/* 18. Responsive Media Queries */
@media (max-width: 1024px) {

    .main-nav,
    .header-cta {
        display: none;
    }

    .mobile-nav,
    .mobile-nav-toggle {
        display: block;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        margin-bottom: 3rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-content h2 {
        text-align: center;
    }

    .about-content .section-title::before {
        margin: 0 auto 1rem;
    }

    .about-list {
        text-align: left;
    }

    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .slider-controls {
        display: none;
        /* simpler on tablet */
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact p {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .sphere-container {
        width: 300px;
        height: 300px;
    }

    .calculator-wrapper {
        padding: 2rem;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .btn {
        width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
    }
}