/* --- RESET & VARIABLES --- */
:root {
    --primary-color: #6d28d9;
    /* Deep Purple */
    --secondary-color: #4361ee;
    /* Electric Blue */
    --accent-color: #f72585;
    /* Neon Pink */
    --dark-bg: #050505;
    --dark-card: #0f0f13;
    --text-main: #f8f9fa;
    --text-muted: #aeb4b7;
    --gradient-main: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-glow: linear-gradient(90deg, #f72585, #4361ee);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* Custom cursor */
}

/* --- CUSTOM CURSOR --- */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--secondary-color);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    opacity: 1;
}

/* --- BACKGROUND ANIMATION --- */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #1a1a2e 0%, #000000 100%);
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--duration) infinite ease-in-out;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h3 {
    font-size: 1.75rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

/* --- UTILITIES --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: none;
    /* Custom cursor handles this */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
    z-index: -1;
    transition: opacity 0.3s;
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(247, 37, 133, 0.6);
    transform: translateY(-2px);
}

/* --- HEADER --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-fast);
    padding: 20px 0;
}

.header.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    filter: invert(1);
    /* Ensure visibility on dark */
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-close,
.nav-toggle {
    display: none;
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-content {
    max-width: 650px;
    z-index: 2;
}

.hero-title span {
    display: block;
    font-size: 1.2rem;
    color: var(--secondary-color);
    letter-spacing: 5px;
    margin-bottom: 10px;
}

.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-visual {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 80%;
    z-index: 1;
}

/* 3D Floating Elements in Hero */
.float-card {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 15px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}

.fc-1 {
    top: 20%;
    right: 20%;
    width: 200px;
    animation-delay: 0s;
}

.fc-2 {
    bottom: 25%;
    right: 10%;
    width: 180px;
    animation-delay: 2s;
}

.fc-3 {
    top: 40%;
    right: 50%;
    width: 150px;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* --- SERVICES --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.service-card {
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: 20px;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(247, 37, 133, 0.1));
    opacity: 0;
    z-index: -1;
    transition: var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* --- ROI CALCULATOR (Interactive) --- */
.calc-section {
    background: linear-gradient(to bottom, var(--dark-bg), #0f0f13);
}

.calc-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--dark-card);
    padding: 50px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.calc-inputs label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-main);
    font-weight: 500;
}

.calc-input-group {
    margin-bottom: 20px;
}

.calc-input-group input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    font-family: var(--font-body);
}

.calc-input-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.calc-results {
    background: var(--gradient-main);
    padding: 30px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.result-item h4 {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.result-item .value {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.result-item {
    margin-bottom: 20px;
}

/* --- PROCESS --- */
.process-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    position: relative;
    flex-wrap: wrap;
    gap: 20px;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    min-width: 200px;
}

.step-num {
    width: 60px;
    height: 60px;
    background: var(--dark-card);
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    position: relative;
    z-index: 2;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--glass-border);
    z-index: 1;
}

.process-step:last-child::after {
    display: none;
}

/* --- SAMPLE REPORT --- */
.report-visual {
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
    margin-top: 3rem;
}

.report-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.report-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.graph-mock {
    height: 100px;
    background: linear-gradient(to top, rgba(67, 97, 238, 0.2), transparent);
    margin-top: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

/* --- TESTIMONIALS (Static Grid) --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--dark-card);
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid var(--accent-color);
}

.client-info {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background: #333;
    border-radius: 50%;
    margin-right: 15px;
}

/* --- CONTACT PAGE --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.info-item {
    display: flex;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(67, 97, 238, 0.1);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.2rem;
}

.contact-form {
    background: var(--dark-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--dark-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
}

.btn-block {
    width: 100%;
}

/* --- LEGAL PAGES --- */
.legal-content {
    background: var(--dark-card);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.legal-content h2 {
    color: var(--secondary-color);
    margin-top: 2rem;
}

.legal-content ul {
    padding-left: 20px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.breadcrumbs {
    margin-top: 20px;
    color: var(--text-muted);
}

.breadcrumbs span {
    margin: 0 10px;
}

/* --- FOOTER --- */
.footer {
    background: #000;
    padding: 80px 0 30px;
    border-top: 1px solid var(--glass-border);
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    display: block;
    margin-bottom: 20px;
}

.footer-about-text {
    font-size: 0.9rem;
}

.footer-col-title {
    color: white;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact ul {
    list-style: none;
}

.footer-contact li {
    display: flex;
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-contact i {
    margin-right: 15px;
    color: var(--secondary-color);
    margin-top: 4px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    color: #666;
    font-size: 0.85rem;
}

/* --- LIVE CHAT BUTTON --- */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 990;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(247, 37, 133, 0.4);
    cursor: pointer;
    transition: var(--transition-fast);
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
    transform: scale(0);
    transform-origin: bottom right;
    transition: var(--transition-fast);
    opacity: 0;
}

.chat-window.active {
    transform: scale(1);
    opacity: 1;
}

.chat-header {
    background: var(--secondary-color);
    padding: 15px;
    color: white;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.chat-body {
    height: 200px;
    padding: 15px;
    overflow-y: auto;
    font-size: 0.9rem;
}

.chat-msg {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: inline-block;
    max-width: 80%;
}

.chat-input {
    display: flex;
    border-top: 1px solid var(--glass-border);
}

.chat-input input {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: white;
    outline: none;
}

.chat-input button {
    padding: 0 15px;
    background: transparent;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
}

/* --- ANIMATION CLASSES --- */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease-out;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .hero-visual {
        opacity: 0.5;
        width: 80%;
    }

    .calc-container {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s;
        z-index: 1000;
    }

    .nav-menu.show {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
    }

    .nav-toggle {
        display: block;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .nav-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        color: white;
        font-size: 2rem;
    }

    .header-actions .btn {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .process-step::after {
        display: none;
    }

    .report-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}