/* ==========================================================================
   1. ROOT VARIABLES & THEME CONFIGURATION
   ========================================================================== */
:root {
    --bg-deep: #06080F;
    --bg-surface: #0E1320;
    --bg-glass: rgba(14, 19, 32, 0.75);

    --primary: #F97316;
    --primary-glow: rgba(249, 115, 22, 0.45);

    --secondary: #f8e538;
    --secondary-glow: rgba(56, 189, 248, 0.4);

    --accent: #22C55E;

    --text-main: #FAFAFA;
    --text-muted: #A1A1AA;
    --text-dark: #020617;

    --border-glass: rgba(255, 255, 255, 0.07);

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    --header-height: 90px;
    --container-max: 1280px;

    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}


/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Hiding default cursor for custom JS cursor */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Background Glows */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: -1;
    opacity: 0.4;
    animation: float-ambient 15s infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
    z-index: -1;
    opacity: 0.3;
    animation: float-ambient 20s infinite alternate-reverse;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 4.5rem;
    font-weight: 800;
}

h2 {
    font-size: 3rem;
    font-weight: 700;
}

h3 {
    font-size: 2rem;
    font-weight: 600;
}

p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ==========================================================================
   3. 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(--secondary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--secondary);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline.hovered {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 255, 194, 0.1);
    border-color: transparent;
}

/* ==========================================================================
   4. UTILITY CLASSES
   ========================================================================== */
.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.gradient-text {
    background: linear-gradient(135deg, var(--text-main) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: var(--spacing-md);
    transition: transform 0.3s var(--ease-out-expo), border-color 0.3s;
}

.glass-panel:hover {
    border-color: var(--secondary);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   5. COMPONENT: BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-main);
    box-shadow: 0 10px 30px -10px var(--primary-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--text-main);
    z-index: -1;
    transition: width 0.3s var(--ease-out-expo);
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-primary:hover {
    color: var(--primary);
    box-shadow: 0 15px 40px -10px var(--primary-glow);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--secondary);
    color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary);
    color: var(--bg-deep);
    box-shadow: 0 0 20px var(--secondary-glow);
}

/* ==========================================================================
   6. HEADER & NAVIGATION
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: background 0.3s, padding 0.3s;
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: rgba(11, 14, 20, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    height: 80px;
}

header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

nav ul {
    display: flex;
    gap: 40px;
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    color: var(--text-muted);
}

nav a.active,
nav a:hover {
    color: var(--text-main);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s var(--ease-out-expo);
}

nav a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
}

/* ==========================================================================
   7. HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 650px;
    z-index: 2;
}

.tagline {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid var(--primary);
    border-radius: 30px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero h1 span {
    display: block;
    color: var(--secondary);
}

.hero-visual {
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    width: 60%;
    height: 80%;
    z-index: 1;
}

/* Abstract CSS shapes for Hero */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: 10%;
    right: 20%;
    opacity: 0.3;
    animation: float-y 6s ease-in-out infinite;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: 10%;
    right: 10%;
    opacity: 0.2;
    animation: float-y 8s ease-in-out infinite reverse;
}

/* ==========================================================================
   8. SERVICES SECTION (Cards)
   ========================================================================== */
.services-section {
    position: relative;
}

.section-header {
    margin-bottom: 60px;
    max-width: 600px;
}

.service-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--border-glass);
    padding: 40px 30px;
    border-radius: 24px;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(88, 101, 242, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 30px;
    transition: 0.4s;
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--text-main);
    transform: rotateY(180deg);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* ==========================================================================
   9. INTERACTIVE CALCULATOR (Slider Style)
   ========================================================================== */
.calculator-wrapper {
    background: var(--bg-surface);
    border-radius: 30px;
    padding: 60px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.range-group {
    margin-bottom: 40px;
}

.range-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 600;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--secondary);
    border-radius: 50%;
    cursor: none;
    /* Custom cursor handles interaction */
    box-shadow: 0 0 15px var(--secondary-glow);
    transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.roi-circle-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--secondary) 0%, transparent 0%);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transition: --angle 0.5s;
}

.roi-inner {
    width: 280px;
    height: 280px;
    background: var(--bg-surface);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
}

.roi-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
}

/* ==========================================================================
   10. INDUSTRIES & TESTIMONIALS
   ========================================================================== */
.industry-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.industry-tag {
    padding: 12px 25px;
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    color: var(--text-muted);
    transition: 0.3s;
}

.industry-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
}

.testimonial-card {
    background: var(--bg-surface);
    padding: 40px;
    border-radius: 20px;
    position: relative;
}

.quote-icon {
    font-size: 4rem;
    position: absolute;
    top: 20px;
    right: 30px;
    opacity: 0.1;
    color: var(--secondary);
    font-family: serif;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
}

/* ==========================================================================
   11. CAMPAIGN REPORT (CSS Charts)
   ========================================================================== */
.report-viz-container {
    background: #0f1219;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    height: 250px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.bar {
    width: 40px;
    background: linear-gradient(to top, var(--primary), var(--secondary));
    border-radius: 6px 6px 0 0;
    height: 0%;
    transition: height 1.5s ease-out;
    opacity: 0.8;
}

.bar:hover {
    opacity: 1;
    box-shadow: 0 0 20px var(--secondary-glow);
}

.bar-label {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
footer {
    background: #080a0f;
    border-top: 1px solid var(--border-glass);
    padding-top: 80px;
}

.footer-top {
    padding-bottom: 60px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-links h4 {
    color: var(--text-main);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-bottom {
    background: #050609;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   13. LEGAL & CONTACT PAGES
   ========================================================================== */
.page-hero {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, rgba(88, 101, 242, 0.15) 0%, var(--bg-deep) 70%);
}

.legal-doc {
    background: var(--bg-surface);
    padding: 60px;
    border-radius: 20px;
    margin-top: -60px;
    position: relative;
    border: 1px solid var(--border-glass);
    margin-bottom: 60px;
}

.legal-doc h2 {
    color: var(--secondary);
    margin-top: 30px;
}

.legal-doc ul {
    list-style: disc;
    padding-left: 20px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    margin-bottom: 100px;
}

.contact-sidebar {
    background: linear-gradient(135deg, var(--primary) 0%, #2e0249 100%);
    padding: 60px;
    color: white;
}

.contact-main {
    background: var(--bg-surface);
    padding: 60px;
}

.form-field {
    margin-bottom: 25px;
    position: relative;
}

.form-field label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 15px;
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: 0.3s;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--secondary);
    outline: none;
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   14. ANIMATIONS & MEDIA QUERIES
   ========================================================================== */
@keyframes float-y {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes float-ambient {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {

    .grid-2,
    .grid-3,
    .calc-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 3rem;
    }

    .hero-visual {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-surface);
        padding: 100px 40px;
        transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
        border-left: 1px solid var(--border-glass);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    /* Disable custom cursor on touch */
    *,
    *::before,
    *::after {
        cursor: auto;
    }
}