/* style.css */

/* --- Variables & Base Styles --- */
:root {
    --primary-color: #6EC19B; /* Main Green */
    --primary-light: #F0FAF5; /* Very Light Green for Hero BG */
    --secondary-light: #E0F2E9; /* Light Green for Timeline BG */
    --accent-purple: #C3AED6;
    --accent-blue: #A8D5E2;
    --dark-color: #212529;
    --light-color: #FFFFFF;
    --text-color: #333;
    --text-muted: #6c757d;
    --link-hover-color: #58a07e; /* Darker Green */
    --wave-height: 80px; /* Adjusted wave height */
    --section-padding-y: 6rem; /* Base vertical padding */
    --header-height: 70px; /* Approximate header height */
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    padding-top: var(--header-height);
    line-height: 1.7;
    background-color: var(--light-color); /* Default background */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover-color);
}

#hallo {
    padding-bottom: 50px;
}

/* Utility for consistent section padding */
.section-padding {
    padding-top: var(--section-padding-y);
    padding-bottom: var(--section-padding-y);
}


section.position-relative:last-of-type { /* No extra padding if last section */
     padding-bottom: var(--section-padding-y);
}

/* --- Header --- */
.navbar {
    min-height: var(--header-height);
}

/* Separator styling */
.nav-link.separator {
    color: #ccc;
    pointer-events: none;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

/* Improve mobile menu */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-item {
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        display: inline-block;
        font-weight: 500;
        border-radius: 5px;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: rgba(110, 193, 155, 0.1);
    }
}

@font-face {
    font-family: 'av-light';
    src: url('../fonts/avenir-light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
  }

.nav-item {
    font-size: 16px;
    font-family: 'av-light';
}

.lead  {
    font-size: 16px;
    font-family: 'av-light';
}

.journey-text {
    font-size: 16px;
    font-family: 'av-light';
}

.hallo {
    font-family: "Work Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-size: 70px; /* Reduced from 80px */
}

.intro {
    font-family: "Work Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-size: 18px;
}

.srathee {
    font-family: "Work Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-size: 22px;
}

.journey-header {
    font-family: "Work Sans", sans-serif;
    font-weight: 600;
    font-size: 20px;
}

.navbar-brand .logo-dot {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #b89deb;
    border-radius: 50%;
    vertical-align: middle; /* Align dot better */
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

/* --- Hero Section --- */
.hero-section {
    background-color: #FFFFFF;
}

/* Make Hallo section text justified */
.hero-section .lead {
    text-align: justify;
}

.img-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #adb5bd;
    font-size: 0.9rem;
    text-align: center;
    aspect-ratio: 1 / 1; /* Force square aspect ratio */
    overflow: hidden; /* Ensure contained image is clipped */
    width: 100%;
    height: 100%;
}
.img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area */
}

.hero-img-placeholder {
    width: 100%;
    max-width: 360px; /* Increased slightly from 340px */
    border-radius: 50%;
    transform: scale(1.08); /* Increased slightly from 1.05 */
    margin: 0 auto; /* Center the image */
}

.hero-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 3px solid transparent; /* Base border */
}

.hero-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    color: var(--dark-color);
}

.timeline-link { background-color: #beecd3; border-color: #beecd3; }
.expertise-link { background-color: var(--accent-purple); border-color: var(--accent-purple); }
.connect-link { background-color: var(--accent-blue); border-color: var(--accent-blue); }

@media (max-width: 991.98px) {
    .hero-img-placeholder { 
        max-width: 300px; /* Increased from 280px */
        margin-top: 2rem; 
        transform: scale(1.05);
        margin-left: auto;
        margin-right: auto;
    }
    .hero-link { width: 100px; height: 100px; font-size: 0.85rem; }
    .hallo {
        font-size: 65px; /* Adjusted for medium screens */
    }
}
@media (max-width: 767.98px) {
    .hero-img-placeholder { 
        max-width: 240px; /* Increased from 220px */
        transform: none;
        margin: 0 auto 1rem auto; /* Reduced bottom margin from 2rem to 1rem */
    }
    .hero-link { width: 90px; height: 90px; font-size: 0.8rem; }
    /* Stack image above text on mobile - these are already correct */
    .hero-section .order-lg-1 { order: 2; }
    .hero-section .order-lg-2 { order: 1; } /* Image appears first */
    .hero-section .order-lg-3 { order: 3; } /* Text appears after image */
    .hero-section .order-lg-4 { order: 4; }
    .hero-section .text-lg-start { text-align: center !important; }
    .hero-section .justify-content-lg-start { justify-content: center !important; }
    .hallo {
        font-size: 55px; /* Adjusted for small screens */
        text-align: center;
        margin-top: 0; /* Reduce space after image */
        margin-bottom: 1rem; /* Reduce space below heading */
    }
    
    /* Reduce section padding on mobile to tighten spacing */
    #hallo .section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* --- Wavy Dividers --- */
.wavy-divider {
    position: absolute;
    bottom: -1px; /* Position at the very bottom */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(0deg);
}

.wavy-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: var(--wave-height);
}
/* --- Timeline Section --- */
.timeline-section {
    background-color: var(--secondary-light);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::after { /* Vertical line */
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--primary-color);
    opacity: 0.5;
    top: 10px;
    bottom: 10px;
    left: 20px; /* Consistently position line on the left */
    margin-left: 0;
    border-radius: 3px;
}

.timeline-item {
    padding: 10px 10px 10px 55px; /* Consistent padding for all items */
    position: relative;
    background-color: inherit;
    width: calc(100% - 20px); /* Consistent width */
    margin-bottom: 40px;
    left: 0; /* All items start from left */
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Circle on the timeline */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background-color: var(--light-color);
    border: 3px solid var(--primary-color);
    top: 15px;
    left: 13px; /* Circle consistently on the left */
    border-radius: 50%;
    z-index: 1;
}

.timeline-year {
    position: absolute;
    top: 6px;
    left: 45px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    z-index: 2;
    background: var(--primary-color);
    padding: 4px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.timeline-content {
    padding: 20px 25px;
    background-color: white;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
    padding-top: 50px;
    width: 100%;
}

.timeline-content h5 { font-size: 1.1rem; }
.timeline-content p { font-size: 0.95rem; color: var(--text-muted); }

/* Desktop override for larger screens - create alternate layout */
@media screen and (min-width: 769px) {
    .timeline::after {
        left: 50%;
        margin-left: -1.5px;
    }
    
    /* Alternate items left and right on desktop only */
    .timeline-item:nth-child(odd) {
        left: 0;
        padding-right: 30px;
        padding-left: 10px;
        width: 50%;
    }
    
    .timeline-item:nth-child(even) {
        left: 50%;
        padding-left: 30px;
        padding-right: 10px;
        width: 50%;
    }
    
    /* Circle positioning for desktop */
    .timeline-item:nth-child(odd)::after {
        right: -7px;
        left: auto;
    }
    
    .timeline-item:nth-child(even)::after {
        left: -7px;
    }
    
    /* Year label positioning for desktop */
    .timeline-item:nth-child(odd) .timeline-year {
        right: 25px;
        left: auto;
        background: var(--secondary-light);
        color: var(--primary-color);
        box-shadow: none;
        border-radius: 0;
        padding: 0 8px;
    }
    
    .timeline-item:nth-child(even) .timeline-year {
        left: 25px;
        background: var(--secondary-light);
        color: var(--primary-color);
        box-shadow: none;
        border-radius: 0;
        padding: 0 8px;
    }
}

/* --- Expertise Section --- */
.expertise-section {
    background-color: var(--light-color);
}

/* Center headings within expertise items */
.expertise-section h4 {
    text-align: center;
}

/* Style for the main description paragraphs within expertise items */
.expertise-section .col-lg-4 > p:first-of-type, /* First 3 items */
.expertise-section .focused-consultation-text > p { /* 4th item */
    text-align: justify;
    font-size: 16px; /* Match lead and journey text */
    font-family: 'av-light', sans-serif; /* Use the light font */
    color: var(--text-muted);
}

/* Reset text-align for the text block in focused consultation on medium+ screens */
@media (min-width: 768px) { 
    .focused-consultation-text {
        text-align: left; /* Align text left when side-by-side */
    }
    /* Ensure heading in focused consultation also aligns left when side-by-side */
    .focused-consultation-text h4 {
         text-align: left;
    }
}

/* Keep list item text default alignment (usually left) */
.expertise-section ul p, /* If <p> is used in <ul> */
.expertise-section ul li {
    text-align: left !important; /* Force left align for list items */
    font-size: inherit; 
    font-family: inherit;
    color: var(--text-muted); /* Ensure list text color */
}

.expertise-img-placeholder {
    width: 120px; /* Fixed size */
    height: 120px;
    border-radius: 50%;
    /* background-color: #EAE4F1; */ /* No background needed for img */
    /* border-color: #C3AED6; */ /* Optional: remove or keep border */
    margin-left: auto; /* Center horizontally */
    margin-right: auto; /* Center horizontally */
    object-fit: cover; /* Ensure image covers the area */
    display: block; /* Ensure margin auto works reliably */
}
.expertise-section ul li span { flex: 1; } /* Allow text to wrap */
.expertise-section ul li i { margin-top: 0.25em; } /* Align icon better */

/* Styles specific to the Focused Consultation layout (adjust if needed) */
.focused-consultation-text {
    flex-grow: 1; /* Allow text block to take available space */
}

/* Ensure image doesn't shrink (already added flex-shrink-0 in HTML, but good backup) */
.expertise-section .flex-md-row .expertise-img-placeholder {
    flex-shrink: 0;
}

/* --- Testimonials Section --- */
.testimonials-section {
    background-color: var(--dark-color);
    color: var(--light-color);
}

/* Reduce the overall section padding */
.testimonials-section .section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Set fixed height for carousel and position content */
#testimonialCarousel {
    position: relative;
}

/* Fix for overlapping carousel items - hide inactive items properly */
.carousel-item:not(.active) {
    display: none !important;
    visibility: hidden;
    opacity: 0;
}

.carousel-inner {
    height: auto; /* Changed from fixed height to auto */
    min-height: 250px; /* Minimum height to prevent layout shifts */
    overflow: visible; /* Changed from hidden to visible */
    position: relative;
    padding-bottom: 40px; /* Increased padding for indicators */
}

.carousel-item {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Changed from absolute to relative */
    width: 100%;
}

.testimonial-quote {
    max-width: 750px;
}

/* Reduce vertical spacing in testimonials */
.blockquote {
    margin-bottom: 1rem; /* Increased from 0.5rem */
}

.py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

/* Position controls to avoid text overlap */
.carousel-control-prev,
.carousel-control-next {
    width: 5%; /* Reduced from 8% */
    opacity: 0.7; /* Slightly reduce opacity */
}

/* Make arrows smaller */
.carousel-control-prev-icon, 
.carousel-control-next-icon {
    width: 1.5rem;
    height: 1.5rem;
    background-color: rgba(0,0,0,0.2);
    border-radius: 50%;
    padding: 1rem;
    filter: brightness(0) invert(1); /* Re-add the filter to make arrows white */
}

/* Reposition carousel indicators to prevent overlap with names */
.carousel-indicators {
    bottom: 0px; /* Move indicators up slightly */
    margin-bottom: 0;
}

.carousel-indicators [data-bs-target] { 
    background-color: rgba(255, 255, 255, 0.4); 
    width: 10px; 
    height: 10px; 
    border-radius: 50%; 
    margin: 0 5px; 
    border: 0; 
}

.carousel-indicators .active { 
    background-color: var(--light-color); 
}

/* Fix carousel arrow overlap on mobile */
@media (max-width: 767.98px) {
    /* Create more space for carousel arrows */
    .testimonial-quote {
        max-width: 70%; /* Further reduced width for more arrow space */
        padding: 0 15px;
    }
    
    /* Reduce text size on mobile */
    .testimonial-quote .blockquote p {
        font-size: 0.85rem !important; /* Even smaller font size for mobile */
    }
    
    .blockquote-footer {
        font-size: 0.85rem; /* Smaller footer/name size */
    }
    
    /* Move carousel controls further outside */
    .carousel-control-prev {
        left: 15px; /* Increased from 10px */
    }
    
    .carousel-control-next {
        right: 15px; /* Increased from 10px */
    }
    
    /* Reduce size of controls */
    .carousel-control-prev-icon, 
    .carousel-control-next-icon {
        background-color: rgba(0,0,0,0.2);
        border-radius: 50%;
        padding: 10px;
        width: 1.2rem;
        height: 1.2rem;
    }
}

/* --- Connect Section --- */
.connect-section {
    background-color: var(--light-color);
}

/* Custom spacing for the Connect section */
#connect .px-md-8 {
    padding-left: 10% !important;
}

/* Calendly section styling */
.calendly-wrapper {
    padding-right: 0;
    position: relative;
}

/* Ensure consistent spacing for Calendly wrapper */
@media (min-width: 768px) {
    .calendly-wrapper::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 10%; /* Match left side padding */
        height: 100%;
        background-color: white;
        z-index: 1;
    }
    
    #calendly-embed-placeholder {
        width: 90% !important; /* Make it match the content width on left */
        padding-top: 2.5rem; /* Match top spacing */
    }
}

/* Link hover effect */
.link-hover {
    position: relative;
    padding-bottom: 2px;
}
.link-hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--link-hover-color);
    transition: width 0.3s ease;
}
.link-hover:hover::after {
    width: 100%;
}
.link-hover:hover {
    color: var(--text-color); /* Keep text color standard on hover */
}

/* Add styles for the new connect layout */
#connect .col-md-5 {
    padding-left: 10% !important; /* Add extra padding on left side of content */
}

#connect .lead {
    font-size: 1.1rem;
    margin-top: -10px;
}

#calendly-embed-placeholder {
    background-color: #f8f9fa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #connect .col-md-5 {
        padding: 3rem 1.5rem !important;
    }
    
    #calendly-embed-placeholder {
        min-height: 400px !important; /* Smaller height on mobile */
    }
}

/* --- Footer --- */
.footer-section {
    padding: 1.5rem 0;
    position: relative; /* Enable proper stacking context */
}

/* Add more bottom padding on all screen sizes */
.footer-section::after {
    content: '';
    display: block;
    height: 60px; /* Extra space to prevent button overlap */
}

.footer-section .container {
    max-width: 1140px; /* Control max width for better spacing */
    position: relative; /* Ensure all content stacks correctly */
    z-index: 5; /* Higher than the FAB */
}

.footer-section .social-icon {
    color: #000;
    transition: opacity 0.3s ease;
    display: inline-block;
}

.footer-section .social-icon:hover {
    opacity: 0.7;
    color: #000; /* Maintain black color on hover */
}

.footer-section .text-muted {
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-section .border-top {
    border-top-color: #e5e5e5 !important;
}

/* --- Floating Action Button (FAB) --- */
.fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 4; /* Lower than footer content */
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 400; /* Less bold */
    letter-spacing: 1px; /* Add spacing between characters */
    text-transform: uppercase;
    display: flex;
    align-items: center;
    color: var(--light-color);
    border-radius: 50px; /* Ensure pill shape */
}
.fab:hover {
    background-color: #333; /* Slightly lighter on hover */
    color: var(--light-color);
}
.fab i {
    font-size: 1.2rem;
    margin-left: 10px; /* More space between text and icon */
}

@media (max-width: 767.98px) {
    .fab { 
        bottom: 15px; 
        right: 15px; 
        padding: 10px 18px; 
        font-size: 0.9rem; 
    }
    
    .footer-section .social-icon {
        margin-right: 0.75rem !important; /* Reduce spacing on mobile */
    }
    
    .footer-section .social-icon:last-child {
        margin-right: 0 !important;
    }
    
    .footer-section .fs-3 {
        font-size: 1.5rem !important; /* Slightly smaller icons on mobile */
    }
}

/* --- Animations --- */
@keyframes fadeInFromBottom {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    animation: fadeInFromBottom 0.8s ease-out forwards;
}
.fade-in.delay-1 { animation-delay: 0.2s; }
.fade-in.delay-2 { animation-delay: 0.4s; }

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform; /* Optimize animation */
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fix carousel arrow overlap on mobile */
@media (max-width: 767.98px) {
    /* Create more space for carousel arrows */
    .testimonial-quote {
        max-width: 85%; /* Slightly reduce width further */
        padding: 0 15px; /* Reduce horizontal padding slightly */
    }
    
    /* Move carousel controls further outside */
    .carousel-control-prev {
        left: -10px; /* Adjust position */
    }
    
    .carousel-control-next {
        right: -10px; /* Adjust position */
    }
    
    /* Increase visibility/size of controls */
    .carousel-control-prev-icon, 
    .carousel-control-next-icon {
        background-color: rgba(0,0,0,0.3); /* Slightly darker background */
        border-radius: 50%;
        padding: 18px; /* Slightly larger padding */
        width: 1.8em; /* Explicit width */
        height: 1.8em; /* Explicit height */
    }

    /* Remove mobile-specific min-height */
    .carousel-item {
        /* min-height: 300px; */
    }
}

.blockquote-footer {
    color: rgba(255, 255, 255, 1) !important; /* Full white for better visibility */
    margin-bottom: 10px;
    font-size: 0.9rem;
    opacity: 1;
    display: block !important; /* Force display */
}