/* ==========================================================================
   DIGITAL MARKETING THEME - CORE STYLES
   ========================================================================== */
:root {
    --bg-main: #050810;
    --bg-secondary: #0a0f1c;
    --bg-card: #111827;
    --primary-color: #2563eb;
    --primary-glow: rgba(37, 99, 235, 0.5);
    --secondary-color: #8b5cf6;
    --secondary-glow: rgba(139, 92, 246, 0.5);
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #1e293b;
    --header-bg: rgba(5, 8, 16, 0.85);
    --success-color: #10b981;
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { 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-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   HEADER (STRICTLY IDENTICAL ACCROSS ALL PAGES)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-fast);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container img {
    height: 45px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.2));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    transition: var(--transition-fast);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: -5px; left: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition-fast);
}

.nav-menu li a:hover { color: var(--primary-color); }
.nav-menu li a:hover::after { width: 100%; }

.nav-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff !important;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.nav-cta::after { display: none; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px var(--secondary-glow); }

.mobile-menu-btn { display: none; font-size: 2rem; color: #fff; cursor: pointer; background: none; border: none; }

/* ==========================================================================
   FOOTER (STRICTLY IDENTICAL ACCROSS ALL PAGES)
   ========================================================================== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 5rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.footer-logo img { height: 50px; margin-bottom: 1.5rem; }
.footer-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem; }

.footer-column h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-column h4::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 40px; height: 2px; background: var(--primary-color);
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: var(--transition-fast); }
.footer-links a:hover { color: var(--primary-color); padding-left: 5px; }

.footer-contact p { color: var(--text-muted); margin-bottom: 0.8rem; display: flex; align-items: center; gap: 10px; }

.footer-bottom {
    max-width: 1400px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.footer-legal-links a { color: var(--text-muted); text-decoration: none; margin-left: 1.5rem; }
.footer-legal-links a:hover { color: var(--primary-color); }

/* ==========================================================================
   HERO SECTION (3D & PARTICLES)
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

#particle-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.6; }

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeUp 1s ease forwards;
}

.hero-text h1 span {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    animation: fadeUp 1.2s ease forwards;
}

.hero-btns { display: flex; gap: 1.5rem; animation: fadeUp 1.4s ease forwards; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff; padding: 1rem 2.5rem; text-decoration: none; border-radius: 30px;
    font-weight: bold; text-transform: uppercase; letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3); transition: var(--transition-fast);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(139, 92, 246, 0.4); }

.btn-secondary {
    background: transparent; color: #fff; padding: 1rem 2.5rem;
    text-decoration: none; border-radius: 30px; font-weight: bold;
    border: 2px solid var(--border-color); transition: var(--transition-fast);
}
.btn-secondary:hover { border-color: var(--primary-color); background: rgba(37, 99, 235, 0.1); }

/* 3D Hero Graphic */
.hero-graphic {
    perspective: 1000px;
    animation: fadeInRight 1.5s ease forwards;
}

.cube-container {
    width: 100%; height: 400px; position: relative;
    transform-style: preserve-3d;
    animation: floatCube 8s infinite ease-in-out;
}

.glass-panel {
    position: absolute;
    width: 300px; height: 200px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.panel-1 { top: 50px; left: 20px; transform: translateZ(50px) rotateY(-15deg); z-index: 3; }
.panel-2 { top: 150px; right: 20px; transform: translateZ(-50px) rotateY(15deg); background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(139, 92, 246, 0.1)); }

.chart-bar-group { display: flex; align-items: flex-end; gap: 15px; height: 100px; margin-top: 20px; }
.chart-bar { width: 30px; background: var(--primary-color); border-radius: 5px 5px 0 0; animation: growBar 2s ease forwards; }
.chart-bar:nth-child(1) { height: 40%; animation-delay: 0.5s; }
.chart-bar:nth-child(2) { height: 70%; background: var(--secondary-color); animation-delay: 0.7s; }
.chart-bar:nth-child(3) { height: 100%; background: var(--success-color); animation-delay: 0.9s; }

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.section-padding { padding: 8rem 2rem; }
.section-title { text-align: center; margin-bottom: 4rem; }
.section-title h2 { font-size: 3rem; margin-bottom: 1rem; color: var(--text-light); }
.section-title h2 span { color: var(--primary-color); }
.section-title p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ==========================================================================
   SERVICES SECTION (3D HOVER CARDS)
   ========================================================================== */
.services-grid {
    max-width: 1400px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem 2rem;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, transparent, rgba(37, 99, 235, 0.05));
    z-index: 1; pointer-events: none;
}

.service-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(-5deg);
    border-color: var(--primary-color);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.4), 0 0 20px var(--primary-glow);
}

.service-icon {
    width: 70px; height: 70px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 2rem; color: var(--primary-color);
    font-size: 2rem; transition: var(--transition-fast);
}
.service-card:hover .service-icon { background: var(--primary-color); color: #fff; transform: scale(1.1) translateZ(20px); }

.service-card h3 { font-size: 1.5rem; margin-bottom: 1rem; transform: translateZ(10px); }
.service-card p { color: var(--text-muted); margin-bottom: 1.5rem; transform: translateZ(5px); }

/* ==========================================================================
   ROI CALCULATOR SECTION
   ========================================================================== */
.calculator-section { background: var(--bg-secondary); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.calc-container { max-width: 1000px; margin: 0 auto; background: var(--bg-main); border-radius: 24px; border: 1px solid var(--border-color); padding: 4rem; box-shadow: 0 25px 50px rgba(0,0,0,0.5); display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }

.calc-form .input-group { margin-bottom: 1.5rem; }
.calc-form label { display: block; margin-bottom: 0.5rem; color: var(--text-muted); }
.calc-form input { width: 100%; background: var(--bg-card); border: 1px solid var(--border-color); color: #fff; padding: 1rem; border-radius: 10px; font-size: 1.1rem; outline: none; transition: 0.3s; }
.calc-form input:focus { border-color: var(--primary-color); box-shadow: 0 0 10px var(--primary-glow); }

.calc-results { display: flex; flex-direction: column; justify-content: center; background: linear-gradient(135deg, var(--bg-card), rgba(37, 99, 235, 0.1)); padding: 3rem; border-radius: 20px; border: 1px solid var(--border-color); text-align: center; }
.calc-results h3 { color: var(--text-muted); margin-bottom: 1rem; }
.result-value { font-size: 4rem; font-weight: bold; color: var(--success-color); margin-bottom: 1rem; text-shadow: 0 0 20px rgba(16, 185, 129, 0.4); }
.result-desc { color: var(--text-light); font-size: 1.1rem; }

/* ==========================================================================
   CAMPAIGN REPORTS SECTION
   ========================================================================== */
.reports-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: center; }
.report-visual { background: var(--bg-card); padding: 2rem; border-radius: 20px; border: 1px solid var(--border-color); position: relative; }
.dashboard-mockup { width: 100%; border-radius: 10px; overflow: hidden; }
.mockup-header { background: #1f2937; padding: 10px; display: flex; gap: 8px; }
.mockup-dot { width: 12px; height: 12px; border-radius: 50%; background: #ef4444; }
.mockup-dot:nth-child(2) { background: #eab308; }
.mockup-dot:nth-child(3) { background: #22c55e; }
.mockup-body { padding: 2rem; background: #111827; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.metric-box { background: #1f2937; padding: 1rem; border-radius: 10px; text-align: center; }
.metric-box span { display: block; color: var(--text-muted); font-size: 0.8rem; margin-bottom: 5px; }
.metric-box strong { font-size: 1.5rem; color: var(--success-color); }

.report-content h3 { font-size: 2.5rem; margin-bottom: 1.5rem; }
.report-content p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; }
.report-list { list-style: none; }
.report-list li { margin-bottom: 1rem; display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.report-list li svg { color: var(--primary-color); width: 24px; height: 24px; }

/* ==========================================================================
   INDUSTRIES SECTION
   ========================================================================== */
.industries-section { background: var(--bg-secondary); }
.ind-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.ind-card { background: var(--bg-main); border: 1px solid var(--border-color); padding: 3rem 2rem; text-align: center; border-radius: 20px; transition: var(--transition-fast); cursor: pointer; }
.ind-card:hover { transform: translateY(-10px); background: linear-gradient(135deg, var(--bg-main), rgba(139, 92, 246, 0.1)); border-color: var(--secondary-color); }
.ind-icon { width: 60px; height: 60px; margin: 0 auto 1.5rem; fill: var(--secondary-color); }

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testi-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.testi-card { background: var(--bg-card); padding: 3rem; border-radius: 20px; border: 1px solid var(--border-color); position: relative; }
.quote-icon { position: absolute; top: 20px; right: 20px; font-size: 4rem; color: rgba(255,255,255,0.05); font-family: serif; line-height: 1; }
.testi-text { font-size: 1.1rem; color: var(--text-muted); font-style: italic; margin-bottom: 2rem; z-index: 2; position: relative; }
.testi-author { display: flex; align-items: center; gap: 15px; }
.author-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--primary-color); display: flex; justify-content: center; align-items: center; font-weight: bold; }
.author-info h4 { margin: 0; font-size: 1.1rem; }
.author-info span { font-size: 0.9rem; color: var(--text-muted); }

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section { padding: 8rem 2rem; background: linear-gradient(135deg, var(--bg-card) 0%, rgba(37, 99, 235, 0.2) 100%); text-align: center; position: relative; overflow: hidden; border-top: 1px solid var(--border-color); }
.cta-content { max-width: 800px; margin: 0 auto; position: relative; z-index: 2; }
.cta-content h2 { font-size: 3.5rem; margin-bottom: 1.5rem; }
.cta-content p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 3rem; }

/* ==========================================================================
   CONTACT PAGE SPECIFIC STYLES
   ========================================================================== */
.page-header { padding: 12rem 2rem 6rem; text-align: center; background: var(--bg-secondary); border-bottom: 1px solid var(--border-color); }
.page-header h1 { font-size: 4rem; margin-bottom: 1rem; color: var(--text-light); }
.page-header p { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

.contact-layout { max-width: 1400px; margin: -4rem auto 8rem; display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; position: relative; z-index: 10; padding: 0 2rem; }
.contact-info-card { background: var(--bg-card); padding: 4rem; border-radius: 20px; border: 1px solid var(--border-color); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.contact-info-card h3 { font-size: 2rem; margin-bottom: 2rem; color: var(--primary-color); }
.info-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 2rem; }
.info-icon { width: 24px; height: 24px; color: var(--secondary-color); margin-top: 5px; }
.info-text h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.info-text p { color: var(--text-muted); }

.contact-form-card { background: var(--bg-main); padding: 4rem; border-radius: 20px; border: 1px solid var(--border-color); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.8rem; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { color: var(--text-muted); font-weight: 500; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 1.2rem; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; color: #fff; font-family: var(--font-main); font-size: 1rem; transition: var(--transition-fast); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 15px rgba(37, 99, 235, 0.2); }
.form-group textarea { resize: vertical; min-height: 150px; }
.submit-btn { width: 100%; border: none; cursor: pointer; font-size: 1.2rem; padding: 1.5rem; }

/* ==========================================================================
   LEGAL PAGES (PRIVACY, TERMS, DISCLAIMER)
   ========================================================================== */
.legal-container { max-width: 1000px; margin: 6rem auto 8rem; padding: 0 2rem; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 20px; padding: 4rem; box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.legal-content h2 { font-size: 2rem; margin: 3rem 0 1rem; color: var(--primary-color); }
.legal-content p { margin-bottom: 1.5rem; color: var(--text-muted); font-size: 1.1rem; line-height: 1.8; }
.legal-content ul { margin-left: 2rem; margin-bottom: 1.5rem; color: var(--text-muted); }
.legal-content li { margin-bottom: 0.5rem; }

/* ==========================================================================
   LIVE CHAT WIDGET
   ========================================================================== */
.chat-widget { position: fixed; bottom: 30px; right: 30px; z-index: 9999; }
.chat-btn { width: 60px; height: 60px; border-radius: 50%; background: var(--primary-color); color: #fff; border: none; cursor: pointer; display: flex; justify-content: center; align-items: center; box-shadow: 0 10px 20px rgba(37, 99, 235, 0.4); transition: var(--transition-fast); }
.chat-btn:hover { transform: scale(1.1); }
.chat-btn svg { width: 30px; height: 30px; fill: currentColor; }
.chat-box { position: absolute; bottom: 80px; right: 0; width: 350px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 20px; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.5); opacity: 0; pointer-events: none; transform: translateY(20px); transition: var(--transition-fast); }
.chat-box.active { opacity: 1; pointer-events: all; transform: translateY(0); }
.chat-header { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); padding: 1.5rem; color: #fff; font-weight: bold; display: flex; justify-content: space-between; align-items: center; }
.close-chat { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.chat-body { height: 300px; padding: 1.5rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; }
.chat-msg { max-width: 80%; padding: 1rem; border-radius: 15px; font-size: 0.95rem; }
.msg-bot { background: var(--bg-main); color: var(--text-light); align-self: flex-start; border-bottom-left-radius: 5px; }
.msg-user { background: var(--primary-color); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.chat-input { padding: 1rem; border-top: 1px solid var(--border-color); display: flex; gap: 10px; }
.chat-input input { flex: 1; background: var(--bg-main); border: 1px solid var(--border-color); color: #fff; padding: 0.8rem; border-radius: 10px; outline: none; }
.chat-input button { background: var(--primary-color); color: #fff; border: none; padding: 0.8rem 1.2rem; border-radius: 10px; cursor: pointer; }

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes floatCube { 0%, 100% { transform: translateY(0) rotateX(0) rotateY(0); } 50% { transform: translateY(-20px) rotateX(5deg) rotateY(10deg); } }
@keyframes growBar { from { height: 0; opacity: 0; } to { opacity: 1; } }

.hidden-scroll { opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }
.show-scroll { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-content, .reports-grid, .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
    .hero-text h1 { font-size: 3.5rem; }
    .calc-container { grid-template-columns: 1fr; padding: 2rem; }
    .ind-grid { grid-template-columns: repeat(2, 1fr); }
    .testi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-menu { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--bg-secondary); flex-direction: column; padding: 2rem; gap: 1.5rem; border-bottom: 1px solid var(--border-color); }
    .nav-menu.active { display: flex; }
    .mobile-menu-btn { display: block; }
    .hero-text h1 { font-size: 2.8rem; }
    .hero-btns { flex-direction: column; }
    .section-title h2 { font-size: 2.2rem; }
    .testi-grid, .ind-grid, .form-grid { grid-template-columns: 1fr; }
    .contact-layout { margin-top: -2rem; }
    .contact-info-card, .contact-form-card { padding: 2rem; }
}