/* =========================================
   1. RESET & VARIABLES
   ========================================= */
:root {
    --primary-color: #6d28d9;
    /* Deep Purple */
    --primary-light: #8b5cf6;
    /* Lighter Purple */
    --secondary-color: #06b6d4;
    /* Cyan */
    --accent-pink: #ec4899;
    /* Pink for gradients */

    --bg-dark: #030712;
    /* Almost Black */
    --bg-card: #111827;
    /* Dark Grey */
    --bg-card-hover: #1f2937;

    --text-white: #f9fafb;
    --text-gray: #9ca3af;
    --text-dim: #4b5563;

    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(17, 24, 39, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --container-width: 1280px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-light), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.section-title span {
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 3rem;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn i {
    margin-left: 8px;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 4px 20px rgba(109, 40, 217, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(109, 40, 217, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-white);
}

.btn-secondary:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    background: rgba(6, 182, 212, 0.05);
}

/* =========================================
   2. HEADER (Strictly Consistent)
   ========================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-fast);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.logo img {
    height: 80px;
    width: auto;
    filter: invert(1);
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-gray);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--secondary-color);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-white);
    background: none;
    border: none;
    cursor: pointer;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-dark);
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.mobile-nav-overlay.active {
    transform: translateX(0);
}

.mobile-nav-overlay a {
    font-size: 1.5rem;
    font-weight: 700;
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Animated Background Shapes */
.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    z-index: -1;
    animation: float 10s infinite ease-in-out;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--primary-color);
}

.shape-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--secondary-color);
    animation-delay: 2s;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-visual {
    position: relative;
    perspective: 1000px;
}

.hero-3d-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.1s;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.hero-stat div {
    text-align: center;
}

.hero-stat h3 {
    font-size: 2rem;
    color: var(--secondary-color);
}

.hero-stat p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* =========================================
   4. SERVICES SECTION
   ========================================= */
.services {
    padding: 100px 0;
    background: #050a15;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 20px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: inline-block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.service-link {
    color: var(--primary-light);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* =========================================
   5. CALCULATOR SECTION
   ========================================= */
.calculator-section {
    padding: 100px 0;
    background: var(--bg-dark);
}

.calc-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.calc-inputs label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-gray);
    font-weight: 500;
}

.slider-container {
    margin-bottom: 30px;
}

.range-slider {
    width: 100%;
    height: 6px;
    background: #374151;
    border-radius: 5px;
    appearance: none;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    cursor: pointer;
}

.slider-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-top: 5px;
}

.calc-results {
    background: linear-gradient(135deg, var(--primary-color), var(--bg-card));
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.result-box {
    margin-bottom: 20px;
}

.result-box h4 {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.result-box .big-num {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
}

/* =========================================
   6. TESTIMONIALS & CLIENTS
   ========================================= */
.testimonials {
    padding: 100px 0;
    background: #050a15;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    gap: 30px;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.testimonial-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 15px;
    width: 400px;
    flex-shrink: 0;
}

.stars {
    color: #fbbf24;
    margin-bottom: 15px;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--bg-dark);
}

/* =========================================
   7. LIVE CHAT BUTTON
   ========================================= */
.live-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
    cursor: pointer;
    z-index: 900;
    transition: transform 0.3s;
}

.live-chat-btn:hover {
    transform: scale(1.1);
}

.chat-box {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 300px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    z-index: 900;
    display: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.chat-box.active {
    display: block;
    animation: fadeUp 0.3s;
}

/* =========================================
   8. LEGAL PAGES LAYOUT
   ========================================= */
.legal-page-header {
    padding: 180px 0 80px;
    text-align: center;
    background: radial-gradient(circle at top, #1e1b4b 0%, var(--bg-dark) 70%);
}

.legal-content {
    max-width: 900px;
    margin: 0 auto 100px;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
}

.legal-content h2 {
    color: var(--secondary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.legal-content p {
    color: var(--text-gray);
    margin-bottom: 15px;
    line-height: 1.8;
}

.legal-content strong {
    color: var(--text-white);
}

/* =========================================
   9. CONTACT PAGE
   ========================================= */
.contact-section {
    padding: 100px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info-box {
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-gray);
}

.form-control {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: white;
    font-family: var(--font-body);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* =========================================
   10. FOOTER (Strictly Consistent)
   ========================================= */
.main-footer {
    background: #02040a;
    padding-top: 80px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-brand p {
    color: var(--text-gray);
    margin: 20px 0;
}

.footer-col h4 {
    margin-bottom: 25px;
    color: var(--text-white);
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-gray);
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    background: #000;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* =========================================
   11. ANIMATIONS & MEDIA QUERIES
   ========================================= */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .calc-container {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .nav-menu,
    .header-cta .btn {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}