/* ==========================================================================
   1. Global Styles & Variables (Version 2 - Light Theme)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #5D3EBF;
    /* Deep professional purple */
    --primary-color-dark: #4C329D;
    --accent-color: #F97316;
    /* Vibrant orange for CTAs */
    --bg-light: #F8F9FA;
    /* Off-white for main background */
    --bg-white: #FFFFFF;
    --bg-dark-header: #111827;
    /* Dark gray for header/footer */
    --bg-dark-footer: #1F2937;
    --text-dark: #111827;
    --text-body: #374151;
    --text-light: #F9FAFB;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --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);
    --font-family: 'Inter', sans-serif;
    --header-height: 80px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.highlight {
    color: var(--primary-color);
}

section {
    padding: 6rem 0;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
}

.section-title {
    margin-bottom: 4rem;
}

.section-title h2 {
    margin-bottom: 0.75rem;
}

.section-title p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* ==========================================================================
   2. Header & Navigation
   ========================================================================== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-dark-header);
    transition: box-shadow 0.3s ease;
    padding: 1.25rem 0;
}

#main-header.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 70px;
    width: auto;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-logo:hover img {
    transform: scale(1.1) rotate(-10deg);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-cta {
    background-color: var(--accent-color);
}

.header-cta:hover {
    background-color: #EA580C;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-light);
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

/* ==========================================================================
   3. Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding: 10rem 0;
    height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--bg-light);
}

.hero-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(-45deg, #e0d8ff, #f7e6d5, #d4f1f4, #ffe6f0);
    background-size: 400% 400%;
    animation: gradient-flow 15s ease infinite;
    z-index: 0;
    opacity: 0.5;
}

@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-body);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* ==========================================================================
   4. Services Section
   ========================================================================== */
.services-section {
    background-color: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-light);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s ease;
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

.service-card:hover .service-icon {
    background-color: var(--accent-color);
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* ==========================================================================
   5. Our Process Section
   ========================================================================== */
.process-section {
    background-color: var(--bg-light);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background-color: var(--border-color);
    z-index: 0;
}

.process-step {
    position: relative;
    z-index: 1;
}

.process-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.process-step:hover .process-icon {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.process-step h3 {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   6. Strategy Builder Section
   ========================================================================== */
.strategy-builder-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
}

.builder-wrapper {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.builder-info {
    flex: 1;
}

.builder-info h3,
.builder-info p {
    color: var(--text-light);
}

.builder-info p {
    opacity: 0.8;
}

.builder-form-container {
    flex: 1.2;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.builder-form-container .form-group {
    margin-bottom: 1.5rem;
}

.builder-form-container label {
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.75rem;
}

.builder-form-container select {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    font-size: 1rem;
    font-family: inherit;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-group label {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-group input[type="radio"]:checked+label {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

#strategy-result {
    margin-top: 2rem;
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    display: none;
}

#strategy-result h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   7. Testimonials Section
   ========================================================================== */
.testimonials-section {
    background-color: var(--bg-white);
}

.testimonial-slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 4rem;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    height: 320px;
}

.testimonial-card {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
}

.testimonial-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-body);
    margin-bottom: 2rem;
    text-align: center;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.author-info h4 {
    margin: 0;
    font-size: 1rem;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
}

.slider-controls button {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.slider-controls button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* ==========================================================================
   8. CTA Section
   ========================================================================== */
.cta-section {
    background-color: var(--bg-light);
}

.cta-content h2 {
    margin-bottom: 1rem;
}

.cta-content p {
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    color: var(--text-muted);
}

.cta-section .btn-primary {
    background-color: var(--accent-color);
}

.cta-section .btn-primary:hover {
    background-color: #EA580C;
}

/* ==========================================================================
   9. Footer
   ========================================================================== */
#main-footer {
    background-color: var(--bg-dark-footer);
    padding: 5rem 0 2rem 0;
    color: var(--text-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

.footer-about .footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-about img {
    height: 40px;
}

.footer-about p,
.footer-col a,
.footer-contact p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--text-light);
    padding-left: 5px;
}

.footer-links ul li,
.footer-legal ul li {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--bg-dark-header);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ==========================================================================
   10. Other Styles (Chat, Legal, etc.)
   ========================================================================== */
.live-chat-widget .chat-icon {
    background: var(--primary-color);
}

.live-chat-widget .chat-window {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-lg);
}

.live-chat-widget .chat-header {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.live-chat-widget .chat-header p {
    color: var(--text-dark);
}

.live-chat-widget .close-chat {
    color: var(--text-muted);
}

.live-chat-widget .message.received p {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.live-chat-widget .chat-footer {
    border-top: 1px solid var(--border-color);
}

.live-chat-widget .chat-footer input {
    background: var(--bg-light);
    color: var(--text-dark);
}

.live-chat-widget .chat-footer button {
    background-color: var(--primary-color);
}

.page-header {
    background-color: var(--bg-white);
    padding: 8rem 0 4rem;
    text-align: center;
}

.contact-page-section,
.legal-content-section {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: flex-start;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-form-container {
    background-color: var(--bg-light);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-family: inherit;
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(93, 62, 191, 0.1);
}

.legal-text {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-body);
}

.legal-text h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-text ul {
    list-style: disc;
    padding-left: 1.5rem;
}

/* ==========================================================================
   11. Animations & Responsiveness
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll[data-animation="fade-in-up"] {
    transform: translateY(40px);
}

.animate-on-scroll[data-animation="slide-in-left"] {
    transform: translateX(80px);
}

.animate-on-scroll[data-animation="slide-in-right"] {
    transform: translateX(-80px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

@media (max-width: 992px) {
    .header-cta {
        display: none;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--bg-dark-header);
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: 0.3s;
        gap: 1.5rem;
        padding-top: 3rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-timeline::before {
        display: none;
    }

    .builder-wrapper,
    .contact-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .testimonial-slider-container {
        padding: 0;
    }

    .slider-controls {
        display: none;
    }

    .testimonial-slider {
        height: auto;
        min-height: 380px;
    }

    .contact-form-container {
        padding: 2rem;
    }
}