.rd-hero {
    background: white;
    padding: 8rem 2rem 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    width: 100%;
    padding: 0 2rem;
    margin: 0 auto;
}

.rd-hero h1 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-size: clamp(2.5rem, 5vw, 2.7rem);
}

.rd-hero p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: #5f6368;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: #1a73e8;
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .rd-hero {
        padding: 6rem 1rem 4rem;
        min-height: 50vh;
    }

    .hero-content {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .rd-hero {
        padding: 4rem 1rem 3rem;
        min-height: 40vh;
    }

    .rd-hero h1 {
        margin-bottom: 1rem;
    }

    .rd-hero p {
        margin-bottom: 2rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.divider {
    width: 80px;
    height: 4px;
    background: var(--primary-blue);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray-dark);
    max-width: 700px;
    margin: 0 auto;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.8rem;
    padding: 0 0.9rem;
    margin: 2.7rem auto;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.research-card {
    background: var(--white);
    border-radius: 10.8px;
    overflow: hidden;
    box-shadow: 0 4.5px 13.5px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 1.8rem;
    text-align: center;
    border-top: 3.6px solid var(--primary-color);
    position: relative;
}


.card-number {
    margin-bottom: 1.8rem;
    position: relative;
    display: inline-block;
}

.number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 63px;
    height: 63px;
    font-family: 'Poppins', sans-serif;
    font-size: 2.25rem;
    font-weight: 900;
    color: black;
    background: white;
    border-radius: 50%;
    border: 3.6px solid black;
    position: relative;
    z-index: 2;
    box-shadow: 0 2.7px 5.4px rgba(0, 0, 0, 0.16);
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.number::after {
    content: '';
    position: absolute;
    bottom: -13.5px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 18px;
    background: black;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
    z-index: 1;
}

.card img {
    width: 90%;
    height: auto;
    max-width: 90%;
    object-fit: contain;
    display: block;
    border-radius: 0.45rem;
}

@media (hover: hover) {
    .research-card:nth-child(1):hover .number {
        color: white;
        background: #43e97b;
        border-color: #2ecc71;
    }

    .research-card:nth-child(2):hover .number {
        color: white;
        background: #4facfe;
        border-color: #3498db;
    }

    .research-card:nth-child(3):hover .number {
        color: white;
        background: #a18cd1;
        border-color: #9b59b6;
    }

    .research-card:hover .number {
        transform: scale(1.08);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .research-card:hover .number::after {
        background: #333;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .number {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        border-width: 3px;
    }

    .number::after {
        width: 40px;
        height: 16px;
        bottom: -12px;
    }
}


.research-card:nth-child(1):hover .number {
    color: white;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    border-color: transparent;
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 10px 25px rgba(67, 233, 123, 0.4);
}

.research-card:nth-child(2):hover .number {
    color: white;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-color: transparent;
    transform: scale(1.1) rotate(-8deg);
    box-shadow: 0 10px 25px rgba(79, 172, 254, 0.4);
}

.research-card:nth-child(3):hover .number {
    color: white;
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    border-color: transparent;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(161, 140, 209, 0.4);
}

.research-card:hover .number::before {
    animation: shine 1.5s infinite;
    opacity: 1;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.research-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--black);
    transition: all 0.3s ease;
}

.research-card p {
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.card-image {
    margin-top: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.card-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.research-card:hover .card-image {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.research-card:hover .card-image img {
    transform: scale(1.05);
}

.research-card:hover h3 {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.research-card:hover p {
    color: var(--black);
}

.tech-deepdive {
    background: var(--gray-light);
    padding: 5rem 0;
    margin: 4rem 0;
}

.tech-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 3rem;
}

.tech-content {
    flex: 1;
    min-width: 300px;
}

.tech-content h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.tech-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--gray-dark);
}

.tech-features {
    margin-top: 2rem;
    text-align: left;
}

.feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    text-align: left;
}

.feature i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.3rem;
}

.feature h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--black);
    text-align: left;
}

.feature p {
    margin: 0;
    font-size: 1rem;
    text-align: left;
}

.tech-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    overflow: hidden;
}

.tech-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tech-image:hover img {
    transform: translateY(-5px);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e8cd5;
    color: white;
    padding: 0.6rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    font-size: 1rem;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}


.performance-graph {
    max-width: 800px;
    margin: 4rem auto 0;
    position: relative;
    padding: 0 1rem;
}

.performance-graph img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.performance-graph:hover img {
    transform: scale(1.02);
}

.graph-tooltip {
    position: absolute;
    top: -25px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease, top 0.3s ease;
}

.performance-graph:hover .graph-tooltip {
    opacity: 1;
    top: -35px;
}

.environment-section {
    background: var(--primary-light);
    padding: 5rem 0;
    margin: 4rem 0;
}

.env-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 3rem;
}

.env-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.env-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.env-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.env-content {
    flex: 1;
    min-width: 300px;
}

.env-content h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.env-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--gray-dark);
}

.env-stats {
    margin-top: 2rem;
}

.stat {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary-color);
}

.stat h4 {
    font-size: 1.3rem;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.stat p {
    margin: 0;
    font-size: 1rem;
}

.timeline-section {
    padding: 5rem 0;
    background: var(--white);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 100%;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 2rem);
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 2rem);
    text-align: left;
}

.timeline-date {
    position: absolute;
    top: 0;
    width: 120px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(odd) .timeline-date {
    right: calc(50% - 60px);
}

.timeline-item:nth-child(even) .timeline-date {
    left: calc(50% - 60px);
}

.timeline-content {
    padding: 1.5rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.timeline-content h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--gray-dark);
    margin-bottom: 1rem;
}

.timeline-image {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.timeline-image img {
    width: 100%;
    transition: transform 0.5s ease;
}

.timeline-item:hover .timeline-image img {
    transform: scale(1.05);
}


.team-section {
    padding: 5rem 0;
    background: var(--gray-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.team-member {
    text-align: center;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    padding-bottom: 1.5rem;
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.1);
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 115, 232, 0.9);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.team-member:hover .member-overlay {
    opacity: 1;
}

.member-overlay p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.team-member h4 {
    font-size: 1.3rem;
    margin: 1rem 0 0.3rem;
    color: var(--black);
}

.team-member p {
    color: var(--gray-dark);
    font-size: 0.9rem;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d47a1 100%);
    color: var(--white);
    padding: 5rem 1rem;
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cta-button.secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.rd-footer {
    background: var(--black);
    color: var(--white);
    padding: 4rem 1rem 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo img {
    max-width: 180px;
    margin-bottom: 1rem;
}

.footer-logo p {
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    flex: 2;
}

.link-group {
    min-width: 150px;
}

.link-group h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.link-group a {
    display: block;
    color: var(--gray-medium);
    margin-bottom: 0.8rem;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.link-group a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.7;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    color: var(--white);
    font-size: 1.2rem;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    opacity: 1;
    transform: translateY(-3px);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .rd-hero h1 {
        font-size: 2.5rem;
    }

    .rd-hero p {
        font-size: 1.2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .timeline::before {
        left: 2rem;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding: 0 0 0 4rem;
        text-align: left;
    }

    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        left: 0;
    }

    .tech-container,
    .env-container {
        flex-direction: column;
    }

    .performance-metrics {
        gap: 1.5rem;
    }

    .metric {
        min-width: 120px;
    }

    .metric-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .rd-hero {
        padding: 6rem 1rem 4rem;
    }

    .rd-hero h1 {
        font-size: 2rem;
    }

    .research-grid {
        grid-template-columns: 1fr;
    }

    .performance-metrics {
        gap: 1rem;
    }

    .metric {
        min-width: 100px;
    }

    .metric-value {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-button,
    .cta-button.secondary {
        width: 100%;
        text-align: center;
    }
}

#case-studies_a {
    padding: 60px 20px;
    background: #f8f9fa;
    text-align: center;
}

#case-studies_a h1 {
    font-size: clamp(3rem, 3vw, 3rem);
    margin-bottom: 30px;
    padding-top: 30px;
    padding-left: 60px;
}

.cards-container_a {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.card-wrapper_a {
    position: relative;
    width: 45%;
    min-width: 500px;
    margin: 40px 0;
    perspective: 1000px;
}

.flip-card_a {
    background: white;
    border: 3px solid #1a73e8;
    border-radius: 12px;
    height: 330px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
    transition: transform 0.6s ease, border-color 0.6s ease;
}

.card-front_a,
.card-back_a {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    padding: 30px;
    box-sizing: border-box;
    overflow: hidden;
}

.card-content_a {
    flex: 1;
    overflow-y: auto;
}

.card-button-wrapper_a {
    margin-top: auto;
    padding-top: 20px;
    text-align: center;
}

.card-front_a {
    transform: rotateY(0deg);
}

.card-back_a {
    transform: rotateY(180deg);
    background: white;
}

/* Card content styles */
.card-title_a {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    text-align: center;
}

.card-front_a p,
.card-back_a p {
    margin: 10px 0;
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
    color: #555;
}

.inference-btn_a,
.details-btn_a,
.more-details-btn_a {
    padding: 12px 16px;
    background: white;
    color: #333;
    border: 2px solid #1a73e8;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    white-space: nowrap;
}

.inference-btn_a {
    padding-left: 24px;
    padding-right: 16px;
    margin-left: 153px;
    margin-top: auto;
}

.inference-btn_a:hover,
.details-btn_a:hover,
.more-details-btn_a:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.flipped .flip-card_a {
    transform: rotateY(180deg);
    border-color: #34a853;
}

.flipped .card-number_a {
    background: #34a853;
}

.flipped .details-btn_a {
    border-color: #34a853;
}

.card-number_a {
    position: absolute;
    left: -25px;
    top: -25px;
    width: 50px;
    height: 50px;
    background: #1a73e8;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.5rem;
    z-index: 10;
    transition: all 0.6s ease;
}

@media (max-width: 1200px) {
    .cards-container_a {
        gap: 30px;
    }

    .card-wrapper_a {
        width: 45%;
        min-width: 400px;
    }
}

@media (max-width: 992px) {
    .cards-container_a {
        flex-direction: column;
        gap: 40px;
    }

    .card-wrapper_a {
        width: 90%;
        min-width: unset;
        max-width: 600px;
        margin: 0 auto 40px;
    }

    .card-number_a {
        left: 50%;
        transform: translateX(-50%);
    }

    .flip-card_a {
        height: 350px;
    }
}

@media (max-width: 576px) {
    #case-studies_a {
        padding: 60px 15px;
    }

    #case-studies_a h1 {
        padding-left: 20px;
    }

    .card-wrapper_a {
        width: 100%;
    }

    .card-front_a,
    .card-back_a {
        padding: 20px;
    }

    .card-title_a {
        font-size: 1.5rem;
    }

    .inference-btn_a,
    .details-btn_a,
    .more-details-btn_a {
        padding: 10px 20px;
    }
}

#case-studies,
#case-studies-mobile {
    padding: 60px 20px;
    background: #f8f9fa;
    text-align: center;
}

#case-studies h1,
#case-studies-mobile h1 {
    font-size: clamp(2.5rem, 3vw, 3rem);
    margin-bottom: 30px;
    padding-top: 30px;
}

.cards-container_a {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 550px));
    justify-content: center;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.card-wrapper_a {
    position: relative;
    perspective: 1000px;
    width: 100%;
}

.flip-card_a {
    background: white;
    border: 3px solid #1a73e8;
    border-radius: 12px;
    height: 330px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
    transition: transform 0.6s ease, border-color 0.6s ease;
    margin: 0 auto;
}

/* ===== CARD FACES ===== */
.card-front_a,
.card-back_a {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    padding: 30px;
    box-sizing: border-box;
    overflow: hidden;
}

.card-front_a {
    transform: rotateY(0deg);
}

.card-back_a {
    transform: rotateY(180deg);
    background: white;
}

.card-title_a {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    text-align: center;
}

.card-front_a p,
.card-back_a p {
    margin: 10px 0;
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
    color: #555;
}

.inference-btn_a,
.details-btn_a,
.more-details-btn_a {
    padding: 12px 16px;
    background: white;
    color: #333;
    border: 2px solid #1a73e8;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    white-space: nowrap;
}

.inference-btn_a {
    padding-left: 24px;
    padding-right: 16px;
    margin-left: 153px;
    margin-top: auto;
}

.inference-btn_a:hover,
.details-btn_a:hover,
.more-details-btn_a:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Flipped states */
.flipped .flip-card_a {
    transform: rotateY(180deg);
    border-color: #34a853;
}

.flipped .card-number_a {
    background: #34a853;
}

.flipped .details-btn_a {
    border-color: #34a853;
}

/* ===== NUMBERED CIRCLE ===== */
.card-number_a {
    position: absolute;
    left: -25px;
    top: -25px;
    width: 50px;
    height: 50px;
    background: #1a73e8;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.5rem;
    z-index: 10;
    transition: all 0.6s ease;
}

#case-studies-mobile {
    display: none;
}

@media (max-width: 1200px) {
    .cards-container_a {
        grid-template-columns: repeat(auto-fit, minmax(450px, 500px));
    }

    .card-title_a {
        font-size: 1.7rem;
    }

    .card-front_a p,
    .card-back_a p {
        font-size: 0.95rem;
    }
}

@media (max-width: 800px) {
    #case-studies {
        display: none;
    }

    #case-studies-mobile {
        display: block;
    }

    .cards-container_a {
        grid-template-columns: 1fr;
        max-width: 600px;
        gap: 30px;
    }

    .card-wrapper_a {
        margin: 20px 0;
    }

    .flip-card_a {
        height: auto;
        min-height: 380px;
    }

    .card-number_a {
        left: 50%;
        transform: translateX(-50%);
        top: -20px;
    }

    .inference-btn_a {
        margin-left: auto;
        margin-right: auto;
    }

    .button-group {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
    }

    .details-btn_a,
    .more-details-btn_a {
        width: 100%;
    }
}

@media (max-width: 600px) {

    #case-studies,
    #case-studies-mobile {
        padding: 50px 15px;
    }

    .cards-container_a {
        padding: 0 10px;
    }

    .card-front_a,
    .card-back_a {
        padding: 25px;
    }

    .card-title_a {
        font-size: 1.6rem;
    }

    .card-number_a {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {

    #case-studies h1,
    #case-studies-mobile h1 {
        font-size: 1.8rem;
        padding-top: 20px;
    }

    .card-front_a,
    .card-back_a {
        padding: 20px;
    }

    .card-title_a {
        font-size: 1.4rem;
    }

    .card-front_a p,
    .card-back_a p {
        font-size: 0.9rem;
    }

    .inference-btn_a,
    .details-btn_a,
    .more-details-btn_a {
        padding: 10px 14px;
        font-size: 0.95rem;
    }

    .card-number_a {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

h1 {
    font-size: 1.8rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.3rem;
}

h4 {
    font-size: 1.1rem;
}

p,
.re {
    font-size: 1rem;
}

.metric-value {
    font-size: 1.8rem;
}

.metric-label {
    font-size: 1.1rem;
}

@media (min-width: 600px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.3rem;
    }

    p,
    .re {
        font-size: 1.05rem;
    }

    .metric-value {
        font-size: 2rem;
    }

    .metric-label {
        font-size: 1.2rem;
    }
}

@media (min-width: 900px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    h3 {
        font-size: 1.7rem;
    }

    h4 {
        font-size: 1.4rem;
    }

    p,
    .re {
        font-size: 1.1rem;
    }

    .metric-value {
        font-size: 2.4rem;
    }

    .metric-label {
        font-size: 1.3rem;
    }
}

@media (min-width: 1200px) {
    h1 {
        font-size: 3.2rem;
    }

    h2 {
        font-size: 2.6rem;
    }

    h3 {
        font-size: 2rem;
    }

    h4 {
        font-size: 1.6rem;
    }

    p,
    .re {
        font-size: 1.15rem;
    }

    .metric-value {
        font-size: 2.8rem;
    }

    .metric-label {
        font-size: 1.4rem;
    }
}