/* =========================================
   1. RESET & VARIABLES
========================================= */
:root {
    /* Colors - Soft Modular Palette */
    --primary: #6C63FF;
    /* Soft Purple */
    --primary-dark: #5a52d5;
    --secondary: #00D2D3;
    /* Cyan/Teal */
    --accent: #FF6B6B;
    /* Soft Red */
    --dark: #2D3436;
    --gray-text: #636e72;
    --light-bg: #F9F9FB;
    --white: #FFFFFF;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #6C63FF 0%, #a29bfe 100%);
    --grad-glow: radial-gradient(circle, rgba(108, 99, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.1);

    /* Fonts */
    --font-main: 'Inter', sans-serif;
    --font-head: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--dark);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* =========================================
   2. UTILITY CLASSES
========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.container.narrow {
    max-width: 800px;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section {
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    gap: 10px;
    font-family: var(--font-head);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: glow-sweep 3s infinite;
}

@keyframes glow-sweep {
    0% {
        transform: translate(-100%, -100%) rotate(45deg);
    }

    100% {
        transform: translate(100%, 100%) rotate(45deg);
    }
}

/* =========================================
   3. STRICT HEADER STYLES
========================================= */
.main-header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.main-header.scrolled {
    height: 70px;
    box-shadow: var(--shadow-md);
}

.header-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 60px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(43%) sepia(48%) saturate(3195%) hue-rotate(224deg) brightness(98%) contrast(106%);
}

.brand-text {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-text);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--white);
    min-width: 220px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    color: var(--dark);
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background: rgba(108, 99, 255, 0.05);
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger .line {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--white);
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: center;
    width: 80%;
}

.mobile-nav-content a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
}

/* =========================================
   4. HERO SECTION
========================================= */
.hero-section {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-bg-blobs .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: #e0daff;
    top: -100px;
    right: -100px;
    animation: blob-float 10s infinite alternate;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #ccfbfb;
    bottom: -50px;
    left: -100px;
    animation: blob-float 12s infinite alternate-reverse;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-head);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.trust-indicators {
    font-size: 0.9rem;
    color: var(--gray-text);
}

.logos-wrapper {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    font-size: 1.5rem;
    color: #cbd5e0;
}

/* 3D Illustration CSS */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.isometric-stack {
    position: relative;
    width: 100%;
    height: 100%;
    transform: rotateX(20deg) rotateY(-20deg) rotateZ(0deg);
    transform-style: preserve-3d;
}

.iso-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1), -5px -5px 20px rgba(255, 255, 255, 0.8);
    padding: 20px;
    transform-style: preserve-3d;
    transition: transform 0.3s;
}

.card-analytics {
    width: 280px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(40px);
    z-index: 2;
}

.card-social {
    width: 200px;
    height: 140px;
    top: 60%;
    right: 10%;
    transform: translateZ(80px);
    z-index: 3;
    animation: float-y 4s ease-in-out infinite;
}

.card-search {
    width: 180px;
    height: 80px;
    top: 20%;
    left: 10%;
    transform: translateZ(0px);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
}

/* Mock Chart in CSS */
.card-header-mock {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.chart-area {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 80px;
    margin-bottom: 15px;
}

.bar {
    width: 12%;
    background: var(--primary);
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
}

.engagement-box {
    margin-top: 15px;
    background: #ffecec;
    color: var(--accent);
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    display: inline-block;
}

/* =========================================
   5. SERVICES SECTION (Modular Cards)
========================================= */
.services-section {
    background: var(--white);
}

.sub-heading {
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.section-heading {
    font-family: var(--font-head);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-desc {
    max-width: 600px;
    margin: 0 auto 60px;
    color: var(--gray-text);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.modular-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
}

.modular-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.color-1 {
    background: #e0daff;
    color: var(--primary);
}

.color-2 {
    background: #ccfbfb;
    color: var(--secondary);
}

.color-3 {
    background: #ffecec;
    color: var(--accent);
}

.color-4 {
    background: #fff3bf;
    color: #f59f00;
}

.color-5 {
    background: #d3f9d8;
    color: #2b8a3e;
}

.color-6 {
    background: #e7f5ff;
    color: #1971c2;
}

.service-card h3 {
    margin-bottom: 15px;
    font-family: var(--font-head);
}

.feature-list {
    margin: 20px 0;
}

.feature-list li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--gray-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list li i {
    color: var(--secondary);
}

.link-arrow {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.link-arrow:hover {
    gap: 10px;
}

/* =========================================
   6. INTERACTIVE CALCULATOR
========================================= */
.tool-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--light-bg) 100%);
}

.tool-wrapper {
    background: var(--white);
    padding: 60px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(108, 99, 255, 0.1);
}

.tool-header {
    text-align: center;
    margin-bottom: 40px;
}

.badge-new {
    background: var(--accent);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    vertical-align: middle;
    margin-right: 10px;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.input-group input[type="number"],
.input-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #edf2f7;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    transition: border-color 0.3s;
}

.input-group input[type="number"]:focus {
    border-color: var(--primary);
    outline: none;
}

input[type=range] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
    -webkit-appearance: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.5);
}

.range-value-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 10px;
}

.calc-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.result-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
}

.result-card h3 {
    font-size: 1.8rem;
    margin: 10px 0;
    color: var(--dark);
}

.result-card span {
    font-size: 0.9rem;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-card.highlight {
    background: var(--primary);
    color: white;
}

.result-card.highlight h3,
.result-card.highlight span,
.result-card.highlight small {
    color: white;
}

.result-card.dark {
    background: var(--dark);
    color: var(--secondary);
}

.result-card.dark h3 {
    color: var(--secondary);
}

/* =========================================
   7. DASHBOARD & TABS
========================================= */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.report-tabs {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    border-bottom: 2px solid #edf2f7;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--gray-text);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
    animation: fade-in 0.5s ease;
}

.tab-content.active {
    display: block;
}

.mock-dashboard {
    background: var(--dark);
    color: white;
    padding: 30px;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.dash-graph {
    height: 250px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-top: 40px;
}

.graph-line {
    width: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
    transition: height 1s ease;
}

.graph-line.active-point {
    background: var(--secondary);
}

.tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: var(--dark);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(0, 0, 0, .3);
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.dash-stats-row {
    display: flex;
    justify-content: space-between;
}

.dash-stats-row .stat {
    text-align: center;
}

.dash-stats-row .val {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

/* =========================================
   8. TESTIMONIALS & FAQ & CONTACT FORM
========================================= */
.testimonial-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 5px 50px;
    scroll-snap-type: x mandatory;
}

.testimonial-card {
    min-width: 350px;
    scroll-snap-align: center;
}

.quote-icon {
    font-size: 2rem;
    color: rgba(108, 99, 255, 0.2);
    margin-bottom: 20px;
}

.review-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 25px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.color-bg-1 {
    background: var(--primary);
}

.color-bg-2 {
    background: var(--secondary);
}

.color-bg-3 {
    background: var(--accent);
}

/* FAQ */
.accordion-item {
    margin-bottom: 20px;
    padding: 0;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-head);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
    padding-bottom: 20px;
}

/* CTA Box */
.cta-box {
    background: var(--dark);
    color: white;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-box h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-btns {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--dark);
}

.cta-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

/* =========================================
   9. STRICT FOOTER STYLES
========================================= */
.main-footer {
    background: var(--white);
    padding-top: 80px;
    border-top: 1px solid #edf2f7;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.logo-img-sm {
    height: 60px;
    filter: brightness(0) saturate(100%) invert(43%) sepia(48%) saturate(3195%) hue-rotate(224deg) brightness(98%) contrast(106%);
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--gray-text);
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.contact-col li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-col i {
    color: var(--primary);
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
}

.footer-bottom {
    border-top: 1px solid #edf2f7;
    padding: 30px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--gray-text);
}

.legal-links {
    display: flex;
    gap: 20px;
}

/* =========================================
   10. CHAT WIDGET & LOADER
========================================= */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 990;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s;
}

.chat-bubble:hover {
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    background: var(--primary);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    height: 250px;
    padding: 15px;
    background: #f8f9fa;
}

.msg {
    background: white;
    padding: 10px;
    border-radius: 10px 10px 10px 0;
    font-size: 0.9rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.chat-input {
    padding: 10px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 5px;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px;
}

.chat-input button {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
}

/* Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-cube {
    width: 50px;
    height: 50px;
    transform-style: preserve-3d;
    animation: rotate-cube 2s infinite linear;
}

.face {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(108, 99, 255, 0.5);
    border: 2px solid var(--primary);
}

.front {
    transform: translateZ(25px);
}

.back {
    transform: rotateY(180deg) translateZ(25px);
}

.right {
    transform: rotateY(90deg) translateZ(25px);
}

.left {
    transform: rotateY(-90deg) translateZ(25px);
}

.top {
    transform: rotateX(90deg) translateZ(25px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(25px);
}

@keyframes rotate-cube {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* =========================================
   11. ANIMATIONS & RESPONSIVE
========================================= */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fade-up 0.8s ease forwards;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float-y {

    0%,
    100% {
        transform: translateZ(80px) translateY(0);
    }

    50% {
        transform: translateZ(80px) translateY(-15px);
    }
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-subtitle {
        margin: 0 auto 30px;
    }

    .logos-wrapper {
        justify-content: center;
    }

    .split-layout {
        grid-template-columns: 1fr;
    }

    .calculator-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-menu {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-visual {
        display: none;
    }

    /* Hide complex 3D on very small screens */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .legal-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* Legal Page & Contact Page Specifics */
.page-header {
    padding: 180px 0 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e0e7ff 100%);
    text-align: center;
}

.legal-content {
    background: var(--white);
    padding: 60px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-top: -40px;
    position: relative;
    z-index: 5;
}

.legal-content h2 {
    margin: 30px 0 15px;
    color: var(--primary);
}

.legal-content p,
.legal-content li {
    color: var(--gray-text);
    margin-bottom: 15px;
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-top: -50px;
    position: relative;
    z-index: 5;
}

.contact-info-card {
    background: var(--primary);
    color: white;
    padding: 40px;
    border-radius: var(--radius-lg);
}

.contact-form-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-main);
}

.form-group textarea {
    resize: vertical;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}