:root {
    --blue: #13182f;
    --green: #10c2d3;
    --gray: #ecf0f4;
    --white: #ffffff;
    --darkgray: #7f93ae;
    --font-main: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 4px 6px rgba(19, 24, 47, 0.05);
    --shadow-md: 0 10px 30px rgba(19, 24, 47, 0.1);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--white);
    color: var(--blue);
    line-height: 1.6;
    overflow-x: hidden;
}

.page-wrapper {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.highlight {
    color: var(--green);
    display: inline-block;
    position: relative;
}


.text-center {
    text-align: center;
}

.mb-5 {
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--green);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* Hero Section */
.hero {
    background-color: var(--gray);
    min-height: 100vh; /* Increased to accommodate carousel */
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 0 4rem 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-bottom: 2rem;
}

.badge-wrapper {
    margin-bottom: 2rem;
}

.badge {
    background: var(--white);
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    color: var(--blue);
    padding: 0.8rem 1.5rem;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    display: inline-block;
    position: relative;
    text-transform: uppercase;
    border: 1px solid var(--gray);
}

.badge::before {
    content: '•';
    color: var(--green);
    margin-right: 8px;
    font-size: 1.5em;
    line-height: 0;
    vertical-align: middle;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 800;
    color: var(--blue);
    letter-spacing: -1px;
}

.hero-gradient {
    background: linear-gradient(90deg, #13182f, #10c2d3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero-subtitle {
    color: var(--darkgray);
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 650px;
    margin: 0 auto 3rem;
}

/* Decorative Shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    filter: blur(80px);
    animation: float-y 6s ease-in-out infinite alternate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background-color: rgba(16, 194, 211, 0.1);
    top: -100px;
    right: -100px;
    animation-delay: -1s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background-color: rgba(127, 147, 174, 0.1);
    bottom: 50px;
    left: -50px;
    animation-delay: -2s;
}

/* Hero Trust Line */
.hero-trust-line {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-trust-line span {
    /* From https://css.glass */
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--blue);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-trust-line span:hover {
    transform: translateY(-5px);
}

.hero-trust-line span:hover i {
    animation: waggle 0.5s ease-in-out infinite;
}

.hero-trust-line i {
    color: var(--green);
}

/* Hero Carousel */
.hero-carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 3rem 0;
    position: relative;
    z-index: 2;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.hero-carousel-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: marquee 34s linear infinite;
    padding-left: 2rem; /* Initial offset */
}

.hero-carousel-track:hover {
    /* animation-play-state: paused; Removed based on user request */
}

.carousel-card {
    width: 200px;
    height: 280px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(19,24,47,0.1);
    flex-shrink: 0;
    position: relative;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 4px solid var(--white);
    background: var(--white);
}

.year-label {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--blue);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 20;
    pointer-events: none;
    opacity: 0.9;
    transition: var(--transition);
}

.carousel-card:hover .year-label {
    transform: scale(1.1);
    opacity: 1;
    background: var(--white);
    color: var(--green);
}

/* Staggered look */
.carousel-card:nth-child(odd) {
    transform: translateY(0);
}

.carousel-card:nth-child(even) {
    transform: translateY(30px);
}

.carousel-card:hover {
    transform: scale(1.08) translateY(-15px) !important;
    box-shadow: 0 25px 50px rgba(16, 194, 211, 0.25);
    z-index: 10;
    border-color: var(--green);
}

.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-card:hover img {
    transform: scale(1.1);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1rem)); } /* Adjust based on half content width + half gap */
}

/* About Intro */
.about-intro {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--white) 0%, #f4fcfd 100%);
    position: relative;
    overflow: hidden;
}

.shape-about {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 194, 211, 0.05) 0%, transparent 70%);
    top: -150px;
    left: -150px;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
    position: relative;
    z-index: 2;
}

.image-block {
    background-color: var(--gray);
    height: 400px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--darkgray);
}

.image-block-real {
    width: 100%;
    aspect-ratio: 4/3;
    align-self: center;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
}

.image-block-real img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-block-real:hover img {
    transform: scale(1.05);
}

/* What We Do */
.what-we-do {
    padding: 6rem 0;
    background-color: #f8faff;
    position: relative;
    overflow: hidden;
}

.what-we-do .container {
    position: relative;
    z-index: 2;
}

.shape-3 {
    width: 600px;
    height: 600px;
    background-color: rgba(16, 194, 211, 0.15);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float-y 7s ease-in-out infinite alternate;
}

.section-desc {
    max-width: 600px;
    margin: 0 auto;
    color: var(--darkgray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--green);
}

.service-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    background-color: rgba(16, 194, 211, 0.2);
}

.service-card:hover .icon-box i {
    animation: waggle 0.6s ease-in-out infinite;
}

.icon-box {
    background-color: rgba(16, 194, 211, 0.1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--green);
    font-size: 1.8rem;
    transition: var(--transition);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--darkgray);
    font-size: 0.95rem;
}

/* Teams Split */
.teams-split {
    padding: 6rem 0;
    background-color: var(--blue);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.teams-split::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 194, 211, 0.1) 0%, transparent 60%);
    transform: rotate(15deg);
    animation: pulse-bg 8s ease-in-out infinite alternate;
}

.split-wrapper {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.split-content .section-subtitle {
    color: var(--green);
}

.team-images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.team-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    border: 3px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.team-img:hover {
    transform: translateY(-5px) scale(1.02);
}

.team-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
    text-align: left;
}

.team-col {
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.team-col:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.team-col h4 {
    color: var(--green);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.team-col:hover h4 i {
    animation: bounce-soft 1s infinite;
}

.collaboration-note {
    background: rgba(16, 194, 211, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    border-left: 4px solid var(--green);
    text-align: left;
}

/* Locations */
.locations {
    padding: 6rem 0;
    background-color: var(--white);
}

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

@media (min-width: 1024px) {
    .locations-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.location-card {
    background: var(--white);
    border-radius: 20px; /* Smoother radius */
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    container-type: inline-size;
}

.location-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: rgba(16, 194, 211, 0.3);
}

/* Ribbon */
.ribbon {
    position: absolute;
    top: 25px;
    right: -45px;
    background: linear-gradient(90deg, var(--blue), var(--green));
    color: var(--white);
    transform: rotate(45deg);
    padding: 10px 60px;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(16, 194, 211, 0.4);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.loc-map {
    height: 110px; /* Reduced from 120px */
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.loc-map iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%); /* Subtle style */
    transition: var(--transition);
}

.location-card:hover .loc-map iframe {
    filter: grayscale(0%);
}

.loc-content {
    padding: 1.5rem; /* Restore some breathing room */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.5rem; /* Add consistent base gap */
}

.loc-header-mini {
    margin-bottom: 0.5rem; /* Let gap handle some, but ensure separation */
}

.loc-type {
    font-size: 0.65rem;
    color: var(--darkgray);
    /* text-transform: uppercase; */
    letter-spacing: 1.2px; /* Increase letter spacing for elegance */
    font-weight: 700;
    display: block;
    margin-bottom: 0.4rem;
}

.loc-header-mini h3 {
    margin: 0;
    font-size: clamp(0.9rem, 7cqw, 1.2rem); /* Slightly larger for hierarchy */
    color: var(--blue);
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.address {
    font-weight: 500;
    margin-bottom: 1rem; /* More space before tags */
    color: var(--darkgray);
    display: flex;
    align-items: center; /* Center vertically */
    gap: 0.8rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

.icon-wrapper {
    width: 26px;
    height: 26px;
    background: rgba(16, 194, 211, 0.08); /* Lighter bg */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--green);
    font-size: 0.75rem;
}

.address.gray-style .icon-wrapper {
    background-color: var(--gray);
    color: var(--darkgray);
}

.loc-actions {
    margin-top: auto;
    padding-top: 1rem; /* Separation from tags */
}

.service-tags {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 12px; /* Row gap, Column gap */
    margin-bottom: 0;
    width: 100%;
}

.tag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--darkgray);
    padding: 3px 0;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 500;
    border: none;
    white-space: nowrap;
    line-height: 1.4;
    width: 100%;
}

.tag i {
    color: var(--green);
    font-size: 0.8rem;
    width: 20px; /* Fixed width for alignment */
    text-align: center;
    display: inline-block;
    flex-shrink: 0;
}

.btn-card {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem; /* Reduced from 0.8rem */
    background: var(--gray);
    color: var(--blue);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.8rem; /* Reduced from 0.85rem */
    transition: var(--transition);
    white-space: nowrap; /* Ensure single line */
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-card:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-card i {
    font-size: 0.8rem;
}

/* Process Section */
.process {
    padding: 6rem 0;
    background-color: #f8faff;
}

.process-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.process-steps {
    list-style: none;
    margin-top: 2rem;
}

.process-steps li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    transition: var(--transition);
    padding: 1rem;
    border-radius: 10px;
}

.process-steps li:hover {
    background: rgba(255,255,255,0.5);
    transform: translateX(10px);
}

.step-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green);
    font-family: monospace;
    opacity: 0.5;
}

.step-content h4 {
    margin-bottom: 0.3rem;
    color: var(--blue);
}

.step-content p {
    font-size: 0.95rem;
    color: var(--darkgray);
}

.highlight-box {
    background-color: var(--blue);
    color: var(--white);
    padding: 3rem;
    border-radius: 20px;
    position: relative;
    transition: var(--transition);
}

.highlight-box:hover {
    transform: scale(1.02);
}

.highlight-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--green);
}

.highlight-box::after {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 8rem;
    opacity: 0.1;
    font-family: serif;
}

/* Trust Factors */
.trust-factors {
    padding: 6rem 0;
    background-color: var(--white);
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.trust-col h3 {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--blue);
}

.trust-col h3 i {
    color: var(--green);
}

.trust-col:hover h3 i {
    animation: waggle 1s ease-in-out infinite;
}

.check-list li {
    margin-bottom: 1rem;
    padding-left: 1.8rem;
    position: relative;
    color: var(--darkgray);
}

.check-list li::before {
    content: '\f00c'; /* FontAwesome check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--green);
    font-size: 0.9rem;
}

/* Recap */
.recap {
    padding: 3rem 0;
    background-color: var(--gray);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.recap-box {
    background-color: var(--white);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    gap: 2rem;
    transition: var(--transition);
}

.recap-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.recap-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.big-num {
    font-size: 3rem;
    font-weight: 700;
    color: var(--blue);
    display: block;
    line-height: 1;
    transition: var(--transition);
}

.recap-item:hover .big-num {
    color: var(--green);
    transform: scale(1.1);
}

.recap-item .icon {
    font-size: 2.5rem;
    color: var(--green);
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.recap-item:hover .icon {
    transform: rotate(10deg) scale(1.1);
}

.recap-divider {
    width: 1px;
    height: 50px;
    background-color: #eee;
}

/* CTA Section */
.cta {
    background-color: var(--blue);
    padding: 6rem 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(16, 194, 211, 0.1) 0%, transparent 70%);
    animation: pulse-bg 5s infinite alternate;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background-color: var(--green);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(16, 194, 211, 0.3);
}

.btn-primary:hover {
    background-color: #0eb0bf;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 194, 211, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--blue);
    transform: scale(1.05) translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    display: inline-block;
}

.btn-outline:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* Animations */
@keyframes float-y {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes waggle {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(-10deg); }
    40% { transform: rotate(5deg); }
    60% { transform: rotate(-5deg); }
    80% { transform: rotate(2deg); }
    100% { transform: rotate(0deg); }
}

@keyframes bounce-soft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes pulse-bg {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.1); }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Decorative Tails */
.tail-decoration {
    position: fixed;
    bottom: 0;
    z-index: 1; /* Changed from 0 to 1 to ensure visibility over section backgrounds */
    width: 300px; /* Adjust size as needed */
    pointer-events: none;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
    opacity: 1; /* Full opacity */
    will-change: transform, opacity;
    transition: opacity 0.3s ease-out;
}

.tail-left {
    left: -250px;
    width: 550px; /* Made Golden Retriever tail bigger */
    transform-origin: bottom left;
}

.tail-right {
    right: -80px;
    width: 200px; /* Made Cat tail smaller */
    transform-origin: bottom right;
}

@media (max-width: 1300px) {
    .tail-left {
        left: -300px;
        opacity: 0.5; /* Reduce opacity on smaller screens to help readability if they still overlap */
    }
    .tail-right {
        right: -100px;
    }
}

/* Responsive */
@media (max-width: 1450px) {
     .page-wrapper {
        width: 100%;
     }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .intro-grid, .process-grid, .trust-grid, .team-columns, .team-images-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .intro-card-horizontal {
        grid-template-columns: 1fr;
    }

    .intro-image {
        height: 300px; /* Fixed height for mobile */
        min-height: auto;
    }
    
    .recap-divider { display: none; }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn { width: 100%; max-width: 300px; text-align: center; }
    
    .image-block-real {
        /* Let aspect-ratio handle height */
    }
    
    .team-img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .page-wrapper {
        margin: 0;
        width: 100%;
    }

    .container {
        padding: 0 1.5rem;
    }

    .hero {
        padding: 4rem 0 2rem 0;
        min-height: auto;
    }

    .hero-content {
        width: 100%;
        padding: 0 1rem; /* Ensure internal padding if container padding isn't enough or removed */
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
        word-wrap: break-word; /* Prevent overflow from long words */
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 0.5rem;
        margin-bottom: 2rem;
        word-wrap: break-word;
    }

    .badge {
        padding: 0.6rem 1.5rem;
        font-size: 0.8rem;
        white-space: nowrap; /* Keep badge on one line if possible, or let it wrap if needed */
    }

    /* Fix Trust Line Overflow */
    .hero-trust-line {
        gap: 0.5rem;
        flex-direction: row; 
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    /* Full width carousel without fade on mobile */
    .hero-carousel-container {
        mask-image: none;
        -webkit-mask-image: none;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }

    .hero-trust-line span {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        width: auto;
        justify-content: center; 
        white-space: nowrap;
    }

    /* Adjust decorative shapes for mobile */
    .shape-1 {
        width: 200px;
        height: 200px;
        top: -50px;
        right: -50px;
    }

    .shape-2 {
        width: 150px;
        height: 150px;
        bottom: 20px;
        left: -20px;
    }

    /* Tail adjustments for mobile */
    .tail-decoration {
        position: absolute;
        top: 0; 
        bottom: auto;
        z-index: 1; 
    }

    .tail-left {
        width: 210px;
        left: -45px; 
        transform-origin: bottom left; 
    }

    .tail-right {
        width: 120px; 
        right: 30px;
        top: -80px; 
        transform: rotate(-150deg);
        transform-origin: center;
    }
    
    /* Move content down on mobile to make space for tails */
    .hero {
        padding-top: 4rem; /* Restore original padding */
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .carousel-card {
        width: 160px;
        height: 224px;
    }
}
