/* =========================================
   1. VARIABLES & THEME SETUP
   ========================================= */
:root {
    /* Color Palette - Based on modern Digital Marketing aesthetics */
    --primary-color: #4F46E5;
    /* Indigo */
    --primary-dark: #3730A3;
    --primary-light: #818CF8;

    --secondary-color: #0F172A;
    /* Slate 900 */
    --secondary-light: #1E293B;
    /* Slate 800 */

    --accent-color: #F43F5E;
    /* Rose */
    --accent-hover: #E11D48;

    --text-main: #334155;
    --text-light: #64748B;
    --text-white: #FFFFFF;
    --text-off-white: #F1F5F9;

    --bg-body: #F8FAFC;
    --bg-white: #FFFFFF;
    --bg-light: #F1F5F9;

    /* Spacing & Sizing */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-neon: 0 0 15px rgba(79, 70, 229, 0.5);

    /* Fonts */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* =========================================
   2. GLOBAL RESETS & TYPOGRAPHY
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    text-transform: capitalize;
    position: relative;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

/* Utility Classes */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--secondary-color);
    color: var(--text-white);
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--primary-color);
    color: var(--text-white);
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--text-white);
    color: var(--text-white);
}

.btn-secondary:hover {
    background-color: var(--text-white);
    color: var(--secondary-color);
}

/* Section Titles Decoration */
.section-title-wrapper {
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.section-title-wrapper h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 15px auto 0;
    border-radius: 2px;
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
.main-header {
    background-color: var(--secondary-color);
    height: var(--header-height);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.main-header.scrolled {
    height: 70px;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-container img {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
    /* Ensure white logo */
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-off-white);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    font-size: 0.95rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease-in-out;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-cta {
    padding: 10px 25px;
    background-color: var(--accent-color);
    border: none;
    color: white;
    font-size: 0.85rem;
}

.nav-cta:hover {
    color: white;
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 63, 94, 0.4);
}

/* Mobile Menu Toggle */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.bar {
    width: 30px;
    height: 3px;
    background-color: var(--text-white);
    transition: 0.4s;
}

/* =========================================
   4. INDEX: HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1e1b4b 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

/* Hero Particles Background Animation */
.hero-bg-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.circle-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    opacity: 0.1;
    filter: blur(50px);
    animation: floatShape 10s infinite alternate;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -100px;
    animation-duration: 15s;
}

.circle-2 {
    width: 400px;
    height: 400px;
    bottom: 10%;
    right: -100px;
    animation-duration: 12s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    right: 20%;
    animation-duration: 8s;
    background: var(--text-white);
    opacity: 0.05;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    color: var(--text-white);
    max-width: 800px;
}

.hero-subtitle {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
    animation: fadeInDown 1s ease;
}

.hero-title {
    color: var(--text-white);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-description {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 600px;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-btns {
    animation: fadeInUp 1s ease 0.6s backwards;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-white);
    z-index: 10;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheelDrop 2s infinite;
}

/* =========================================
   5. INDEX: SERVICES SECTION
   ========================================= */
.services-section {
    position: relative;
    background-color: var(--bg-body);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border-top: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--primary-color);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    background: #e0e7ff;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.5s ease;
}

.service-card:hover .service-icon {
    transform: rotateY(360deg);
    background: var(--primary-color);
    color: white;
}

.service-title {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-desc {
    color: var(--text-light);
    margin-bottom: 20px;
}

.learn-more {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.learn-more::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s;
}

.service-card:hover .learn-more::after {
    transform: translateX(5px);
}

/* =========================================
   6. INTERACTIVE: ROI CALCULATOR
   ========================================= */
.calculator-section {
    background: var(--secondary-color);
    color: var(--text-white);
}

.calculator-wrapper {
    display: flex;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    gap: 40px;
}

.calc-inputs {
    flex: 1 1 400px;
}

.calc-result-box {
    flex: 1 1 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-off-white);
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--text-white);
    font-size: 1rem;
    transition: 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

.calc-btn {
    width: 100%;
    background-color: var(--accent-color);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
}

.calc-btn:hover {
    background-color: var(--accent-hover);
}

.result-label {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.result-value {
    font-size: 3rem;
    font-weight: 800;
    color: white;
}

.result-sub {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-top: 10px;
}

/* =========================================
   7. INTERACTIVE: SAMPLE REPORT
   ========================================= */
.report-section {
    background-color: #ffffff;
    overflow: hidden;
}

.report-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.report-text {
    flex: 1 1 400px;
}

.report-visual {
    flex: 1 1 500px;
    background: #F8FAFC;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #E2E8F0;
    position: relative;
}

/* Simulated Graph with CSS */
.graph-container {
    height: 250px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 2px solid #CBD5E1;
    position: relative;
}

.graph-bar {
    width: 12%;
    background: linear-gradient(to top, var(--primary-light), var(--primary-color));
    border-radius: 4px 4px 0 0;
    transition: height 1s ease-out;
    position: relative;
    cursor: pointer;
}

.graph-bar::before {
    content: attr(data-val);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: bold;
    color: var(--secondary-color);
    opacity: 0;
    transition: opacity 0.3s;
}

.graph-bar:hover::before {
    opacity: 1;
}

.graph-bar:hover {
    filter: brightness(1.1);
}

/* =========================================
   8. TESTIMONIALS
   ========================================= */
.testimonials-section {
    background: var(--bg-light);
    overflow: hidden;
}

.testimonial-track-wrapper {
    position: relative;
    width: 100%;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary-light);
    opacity: 0.3;
    position: absolute;
    top: 20px;
    right: 30px;
}

.client-feedback {
    font-style: italic;
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--text-main);
}

.client-info {
    display: flex;
    align-items: center;
}

.client-avatar {
    width: 60px;
    height: 60px;
    background-color: #ccc;
    border-radius: 50%;
    margin-right: 15px;
    overflow: hidden;
}

.client-avatar img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

/* =========================================
   9. FOOTER
   ========================================= */
.main-footer {
    background-color: #020617;
    color: #94a3b8;
    padding-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-col {
    flex: 1 1 250px;
}

.footer-logo img {
    filter: brightness(0) invert(1);
    height: 40px;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--text-white);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    transition: 0.2s;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: start;
    gap: 10px;
    margin-bottom: 15px;
}

.copyright {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

/* =========================================
   10. LEGAL & CONTACT PAGES SPECIFIC
   ========================================= */
.page-header {
    background: var(--secondary-color);
    color: white;
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
}

.breadcrumb {
    color: var(--text-light);
    margin-top: 15px;
}

.legal-content {
    padding: 80px 0;
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    padding: 40px;
    margin-top: -50px;
    margin-bottom: 80px;
    position: relative;
    z-index: 5;
}

.legal-content h2 {
    margin-top: 30px;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.legal-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.legal-content li {
    margin-bottom: 10px;
}

/* Contact Form Specifics */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 80px 0;
}

.contact-form-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 20px;
    font-family: inherit;
    transition: 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
}

/* =========================================
   11. ANIMATIONS
   ========================================= */
@keyframes floatShape {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(20px, 40px) rotate(15deg);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes wheelDrop {
    0% {
        top: 10px;
        opacity: 1;
        height: 8px;
    }

    100% {
        top: 25px;
        opacity: 0;
        height: 0px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Intersection Observer Class */
.fade-in-section {
    opacity: 0;
    transform: translateY(20vh);
    transition: opacity 1s ease-out, transform 0.6s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* =========================================
   12. MEDIA QUERIES (RESPONSIVENESS)
   ========================================= */
@media screen and (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .calculator-wrapper {
        flex-direction: column;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .report-container {
        flex-direction: column;
    }
}

@media screen and (max-width: 768px) {

    /* Mobile Menu Logic */
    .nav-links {
        position: fixed;
        right: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--secondary-color);
        width: 100%;
        height: calc(100vh - var(--header-height));
        padding: 40px;
        text-align: center;
        transition: 0.3s;
        gap: 30px;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        height: auto;
        padding: 120px 0;
    }

    .footer-col {
        flex: 1 1 100%;
        text-align: center;
    }

    .contact-info li {
        justify-content: center;
    }
}