/* --- RESET & VARIABLES --- */
:root {
    /* Core Brand Colors */
    --primary: #4361ee;
    --primary-dark: #3a0ca3;
    --primary-light: #4895ef;
    --accent: #f72585;
    --accent-glow: rgba(247, 37, 133, 0.5);

    /* Neutral / Dark Theme Colors */
    --bg-dark: #0b0c15;
    /* Main background */
    --bg-header: #0b0c15;
    /* Solid header background */
    --bg-card: #161823;
    --bg-card-hover: #1f2233;
    --text-main: #e0e1dd;
    --text-muted: #9a9b9e;
    --border: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1280px;
    --header-height: 90px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    padding-top: var(--header-height);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- UTILITIES --- */
.container {
    max-width: var(--container-width);
    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;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    box-shadow: 0 10px 20px -10px rgba(67, 97, 238, 0.5);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -10px rgba(67, 97, 238, 0.7);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-light);
    color: var(--primary-light);
}

.btn-secondary:hover {
    background: var(--primary-light);
    color: white;
    transform: translateY(-3px);
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(to right, #4cc9f0, #4361ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- ANIMATIONS --- */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- HEADER --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 1000;
    transition: all 0.4s ease;
    background-color: var(--bg-header);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header.scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background-color: rgba(11, 12, 21, 0.98);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo-container img {
    width: auto;
    height: 60px;
    filter: invert(1);
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* FIX: Hide mobile menu by default on desktop */
.mobile-menu {
    display: none;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    bottom: -100px;
    right: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 4.5rem;
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero-text h1 span {
    color: var(--primary-light);
    display: block;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* 3D Dashboard Mockup Animation */
.hero-visual {
    position: relative;
    perspective: 1000px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.card-main {
    width: 400px;
    height: 300px;
    z-index: 2;
    transform: rotateY(-10deg) rotateX(5deg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card-sub {
    width: 250px;
    height: 180px;
    z-index: 3;
    top: 60%;
    right: -20px;
    transform: rotateY(-10deg) rotateX(5deg) translateZ(50px);
    background: linear-gradient(135deg, rgba(22, 24, 35, 0.9), rgba(67, 97, 238, 0.2));
    padding: 15px;
}

.ui-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    width: 100%;
}

.ui-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 5px;
    width: 60%;
}

.ui-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    margin-bottom: 10px;
}

/* --- SERVICES SECTION --- */
.services-section {
    background: #0d0f1a;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, var(--primary-dark), transparent);
    opacity: 0.1;
    transition: height 0.4s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 25px;
    display: inline-block;
    padding: 15px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 12px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-link {
    color: white;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link i {
    transition: transform 0.3s;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* --- CALCULATOR SECTION --- */
.calculator-section {
    background: linear-gradient(rgba(11, 12, 21, 0.9), rgba(11, 12, 21, 0.9)), url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
}

.calc-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.calc-inputs label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-main);
    font-weight: 500;
}

.range-wrap {
    margin-bottom: 30px;
}

.range-wrap input {
    width: 100%;
    height: 6px;
    background: var(--bg-card);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

.range-wrap input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-light);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary);
}

.range-value {
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    display: block;
    margin-top: 5px;
}

.calc-results {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--primary);
    box-shadow: 0 0 30px rgba(67, 97, 238, 0.1);
}

.result-box h4 {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 10px;
}

.result-number {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    font-family: var(--font-heading);
}

/* --- PROCESS SECTION --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--border);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    right: -10px;
    top: 15px;
    z-index: 10;
    box-shadow: 0 0 0 5px rgba(67, 97, 238, 0.3);
}

.timeline-item:nth-child(even) .timeline-dot {
    right: auto;
    left: -10px;
}

.timeline-content {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--border);
}

/* --- TESTIMONIALS --- */
.testimonials-section {
    background: #0d0f1a;
}

.testimonials-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding-bottom: 40px;
    scroll-snap-type: x mandatory;
}

.testimonials-wrapper::-webkit-scrollbar {
    height: 8px;
}

.testimonials-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.testimonial-card {
    min-width: 350px;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border-left: 4px solid var(--accent);
    scroll-snap-align: center;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--border);
    object-fit: cover;
}

/* --- CONTACT & LEGAL --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info-box {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

.page-header,
.legal-page-header {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-dark), #0f121e);
}

.legal-content-body {
    background: var(--bg-card);
    padding: 60px;
    border-radius: 20px;
    margin-bottom: 100px;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    color: var(--primary-light);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.legal-section p {
    color: #c0c0c0;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: white;
    font-family: var(--font-body);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(67, 97, 238, 0.2);
}

/* --- FOOTER --- */
.footer {
    background: #05060a;
    border-top: 1px solid var(--border);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: white;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #666;
    font-size: 0.9rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 40px;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .calc-container {
        grid-template-columns: 1fr;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        text-align: left;
    }

    .timeline-item:nth-child(odd) {
        text-align: left;
        left: 0;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-dot {
        left: 22px !important;
        right: auto;
    }
}

@media (max-width: 768px) {

    .header-actions,
    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* FIX: Re-enable mobile menu here */
    .mobile-menu {
        display: block;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        padding: 20px;
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        z-index: 999;
        border-bottom: 1px solid var(--border);
    }

    .mobile-menu.active {
        transform: translateY(0);
    }

    .mobile-nav-link {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 1.1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}