/* --- CSS RESET & VARIABLES --- */
:root {
    --primary-color: #00f3ff;
    --secondary-color: #bc13fe;
    --bg-dark: #050505;
    --bg-card: #0f0f11;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Roboto Mono', monospace;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glow: 0 0 20px rgba(0, 243, 255, 0.3);
    --border-color: rgba(255, 255, 255, 0.1);
    --container-width: 1200px;
    --header-height: 80px;
}

* {
    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;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- UTILITIES --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    font-size: 0.9rem;
    z-index: 1;
}

.btn-primary {
    background: transparent;
    color: var(--primary-color);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: -1;
    transition: var(--transition);
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    color: var(--bg-dark);
    box-shadow: var(--glow);
}

/* --- BACKGROUND ANIMATION --- */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}

.floating-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
    animation: floatOrb 20s infinite alternate;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--primary-color);
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: var(--secondary-color);
    animation-delay: -10s;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* --- PRELOADER --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-grid {
    text-align: center;
}

.loader-grid img {
    width: 80px;
    margin: 0 auto 20px;
    animation: pulse 2s infinite;
}

.loader-text {
    font-family: var(--font-heading);
    color: var(--primary-color);
    letter-spacing: 2px;
    animation: blink 1s infinite;
}

/* --- HEADER --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-main);
}

.nav-logo img {
    height: 60px;
    width: auto;
    filter: invert(1);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--text-main);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-family: var(--font-heading);
    color: var(--primary-color);
    letter-spacing: 3px;
    margin-bottom: 20px;
    display: block;
    font-weight: 700;
    animation: slideRight 1s ease forwards;
    opacity: 0;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 30px;
    font-weight: 900;
    animation: slideUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    animation: slideUp 1s ease 0.4s forwards;
    opacity: 0;
}

.hero-btns {
    animation: slideUp 1s ease 0.6s forwards;
    opacity: 0;
}

/* --- PAGE HEADER (Inner Pages) --- */
.page-header {
    padding-top: 180px;
    /* Clears the fixed header */
    padding-bottom: 80px;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.8) 0%, rgba(0, 243, 255, 0.05) 50%, rgba(5, 5, 5, 1) 100%);
    text-align: center;
    position: relative;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-main);
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
}

/* --- SERVICES SECTION --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- ROI CALCULATOR (Interactive) --- */
.calculator-section {
    background: linear-gradient(135deg, rgba(15, 15, 17, 0.9), rgba(5, 5, 5, 0.9));
    border: 1px solid var(--border-color);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.calc-form label {
    display: block;
    font-family: var(--font-heading);
    margin-bottom: 10px;
    color: var(--primary-color);
}

.calc-input-group {
    margin-bottom: 25px;
    position: relative;
}

.calc-input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 15px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.calc-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 243, 255, 0.05);
}

.calc-result {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border: 1px solid var(--primary-color);
    text-align: center;
    position: relative;
}

.calc-result::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--secondary-color);
    border-right: 2px solid var(--secondary-color);
}

.result-value {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary-color);
    margin: 10px 0;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

/* --- PROCESS SECTION --- */
.process-steps {
    position: relative;
    margin-top: 60px;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.step-item {
    text-align: center;
    flex: 1;
    padding: 0 10px;
}

.step-number {
    width: 100px;
    height: 100px;
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 30px;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    transition: var(--transition);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.step-item:hover .step-number {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: scale(1.1);
}

/* --- TESTIMONIALS --- */
.testimonials-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none;
    /* Firefox */
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: 350px;
    background: var(--bg-card);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--secondary-color);
}

.client-info {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.client-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #333;
    margin-right: 15px;
}

.stars {
    color: #ffd700;
    margin-bottom: 15px;
}

/* --- CONTACT PAGE --- */
.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-info-block h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-icon {
    min-width: 50px;
    height: 50px;
    background: rgba(0, 243, 255, 0.1);
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-right: 20px;
    font-size: 1.2rem;
}

.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 15px;
    color: var(--text-main);
    font-family: var(--font-body);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* --- LEGAL CONTENT --- */
.legal-content h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin: 40px 0 20px;
}

.legal-content p,
.legal-content li {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
}

/* --- FOOTER --- */
.footer {
    background: #020202;
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    display: block;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 60px;
    filter: invert(1);
}

.footer-about p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    border-color: var(--primary-color);
}

.footer h3 {
    font-family: var(--font-heading);
    color: var(--text-main);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 5px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal {
    display: flex;
    gap: 15px;
}

.footer-legal a {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

/* --- ANIMATIONS & EXTENSIONS --- */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-delay-1 {
    transition-delay: 0.2s;
}

.animate-delay-2 {
    transition-delay: 0.4s;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .process-steps::before {
        display: none;
    }

    .steps-container {
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        right: 0;
    }

    .header-actions .btn {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .calculator-wrapper,
    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--bg-dark);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 900;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 899;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--bg-card);
    padding: 40px;
    max-width: 500px;
    text-align: center;
    border: 1px solid var(--primary-color);
    position: relative;
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.2);
}

.popup-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}