/* ==========================================================================
   CSS Variables & Custom Theme
   ========================================================================== */
:root {
    --primary: #00d2ff;
    --primary-dark: #0088ff;
    --secondary: #3a7bd5;
    --bg-dark: #0a0f1c;
    --bg-card: #111827;
    --bg-card-hover: #1f2937;
    --text-light: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: #374151;
    --white: #ffffff;
    --shadow-glow: 0 0 20px rgba(0, 210, 255, 0.3);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --nav-height: 90px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
}

section {
    padding: 100px 0;
    position: relative;
}

/* ==========================================================================
   Strictly Consistent Header (All Pages)
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.header--scrolled {
    height: 70px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav__logo img {
    height: 55px;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.nav__list {
    display: flex;
    gap: 2rem;
}

.nav__link {
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav__link:hover::after, .nav__link.active::after {
    width: 100%;
}

.nav__cta {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: var(--shadow-glow);
}

.nav__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.6);
}

/* ==========================================================================
   Strictly Consistent Footer (All Pages)
   ========================================================================== */
.footer {
    background-color: #05080f;
    padding: 80px 0 20px;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer__logo-col img {
    height: 55px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.footer__logo-col p {
    color: var(--text-muted);
}

.footer__title {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
}

.footer__list li {
    margin-bottom: 10px;
}

.footer__list a {
    color: var(--text-muted);
}

.footer__list a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer__contact-info {
    color: var(--text-muted);
}

.footer__contact-info span {
    display: block;
    margin-bottom: 10px;
}

.footer__bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer__legal-links {
    margin-top: 10px;
}

.footer__legal-links a {
    margin: 0 10px;
    color: var(--text-muted);
}

.footer__legal-links a:hover {
    color: var(--primary);
}

/* ==========================================================================
   Section 1: Hero (Index)
   ========================================================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    background: radial-gradient(circle at 80% 20%, rgba(0, 210, 255, 0.15) 0%, transparent 40%);
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero__content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero__content h1 span {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

.hero__content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero__btn-group {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn--primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.6);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--primary);
}

.btn--outline:hover {
    background: var(--primary);
    color: #fff;
}

.hero__3d-wrapper {
    perspective: 1000px;
    position: relative;
}

.hero__3d-element {
    width: 100%;
    height: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transform: rotateY(-15deg) rotateX(10deg);
    transition: transform 0.5s ease;
    box-shadow: -20px 20px 50px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero__3d-wrapper:hover .hero__3d-element {
    transform: rotateY(0deg) rotateX(0deg);
}

/* ==========================================================================
   Section 2: Stats & Sample Campaign Reports UI
   ========================================================================== */
.stats-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 30px;
    background: var(--bg-dark);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.stat-card h3 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 10px;
}

.stat-card p {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* Interactive Report UI */
.report-ui {
    margin-top: 60px;
    background: #0f172a;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

.report-bar {
    width: 100%;
    height: 20px;
    background: #1e293b;
    border-radius: 10px;
    margin: 15px 0;
    overflow: hidden;
    position: relative;
}

.report-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0;
    transition: width 2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   Section 3: About Us
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* ==========================================================================
   Section 4: Services Offered (3D Cards)
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    transform-style: preserve-3d;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 20px 20px 50px rgba(0,0,0,0.5), 0 0 20px rgba(0, 210, 255, 0.2);
    border-color: var(--primary);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    transform: translateZ(30px);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    transform: translateZ(20px);
}

.service-card p {
    color: var(--text-muted);
    transform: translateZ(10px);
}

/* ==========================================================================
   Section 5: Interactive Service Calculator
   ========================================================================== */
.calculator-section {
    background: radial-gradient(circle at center, #1e293b 0%, var(--bg-dark) 100%);
}

.calc-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 50px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-card);
}

.calc-group {
    margin-bottom: 30px;
}

.calc-group label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--white);
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    margin-top: -10px;
    box-shadow: 0 0 10px var(--primary);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: var(--border-color);
    border-radius: 3px;
}

.calc-result {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.calc-result h3 {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.calc-result .value {
    font-size: 4rem;
    color: var(--primary);
    font-weight: bold;
    text-shadow: var(--shadow-glow);
}

/* ==========================================================================
   Section 6: Industries Specific
   ========================================================================== */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.industry-item {
    position: relative;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.industry-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.industry-item h3 {
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    color: var(--white);
    transition: var(--transition);
}

.industry-item:hover h3 {
    color: var(--primary);
    transform: scale(1.1);
}

/* ==========================================================================
   Section 7: Why Choose Us
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.feature-box {
    text-align: center;
}
.feature-box .icon {
    width: 80px; height: 80px;
    background: rgba(0, 210, 255, 0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 2rem;
}

/* ==========================================================================
   Section 8: Testimonials
   ========================================================================== */
.testimonials-section {
    background: var(--bg-card);
}
.testi-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px;
}
.testi-card {
    background: var(--bg-dark);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    position: relative;
}
.testi-card::before {
    content: '"';
    position: absolute; top: 10px; right: 20px;
    font-size: 6rem; color: rgba(255,255,255,0.05); font-family: serif;
}
.testi-text {
    font-style: italic; color: var(--text-muted); margin-bottom: 20px;
}
.testi-author {
    display: flex; align-items: center; gap: 15px;
}
.testi-author div {
    width: 50px; height: 50px; border-radius: 50%; background: var(--border-color);
}

/* ==========================================================================
   Section 9: Contact / CTA Form
   ========================================================================== */
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
}
.contact-form {
    background: var(--bg-card);
    padding: 40px; border-radius: 20px; border: 1px solid var(--border-color);
}
.form-group {
    position: relative; margin-bottom: 30px;
}
.form-input {
    width: 100%; padding: 15px 0; background: transparent;
    border: none; border-bottom: 2px solid var(--border-color);
    color: var(--white); font-size: 1rem; outline: none; transition: var(--transition);
}
.form-label {
    position: absolute; top: 15px; left: 0; color: var(--text-muted);
    pointer-events: none; transition: var(--transition);
}
.form-input:focus, .form-input:valid {
    border-bottom-color: var(--primary);
}
.form-input:focus ~ .form-label, .form-input:valid ~ .form-label {
    top: -10px; font-size: 0.8rem; color: var(--primary);
}
.submit-btn { width: 100%; }

/* ==========================================================================
   Section 10: Live Chat Widget UI
   ========================================================================== */
.chat-widget {
    position: fixed; bottom: 30px; right: 30px; z-index: 9999;
}
.chat-btn {
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--primary); color: #fff; border: none;
    cursor: pointer; box-shadow: var(--shadow-glow);
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
    transition: var(--transition);
}
.chat-btn:hover { transform: scale(1.1); }
.chat-box {
    position: absolute; bottom: 80px; right: 0;
    width: 300px; background: var(--bg-card); border-radius: 15px;
    border: 1px solid var(--border-color); box-shadow: var(--shadow-card);
    transform: scale(0); transform-origin: bottom right; transition: var(--transition);
    opacity: 0; overflow: hidden;
}
.chat-box.active { transform: scale(1); opacity: 1; }
.chat-header {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    padding: 15px; color: #fff; font-weight: bold; text-align: center;
}
.chat-body { padding: 20px; height: 200px; overflow-y: auto; color: var(--text-muted); font-size: 0.9rem;}
.chat-input {
    display: flex; border-top: 1px solid var(--border-color);
}
.chat-input input {
    flex: 1; padding: 10px; border: none; background: transparent; color: #fff; outline: none;
}
.chat-input button {
    padding: 10px 15px; background: var(--primary); border: none; color: #fff; cursor: pointer;
}

/* ==========================================================================
   Legal Pages Formatting
   ========================================================================== */
.legal-section { padding-top: 150px; max-width: 900px; margin: 0 auto; }
.legal-content h1 { font-size: 3rem; margin-bottom: 2rem; color: var(--primary); }
.legal-content h2 { font-size: 1.8rem; margin: 2rem 0 1rem; color: var(--white); }
.legal-content p { margin-bottom: 1.5rem; color: var(--text-muted); font-size: 1.1rem; line-height: 1.8;}
.legal-content ul { margin-bottom: 1.5rem; padding-left: 20px; color: var(--text-muted); list-style-type: disc;}
.legal-content li { margin-bottom: 0.5rem; }

/* ==========================================================================
   Animations & Scroll Reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Media Queries (Responsive Design)
   ========================================================================== */
@media (max-width: 992px) {
    .hero__grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero__content { text-align: center; }
    .hero__btn-group { justify-content: center; }
    .features-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav__list { display: none; /* Add mobile menu JS logic if needed */ }
    .features-grid { grid-template-columns: 1fr; }
    .hero__content h1 { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
}