/*
Theme: Quantum Growth
Colors:
  - Background: #0D0F18 (Deep Space Navy)
  - Primary: #00BFFF (Electric Cyan)
  - Secondary: #C039A3 (Glowing Magenta)
  - Text Primary: #FFFFFF
  - Text Secondary: #A9B2C8 (Light Grey)
  - Glass Background: rgba(13, 15, 24, 0.5)
Fonts:
  - Headings: 'Exo 2', sans-serif
  - Body: 'Poppins', sans-serif
*/

/* --- ROOT VARIABLES & RESETS --- */
:root {
    --color-bg: #0D0F18;
    --color-primary: #00BFFF;
    --color-secondary: #C039A3;
    --color-text: #FFFFFF;
    --color-text-muted: #A9B2C8;
    --color-border: rgba(0, 191, 255, 0.2);
    --color-glass-bg: rgba(13, 15, 24, 0.5);
    --color-shadow: rgba(0, 191, 255, 0.25);

    --font-heading: 'Exo 2', sans-serif;
    --font-body: 'Poppins', sans-serif;

    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s ease;
    --container-width: 1200px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

/* --- GLOBAL STYLES & TYPOGRAPHY --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--color-text);
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-weight: 700;
    line-height: 1.2;
}

.section-padding {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tagline {
    display: inline-block;
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* --- AURORA BACKGROUND EFFECT --- */
.aurora-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 20% 20%, rgba(0, 191, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(192, 57, 163, 0.15) 0%, transparent 50%);
    z-index: -1;
    animation: aurora-pan 20s linear infinite alternate;
}

@keyframes aurora-pan {
    from {
        background-position: 0% 0%;
    }

    to {
        background-position: 100% 100%;
    }
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-style: preserve-3d;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-bg);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    color: var(--color-bg);
    box-shadow: 0 10px 20px -10px var(--color-shadow);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-bg);
    border-color: var(--color-primary);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

/* --- HEADER --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all var(--transition-speed);
    padding: 0;
    background: transparent;
}

.header.scrolled {
    background: var(--color-glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    height: 70px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    height: 60px;
    filter: brightness(0) invert(1);
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* --- MOBILE NAVIGATION --- */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.mobile-toggle .bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px auto;
    background-color: var(--color-text);
    transition: all 0.3s ease-in-out;
}

.mobile-toggle.is-active .bar-top {
    transform: rotate(-45deg) translate(-6px, 6px);
}

.mobile-toggle.is-active .bar-middle {
    opacity: 0;
}

.mobile-toggle.is-active .bar-bottom {
    transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 999;
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav nav ul {
    text-align: center;
}

.mobile-nav nav li {
    margin: 20px 0;
}

.mobile-nav nav a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.mobile-nav nav .btn {
    margin-top: 30px;
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--color-text), var(--color-text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 550px;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-3d-wrapper {
    perspective: 2000px;
}

.hero-3d-object {
    width: 450px;
    height: 450px;
    margin: auto;
    position: relative;
    transform-style: preserve-3d;
    background: radial-gradient(circle at center, rgba(0, 191, 255, 0.2) 0%, transparent 60%);
    animation: rotate-3d 30s infinite linear;
}

@keyframes rotate-3d {
    from {
        transform: rotateY(0deg) rotateX(10deg);
    }

    to {
        transform: rotateY(360deg) rotateX(10deg);
    }
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
}

.scroll-down-indicator i {
    animation: bounce-indicator 2s infinite;
}

@keyframes bounce-indicator {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(8px);
    }

    60% {
        transform: translateY(3px);
    }
}

/* --- PARTNERS SECTION --- */
.partners {
    padding: 60px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.partners-title {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 500;
}

.partners-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.partners-grid img {
    height: 30px;
    width: auto;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all var(--transition-speed);
}

.partners-grid img:hover {
    opacity: 1;
    filter: none;
}

/* --- SERVICES SECTION --- */
.services {
    background: rgba(0, 0, 0, 0.1);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed);
    transform-style: preserve-3d;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--color-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--color-primary), transparent, transparent);
    opacity: 0;
    transition: opacity 0.5s;
    animation: rotate-glow 5s linear infinite;
}

.service-card:hover::before {
    opacity: 0.1;
}

@keyframes rotate-glow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* --- APPROACH SECTION --- */
.approach-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.approach-line {
    position: absolute;
    left: 35px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

.approach-step {
    display: flex;
    gap: 30px;
    position: relative;
    padding-left: 80px;
    margin-bottom: 60px;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 70px;
    height: 70px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    background: var(--color-bg);
    color: var(--color-primary);
    transition: all var(--transition-speed);
}

.approach-step:hover .step-number {
    background: var(--color-primary);
    color: var(--color-bg);
    transform: scale(1.1);
}

.step-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

/* --- ROI CALCULATOR SECTION --- */
.roi-calculator {
    background: rgba(0, 0, 0, 0.1);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--color-glass-bg);
    border: 1px solid var(--color-border);
    padding: 50px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
}

.calculator-inputs .form-group {
    margin-bottom: 2rem;
}

.calculator-inputs label {
    display: block;
    margin-bottom: 0.5rem;
}

.calculator-inputs input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text);
    font-size: 1.2rem;
    font-family: var(--font-body);
}

.calculator-outputs {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

.output-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-border);
}

.output-box.highlight {
    border-left-color: var(--color-primary);
}

.output-box p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.output-box h3 {
    font-size: 2.5rem;
    color: var(--color-primary);
}

/* --- TESTIMONIALS SECTION --- */
.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    display: flex;
    overflow: hidden;
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 20px;
    text-align: center;
    transition: transform 0.5s ease;
}

.testimonial-quote {
    font-size: 1.4rem;
    font-style: italic;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

.author-info span {
    font-size: 0.9rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-controls button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.slider-controls button:hover {
    background: var(--color-primary);
    color: var(--color-bg);
    border-color: var(--color-primary);
}

/* --- CTA SECTION --- */
.cta {
    padding: 100px 0;
}

.cta-container {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    padding: 60px;
    border-radius: var(--border-radius);
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    color: var(--color-bg);
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.1rem;
    color: rgba(13, 15, 24, 0.8);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.cta .btn-primary {
    background: var(--color-text);
    border-color: var(--color-text);
    color: var(--color-bg);
}

.cta .btn-primary:hover {
    background: var(--color-bg);
    color: var(--color-text);
    border-color: var(--color-bg);
}

/* --- FOOTER --- */
.footer {
    padding: 80px 0 30px;
    background: #06070C;
    border-top: 1px solid var(--color-border);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-about-text {
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text-muted);
}

.social-link:hover {
    background: var(--color-primary);
    color: var(--color-bg);
    border-color: var(--color-primary);
}

.footer-col-title {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--color-text-muted);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-info a {
    color: var(--color-text-muted);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* --- SUBPAGE & LEGAL STYLES --- */
body.subpage {
    padding-top: var(--header-height);
}

.page-header {
    padding: 100px 0;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.page-title {
    font-size: 3.5rem;
}

.breadcrumbs {
    margin-top: 1rem;
}

.breadcrumbs a:hover {
    color: var(--color-text);
}

.breadcrumbs i {
    color: var(--color-primary);
    margin: 0 10px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.legal-content p {
    margin-bottom: 1.5rem;
}

.legal-content a {
    text-decoration: underline;
}

/* --- CONTACT PAGE --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--color-glass-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 50px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.contact-form .form-row {
    display: flex;
    gap: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
    flex: 1;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
}

.contact-form .form-control,
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all var(--transition-speed);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-shadow);
}

.contact-form button {
    width: 100%;
}

/* --- POPUP --- */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 15, 24, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.popup:target {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--color-bg);
    padding: 40px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.popup:target .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
}

.popup-icon {
    font-size: 4rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.popup-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.popup-content p {
    margin-bottom: 2rem;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {

    .nav,
    .header-actions .header-cta {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .mobile-nav {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-3d-wrapper {
        grid-row: 1;
        margin-bottom: 2rem;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .calculator-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about-text {
        margin-left: auto;
        margin-right: auto;
    }

    .social-links,
    .contact-info,
    .testimonial-author {
        justify-content: center;
    }

    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .hero-3d-object {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 480px) {
    .partners-grid img {
        height: 20px;
    }

    .testimonial-quote {
        font-size: 1.2rem;
    }

    .cta-title {
        font-size: 2rem;
    }
}