/* styles.css - FINAL CONSOLIDATED AND CORRECTED VERSION */

/* -------------------------------------- */
/* 0. BASE STYLES & COLOR PALETTE */
/* -------------------------------------- */

:root {
    --color-primary: #007bff; /* Blue - Professional & Trustworthy */
    --color-secondary: #ff6b6b; /* Red/Coral - Vibrant & High-Impact CTA */
    --color-accent: #2ecc71; /* Green - Success & Growth */
    --color-background-dark: #2c3e50; /* Dark Blue - Deep & Modern */
    --color-text-light: #ecf0f1; /* Light Gray/White - Readable */
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-background-dark);
    line-height: 1.65; 
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

.section-description,
.hero-content p {
    line-height: 1.7; 
}


/* -------------------------------------- */
/* 1. HEADER / NAVIGATION BAR STYLING */
/* -------------------------------------- */

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8em;
    font-weight: bold;
    color: var(--color-accent);
}

.biz-suffix {
    color: var(--color-text-light);
    font-weight: 300;
}

.primary-nav ul {
    list-style: none;
    display: flex;
}

.primary-nav li {
    margin-left: 30px;
    position: relative; /* Essential for Mega Menu parent positioning */
}

.primary-nav a {
    text-decoration: none;
    color: var(--color-text-light);
    font-weight: 500;
    transition: color 0.3s;
}

.primary-nav a:hover {
    color: var(--color-primary);
}

.cta-button {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.cta-button:hover {
    background-color: #f15959;
    transform: translateY(-2px);
}


/* -------------------------------------- */
/* 2. HERO SECTION STYLING (ABOVE THE FOLD) */
/* -------------------------------------- */

.hero-section {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 100px 5%;
    min-height: 80vh;
    background-color: var(--color-text-light);
    overflow: hidden;
}

.hero-visual-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f4f4f4;
    opacity: 0.5;
    z-index: 1;
}

.hero-content {
    max-width: 50%;
    position: relative;
    z-index: 2;
}

/* Mobile: stack hero sections vertically */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        padding: 60px 5%;
        min-height: auto;
    }
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2.2em;
    }
    .lead-form-container {
        width: 100%;
        max-width: 100%;
    }
    .hero-visual-placeholder {
        display: none;
    }
}

.hero-content h1 {
    font-size: 3.5em;
    color: var(--color-primary);
    margin-bottom: 15px; 
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3em;
    margin-top: 5px; 
}


/* -------------------------------------- */
/* 3. LEAD GENERATION FORM STYLING */
/* -------------------------------------- */

.lead-form-container {
    position: relative;
    z-index: 2;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--color-accent);
}

.lead-form-container h3 {
    margin-bottom: 20px;
    color: var(--color-background-dark);
}

.simple-lead-form input,
.simple-lead-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.simple-lead-form input:focus,
.simple-lead-form textarea:focus {
    border-color: var(--color-primary);
    outline: none;
}

.cta-submit-button {
    width: 100%;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-submit-button:hover {
    background-color: #0056b3;
}

.lead-form-container small {
    display: block;
    margin-top: 10px;
    text-align: center;
    color: #888;
    font-size: 0.85em;
}


/* -------------------------------------- */
/* II. 2. ADVANCED PROCESS SECTION STYLING */
/* -------------------------------------- */

.advanced-process-section {
    padding: 80px 5%;
    background-color: #f4f7f9;
    text-align: center;
}

.advanced-process-section h2 {
    font-size: 2.5em;
    color: var(--color-background-dark);
    margin-bottom: 20px;
}

.process-steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 50px;
    position: relative;
}

.process-steps-container::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 10%;
    right: 10%;
    height: 3px;
    background-color: var(--color-primary);
    opacity: 0.2;
    z-index: 1;
}

.process-step {
    flex-basis: 20%;
    max-width: 250px;
    position: relative;
    z-index: 2;
    background-color: white;
    padding: 30px 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.15);
}

.icon-circle {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background-color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 5px solid var(--color-text-light);
}

.step-icon i { 
    font-size: 3em;
    line-height: 1;
    color: white;
}

.process-step h3 {
    color: var(--color-background-dark);
    margin-bottom: 10px;
}

.cta-process-end {
    margin-top: 40px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 992px) {
    .process-steps-container {
        flex-direction: column;
        align-items: center;
    }
    .process-steps-container::before {
        display: none;
    }
    .process-step {
        width: 80%;
        max-width: none;
        margin-bottom: 30px;
        text-align: left;
        padding-left: 15px;
    }

    .icon-circle {
        float: left;
        margin: 0 20px 0 0;
        width: 70px;
        height: 70px;
    }
    .step-icon i {
        font-size: 2em;
    }
}


/* -------------------------------------- */
/* II. 3. CORE SERVICES OVERVIEW STYLING */
/* -------------------------------------- */

.core-services-section {
    padding: 80px 5%;
    background-color: var(--color-text-light);
    text-align: center;
}

.core-services-section h2 {
    color: var(--color-background-dark);
}

.service-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    margin-top: 50px;
}

.service-card {
    flex-basis: calc(25% - 20px);
    min-width: 250px;
    display: block;
    text-align: left;
    padding: 30px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: var(--color-background-dark);
    border-bottom: 5px solid transparent;
    transition: all 0.3s ease-in-out;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--color-secondary);
}

.card-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background-color: var(--color-primary);
    margin-bottom: 20px;
    text-align: center;
    color: white;
}

.icon-placeholder i { 
    font-size: 2.5em;
    line-height: 60px;
}

.service-card h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.service-card p {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 15px;
    height: 60px;
    overflow: hidden;
}

.learn-more-link {
    font-weight: bold;
    color: var(--color-secondary);
    display: inline-block;
    transition: margin-left 0.2s;
}

.service-card:hover .learn-more-link {
    margin-left: 5px;
}

/* Responsive adjustments for service grid */
@media (max-width: 1200px) {
    .service-card {
        flex-basis: calc(33.33% - 17px);
    }
}
@media (max-width: 768px) {
    .service-card {
        flex-basis: calc(50% - 13px);
    }
}
@media (max-width: 576px) {
    .service-card {
        flex-basis: 100%;
    }
}


/* -------------------------------------- */
/* II. 4. SUBJECT DESIGN SECTION STYLING */
/* -------------------------------------- */

.subject-design-section {
    padding: 100px 5%;
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
}

.subject-design-section h2 {
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.8em;
}

.design-comparison-grid {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.design-explanation {
    flex: 1;
    max-width: 50%;
}

.design-explanation h3 {
    font-size: 2em;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.design-explanation h4 {
    color: var(--color-text-light);
    margin-top: 30px;
    margin-bottom: 10px;
}

.ai-roles-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 40px;
}

.ai-roles-list li {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    margin-bottom: 8px;
    border-left: 3px solid var(--color-secondary);
    border-radius: 4px;
    font-size: 0.95em;
}

.design-visual-placeholder {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 450px;
    padding: 20px;
}

.diagram-box {
    width: 100%;
    height: 100%;
    border: 3px dashed var(--color-accent);
    background-color: rgba(44, 230, 113, 0.1);
    border-radius: 8px;
    padding: 50px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Responsive adjustment for a single column on smaller screens */
@media (max-width: 992px) {
    .design-comparison-grid {
        flex-direction: column;
    }
    .design-explanation,
    .design-visual-placeholder {
        max-width: 100%;
        width: 100%;
    }
    .design-visual-placeholder {
        min-height: 300px;
    }
}


/* -------------------------------------- */
/* II. 5. PORTFOLIO SECTION STYLING */
/* -------------------------------------- */

.portfolio-section {
    padding: 80px 5%;
    background-color: #ffffff;
    text-align: center;
}

.portfolio-section h2 {
    color: var(--color-background-dark);
}

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.case-study-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background-color: #f4f7f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.visual-placeholder {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--color-primary); 
    
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 10px;
    color: var(--color-text-light);
    font-size: 1.1em;
    font-weight: bold;
    position: relative;
}

.visual-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); 
    transition: background 0.3s;
}

.case-study-card:hover .visual-placeholder::after {
    background: rgba(0, 0, 0, 0.05); 
}

.project-category {
    background-color: var(--color-secondary);
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 10;
}

.card-content {
    padding: 20px;
    text-align: left;
}

.card-content h3 {
    font-size: 1.3em;
    color: var(--color-background-dark);
    margin-bottom: 10px;
}

.testimonial-snippet {
    display: block;
    font-style: italic;
    color: #6c757d;
    margin-bottom: 15px;
    border-left: 3px solid var(--color-accent);
    padding-left: 10px;
}

.view-details-link {
    font-weight: bold;
    color: var(--color-primary);
    transition: color 0.3s;
}

.case-study-card:hover .view-details-link {
    color: var(--color-secondary);
}

.cta-portfolio-end {
    margin-top: 50px;
}


/* -------------------------------------- */
/* II. 6. INTEGRATED SOLUTIONS (CRM) STYLING */
/* -------------------------------------- */

.integrated-solutions-section {
    padding: 100px 5%;
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
    text-align: center;
}

.integrated-solutions-section h2 {
    color: var(--color-accent);
    margin-bottom: 20px;
}

.integrated-solutions-section .section-description {
    color: var(--color-text-light);
    margin-bottom: 60px;
}

.workflow-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.workflow-step {
    flex: 1;
    max-width: 250px;
    background-color: white;
    color: var(--color-background-dark);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border-top: 5px solid var(--color-primary);
    transition: transform 0.3s;
}

.workflow-step:hover {
    transform: translateY(-5px);
}

.workflow-step .step-icon i { 
    font-size: 2.5em;
    display: block;
    margin-bottom: 15px;
}

.workflow-step h4 {
    font-size: 1.2em;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.arrow-connector {
    font-size: 2em;
    color: var(--color-primary);
    font-weight: bold;
    animation: pulse-arrow 1.5s infinite alternate;
}

@keyframes pulse-arrow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

@media (max-width: 992px) {
    .workflow-diagram {
        flex-direction: column;
        gap: 20px;
    }
    .arrow-connector {
        transform: rotate(90deg);
    }
    .workflow-step {
        max-width: 80%;
    }
}


/* -------------------------------------- */
/* II. 7. TESTIMONIALS SECTION STYLING */
/* -------------------------------------- */

.testimonials-section {
    padding: 80px 5%;
    background-color: #f4f7f9;
    text-align: center;
}

.testimonials-section h2 {
    color: var(--color-background-dark);
}

.testimonials-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.testimonial-card {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--color-secondary);
    text-align: left;
    transition: transform 0.3s;
}

.testimonial-card:hover {
    transform: scale(1.02);
}

.quote-icon {
    font-size: 3em;
    color: var(--color-primary);
    line-height: 0.1;
    margin-bottom: 20px;
    font-family: serif;
}

.quote-text p {
    font-style: italic;
    font-size: 1em;
    color: #444;
    line-height: 1.7; 
    margin-bottom: 20px;
}

.client-info {
    display: flex;
    align-items: center;
    margin-top: 20px;
    border-top: 1px dashed #eee;
    padding-top: 15px;
}

.logo-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-accent);
    margin-right: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-placeholder i {
    font-size: 2.5em;
    color: white; 
}

.client-name {
    font-weight: bold;
    color: var(--color-background-dark);
}

.client-title {
    font-size: 0.85em;
    color: #666;
}

@media (max-width: 768px) {
    .testimonial-card {
        min-width: 100%;
        max-width: 100%;
    }
}


/* -------------------------------------- */
/* II. 8. FOOTER STYLING */
/* -------------------------------------- */

.main-footer {
    padding: 60px 5% 20px;
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
    font-size: 0.95em;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column {
    flex-basis: calc(25% - 30px);
    min-width: 200px;
}

.footer-column h4 {
    font-size: 1.1em;
    color: var(--color-accent);
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.footer-info .logo {
    color: var(--color-accent);
    margin-bottom: 15px;
}

.contact-details p {
    margin: 5px 0;
}

.social-links a {
    font-size: 1.5em;
    color: var(--color-primary);
    margin-right: 15px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--color-secondary);
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    text-decoration: none;
    color: var(--color-text-light);
    opacity: 0.8;
    transition: opacity 0.3s, color 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .footer-column {
        flex-basis: 100%;
        min-width: auto;
    }
}


/* -------------------------------------- */
/* SERVICE PAGE SPECIFIC STYLING */
/* -------------------------------------- */

.content-block {
    padding: 80px 5%;
}

.content-block h2 {
    font-size: 2.5em;
    color: var(--color-primary);
    margin-bottom: 40px;
    border-left: 5px solid var(--color-accent);
    padding-left: 15px;
}

.dark-bg {
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
}

.dark-bg h2 {
    color: var(--color-accent);
}

.service-hero {
    background-color: #f8f9fa;
    padding: 150px 5% 100px;
    text-align: center;
}

.service-hero h1 {
    font-size: 3em;
    color: var(--color-background-dark);
    margin-bottom: 15px;
}

.service-hero .tagline {
    font-style: italic;
    color: #6c757d;
}

.step-list {
    list-style: none;
    counter-reset: step-counter;
    padding-left: 0;
}

.step-list li {
    counter-increment: step-counter;
    margin-bottom: 30px;
    position: relative;
    padding-left: 70px;
    font-size: 1.1em;
    line-height: 1.7; 
}

.step-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: var(--color-secondary);
    color: white;
    font-weight: bold;
    text-align: center;
}

.grid-deliverables {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.grid-deliverables .item {
    background-color: white;
    border: 1px solid var(--color-primary);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: transform 0.3s;
}

.grid-deliverables .item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
}

/* -------------------------------------- */
/* SCROLL ANIMATION INITIAL STATES */
/* -------------------------------------- */

/* Only hide process steps for JS animation if JS is enabled (body gets .js-loaded class) */
.js-loaded .process-step {
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
    opacity: 0;
    transform: translateY(40px);
}

.process-step.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* --- MEGA MENU STYLING (Final Clean Block) --- */

.primary-nav ul li.mega-parent {
    position: relative; 
}

.primary-nav ul li .mega-menu-wrapper {
    display: none; 
    position: absolute;
    top: 100%; 
    
    width: auto; 
    min-width: 600px; 
    max-width: 1200px; 
    
    background-color: var(--color-background-dark); 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    z-index: 90; 
    padding: 20px 40px;
    
    left: 50%; 
    transform: translateX(-50%);
}

.primary-nav ul li.mega-parent:hover .mega-menu-wrapper {
    display: block;
}

.mega-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.mega-menu > li {
    padding: 10px 0;
    margin: 0;
    border-top: none; 
}

.mega-menu a {
    color: var(--color-text-light) !important; 
    font-weight: 400;
    display: block;
    padding: 5px 0;
    text-decoration: none;
}

.mega-menu a:hover {
    color: var(--color-accent) !important; 
    text-decoration: underline;
}