/* --- CSS VARIABLES & RESET --- */
:root {
    --primary: #4834d4;
    --primary-dark: #301b9e;
    --secondary: #a29bfe;
    --accent: #00cec9;
    --accent-hover: #00b8b4;
    --dark-bg: #0c0c1e;
    --card-bg: #13132b;
    --text-light: #f5f6fa;
    --text-gray: #b2bec3;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --font-main: 'Poppins', sans-serif;
    --gradient-main: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- UTILITIES --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn i {
    margin-left: 10px;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 5px 15px rgba(72, 52, 212, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent);
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary);
    color: white;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 60px;
}

/* --- HEADER --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(12, 12, 30, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    transition: var(--transition);
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container img {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.2;
    filter: blur(80px);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
}

.hero-text h1 span {
    color: var(--accent);
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* 3D Visual */
.hero-visual {
    position: relative;
    height: 400px;
    perspective: 1000px;
}

.cube-container {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

.dashboard-preview {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 20px;
    transform: rotateY(-15deg) rotateX(10deg);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.db-header {
    height: 30px;
    background: var(--glass);
    border-radius: 8px;
    width: 100%;
}

.db-chart {
    flex-grow: 1;
    background: linear-gradient(180deg, rgba(72, 52, 212, 0.2) 0%, transparent 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.db-bar {
    position: absolute;
    bottom: 0;
    width: 12%;
    background: var(--accent);
    border-radius: 4px 4px 0 0;
    animation: growBar 2s ease-out forwards;
}

/* --- SERVICES SECTION --- */
.services {
    background: #0f0f26;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: 20px;
    transition: var(--transition);
    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, var(--primary) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--accent);
    color: white;
    transform: rotateY(360deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.service-link {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-link i {
    transition: transform 0.3s;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* --- ROI CALCULATOR SECTION --- */
.calculator-section {
    background: linear-gradient(to bottom, var(--dark-bg), #0f0f26);
    position: relative;
}

.calc-container {
    background: var(--card-bg);
    border-radius: 30px;
    padding: 50px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.calc-inputs h3 {
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.range-wrap {
    position: relative;
}

.range-input {
    width: 100%;
    -webkit-appearance: none;
    background: transparent;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    margin-top: -8px;
    box-shadow: 0 0 10px rgba(0, 206, 201, 0.5);
}

.range-input::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: #2d2d44;
    border-radius: 2px;
}

.input-value {
    position: absolute;
    right: 0;
    top: -30px;
    color: var(--accent);
    font-weight: 700;
}

.calc-result {
    background: var(--primary-dark);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.calc-result::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, transparent, transparent, var(--accent));
    animation: rotate 4s linear infinite;
    opacity: 0.2;
}

.result-content {
    position: relative;
    z-index: 2;
}

.result-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin: 20px 0;
    display: block;
}

.result-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* --- PROCESS SECTION --- */
.process-steps {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--glass-border);
    transform: translateX(-50%);
    z-index: 0;
}

.step {
    display: flex;
    justify-content: flex-end;
    padding-left: 50%;
    position: relative;
    margin-bottom: 60px;
}

.step:nth-child(even) {
    justify-content: flex-start;
    padding-left: 0;
    padding-right: 50%;
    text-align: right;
}

.step-marker {
    position: absolute;
    left: 50%;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 2px solid var(--accent);
    border-radius: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--accent);
    z-index: 2;
}

.step-content {
    width: 90%;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    position: relative;
}

.step:nth-child(even) .step-content {
    margin-right: 30px;
}

.step:nth-child(odd) .step-content {
    margin-left: 30px;
}

/* --- TESTIMONIALS --- */
.testimonials-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding-bottom: 30px;
    scrollbar-width: none;
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: 400px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    scroll-snap-align: center;
}

.client-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.client-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--text-gray);
    margin-right: 15px;
    overflow: hidden;
}

.client-details h4 {
    color: var(--secondary);
    margin-bottom: 5px;
}

.client-details span {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.rating {
    color: #ffd700;
    margin-bottom: 15px;
}

/* --- CONTACT PAGE SPECIFIC --- */
.contact-hero {
    padding-top: 180px;
    text-align: center;
    padding-bottom: 80px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 100px;
}

.contact-info-box {
    background: var(--primary-dark);
    padding: 40px;
    border-radius: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-icon {
    min-width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-right: 20px;
    font-size: 1.2rem;
}

.contact-form {
    background: var(--card-bg);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    font-family: var(--font-main);
    transition: var(--transition);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

/* --- LEGAL PAGES --- */
.legal-content-area {
    background: var(--card-bg);
    padding: 60px;
    border-radius: 20px;
    margin-bottom: 100px;
}

.legal-content-area h1 {
    color: var(--secondary);
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.legal-content-area h2 {
    color: var(--text-light);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-left: 4px solid var(--accent);
    padding-left: 15px;
}

.legal-content-area p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.legal-content-area ul {
    list-style: disc;
    padding-left: 20px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.legal-content-area li {
    margin-bottom: 10px;
}

/* --- FOOTER --- */
.footer {
    background: #080814;
    padding: 80px 0 30px;
    border-top: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-desc {
    color: var(--text-gray);
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent);
    color: white;
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    font-size: 0.85rem;
}

/* --- ANIMATIONS --- */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes growBar {
    from {
        height: 0;
    }

    to {
        height: var(--height);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p,
    .section-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .calc-container {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .process-steps::before {
        left: 0;
    }

    .step,
    .step:nth-child(even) {
        padding-left: 30px;
        padding-right: 0;
        justify-content: flex-start;
        text-align: left;
    }

    .step-marker {
        left: 0;
    }

    .step:nth-child(even) .step-content,
    .step:nth-child(odd) .step-content {
        margin-left: 20px;
        margin-right: 0;
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .nav-links,
    .header-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .testimonials-slider {
        scroll-snap-type: none;
    }

    .testimonial-card {
        min-width: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--card-bg);
    padding: 20px;
    transform: translateY(-150%);
    transition: var(--transition);
    z-index: 999;
    border-bottom: 1px solid var(--accent);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-nav-links li {
    margin-bottom: 20px;
    text-align: center;
}

.mobile-nav-links a {
    font-size: 1.2rem;
    color: white;
}