/* --- 1. RESET & VARIABLES --- */
:root {
    /* Prime Gradient Theme Colors */
    --bg-white: #FFFFFF;
    --bg-off-white: #F9FAFC;
    --bg-glass: rgba(255, 255, 255, 0.95);

    --text-main: #1A1A2E;
    --text-body: #4A4A6A;
    --text-light: #8D99AE;

    /* Gradients & Accents */
    --primary-blue: #4361EE;
    --primary-purple: #7209B7;
    --accent-cyan: #4CC9F0;
    --gradient-main: linear-gradient(135deg, #4361EE 0%, #7209B7 100%);
    --gradient-hover: linear-gradient(135deg, #3a54d6 0%, #5e0699 100%);
    --gradient-text: linear-gradient(90deg, #4361EE, #7209B7);
    --shadow-soft: 0 10px 40px -10px rgba(67, 97, 238, 0.15);
    --shadow-hover: 0 20px 50px -10px rgba(114, 9, 183, 0.25);

    /* Layout */
    --container-width: 1280px;
    --header-height: 90px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;

    /* Typography */
    --font-head: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    /* Assumed Google Font import in HTML */

    /* Transitions */
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --anim-fast: 0.3s;
    --anim-med: 0.6s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-white);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-head);
    color: var(--text-main);
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--anim-fast) var(--ease-out);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 2. UTILITIES & ANIMATIONS --- */

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-head);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    font-size: 1rem;
    gap: 10px;
}

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hover);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--anim-fast);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(114, 9, 183, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: rgba(67, 97, 238, 0.05);
    color: var(--primary-purple);
    border-color: var(--primary-purple);
}

/* Animation Keyframes */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(67, 97, 238, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(67, 97, 238, 0);
    }
}

@keyframes gradient-move {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate3d {
    0% {
        transform: perspective(1000px) rotateY(0deg);
    }

    100% {
        transform: perspective(1000px) rotateY(360deg);
    }
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- 3. HEADER & NAVIGATION (Identical Across Pages) --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: transparent;
    z-index: 1000;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
}

.header.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    height: 80px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 40px;
    width: auto;
    filter: invert(1);
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--gradient-main);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 30px;
    height: 3px;
    background: var(--text-main);
    border-radius: 3px;
    transition: 0.3s;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-white);
    z-index: 999;
    transition: 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu-overlay.active {
    left: 0;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

/* --- 4. HERO SECTION --- */
.hero {
    padding-top: 180px;
    padding-bottom: 120px;
    position: relative;
    overflow: hidden;
}

/* Decorative Background Elements */
.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(114, 9, 183, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 50px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(76, 201, 240, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-blue);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-body);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-stats {
    display: flex;
    gap: 50px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 3D Visual Element in Hero */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.card-3d-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

.glass-card-main {
    position: absolute;
    width: 320px;
    height: 420px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateY(-15deg) rotateX(5deg);
    padding: 30px;
    z-index: 2;
}

.floating-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-purple);
}

.icon-1 {
    top: 20px;
    right: 20px;
    animation: float 5s infinite 1s;
}

.icon-2 {
    bottom: 40px;
    left: -20px;
    animation: float 7s infinite 0.5s;
    z-index: 3;
    color: var(--accent-cyan);
}

/* --- 5. LOGO STRIP --- */
.logo-strip {
    padding: 60px 0;
    background: var(--bg-off-white);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.logos-track {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    opacity: 0.6;
}

.partner-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.partner-logo:hover {
    color: var(--primary-blue);
    opacity: 1;
}

/* --- 6. SERVICES SECTION --- */
.services-section {
    padding: 120px 0;
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.sub-head {
    color: var(--primary-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(67, 97, 238, 0.3);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-off-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
    transition: 0.4s;
}

.service-card:hover .service-icon {
    background: var(--gradient-main);
    color: #fff;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-list {
    margin-top: 20px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-body);
}

.service-list li i {
    color: var(--accent-cyan);
}

/* --- 7. CALCULATOR SECTION --- */
.calculator-section {
    padding: 100px 0;
    background: var(--bg-off-white);
    position: relative;
}

.calc-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: #fff;
    border-radius: 30px;
    padding: 60px;
    box-shadow: var(--shadow-soft);
    align-items: center;
}

.calc-form {
    display: grid;
    gap: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #eee;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

.calc-result {
    background: var(--gradient-main);
    color: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.calc-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48ZyBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0wIDQwaDQwVjBIMHY0MHptMjAgMjBWMjBIMjB2MjB6TTEwIDEwdjEwaDEwVjEwSDEwem0yMCAydjEwaDEwVjEySDMweiIgZmlsbD0iI2ZmZiIgZmlsbC1vcGFjaXR5PSIwLjA1Ii8+PC9nPjwvc3ZnPg==');
}

.result-value {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 20px 0;
    display: block;
}

/* --- 8. CASE STUDY (BEFORE/AFTER) --- */
.case-study-section {
    padding: 120px 0;
}

.case-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin-bottom: 60px;
}

.case-image {
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 400px;
}

.case-content {
    background: #fff;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-badge {
    display: inline-block;
    background: #E0F7FA;
    color: #006064;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 20px;
    width: fit-content;
}

.metric-grid {
    display: flex;
    gap: 40px;
    margin: 30px 0;
}

.metric-box h4 {
    font-size: 2rem;
    color: var(--primary-blue);
}

.metric-box span {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* --- 9. TESTIMONIALS --- */
.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #fff 0%, #F8F9FB 100%);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.stars {
    color: #FFB703;
    margin-bottom: 20px;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background: #ddd;
    border-radius: 50%;
    object-fit: cover;
}

/* --- 10. REPORT SAMPLE SECTION --- */
.report-section {
    padding: 120px 0;
}

.report-interface {
    background: #1A1A2E;
    border-radius: 20px;
    padding: 40px;
    color: #fff;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.graph-bar {
    height: 200px;
    display: flex;
    align-items: flex-end;
    gap: 20px;
    margin-top: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bar {
    width: 40px;
    background: var(--gradient-main);
    border-radius: 5px 5px 0 0;
    animation: slideInUp 1s ease forwards;
    position: relative;
}

.bar::after {
    content: attr(data-val);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: #fff;
}

/* --- 11. CONTACT & FOOTER --- */
.cta-banner {
    background: var(--gradient-main);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.cta-banner h2 {
    color: #fff;
    margin-bottom: 30px;
}

/* Footer (Identical Across Pages) */
.footer {
    background: #0B0B15;
    color: #fff;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo img {
    height: 35px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-text {
    color: #8D99AE;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-title {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #8D99AE;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-cyan);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
    color: #555;
    font-size: 0.9rem;
}

/* --- 12. RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        height: 350px;
        margin-top: 40px;
    }

    .hero-stats {
        justify-content: center;
    }

    .calc-container {
        grid-template-columns: 1fr;
    }

    .case-card {
        grid-template-columns: 1fr;
    }

    .case-image {
        min-height: 250px;
    }
}

@media (max-width: 768px) {

    .nav-menu,
    .header-actions .btn {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.8rem;
    }
}

/* Visual Live Chat */
.live-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 990;
}

.chat-btn {
    width: 60px;
    height: 60px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.4);
    cursor: pointer;
    transition: 0.3s;
}

.chat-btn:hover {
    transform: scale(1.1);
}

.chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: 0.3s;
}

.chat-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    background: var(--gradient-main);
    padding: 20px;
    color: #fff;
}

.chat-body {
    padding: 20px;
    height: 250px;
    background: #F9FAFC;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.msg-agent {
    background: #E0E7FF;
    color: var(--text-main);
    padding: 10px 15px;
    border-radius: 15px 15px 15px 0;
    font-size: 0.9rem;
    margin-bottom: 10px;
    max-width: 80%;
}