/* 
====================================================================
    PROJECT: Manifest Communication Digital Agency
    THEME: Future-Tech / Dark Mode
    FONT: Poppins & Share Tech Mono
====================================================================
*/

/* --- 1. RESET & VARIABLES --- */
:root {
    /* Colors */
    --bg-dark: #030304;
    --bg-panel: #0a0a0c;
    --bg-card: #121214;
    --primary: #6d28d9;
    --primary-glow: rgba(109, 40, 217, 0.5);
    --secondary: #06b6d4;
    --secondary-glow: rgba(6, 182, 212, 0.5);
    --accent: #f43f5e;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #2d2d30;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-main: 'Poppins', sans-serif;
    --font-tech: 'Share Tech Mono', monospace;

    /* Spacing */
    --container-width: 1400px;
    --header-height: 90px;
    --section-spacing: 120px;

    /* Transitions */
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Selection */
::selection {
    background: var(--secondary);
    color: var(--bg-dark);
}

/* --- 2. UTILITIES & TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    letter-spacing: -2px;
}

h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    letter-spacing: -1px;
}

h3 {
    font-size: 1.75rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
    /* Specific transition to avoid GSAP conflict */
    transition: color 0.3s ease, background-color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-highlight {
    color: var(--secondary);
    font-family: var(--font-tech);
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.section-tag {
    font-family: var(--font-tech);
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

/* --- 3. CUSTOM CURSOR --- */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: left 0.1s, top 0.1s;
}

/* --- 4. HEADER --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 100;
    transition: background 0.3s, height 0.3s, backdrop-filter 0.3s;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(3, 3, 4, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    height: 80px;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 80px;
    width: auto;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: #fff;
}

.nav-list {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

.dropdown-menu li {
    margin-bottom: 0.5rem;
}

.dropdown-menu a {
    color: var(--text-muted);
    display: block;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--secondary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
    z-index: 1;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: #fff;
}

.btn-outline:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    background: rgba(6, 182, 212, 0.05);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    width: 30px;
    height: 2px;
    background: #fff;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* --- 5. HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 10s infinite ease-in-out;
}

.orb-1 {
    top: 20%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: var(--primary);
}

.orb-2 {
    bottom: 10%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: var(--secondary);
    animation-delay: -5s;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--secondary);
    border-radius: 50px;
    color: var(--secondary);
    font-family: var(--font-tech);
    margin-bottom: 2rem;
    background: rgba(6, 182, 212, 0.1);
    backdrop-filter: blur(5px);
}

.hero-btns {
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
}

/* 3D Grid Floor Effect */
.grid-floor {
    position: absolute;
    bottom: -20%;
    left: 0;
    width: 100%;
    height: 80vh;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    opacity: 0.2;
    z-index: 1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 500px;
    }
}

/* --- 6. STATS MARQUEE --- */
.marquee-section {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-panel);
    overflow: hidden;
}

.marquee-content {
    display: flex;
    gap: 4rem;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-tech);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* --- 7. SERVICES (3D Cards) --- */
.services {
    padding: var(--section-spacing) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3rem 2rem;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    /* IMPORTANT: Do not use 'all' here, it conflicts with GSAP */
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: var(--glass-border);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--secondary);
    transition: all 0.4s ease;
}

.service-card:hover .icon-box {
    background: var(--secondary);
    color: #fff;
    transform: rotateY(180deg);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.service-link i {
    transition: transform 0.3s;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* --- 8. CALCULATOR SECTION --- */
.calculator-section {
    padding: var(--section-spacing) 0;
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-panel));
    position: relative;
}

.calculator-wrapper {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.calc-form h3 {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.range-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    height: 6px;
    background: var(--border);
    border-radius: 5px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--secondary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--secondary-glow);
}

.range-value {
    font-family: var(--font-tech);
    color: #fff;
    min-width: 80px;
    text-align: right;
}

.select-box select {
    width: 100%;
    padding: 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: #fff;
    border-radius: 8px;
    outline: none;
}

.calc-results {
    background: var(--bg-dark);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--border);
}

.result-item {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.result-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary);
    font-family: var(--font-tech);
    display: block;
    margin-bottom: 0.5rem;
}

.result-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- 9. SAMPLE REPORTS (Data Viz) --- */
.reports-section {
    padding: var(--section-spacing) 0;
}

.report-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.report-visual {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 300px;
    padding-top: 2rem;
    border-bottom: 1px solid var(--border);
}

.bar {
    width: 12%;
    background: var(--border);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: height 1s cubic-bezier(0.16, 1, 0.3, 1);
    height: 0;
}

.bar.active {
    background: linear-gradient(to top, var(--primary), var(--secondary));
    box-shadow: 0 0 20px rgba(109, 40, 217, 0.3);
}

.bar span {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: #fff;
    opacity: 0;
    transition: opacity 0.5s 0.5s;
}

.bar.active span {
    opacity: 1;
}

.report-info {
    flex: 1;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.feature-list i {
    color: var(--secondary);
}

/* --- 10. TESTIMONIALS --- */
.testimonials {
    padding: var(--section-spacing) 0;
    background: var(--bg-panel);
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    cursor: grab;
}

.testimonial-card {
    min-width: 400px;
    background: var(--bg-dark);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.t-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.stars {
    color: #fbbf24;
}

.quote-icon {
    font-size: 2rem;
    color: var(--border);
}

.t-text {
    font-style: italic;
    margin-bottom: 2rem;
}

.t-author h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.t-author span {
    font-size: 0.85rem;
    color: var(--secondary);
}

/* --- 11. CONTACT SECTION --- */
.contact-section {
    padding: var(--section-spacing) 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateX(10px);
    border-color: var(--secondary);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.2rem;
}

.contact-details h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: #fff;
}

.contact-details p {
    margin: 0;
    font-size: 0.9rem;
}

.contact-form {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-main);
    transition: border 0.3s;
}

.form-input:focus {
    border-color: var(--secondary);
    outline: none;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

textarea.form-input {
    padding: 1rem;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
}

/* --- 12. FOOTER --- */
.footer {
    background: #000;
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 80px;
}

.footer-about p {
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s;
}

.footer-socials a:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-5px);
}

.footer-col h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul a {
    color: var(--text-muted);
}

.footer-col ul a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-contact i {
    color: var(--secondary);
    margin-top: 3px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

/* --- 13. LEGAL PAGES SPECIFIC --- */
.page-header {
    padding: 180px 0 80px;
    background: var(--bg-panel);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.breadcrumbs {
    display: inline-block;
    background: var(--bg-card);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: #fff;
}

.legal-content {
    background: var(--bg-card);
    padding: 4rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    margin-bottom: var(--section-spacing);
}

.legal-content h2 {
    color: var(--secondary);
    margin-top: 3rem;
    font-size: 1.8rem;
}

.legal-content p,
.legal-content ul {
    margin-bottom: 1.5rem;
    color: #ccc;
}

/* --- 14. LIVE CHAT WIDGET --- */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
    position: relative;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transform-origin: bottom right;
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.chat-window.active {
    transform: scale(1);
    opacity: 1;
}

.chat-header {
    background: var(--primary);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    height: 300px;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-msg {
    max-width: 80%;
    padding: 0.8rem;
    border-radius: 12px;
    font-size: 0.9rem;
}

.msg-bot {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.msg-user {
    background: var(--secondary);
    color: var(--bg-dark);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    font-weight: 500;
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.5rem;
}

.chat-input-area input {
    flex: 1;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: #fff;
    outline: none;
}

/* --- 15. BACK TO TOP --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

/* --- 16. RESPONSIVE QUERIES --- */
@media (max-width: 1024px) {
    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .report-container {
        flex-direction: column;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .nav-list,
    .header-actions .btn {
        display: none;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .header-wrapper {
        padding: 0 1rem;
    }

    /* Mobile Menu */
    .nav.mobile-active .nav-list {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--bg-panel);
        padding: 2rem;
        border-bottom: 1px solid var(--border);
        align-items: center;
        gap: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }

    .testimonial-card {
        min-width: 100%;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }
}

/* Animations Keyframes */
@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-20px, 20px);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(109, 40, 217, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(109, 40, 217, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(109, 40, 217, 0);
    }
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--secondary);
    text-align: center;
    max-width: 400px;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s;
}

.popup.active .popup-content {
    transform: scale(1);
}

.popup-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}