:root {
    /* Color Palette: Monochromatic with single accent color (Teal/Aqua) */
    --color-background: rgb(248, 248, 248); /* Light gray/off-white */
    --color-text-primary: rgb(34, 34, 34);   /* Dark gray/near black */
    --color-text-secondary: rgb(85, 85, 85); /* Medium gray for subtitles */
    --color-accent: rgb(0, 150, 136);      /* Teal/Aqua */
    --color-accent-light: rgb(0, 180, 160); /* Lighter Teal/Aqua for hovers */
    --color-border: rgba(0, 0, 0, 0.08); /* Subtle border color */
    --color-shadow: rgba(0, 0, 0, 0.05); /* Subtle shadow color */
    --color-overlay: rgba(0, 0, 0, 0.5); /* Dark overlay for intro */

    /* Typography: Clean sans-serif fonts */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Spacing */
    --spacing-unit: 1rem;
    --section-padding: 5rem; /* Increased padding for elegance */
}

/* Base Styles & Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-primary);
    background-color: var(--color-background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-unit);
    line-height: 1.2;
}

h1 { font-size: 3.5rem; font-weight: 700; }
h2 { font-size: 2.5rem; font-weight: 600; margin-bottom: 2rem; }
h3 { font-size: 1.8rem; font-weight: 600; }
h4 { font-size: 1.3rem; font-weight: 500; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: var(--section-padding) 0;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Header & Navigation */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    padding: 1.5rem 0;
}

.header.sticky {
    background-color: var(--color-background);
    box-shadow: 0 2px 10px var(--color-shadow);
    padding: 1rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-background); /* White on intro, changes to primary-text on sticky */
    transition: color 0.4s ease;
}

.header.sticky .logo {
    color: var(--color-text-primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-background); /* White on intro, changes to primary-text on sticky */
    font-size: 1rem;
    position: relative;
    padding-bottom: 0.25rem;
    transition: color 0.4s ease;
}

.header.sticky .nav-links a {
    color: var(--color-text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-light);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}


/* INTRO SECTION: FULLSCREEN CENTERED */
.intro-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background-image: url('images/image_27.jpg'); /* Large background image */
    background-size: cover;
    background-position: center;
    color: #fff;
}

.intro-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-overlay); /* Dark overlay */
    z-index: 1;
}

.intro-section .content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 1.5rem;
}

.intro-section h1 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 4rem;
}

.intro-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    line-height: 1.5;
    font-weight: 300;
}


/* ABOUT SECTION: TWO COLUMN */
.about-section {
    text-align: center;
}

.about-section .grid-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    text-align: left;
}

.about-section h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.about-section .about-text {
    padding-right: 2rem;
}

.about-section .about-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-section .about-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.about-section .about-images img {
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--color-shadow);
    transition: transform 0.3s ease;
}

.about-section .about-images img:hover {
    transform: translateY(-5px);
}


/* SERVICES SECTION: HORIZONTAL CARDS */
.services-section {
    background-color: #fcfcfc;
    text-align: center;
}

.horizontal-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch; /* For smoother scrolling on iOS */
    gap: 2rem;
    padding: 1rem;
    margin-top: 3rem;
}

.horizontal-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll-wrapper::-webkit-scrollbar-track {
    background: var(--color-background);
    border-radius: 10px;
}

.horizontal-scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 10px;
}

.horizontal-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-light);
}

.service-card {
    flex: 0 0 350px; /* Fixed width for cards */
    scroll-snap-align: start;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--color-shadow);
    padding: 2rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}


/* PROCESS SECTION: VISUAL SHOWCASE */
.process-section {
    text-align: center;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.process-step {
    background-color: #fff;
    padding: 2.5rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--color-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.process-step .icon-circle {
    width: 80px;
    height: 80px;
    background-color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 2px 8px rgba(0, 150, 136, 0.3);
}

.process-step .icon {
    font-size: 2.5rem;
    color: #fff;
    line-height: 1; /* Ensure icon is centered vertically */
}

.process-step h3 {
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
}

.process-step p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}


/* CASE STUDIES: MASONRY GRID */
.case-studies-section {
    background-color: #fcfcfc;
    text-align: center;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 20px; /* Base row height for spanning */
    gap: 2rem;
    margin-top: 3rem;
}

.case-study-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--color-shadow);
    overflow: hidden;
    break-inside: avoid-column; /* Helps with masonry-like flow in multi-column, but grid is better */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
}

.case-study-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.case-study-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Specific heights for masonry effect using grid-row-end */
.case-study-card.short {
    grid-row-end: span 18; /* Approximately 360px height */
}

.case-study-card.tall {
    grid-row-end: span 28; /* Approximately 560px height */
}

.case-study-card .card-content {
    padding: 1.5rem;
    text-align: left;
}

.case-study-card h3 {
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.case-study-card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}


/* TEAM SECTION: DEPARTMENT SECTIONS */
.team-section {
    text-align: center;
}

.team-department {
    margin-bottom: 4rem;
}

.team-department h3 {
    font-size: 2rem;
    color: var(--color-text-primary);
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

.team-department h3::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.team-member {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--color-shadow);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem auto;
    border: 3px solid var(--color-accent);
    box-shadow: 0 2px 8px rgba(0, 150, 136, 0.3);
}

.team-member h4 {
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.team-member p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}


/* TESTIMONIALS SECTION: VIDEO TESTIMONIALS */
.testimonials-section {
    background-color: #fcfcfc;
    text-align: center;
}

.video-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.video-testimonial-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--color-shadow);
    border: 1px solid var(--color-border);
    padding-bottom: 1.5rem; /* Padding at bottom for text */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.video-placeholder {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
    margin-bottom: 1.5rem;
}

.video-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.video-placeholder .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--color-accent);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(0, 150, 136, 0.4);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.video-placeholder .play-button::before {
    content: '▶'; /* Unicode play triangle */
    padding-left: 5px;
}

.video-placeholder .play-button:hover {
    background-color: var(--color-accent-light);
    transform: translate(-50%, -50%) scale(1.05);
}

.video-placeholder.playing img {
    opacity: 1;.3; /* Visual cue that video is 'playing' */
}

.fake-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #333;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.fake-video-player img {
    opacity: 1;.3 !important;
    position: absolute;
    z-index: 1;
}

.fake-video-player p {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 1rem;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}


.testimonial-name {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.video-testimonial-card p:last-of-type {
    color: var(--color-text-secondary);
    font-style: italic;
    padding: 0 1.5rem;
    margin-bottom: 0;
}


/* PRICING SECTION: FEATURE COMPARISON */
.pricing-section {
    text-align: center;
}

.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    overflow-x: auto; /* Allow horizontal scroll on smaller screens */
    padding-bottom: 1rem;
}

.pricing-column {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--color-shadow);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-column:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.pricing-column.featured {
    border-color: var(--color-accent);
    box-shadow: 0 8px 20px rgba(0, 150, 136, 0.2);
}

.pricing-header-cell {
    padding: 2rem 1.5rem;
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    text-align: center;
}

.pricing-column.header-column .pricing-header-cell {
    background-color: transparent;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--color-text-primary);
    text-align: left;
    padding: 2rem 1.5rem;
    min-height: 100px; /* Adjust as needed */
    display: flex;
    align-items: center;
}

.pricing-column.header-column {
    background-color: transparent;
    box-shadow: none;
    border: none;
}
.pricing-column.header-column:hover {
    transform: none;
    box-shadow: none;
}


.pricing-header-cell h3 {
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.pricing-column.featured .pricing-header-cell h3 {
    color: var(--color-accent);
}

.pricing-header-cell .price-desc {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.pricing-feature-cell {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    text-align: center;
}
.pricing-column.header-column .pricing-feature-cell {
    text-align: left;
    font-weight: 500;
    color: var(--color-text-primary);
}

.pricing-feature-cell.check {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 1.2rem;
}

.pricing-column .pricing-feature-cell:last-of-type {
    border-bottom: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}


/* CALL-TO-ACTION: MULTI COLUMN */
.cta-section {
    background-color: var(--color-accent);
    color: #fff;
    text-align: center;
}

.cta-section h2, .cta-section p {
    color: #fff;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.cta-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.cta-column {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 2.5rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-column:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.cta-column h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.7rem;
}

.cta-column p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.cta-link {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #fff;
    color: var(--color-accent);
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-link:hover {
    background-color: var(--color-text-primary);
    color: #fff;
    transform: translateY(-3px);
}


/* Footer */
.footer {
    background-color: var(--color-text-primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer p:last-child {
    margin-bottom: 0;
}


/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .nav-links {
        gap: 1.5rem;
    }

    .intro-section h1 {
        font-size: 3rem;
    }

    .intro-section p {
        font-size: 1.3rem;
    }

    .section-padding {
        padding: 4rem 0;
    }

    h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.8rem 0;
    }

    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 0.15rem 0;
    }

    .intro-section h1 {
        font-size: 2.5rem;
    }

    .intro-section p {
        font-size: 1.1rem;
    }

    .about-section .grid-two-col {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    .about-section .about-text {
        padding-right: 0;
    }
    .about-section .about-text h2 {
        text-align: center;
    }

    .horizontal-scroll-wrapper {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .service-card {
        flex: 0 0 80%; /* Make cards wider on smaller screens */
    }

    .team-department h3 {
        font-size: 1.8rem;
    }

    .pricing-table {
        grid-template-columns: 1fr; /* Stack columns on mobile */
        max-width: 500px; /* Constrain width for better readability */
        margin-left: auto;
        margin-right: auto;
    }
    .pricing-column.header-column {
        display: none; /* Hide header column on mobile for simplicity, or re-engineer for mobile view */
    }

    .pricing-column.header-column .pricing-header-cell {
        min-height: auto;
    }

    .cta-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .intro-section h1 {
        font-size: 2rem;
    }
    .intro-section p {
        font-size: 1rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    h3 {
        font-size: 1.5rem;
    }
    .section-padding {
        padding: 3rem 0;
    }
    .nav-links {
        gap: 0.8rem;
    }
    .nav-links a {
        font-size: 0.85rem;
    }
    .service-card {
        flex: 0 0 90%;
    }
    .masonry-grid {
        grid-template-columns: 1fr; /* Stack masonry cards on very small screens */
        grid-auto-rows: minmax(10px, auto); /* Adjust auto-rows */
    }
    .case-study-card.short,
    .case-study-card.tall {
        grid-row-end: span auto; /* Reset explicit spans for stacked layout */
    }
    .pricing-column {
        width: 100%;
    }
}

/* 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);
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
