/* ==========================================================================
   CSS Variables & Reset (Ruby & Amber Theme)
   ========================================================================== */
:root {
    --bg-main: #070404;
    /* Deep reddish black */
    --bg-secondary: #0d0606;
    --bg-glass: rgba(20, 8, 8, 0.65);
    --border-glass: rgba(255, 100, 100, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #bbaaaa;
    --accent-primary: #ff2a4b;
    /* Ruby Red */
    --accent-secondary: #ff9b00;
    /* Amber Gold */
    --gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --gradient-glow: linear-gradient(135deg, rgba(255, 42, 75, 0.3), rgba(255, 155, 0, 0.3));
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    cursor: none;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Custom Cursor & Scrollbar
   ========================================================================== */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    border: 2px solid var(--accent-secondary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s, border-color 0.2s;
    box-shadow: 0 0 10px rgba(255, 155, 0, 0.4);
}

.custom-cursor.hover {
    width: 60px;
    height: 60px;
    background: rgba(255, 42, 75, 0.1);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(255, 42, 75, 0.4);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

/* ==========================================================================
   Global Layout & Components
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 650px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: transparent;
    color: #fff;
    font-weight: 700;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid var(--accent-primary);
    cursor: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    z-index: -1;
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    transform: scaleX(0);
    transform-origin: right;
}

.btn-primary:hover {
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(255, 42, 75, 0.4);
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* ==========================================================================
   Header (Strictly Consistent Site-Wide)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(7, 4, 4, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 42, 75, 0.15);
    transition: var(--transition-fast);
}

.site-header.scrolled {
    padding: 1rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container img {
    height: 55px;
    filter: invert(1);
}

.main-nav ul {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    position: relative;
    transition: var(--transition-fast);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-secondary);
    transition: var(--transition-fast);
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a:hover {
    color: var(--accent-secondary);
}

.mobile-menu-btn {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* ==========================================================================
   1. Hero Section (3D Diamond & Particles)
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 50%, rgba(255, 42, 75, 0.15) 0%, transparent 60%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
}

.hero h1 {
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    line-height: 1.05;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    border-left: 3px solid var(--accent-secondary);
    padding-left: 1.5rem;
}

.hero-3d-element {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 45vw;
    height: 45vw;
    max-width: 650px;
    max-height: 650px;
    z-index: 1;
    perspective: 1200px;
}

/* New 3D Isometric Diamond/Cube Structure */
.diamond-container {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate3D 15s infinite linear;
}

.diamond-layer {
    position: absolute;
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    border: 2px solid var(--accent-primary);
    background: rgba(255, 155, 0, 0.05);
    box-shadow: inset 0 0 40px rgba(255, 42, 75, 0.3), 0 0 40px rgba(255, 155, 0, 0.2);
    transform: rotateX(45deg) rotateZ(45deg);
}

.layer-1 {
    transform: rotateX(45deg) rotateZ(45deg) translateZ(50px);
    border-color: var(--accent-secondary);
}

.layer-2 {
    transform: rotateX(45deg) rotateZ(45deg) translateZ(0px);
}

.layer-3 {
    transform: rotateX(45deg) rotateZ(45deg) translateZ(-50px);
    opacity: 0.5;
}

/* ==========================================================================
   2. About / Impact Section
   ========================================================================== */
.about-section {
    padding: 8rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-box {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.stat-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
}

.stat-box h3 {
    font-size: 3.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-box h3 span {
    color: var(--accent-primary);
}

/* ==========================================================================
   3. Methodology (Process) Section - New Section
   ========================================================================== */
.methodology-section {
    padding: 8rem 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.process-step {
    padding: 3rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    position: relative;
    transition: var(--transition-slow);
}

.process-step:hover {
    transform: translateY(-10px);
    border-color: var(--accent-secondary);
}

.step-number {
    position: absolute;
    top: -25px;
    left: 30px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 42, 75, 0.2);
    line-height: 1;
}

.process-step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-secondary);
}

.process-step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==========================================================================
   4. Services (3D Hover Cards)
   ========================================================================== */
.services-section {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    perspective: 1000px;
}

.service-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 4rem 3rem;
    border-radius: 8px;
    transition: var(--transition-slow);
    transform-style: preserve-3d;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
    opacity: 0;
    transition: 0.5s;
    z-index: 0;
    border-radius: 8px;
}

.service-card:hover::before {
    opacity: 0.15;
}

.service-content {
    position: relative;
    z-index: 1;
    transform: translateZ(40px);
}

.service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 2rem;
    color: var(--accent-primary);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ==========================================================================
   5. Industries Section
   ========================================================================== */
.industries-section {
    padding: 8rem 0;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.industry-box {
    position: relative;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    background: #1a0a0a;
    border: 1px solid rgba(255, 42, 75, 0.1);
}

.industry-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(7, 4, 4, 1) 10%, rgba(255, 42, 75, 0.1) 100%);
    z-index: 1;
}

.industry-box h3 {
    position: relative;
    z-index: 2;
    font-size: 1.4rem;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.industry-box:hover h3 {
    color: var(--accent-secondary);
    transform: translateY(-10px);
}

/* ==========================================================================
   6. Sample Campaign Reports (CSS Charts)
   ========================================================================== */
.reports-section {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

.chart-container {
    background: var(--bg-main);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 4rem;
    margin-top: 3rem;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    height: 350px;
    gap: 3%;
}

.bar {
    flex: 1;
    background: var(--gradient-primary);
    position: relative;
    animation: growUp 2s ease-out forwards;
    transform-origin: bottom;
    opacity: 0;
    box-shadow: 0 0 20px rgba(255, 42, 75, 0.3);
}

.bar span {
    position: absolute;
    top: -35px;
    width: 100%;
    text-align: center;
    font-weight: bold;
    color: var(--accent-secondary);
    font-size: 1.2rem;
}

/* ==========================================================================
   7. Service ROI Calculator
   ========================================================================== */
.calculator-section {
    padding: 8rem 0;
}

.calc-wrapper {
    background: var(--bg-glass);
    border: 1px solid var(--accent-primary);
    padding: 5rem;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    box-shadow: 0 0 40px rgba(255, 42, 75, 0.1);
}

.calc-group {
    margin-bottom: 3rem;
}

.calc-group label {
    display: block;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
}

input[type=range] {
    width: 100%;
    -webkit-appearance: none;
    background: transparent;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: #331515;
    border-radius: 3px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    background: var(--accent-secondary);
    margin-top: -12px;
    box-shadow: 0 0 20px var(--accent-secondary);
    border: 3px solid var(--bg-main);
    cursor: pointer;
}

.calc-result {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #110505;
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 4rem;
    text-align: center;
}

.calc-result h4 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#roi-value {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--accent-secondary);
    text-shadow: 0 0 30px rgba(255, 155, 0, 0.4);
}

/* ==========================================================================
   8. Testimonials
   ========================================================================== */
.testimonials-section {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.testi-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 3rem;
    border-radius: 8px;
    position: relative;
    border-top: 3px solid var(--accent-primary);
}

.testi-card::before {
    content: '\"';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 8rem;
    color: rgba(255, 42, 75, 0.05);
    font-family: serif;
    line-height: 1;
}

.testi-text {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.testi-author h5 {
    font-size: 1.3rem;
    color: var(--text-primary);
    text-transform: uppercase;
}

.testi-author span {
    font-size: 0.95rem;
    color: var(--accent-secondary);
}

/* ==========================================================================
   9. Live Chat Widget (Mockup Interface)
   ========================================================================== */
.chat-section {
    padding: 8rem 0;
}

.chat-mockup {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.chat-header {
    background: var(--bg-secondary);
    padding: 1.5rem;
    text-align: center;
    font-weight: bold;
    border-bottom: 1px solid var(--accent-primary);
    color: var(--accent-secondary);
    text-transform: uppercase;
}

.chat-body {
    height: 350px;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.msg {
    padding: 1.2rem;
    border-radius: 8px;
    max-width: 85%;
    font-size: 0.95rem;
}

.msg.bot {
    background: #1a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    align-self: flex-start;
}

.msg.user {
    background: var(--gradient-primary);
    align-self: flex-end;
    color: #fff;
    box-shadow: 0 5px 15px rgba(255, 42, 75, 0.3);
}

.chat-input {
    display: flex;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-input input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border-glass);
    background: #070404;
    color: #fff;
    border-radius: 4px;
    outline: none;
}

.chat-input input:focus {
    border-color: var(--accent-secondary);
}

/* ==========================================================================
   10. Contact Form & CTA
   ========================================================================== */
.contact-section {
    padding: 10rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-secondary), transparent);
}

.form-container {
    max-width: 850px;
    margin: 0 auto;
    background: var(--bg-main);
    border: 1px solid var(--border-glass);
    padding: 5rem;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.form-group {
    position: relative;
    margin-bottom: 3rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid #331515;
    color: #fff;
    font-size: 1.2rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    pointer-events: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--accent-secondary);
}

.form-group input:focus~label,
.form-group input:valid~label,
.form-group textarea:focus~label,
.form-group textarea:valid~label {
    top: -1.5rem;
    font-size: 0.8rem;
    color: var(--accent-secondary);
}

/* ==========================================================================
   11. Global Footer (Strictly Consistent Site-Wide)
   ========================================================================== */
.site-footer {
    background: #040202;
    border-top: 1px solid var(--accent-primary);
    padding: 6rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-logo {
    max-width: 160px;
    filter: invert(1);
    margin-bottom: 1.5rem;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition-fast);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.footer-links a:hover {
    color: var(--accent-secondary);
    padding-left: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #1a0a0a;
    color: #665555;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Legal Pages Specific Styling
   ========================================================================== */
.legal-header {
    padding: 180px 0 60px;
    background: var(--bg-secondary);
    text-align: center;
    border-bottom: 1px solid #1a0a0a;
}

.legal-content {
    padding: 5rem 0 10rem;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-secondary);
}

.legal-content h2 {
    color: var(--accent-secondary);
    margin: 3rem 0 1.5rem;
    font-size: 1.8rem;
    text-transform: uppercase;
}

.legal-content p,
.legal-content ul {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.legal-content ul {
    padding-left: 20px;
    list-style-type: square;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes rotate3D {
    0% {
        transform: rotateY(0deg) rotateX(0deg);
    }

    100% {
        transform: rotateY(360deg) rotateX(360deg);
    }
}

@keyframes growUp {
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1200px) {
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .about-grid,
    .calc-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-3d-element {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background: rgba(7, 4, 4, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 3rem 2rem;
        transition: 0.4s;
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 2.5rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .industries-grid,
    .testi-grid,
    .footer-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .form-container,
    .calc-wrapper {
        padding: 2rem;
    }

    .stat-box h3 {
        font-size: 2.5rem;
    }
}