/* ===================================================================
 * # Custom Fixes for PatentMuse Landing Page - OPTIMIZED VERSION
 * ------------------------------------------------------------------- */

/* ===================================================================
 * HEADER - Fixed & Transparent
 * ------------------------------------------------------------------- */
.s-header {
    position: fixed;
    top: 0 !important;
    background-color: rgba(34, 47, 57, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.s-header__content {
    display: flex !important;
    align-items: center !important;
}

.s-header__content .btn {
    margin-left: auto !important;
    margin-right: 1.5rem !important;
}

/* Ensure header stays visible in all states */
.s-header.sticky,
.s-header.offset,
.s-header.scrolling {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    background-color: rgba(34, 47, 57, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Header button styling */
.s-header__content .btn,
.s-header.sticky .s-header__content .btn {
    background-color: #3C4C52;
    border-color: #3C4C52;
    color: white;
    border-radius: 8px;
}

.s-header__content .btn:hover,
.s-header__content .btn:focus,
.s-header.sticky .s-header__content .btn:hover,
.s-header.sticky .s-header__content .btn:focus {
    background-color: #2C3C42;
    border-color: #2C3C42;
    color: white;
}

.s-header__content .btn svg path,
.s-header__content .btn:hover svg path,
.s-header__content .btn:focus svg path {
    fill: white;
}

/* Navigation link colors */
.s-header__nav a,
.s-header.sticky .s-header__nav a {
    color: var(--color-gray-8);
}

.s-header__nav a:hover,
.s-header__nav a:focus,
.s-header.sticky .s-header__nav a:hover,
.s-header.sticky .s-header__nav a:focus {
    color: white;
}

/* ===================================================================
 * HERO SECTION - Layout with Logo
 * ------------------------------------------------------------------- */
.s-hero {
    position: relative;
    padding-top: 8vh;
    padding-bottom: 4vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.s-hero__content {
    position: relative;
    z-index: 10;
    padding-bottom: 2vh;
}

.s-hero .row,
.s-hero .column {
    width: 100%;
}

/* Hero background - always full screen */
.s-hero__bg {
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: var(--color-bg);
    position: absolute;
    z-index: 1;
}

/* Hide gradient overlay */
.s-hero__bg::after,
.s-hero__bg .gradient-overlay {
    display: none;
    opacity: 0;
    visibility: hidden;
}

/* Hero layout with logo */
.hero-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-content-wrapper {
    flex: 1 1 auto;
    max-width: 800px;
    min-width: 0;
    width: 100%;
}

.hero-logo-wrapper {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 250px;
    z-index: 3;
}

.hero-logo {
    max-width: 250px;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    display: block;
}

.hero-logo:hover {
    transform: scale(1.05);
}

/* Social icons improvements */
.s-hero__content-social a {
    position: relative;
    transition: all 0.3s ease;
}

.s-hero__content-social a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background-color: var(--color-1-light);
    transition: transform 0.3s ease;
}

.s-hero__content-social a:hover::after,
.s-hero__content-social a:focus::after {
    transform: translateX(-50%) scaleX(1);
}

/* ===================================================================
 * RESPONSIVE - Hero Section
 * ------------------------------------------------------------------- */
@media screen and (max-width: 1200px) {
    .hero-logo {
        max-width: 200px;
    }
    
    .hero-content-wrapper {
        max-width: 700px;
    }
}

@media screen and (max-width: 900px) {
    .s-hero {
        padding-top: 14vh;
        padding-bottom: 8vh;
    }

    .hero-layout {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        width: 100%;
    }
    
    .hero-content-wrapper {
        max-width: 100%;
        width: 100%;
    }
    
    .hero-logo-wrapper {
        width: 100%;
        justify-content: center;
        order: -1;
        min-width: auto;
    }
    
    .hero-logo {
        max-width: 180px;
    }
}

@media screen and (max-width: 600px) {
    .s-hero {
        padding-top: 12vh;
        padding-bottom: 6vh;
    }

    .hero-layout {
        gap: 20px;
        padding: 0;
    }
    
    .hero-logo {
        max-width: 150px;
    }
    
    .s-hero__content-about {
        text-align: center;
        padding-left: 0;
        padding-right: 0;
        width: 100%;
    }
    
    .s-hero__content-about footer {
        text-align: center;
    }
    
    .s-hero__content h1 {
        text-align: center;
        font-size: clamp(3rem, 8vw, 5rem);
    }
    
    .s-hero__content {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .hero-content-wrapper {
        width: 100%;
        max-width: 100%;
    }
}

@media screen and (max-width: 400px) {
    .s-hero {
        padding-top: 10vh;
        padding-bottom: 4vh;
    }

    .hero-logo {
        max-width: 120px;
    }
    
    .hero-layout {
        gap: 15px;
    }
    
    .s-hero__content h1 {
        font-size: clamp(2.5rem, 7vw, 4rem);
        text-align: center;
    }
    
    .s-hero__content-about {
        font-size: 1.6rem;
    }
}

/* ===================================================================
 * ABOUT SECTION - Add dots next to title
 * ------------------------------------------------------------------- */
.s-about {
    padding-top: 3rem !important;
}

/* ===================================================================
 * CONNECT & TEAM SECTIONS - Adjust spacing
 * ------------------------------------------------------------------- */
.s-connect {
    padding-bottom: var(--vspace-1) !important;
}

.s-team {
    padding-top: var(--vspace-3) !important;
}

.s-team .section-title {
    margin-bottom: var(--vspace-1_5) !important;
}

.s-team .display-1 {
    margin-bottom: var(--vspace-3) !important;
    padding-bottom: var(--vspace-1) !important;
}

/* ===================================================================
 * TEAM CARDS - Fix social buttons clipping
 * ------------------------------------------------------------------- */
.carousel-card {
    height: 550px !important;
}

.team-card {
    padding: 2.5rem 2.5rem 2rem 2.5rem !important;
    overflow: visible !important;
}

.team-card__photo {
    margin-top: 0.8rem !important;
    margin-bottom: 1.2rem !important;
}

.team-card__name {
    margin-bottom: 0.5rem !important;
}

.team-card__role {
    margin-bottom: 1rem !important;
}

.team-card__bio {
    margin-bottom: 1.2rem !important;
}

.team-card__social {
    margin-bottom: 0 !important;
    margin-top: auto !important;
}

@media screen and (max-width: 1200px) {
    .carousel-card {
        height: auto !important;
    }
    
    .team-card {
        padding: 1.8rem 2rem 1.5rem 2rem !important;
    }
    
    .team-card__photo {
        width: 120px !important;
        height: 120px !important;
        margin-top: 0.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .team-card__name {
        font-size: 1.9rem !important;
    }
    
    .team-card__role {
        font-size: 1.5rem !important;
    }
    
    .team-card__bio {
        font-size: 1.4rem !important;
        line-height: 1.5 !important;
    }
}

@media screen and (max-width: 900px) {
    .carousel-card {
        height: auto !important;
    }
    
    .team-card {
        padding: 1.2rem 1.2rem 1.2rem 1.2rem !important;
    }
    
    .team-card__photo {
        width: 80px !important;
        height: 80px !important;
        margin-top: 0.3rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .team-card__name {
        font-size: 1.6rem !important;
        margin-bottom: 0.2rem !important;
    }
    
    .team-card__role {
        font-size: 1rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    .team-card__bio {
        font-size: 1.1rem !important;
        line-height: 1.45 !important;
        margin-bottom: 0.8rem !important;
    }
    
    .team-card__social {
        margin-bottom: 0.3rem !important;
        padding-bottom: 0.3rem !important;
        gap: 0.7rem !important;
    }
    
    .team-card__social a {
        width: 32px !important;
        height: 32px !important;
        font-size: 1.4rem !important;
    }
}

@media screen and (max-width: 600px) {
    .carousel-card {
        height: auto !important;
    }
    
    .team-card {
        padding: 1rem 1rem 1rem 1rem !important;
    }
    
    .team-card__photo {
        width: 70px !important;
        height: 70px !important;
        margin-top: 0.2rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    .team-card__name {
        font-size: 1.4rem !important;
        margin-bottom: 0.15rem !important;
    }
    
    .team-card__role {
        font-size: 0.95rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .team-card__bio {
        font-size: 1.05rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.7rem !important;
    }
    
    .team-card__social {
        gap: 0.7rem !important;
        margin-bottom: 0.4rem !important;
        padding-bottom: 0.3rem !important;
    }
    
    .team-card__social a {
        width: 30px !important;
        height: 30px !important;
        font-size: 1.3rem !important;
    }
}

@media screen and (max-width: 400px) {
    .carousel-card {
        height: auto !important;
    }
    
    .team-card {
        padding: 0.9rem 0.9rem 0.9rem 0.9rem !important;
    }
    
    .team-card__photo {
        width: 65px !important;
        height: 65px !important;
        margin-top: 0.15rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .team-card__name {
        font-size: 1.35rem !important;
        margin-bottom: 0.15rem !important;
    }
    
    .team-card__role {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .team-card__bio {
        font-size: 1rem !important;
        line-height: 1.35 !important;
        margin-bottom: 0.7rem !important;
    }
    
    .team-card__social {
        gap: 0.6rem !important;
        margin-bottom: 0.4rem !important;
        padding-bottom: 0.2rem !important;
    }
    
    .team-card__social a {
        width: 28px !important;
        height: 28px !important;
        font-size: 1.2rem !important;
    }
}

/* ===================================================================
 * SERVICES SECTION
 * ------------------------------------------------------------------- */
.s-services__services {
    display: flex;
    flex-wrap: wrap;
}

.s-services__services .item-service {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.s-services__services .service-icon--frontend {
    margin-top: -19px !important;
}

.s-services__services .item-service p {
    flex-grow: 1;
}

/* ===================================================================
 * CONNECT SECTION - LinkedIn
 * ------------------------------------------------------------------- */
.linkedin-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.linkedin-link:hover {
    transform: translateY(-5px);
}

.linkedin-logo {
    width: 150px;
    height: auto;
    filter: brightness(0.4);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.linkedin-link:hover .linkedin-logo {
    filter: brightness(1);
}

/* ===================================================================
 * TEAM SECTION - Responsive Spacing & Container Fix
 * ------------------------------------------------------------------- */
.carousel-3d-container {
    position: relative !important;
    margin-top: var(--vspace-3_5) !important;
    margin-bottom: var(--vspace-2) !important;
}

.s-team .carousel-3d-container {
    position: relative !important;
    margin-top: var(--vspace-3_5) !important;
    margin-bottom: var(--vspace-2) !important;
}

.s-team {
    padding-bottom: var(--vspace-3) !important;
}

@media screen and (max-width: 1200px) {
    .s-team {
        padding-top: var(--vspace-2_5) !important;
    }
    
    .s-team .display-1 {
        margin-bottom: var(--vspace-2_5) !important;
    }
    
    .s-team .carousel-3d-container {
        margin-top: var(--vspace-3_5) !important;
    }
}

/* Ensure scene doesn't interfere with button positioning */
.carousel-3d-scene {
    pointer-events: none;
}

.carousel-3d-scene .carousel-card {
    pointer-events: auto;
}

/* ===================================================================
 * TEAM PHOTOS - Fix Photo Positioning
 * Use transform to move images down and fill empty space
 * ------------------------------------------------------------------- */

/* No additional overrides needed - positioning handled in main.css */

@media screen and (max-width: 900px) {
    /* Add margin to prevent carousel overlapping title */
    .s-team {
        padding-top: var(--vspace-2) !important;
        padding-bottom: var(--vspace-4) !important;
    }
    
    .s-team .display-1 {
        margin-bottom: var(--vspace-2_5) !important;
        padding-bottom: var(--vspace-0_75) !important;
    }
    
    .s-team .carousel-3d-container {
        margin-top: var(--vspace-3) !important;
        margin-bottom: var(--vspace-4) !important;
    }
}

@media screen and (max-width: 600px) {
    /* Smaller margin on mobile but more bottom space */
    .s-team {
        padding-top: var(--vspace-2) !important;
        padding-bottom: calc(var(--vspace-4) + var(--vspace-2)) !important;
    }
    
    .s-team .display-1 {
        margin-bottom: var(--vspace-2) !important;
        padding-bottom: var(--vspace-1) !important;
    }
    
    .s-team .carousel-3d-container {
        margin-top: var(--vspace-2_5) !important;
        margin-bottom: calc(var(--vspace-4) + var(--vspace-2)) !important;
    }
}

@media screen and (max-width: 400px) {
    /* Even smaller margin on very small screens */
    .s-team {
        padding-top: var(--vspace-1_5) !important;
        padding-bottom: calc(var(--vspace-4) + var(--vspace-2)) !important;
    }
    
    .s-team .display-1 {
        margin-bottom: var(--vspace-1_75) !important;
        padding-bottom: var(--vspace-0_5) !important;
    }
    
    .s-team .carousel-3d-container {
        margin-top: var(--vspace-2) !important;
        margin-bottom: calc(var(--vspace-4) + var(--vspace-2)) !important;
    }
}

/* ===================================================================
 * FOOTER
 * ------------------------------------------------------------------- */
.s-footer {
    background-color: var(--color-bg);
    padding-top: var(--vspace-2);
    padding-bottom: var(--vspace-2);
}

@media screen and (max-width: 900px) {
    .s-footer {
        padding-top: var(--vspace-1_5);
    }
}

@media screen and (max-width: 600px) {
    .s-footer {
        padding-top: var(--vspace-1);
    }
}

.s-footer__content {
    padding-bottom: var(--vspace-2);
    border-bottom: 1px solid var(--color-border);
}

/* Partner Logos Section */
.s-footer__partners {
    padding: var(--vspace-2) 0;
    border-bottom: 1px solid var(--color-border);
}

.footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.footer-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo {
    height: auto;
    transition: all 0.3s ease;
    filter: brightness(0.8);
}

.footer-logo--patentmuse {
    max-width: 140px;
    width: 100%;
}

.footer-logo--campus {
    max-width: 200px;
    width: 100%;
}

.footer-logo:hover {
    filter: brightness(1);
    transform: translateY(-3px);
}

@media screen and (max-width: 900px) {
    .footer-logos {
        gap: 3rem;
    }
    
    .footer-logo--patentmuse {
        max-width: 120px;
    }
    
    .footer-logo--campus {
        max-width: 170px;
    }
}

@media screen and (max-width: 600px) {
    .s-footer__partners {
        padding: var(--vspace-1_5) 0;
    }
    
    .footer-logos {
        gap: 2rem;
    }
    
    .footer-logo-item {
        flex: 0 0 auto;
    }
    
    .footer-logo--patentmuse {
        max-width: 100px;
    }
    
    .footer-logo--campus {
        max-width: 150px;
    }
}

@media screen and (max-width: 400px) {
    .footer-logos {
        gap: 1.5rem;
    }
    
    .footer-logo--patentmuse {
        max-width: 85px;
    }
    
    .footer-logo--campus {
        max-width: 130px;
    }
}

.s-footer h4 {
    color: var(--color-1);
    margin-bottom: var(--vspace-0_75);
    font-size: var(--text-md);
}

.s-footer__list {
    list-style: none;
    margin: 0;
}

.s-footer__list li {
    margin-bottom: var(--vspace-0_25);
}

.s-footer__list a {
    color: var(--color-text);
    transition: color 0.3s ease;
}

.s-footer__list a:hover,
.s-footer__list a:focus {
    color: var(--color-1-light);
}

.s-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--vspace-1_5);
    position: relative;
}

.ss-copyright {
    font-size: var(--text-sm);
    color: var(--color-gray-8);
    text-align: center;
    width: 100%;
}

.ss-copyright span {
    display: inline-block;
}

.ss-copyright span::after {
    content: "|";
    margin: 0 1rem;
}

.ss-copyright span:last-child::after {
    display: none;
}

@media screen and (max-width: 600px) {
    .ss-copyright {
        font-size: var(--text-xs);
    }
    
    .ss-copyright span::after {
        margin: 0 0.5rem;
    }
}

.ss-go-top {
    position: fixed !important;
    bottom: 3rem;
    right: 3rem;
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ss-go-top.link-is-visible {
    opacity: 1;
    visibility: visible;
}

.ss-go-top a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 6rem;
    height: 6rem;
    background-color: var(--color-1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.ss-go-top a:hover,
.ss-go-top a:focus {
    background-color: var(--color-1-light);
    transform: translateY(-3px);
}

.ss-go-top a svg {
    width: 2rem;
    height: 2rem;
}

.ss-go-top a svg path {
    fill: white;
}

/* ===================================================================
 * MOBILE MENU & HEADER RESPONSIVE FIXES
 * ------------------------------------------------------------------- */
@media screen and (max-width: 900px) {
    /* Force header to stay at top on mobile */
    .s-header {
        top: 0 !important;
        height: 8.8rem;
    }

    /* Menu content positioning fix */
    .s-header__content {
        top: 0;
        transform: translateY(-100%);
        transition: transform 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
    }

    .menu-is-open .s-header__content {
        background-color: rgba(12, 11, 12, 0.98);
        backdrop-filter: blur(10px);
        transform: translateY(0);
    }
}

@media screen and (max-width: 600px) {
    /* Ensure header stays at top on small mobile */
    .s-header {
        top: 0 !important;
    }
}

@media screen and (max-width: 400px) {
    /* Ensure header stays at top on very small mobile */
    .s-header {
        top: 0 !important;
    }
}

/* ===================================================================
 * LANGUAGE SELECTOR - In header next to Get In Touch button
 * ------------------------------------------------------------------- */
.s-header__content .language-selector {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 0 !important;
    margin-right: 4rem !important;
    z-index: 102;
    top : 9px;
}

.language-selector__current {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 60px;
    height: 40px;
    padding: 0 1.4rem;
    background-color: transparent;
    border: none;
    border-radius: 20px;
    color: var(--color-gray-8);
    font-family: var(--font-2);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.s-header__nav-wrap {
    flex: 0 0 auto !important;
}

.language-selector__current:hover {
    background-color: rgba(138, 79, 52, 0.15);
    color: white;
    transform: scale(1.05);
}

.language-selector.active .language-selector__current {
    background-color: rgba(138, 79, 52, 0.2);
    color: white;
}

.language-selector__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 140px;
    background-color: rgba(34, 47, 57, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(138, 79, 52, 0.5);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 
                0 0 0 1px rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.language-selector.active .language-selector__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.language-selector__option {
    display: flex;
    align-items: center;
    padding: 1.2rem 1.8rem;
    color: var(--color-gray-8);
    font-family: var(--font-2);
    font-size: 1.35rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.language-selector__option:last-child {
    border-bottom: none;
}

.language-selector__option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--color-1), var(--color-1-light));
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.language-selector__option:hover {
    background-color: rgba(138, 79, 52, 0.15);
    color: white;
    padding-left: 2.2rem;
}

.language-selector__option:hover::before {
    transform: scaleY(1);
}

.language-selector__option.active {
    background-color: rgba(138, 79, 52, 0.25);
    color: var(--color-1-light);
    font-weight: 600;
}

.language-selector__option.active::after {
    content: '✓';
    margin-left: auto;
    padding-left: 1rem;
    font-weight: bold;
    color: var(--color-1);
}

/* ===================================================================
 * CTA WIDGET - Call to Action (Compact Version)
 * ------------------------------------------------------------------- */
.cta-widget {
    position: fixed;
    top: 16rem;
    right: 4rem;
    z-index: 999;
    background: linear-gradient(135deg, rgba(138, 79, 52, 0.95), rgba(184, 134, 11, 0.95));
    border: 2px solid rgba(138, 79, 52, 0.8);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 16px rgba(138, 79, 52, 0.4), 
                0 2px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-width: 220px;
    max-width: 240px;
    transition: all 0.3s ease;
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cta-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(138, 79, 52, 0.5), 
                0 3px 8px rgba(0, 0, 0, 0.4);
}

.cta-widget__message {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: white;
    font-family: var(--font-2);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.cta-widget__icon {
    font-size: 1.6rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.15) rotate(180deg); }
}

.cta-widget__text {
    flex: 1;
}

.cta-widget__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.5rem;
    background-color: #3C4C52;
    color: white;
    border: none;
    border-radius: 10px;
    font-family: var(--font-2);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cta-widget__button:hover {
    background-color: var(--color-bg);
    color: white;
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cta-widget__button svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.cta-widget__button:hover svg {
    transform: translateX(3px);
}

/* Mobile menu language selector & CTA */
@media screen and (max-width: 900px) {
    /* Keep Get In Touch button visible and positioned between logo and menu toggle */
    .s-header__content .btn {
        position: fixed;
        right: 8rem;
        top: 2rem;
        margin: 0 !important;
        z-index: 1000;
    }

    .s-header__content .language-selector {
        position: relative;
        display: block;
        margin-left: 0;
        margin-top: 0;
        padding: 0 4rem;
        width: auto;
    }
    
    .language-selector__current {
        width: 100%;
        justify-content: center;
        height: 50px;
        font-size: 1.5rem;
        border-width: 0;
        background-color: rgba(34, 47, 57, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .language-selector__current:hover {
        transform: scale(1);
    }
    
    .language-selector__dropdown {
        width: 100%;
        position: relative;
        top: 12px;
        right: auto;
        min-width: auto;
    }
    
    .language-selector__option {
        padding: 1.5rem;
        font-size: 1.5rem;
        justify-content: center;
    }
    
    .language-selector__option:hover {
        padding-left: 1.5rem;
    }
    
    /* Reposition CTA widget for mobile - smaller and in bottom right corner */
    .cta-widget {
        position: fixed;
        top: auto;
        bottom: 2rem;
        right: 1rem;
        left: auto;
        width: auto;
        min-width: 140px;
        max-width: 160px;
        padding: 0.8rem 1rem;
        gap: 0.6rem;
        z-index: 1000;
        border-radius: 8px;
        box-shadow: 0 2px 12px rgba(138, 79, 52, 0.3);
    }
    
    .cta-widget__message {
        font-size: 1rem;
        gap: 0.4rem;
    }
    
    .cta-widget__icon {
        font-size: 1.2rem;
    }
    
    .cta-widget__button {
        padding: 0.6rem 1rem;
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
}

@media screen and (max-width: 600px) {
    /* Adjust Get In Touch button position for smaller screens */
    .s-header__content .btn {
        right: 6rem;
        top: 2rem;
    }

    .s-header__content .language-selector {
        padding: 0 3rem;
    }
    
    .language-selector__current {
        height: 46px;
        font-size: 1.4rem;
    }
    
    /* Adjust CTA widget for smaller screens */
    .cta-widget {
        bottom: 1.5rem;
        right: 1rem;
        min-width: 130px;
        max-width: 150px;
        padding: 0.7rem 0.9rem;
    }
    
    .cta-widget__message {
        font-size: 0.95rem;
    }
    
    .cta-widget__button {
        padding: 0.5rem 0.9rem;
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 400px) {
    /* Adjust Get In Touch button position for very small screens */
    .s-header__content .btn {
        right: 5rem;
        top: 1.5rem;
    }

    .s-header__content .language-selector {
        padding: 0 2rem;
    }
    
    .language-selector__current {
        height: 44px;
        font-size: 1.3rem;
        padding: 0 1.2rem;
    }
    
    /* Adjust CTA widget for very small screens */
    .cta-widget {
        bottom: 1rem;
        right: 0.5rem;
        min-width: 120px;
        max-width: 140px;
        padding: 0.6rem 0.8rem;
    }
    
    .cta-widget__message {
        font-size: 0.9rem;
        gap: 0.3rem;
    }
    
    .cta-widget__icon {
        font-size: 1rem;
    }
    
    .cta-widget__button {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
        letter-spacing: 0.3px;
    }
}

/* ===================================================================
 * ACCESSIBILITY
 * ------------------------------------------------------------------- */
a:focus,
button:focus {
    outline: 2px solid var(--color-1);
    outline-offset: 2px;
}

/* Smooth transitions for interactive elements */
a,
button,
.btn {
    transition: all 0.3s ease;
}

/* ===================================================================
 * PERFORMANCE - Reduce animations on mobile
 * ------------------------------------------------------------------- */
@media screen and (max-width: 600px) {
    /* Keep carousel animations but reduce others */
    *:not(.carousel-card):not(.carousel-3d-scene):not(.team-card):not(.team-card__photo) {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.1s;
    }
}

/* ===================================================================
 * CAROUSEL NAVIGATION ARROWS - FIXED POSITIONING
 * ------------------------------------------------------------------- */

/* Force absolute positioning for carousel buttons */
button.carousel-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 1rem !important;
    z-index: 1000 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: auto !important;
    width: auto !important;
    line-height: 1 !important;
    margin: 0 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    min-width: auto !important;
    min-height: auto !important;
}

button.carousel-arrow:hover {
    transform: translateY(-50%) scale(1.2) !important;
}

button.carousel-arrow:active {
    transform: translateY(-50%) scale(1) !important;
}

button.carousel-arrow i {
    font-size: 48px;
    color: var(--color-2);
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

button.carousel-arrow:hover i {
    color: var(--color-1);
    filter: drop-shadow(0 4px 8px rgba(138, 79, 52, 0.5));
}

button.carousel-arrow--prev {
    left: 2% !important;
    right: auto !important;
}

button.carousel-arrow--next {
    right: 2% !important;
    left: auto !important;
}

/* Responsive adjustments for arrows */
@media screen and (max-width: 1200px) {
    .carousel-arrow i {
        font-size: 40px;
    }

    .carousel-arrow--prev {
        left: 1%;
    }

    .carousel-arrow--next {
        right: 1%;
    }
}

@media screen and (max-width: 900px) {
    .carousel-arrow i {
        font-size: 36px;
    }

    .carousel-arrow--prev {
        left: 5px;
    }

    .carousel-arrow--next {
        right: 5px;
    }
}

@media screen and (max-width: 600px) {
    .carousel-arrow i {
        font-size: 30px;
    }

    .carousel-arrow--prev {
        left: 2px;
    }

    .carousel-arrow--next {
        right: 2px;
    }
}

@media screen and (max-width: 400px) {
    .carousel-arrow i {
        font-size: 26px;
    }

    .carousel-arrow {
        padding: 0.5rem;
    }
}
