:root {
    --sky-blue: #B0E0E6; /* Soft matte pastel */
    --peach: #FFDAB9;    /* Soft matte pastel */
    --lavender: #E6E6FA; /* Soft matte pastel */
    --mint: #BCEEEA;     /* Soft matte pastel */
    --dark-blue: #4682B4; /* Deeper tone for accents */
    --dark-lavender: #A7A6CC; /* Deeper tone for accents */
    --text-dark: #333;
    --text-light: #fff;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-deep: rgba(0, 0, 0, 0.2);
    --border-radius-lg: 30px;
    --border-radius-md: 20px;
    --transition-speed: 0.3s ease-out;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--lavender); /* Base background */
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.8em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-blue);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background-color: var(--mint);
    border-radius: 5px;
}

.subsection-title {
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--dark-blue);
    text-align: center;
}

.section-description {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555;
}

/* Clay Card Style */
.clay-card {
    background-color: #f7f7f7; /* Slightly off-white for clay effect */
    border-radius: var(--border-radius-md);
    padding: 30px;
    box-shadow: 
        0 8px 25px var(--shadow-deep), 
        0 4px 10px var(--shadow-light),
        inset 0 1px 1px rgba(255, 255, 255, 0.7); /* Inner highlight for depth */
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    position: relative; /* For floating effects */
}

.clay-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 15px 35px var(--shadow-deep), 
        0 6px 15px var(--shadow-light),
        inset 0 1px 1px rgba(255, 255, 255, 0.7);
}

/* Buttons */
.button {
    display: inline-block;
    padding: 14px 30px;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 15px var(--shadow-light);
}

.primary-button {
    background-color: var(--mint);
    color: var(--text-dark);
}

.primary-button:hover {
    background-color: var(--dark-blue);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-deep);
}

.secondary-button {
    background-color: var(--peach);
    color: var(--text-dark);
}

.secondary-button:hover {
    background-color: var(--dark-lavender);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-deep);
}

/* Header & Navigation */
.main-header {
    background-color: #fcfcfc;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--dark-blue);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color var(--transition-speed);
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: var(--mint);
    border-radius: 2px;
    transition: width var(--transition-speed);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--dark-blue);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 1;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(176, 224, 230, 0.8) 0%, rgba(255, 218, 185, 0.8) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    color: var(--text-dark);
    max-width: 900px;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.85); /* Semi-transparent white card */
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 40px var(--shadow-deep);
    animation: fadeInScale 1.2s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-content h1 {
    font-size: 3.8em;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-blue);
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content .button {
    margin-top: 20px;
}

@keyframes fadeInScale {
    from {
        opacity: 1;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* About Us Section - Interactive Map/Timeline */
.about-us-section {
    background-color: var(--lavender);
    position: relative;
    z-index: 1;
}

.interactive-map-container {
    margin-top: 50px;
    position: relative;
    padding: 50px 0;
}

.timeline-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 50px 0;
    position: relative;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: calc(50% - 2px);
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--sky-blue);
    z-index: 0;
}

.timeline-event {
    position: relative;
    width: 23%; /* Approx for 4 items */
    text-align: center;
    opacity: 1;.6;
    transform: translateY(0);
    transition: all 0.5s ease-in-out;
}

.timeline-event.active {
    opacity: 1;
    transform: translateY(-20px) scale(1.05);
    z-index: 5;
}

.event-dot {
    width: 25px;
    height: 25px;
    background-color: var(--dark-blue);
    border: 5px solid var(--peach);
    border-radius: 50%;
    position: absolute;
    top: calc(50% - 12.5px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    transition: all 0.5s ease-in-out;
}

.timeline-event.active .event-dot {
    background-color: var(--mint);
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 0 0 8px rgba(188, 238, 234, 0.4); /* Glow effect */
}

.event-content {
    margin-top: 40px;
    background-color: #fefefe;
    padding: 25px;
    border-radius: var(--border-radius-md);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow-light);
}

.timeline-event:nth-child(odd) .event-content {
    margin-top: -220px; /* Position odd cards above timeline line */
}


.event-content h4 {
    font-size: 1.3em;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.event-content p {
    font-size: 0.95em;
    color: #555;
}

.timeline-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    margin-top: 15px;
}

.timeline-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 80px;
    gap: 20px;
}

.current-year {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--dark-blue);
    min-width: 80px;
    text-align: center;
}

/* Services Section */
.services-section {
    background-color: var(--peach);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    text-align: center;
    background-color: #fcfcfc;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-icon {
    width: 90px;
    height: 90px;
    background-color: var(--sky-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2);
    position: relative;
}

.service-icon::before { /* Simulating clay texture */
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    mix-blend-mode: overlay;
}

.service-icon span {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-dark);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.service-card h3 {
    font-size: 1.6em;
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1; /* Ensures cards have consistent height */
}

.service-features {
    list-style: none;
    text-align: left;
    width: 100%;
    margin-top: 15px;
}

.service-features li {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.service-features li::before {
    content: '-'; /* Using a dash instead of an icon */
    position: absolute;
    left: 0;
    color: var(--mint);
    font-weight: 700;
}

/* Process Section - Interactive Demo (Tabs) */
.process-section {
    background-color: var(--mint);
    position: relative;
    z-index: 1;
}

.process-tabs {
    margin-top: 50px;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.tab-button {
    background-color: var(--lavender);
    color: var(--text-dark);
    padding: 15px 30px;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    margin: 0 10px 10px 10px;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 10px var(--shadow-light);
    flex-grow: 1;
    max-width: 250px;
}

.tab-button:hover {
    background-color: var(--sky-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px var(--shadow-deep);
}

.tab-button.active {
    background-color: var(--dark-blue);
    color: var(--text-light);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-deep);
}

.tab-content-wrapper {
    background-color: #fcfcfc;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    min-height: 400px;
    display: flex;
    align-items: center; /* Center content vertically */
    justify-content: center; /* Center content horizontally */
}

.tab-pane {
    display: none;
    opacity: 1;
    animation: fadeIn 0.5s forwards;
    width: 100%;
}

.tab-pane.active {
    display: block;
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 1; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.process-demo-item {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.process-demo-item img {
    width: 45%;
    height: auto;
    border-radius: var(--border-radius-md);
    box-shadow: 0 8px 20px var(--shadow-deep);
    object-fit: cover;
}

.process-description {
    width: 55%;
}

.process-description h3 {
    margin-top: 0;
    text-align: left;
    font-size: 1.8em;
    color: var(--dark-blue);
}

.process-description p {
    font-size: 1em;
    margin-bottom: 20px;
    color: #444;
}

.process-checklist {
    list-style: none;
    padding-left: 0;
}

.process-checklist li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    font-size: 0.95em;
    color: #666;
}

.process-checklist li::before {
    content: '-'; /* Using a dash instead of an icon */
    position: absolute;
    left: 0;
    color: var(--mint);
    font-weight: 700;
}

/* Gallery Section */
.gallery-section {
    background-color: var(--sky-blue);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.gallery-item {
    background-color: #fefefe;
    padding: 20px;
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    margin-bottom: 15px;
    transition: transform 0.4s ease-out;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .caption {
    font-size: 1em;
    color: #555;
    font-weight: 500;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--lavender);
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background-color: #fcfcfc;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.video-placeholder {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin-bottom: 20px;
}

.video-placeholder .video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: filter 0.3s ease;
}

.video-placeholder:hover .video-thumbnail {
    filter: brightness(0.9);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--dark-blue);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.play-button:hover {
    background-color: var(--mint);
    color: var(--text-dark);
    transform: translate(-50%, -50%) scale(1.1);
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.05em;
    margin-bottom: 15px;
    color: #444;
}

.testimonial-card cite {
    display: block;
    font-weight: 600;
    color: var(--dark-blue);
    font-style: normal;
    margin-top: auto; /* Push to bottom */
}

/* Team Section */
.team-section {
    background-color: var(--peach);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.team-member {
    text-align: center;
    background-color: #fcfcfc;
    padding: 30px;
}

.circular-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid var(--mint);
    box-shadow: 0 5px 15px var(--shadow-deep);
    transition: transform 0.3s ease-out;
}

.team-member:hover .circular-photo {
    transform: scale(1.08);
    border-color: var(--dark-blue);
}

.team-member h3 {
    font-size: 1.8em;
    color: var(--dark-blue);
    margin-bottom: 5px;
}

.team-member h4 {
    font-size: 1.1em;
    color: var(--dark-lavender);
    margin-bottom: 15px;
    font-weight: 500;
}

.team-member p {
    font-size: 0.95em;
    color: #555;
}

/* Case Studies Section - Carousel Slider */
.case-studies-section {
    background-color: var(--mint);
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 50px;
    padding: 0 50px; /* Space for buttons */
}

.carousel-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.case-study-card {
    flex: 0 0 33.33%; /* Show 3 cards at a time */
    min-width: calc(33.33% - 20px); /* 3 cards with gaps */
    margin-right: 30px; /* Gap between cards */
    background-color: #fcfcfc;
    padding: 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.case-study-card:last-child {
    margin-right: 0;
}

.case-study-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    margin-bottom: 20px;
}

.case-study-content h3 {
    font-size: 1.5em;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.case-study-content p {
    font-size: 1em;
    color: #555;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--dark-blue);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px var(--shadow-deep);
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.carousel-button:hover {
    background-color: var(--mint);
    color: var(--text-dark);
    transform: translateY(-50%) scale(1.1);
}

.carousel-button.prev {
    left: 0;
}

.carousel-button.next {
    right: 0;
}

/* FAQ Section - Accordion Style */
.faq-section {
    background-color: var(--sky-blue);
}

.faq-accordion {
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    margin-bottom: 20px;
    overflow: hidden;
    background-color: #fcfcfc;
    padding: 0; /* Override clay-card padding */
}

.faq-question {
    width: 100%;
    padding: 25px 30px;
    background-color: var(--lavender);
    border: none;
    text-align: left;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--dark-blue);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    border-radius: var(--border-radius-md); /* Apply border-radius to button itself */
    box-shadow: 0 2px 8px var(--shadow-light);
}

.faq-question:hover {
    background-color: var(--peach);
}

.faq-question::after {
    content: '+';
    font-size: 1.5em;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"]::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 30px;
    background-color: #fcfcfc;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    border-bottom-left-radius: var(--border-radius-md);
    border-bottom-right-radius: var(--border-radius-md);
    box-shadow: 0 8px 15px var(--shadow-light);
}

.faq-answer.active {
    max-height: 300px; /* Adjust as needed for content */
    padding-top: 20px;
    padding-bottom: 25px;
}

.faq-answer p {
    font-size: 1em;
    color: #444;
    margin-bottom: 15px;
}

.faq-answer ul {
    list-style: none;
    padding-left: 0;
}

.faq-answer li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
    font-size: 0.95em;
    color: #666;
}

.faq-answer li::before {
    content: '-'; /* Using a dash instead of an icon */
    position: absolute;
    left: 0;
    color: var(--mint);
    font-weight: 700;
}

/* Call-to-Action Section */
.cta-section {
    background-color: var(--lavender);
    text-align: center;
}

.cta-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.cta-card {
    background-color: #fcfcfc;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.cta-card h3 {
    font-size: 1.8em;
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-weight: 600;
}

.cta-card p {
    font-size: 1em;
    color: #555;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Footer */
.main-footer {
    background-color: var(--dark-blue);
    color: var(--text-light);
    padding: 60px 0;
    font-size: 0.95em;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand, .footer-links, .footer-info {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-brand h3 {
    font-size: 2em;
    margin-bottom: 15px;
    color: var(--mint);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links h4, .footer-info h4 {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: var(--sky-blue);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--mint);
}

.footer-info p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}


/* Responsive Design */
@media (max-width: 992px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #fcfcfc;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0;
        text-align: center;
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links a::after {
        display: none; /* Hide underline for mobile menu */
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.8em;
    }

    .section-title {
        font-size: 2.2em;
    }

    .services-grid,
    .testimonials-grid,
    .team-grid,
    .cta-columns {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-demo-item {
        flex-direction: column;
        text-align: center;
    }

    .process-demo-item img,
    .process-description {
        width: 100%;
    }
    
    .process-description h3 {
        text-align: center;
    }
    
    .process-checklist {
        text-align: left; /* Keep checklist left-aligned */
        margin: 0 auto;
        max-width: 300px;
    }

    .timeline-wrapper {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .timeline-wrapper::before {
        left: 50%;
        top: 0;
        width: 4px;
        height: 100%;
        transform: translateX(-50%);
    }

    .timeline-event {
        width: 100%;
        margin-bottom: 80px;
        opacity: 1; /* Always active-looking on mobile */
        transform: none;
    }
    
    .timeline-event .event-dot {
        top: 0;
    }

    .timeline-event:nth-child(odd) .event-content {
        margin-top: 40px; /* Reset margin for mobile stacking */
    }
    
    .timeline-event.active .event-dot {
        transform: translateX(-50%) scale(1.1);
    }
    
    .event-content {
        margin-top: 80px;
        min-height: auto;
    }

    .carousel-container {
        padding: 0 20px; /* Reduce padding for smaller screens */
    }
    
    .case-study-card {
    }

    .carousel-button {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2em;
    }
    .hero-content p {
        font-size: 1em;
    }
    .section-title {
        font-size: 1.8em;
    }
    .section-description {
        font-size: 0.95em;
    }

    .services-grid,
    .testimonials-grid,
    .team-grid,
    .cta-columns,
    .gallery-grid {
        grid-template-columns: 1fr; /* Stack all cards on mobile */
    }
    
    .case-study-card {
        min-width: calc(100% - 0px); /* Show 1 card on mobile */
        margin-right: 0;
    }

    .process-tabs .tab-buttons {
        flex-direction: column;
        align-items: center;
    }

    .tab-button {
        width: 100%;
        max-width: 300px;
        margin: 0 0 15px 0;
    }

    .tab-content-wrapper {
        padding: 30px;
    }

    .process-demo-item img {
        height: 250px; /* Fixed height for consistency */
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-brand, .footer-links, .footer-info {
        min-width: unset;
        width: 100%;
    }

    .faq-question {
        font-size: 1.1em;
        padding: 20px 25px;
    }

    .faq-answer.active {
        max-height: 400px; /* Adjust max height for potentially longer content on single column */
    }
    
}

/* Visible state helpers */
+ .animate-fade-in-up.visible,
+ .animate-fade-in-left.visible,
+ .animate-fade-in-right.visible,
+ .animate-bounce-y.visible,
+ .section-scroll-animate.visible,
+ .text-animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Universal Icon Fixes for Buttons */
button svg, .carousel-next svg, .carousel-prev svg, .slider-next svg, .slider-prev svg,
.next svg, .prev svg, .tab-button svg, .tab-btn svg {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

button i, .carousel-next i, .carousel-prev i, .slider-next i, .slider-prev i,
.next i, .prev i, .tab-button i, .tab-btn i {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
    font-style: normal;
}

button .icon, .carousel-next .icon, .carousel-prev .icon,
.slider-next .icon, .slider-prev .icon, .tab-button .icon {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
}

/* Ensure carousel buttons are clickable even with icons */
.carousel-next, .carousel-prev, .slider-next, .slider-prev,
.next, .prev, .next-btn, .prev-btn {
    cursor: pointer;
    position: relative;
}

.carousel-next *, .carousel-prev *, .slider-next *, .slider-prev *,
.next *, .prev *, .next-btn *, .prev-btn * {
    pointer-events: none;
}

/* Tab button icon fixes */
.tab-button, .tab-btn, .tab {
    cursor: pointer;
    position: relative;
}

.tab-button *, .tab-btn *, .tab * {
    pointer-events: none;
}

/* Ensure icons don't block clicks */
button > svg, button > i, button > .icon,
.carousel-next > svg, .carousel-prev > svg,
.tab-button > svg, .tab-button > i {
    pointer-events: none !important;
}

/* Enhanced: Team grid stabilization */
+ .team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
+ @media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
+ @media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Accessibility focus outlines */
:focus{outline:2px solid #5ac8fa;outline-offset:2px;}
:focus:not(:focus-visible){outline:none;}
