/* 
====================================================================
   DIGITAL MARKETING AGENCY - CORE STYLESHEET
   Theme: Neon Data Stream
   Version: 2.0
==================================================================== 
*/

:root {
    /* --- Color Palette --- */
    --color-bg: #050505;
    --color-bg-secondary: #0a0a0a;
    --color-bg-tertiary: #111111;
    --color-text-main: #e0e0e0;
    --color-text-muted: #a0a0a0;

    --color-primary: #6d28d9;
    /* Violet */
    --color-primary-light: #8b5cf6;
    --color-primary-dark: #4c1d95;

    --color-accent: #06b6d4;
    /* Cyan */
    --color-accent-glow: rgba(6, 182, 212, 0.4);

    --color-success: #10b981;
    --color-error: #ef4444;

    --border-color: rgba(255, 255, 255, 0.1);

    /* --- Typography --- */
    --font-main: 'Poppins', sans-serif;
    --font-heading: 'Poppins', sans-serif;

    /* --- Spacing --- */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* --- Transitions --- */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

    /* --- Shadows & Glows --- */
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --glow-primary: 0 0 20px rgba(109, 40, 217, 0.5);
    --glow-accent: 0 0 20px rgba(6, 182, 212, 0.5);
}

/* ====================================================================
   RESET & BASE STYLES
   ==================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -1px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ====================================================================
   UTILITY CLASSES & ANIMATIONS
   ==================================================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-accent);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 5px var(--color-primary);
    }

    50% {
        box-shadow: 0 0 20px var(--color-primary), 0 0 10px var(--color-accent);
    }

    100% {
        box-shadow: 0 0 5px var(--color-primary);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes spin-slow {
    to {
        transform: rotate(360deg);
    }
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translate(0, 0);
}

.fade-up {
    transform: translateY(40px);
}

.fade-left {
    transform: translateX(40px);
}

/* ====================================================================
   BUTTONS & INPUTS
   ==================================================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(109, 40, 217, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--color-accent);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-primary:hover {
    box-shadow: var(--glow-accent);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
}

.btn-secondary:hover {
    background: var(--color-accent);
    color: #000;
    box-shadow: var(--glow-accent);
}

input,
select,
textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-family: var(--font-main);
    transition: var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

/* ====================================================================
   HEADER & NAVIGATION (Strict Consistency)
   ==================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-normal);
    background: transparent;
}

.header.scrolled {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(15px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    filter: brightness(0) invert(1);
    /* Ensure logo is white */
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-main);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-accent);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--color-accent);
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: white;
    transition: 0.3s;
}

/* ====================================================================
   HERO SECTION
   ==================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #1a1a2e 0%, #050505 70%);
}

.hero-bg-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
    background-image:
        linear-gradient(rgba(6, 182, 212, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    perspective: 1000px;
    transform: rotateX(60deg) translateY(-100px) scale(2);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 500px;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(109, 40, 217, 0.1);
    border: 1px solid var(--color-primary);
    border-radius: 30px;
    color: var(--color-accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

/* 3D Elements in Hero */
.hero-3d-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    top: 20%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: var(--color-primary);
    animation-delay: 0s;
}

.shape-2 {
    bottom: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: var(--color-accent);
    animation-delay: 2s;
}

/* ====================================================================
   SERVICES SECTION (3D Cards)
   ==================================================================== */
.services-section {
    background: var(--color-bg-secondary);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.service-card {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 16px;
    transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-card), 0 0 20px rgba(109, 40, 217, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 25px;
    transition: 0.3s;
}

.service-card:hover .service-icon {
    background: var(--color-primary);
    color: white;
    transform: rotate(10deg);
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-list {
    margin-top: 20px;
}

.service-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.service-list li i {
    color: var(--color-success);
    margin-right: 10px;
    font-size: 0.8rem;
}

/* ====================================================================
   CALCULATOR SECTION (Interactive)
   ==================================================================== */
.calculator-section {
    background: linear-gradient(to bottom, var(--color-bg), var(--color-bg-secondary));
}

.calculator-wrapper {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.calc-inputs h3 {
    color: var(--color-accent);
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 500;
}

.range-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    background: #333;
    border-radius: 5px;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-accent);
    cursor: pointer;
    box-shadow: 0 0 10px var(--color-accent);
}

.calc-results {
    background: linear-gradient(135deg, var(--color-primary-dark), #1a1a2e);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.result-box {
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.result-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin: 10px 0;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* ====================================================================
   PROCESS SECTION (Timeline)
   ==================================================================== */
.process-section {
    background: var(--color-bg);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--color-bg-tertiary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    opacity: 0;
    transition: all 0.5s;
}

.timeline-item.visible {
    opacity: 1;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--color-bg);
    border: 4px solid var(--color-accent);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
    transition: 0.3s;
}

.timeline-item.right::after {
    left: -10px;
}

.timeline-item:hover::after {
    background-color: var(--color-accent);
    box-shadow: 0 0 15px var(--color-accent);
}

.timeline-content {
    padding: 30px;
    background: var(--color-bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.timeline-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 10px;
}

.timeline-item.left .timeline-number {
    right: 50px;
}

.timeline-item.right .timeline-number {
    left: 50px;
}

/* ====================================================================
   TESTIMONIALS & SAMPLE REPORT
   ==================================================================== */
.sample-report-section {
    background: var(--color-bg-secondary);
}

.report-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.report-text {
    flex: 1;
    min-width: 300px;
}

.report-visual {
    flex: 1;
    min-width: 300px;
    background: #1e1e2f;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-card);
    position: relative;
}

/* CSS-only Graph Visualization */
.graph-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 200px;
    border-bottom: 2px solid #555;
    padding-bottom: 10px;
}

.bar {
    width: 15%;
    background: var(--color-primary);
    border-radius: 4px 4px 0 0;
    animation: growBar 2s ease-out infinite alternate;
}

.bar:nth-child(2) {
    height: 60%;
    background: var(--color-accent);
    animation-delay: 0.2s;
}

.bar:nth-child(3) {
    height: 80%;
    background: var(--color-success);
    animation-delay: 0.4s;
}

@keyframes growBar {
    0% {
        transform: scaleY(0.8);
    }

    100% {
        transform: scaleY(1.1);
    }
}

.testimonials-section {
    position: relative;
    overflow: hidden;
}

.testimonial-card {
    background: var(--color-bg-tertiary);
    padding: 30px;
    border-radius: 12px;
    margin: 20px;
    border-left: 4px solid var(--color-primary);
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ====================================================================
   LEGAL PAGES & CONTACT (Specifics)
   ==================================================================== */
.page-header-section {
    padding-top: 180px;
    padding-bottom: 80px;
    text-align: center;
    background: linear-gradient(to bottom, #111, var(--color-bg));
    position: relative;
}

.page-header-section h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.legal-page h2 {
    color: var(--color-accent);
    margin-top: 40px;
    font-size: 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.legal-page p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* Contact Form Specifics */
.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info-block {
    background: var(--color-bg-secondary);
    padding: 40px;
    border-radius: 20px;
}

.contact-detail-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-detail-item .icon {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-form {
    background: var(--color-bg-tertiary);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text-muted);
}

/* ====================================================================
   FOOTER (Strict Consistency)
   ==================================================================== */
.footer {
    background: #020202;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-about-text {
    margin: 20px 0;
    max-width: 300px;
    font-size: 0.9rem;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.footer-socials a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

.footer-title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-accent);
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 12px;
}

.footer-contact ul li {
    display: flex;
    gap: 10px;
    color: var(--color-text-muted);
}

.footer-contact i {
    color: var(--color-primary);
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-bottom ul {
    display: flex;
    gap: 20px;
}

/* ====================================================================
   RESPONSIVE DESIGN
   ==================================================================== */
@media (max-width: 992px) {
    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
        text-align: left;
    }

    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 21px;
    }

    .timeline-item.left .timeline-number,
    .timeline-item.right .timeline-number {
        left: auto;
        right: 20px;
    }

    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--color-bg-secondary);
        flex-direction: column;
        justify-content: center;
        transition: 0.3s;
        border-top: 1px solid var(--border-color);
        padding: 40px;
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .menu-toggle {
        display: flex;
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-about {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .page-header-section {
        padding-top: 140px;
    }
}