/* ========================================
   CRITICAL CSS FOR SEO OPTIMIZATION
   ======================================== */

/* Performance optimizations for Core Web Vitals */
/* Preload critical resources and prevent layout shifts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========================================
   TYPOGRAPHY & FONT OPTIMIZATION
   ======================================== */

/* Optimize font loading and display for better SEO performance */
/* Prevents invisible text during font swap period */
@font-display: swap;

body {
    font-family: 'Work Sans', sans-serif;
    background: #F7F3E9;
    color: #2C3E50;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    /* Improve text rendering for better UX */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent layout shifts */
    font-display: swap;
}

.container {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Improve rendering performance */
    contain: layout style;
    will-change: auto;
}

@media (max-width: 768px) {
    .container {
        min-height: auto;
    }
}

/* Background elements */
.upper-artifact {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    z-index: 0;
    opacity: 0.8;
    /* Optimize background image loading */
    loading: lazy;
    decoding: async;
    /* GPU acceleration for better performance */
    transform: translateZ(0);
    will-change: transform;
}

/* Blob shapes - removed, using imported images instead */

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 51px 10px 74px;
    position: relative;
    z-index: 10;
}

/* Logo section */
.logo-section {
    display: flex;
    align-items: center;
    gap: 17px;
}

.logo {
    width: 76px;
    height: 74px;
    position: relative;
}

.logo-text {
    position: absolute;
    width: 76px;
    height: 74px;
    left: 64px;
    top: 32px;
    display: none; /* Hide the curved text for simplicity */
}

.logo-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.logo-info p {
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    line-height: 16px;
    color: #2C3E50;
    margin: 0;
}

/* Hamburger menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1000;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.hamburger-menu:hover {
    background-color: rgba(37, 37, 37, 0.1);
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: #252525;
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 2px;
    display: block;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Navigation */
.navigation {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    line-height: 48px;
    text-decoration: none;
    color: #252525;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-link.active {
    font-weight: 700;
    color: #D63384;
}

.nav-link:hover {
    color: #D63384;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid rgba(37, 37, 37, 0.2);
}

.lang-link {
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #252525;
    transition: color 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.lang-link.active {
    color: #D63384;
    background: rgba(214, 51, 132, 0.1);
}

.lang-link:hover {
    color: #D63384;
}

.lang-separator {
    color: rgba(37, 37, 37, 0.3);
    font-size: 14px;
}

/* Main content */
.main-content {
    padding: 40px 74px 60px;
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1440px;
    margin: 0 auto;
    min-height: calc(100vh - 180px);
}

/* Hero section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
    width: 100%;
    max-width: 1308px;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
    max-width: 629px;
    flex: 1;
    padding-top: 0;
}

.content h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 38px;
    color: #2C3E50;
    margin-bottom: 6px;
}

.description {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 28px;
    color: #2C3E50;
    margin-bottom: 8px;
}

/* CTA Button */
.cta-button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    width: auto;
    min-width: 200px;
    height: 44px;
    background: #D63384;
    border-radius: 12px;
    border: none;
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 18px;
    color: #F7F3E9;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-button:hover {
    background: #C32873;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(214, 51, 132, 0.3);
}

.cta-button:active {
    transform: translateY(0);
}

/* Buttons */
.contact-buttons {
    /* Auto layout */
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0px;
    gap: 32px;

    width: auto;
    height: 52px;

    /* Inside auto layout */
    flex: none;
    order: 0;
    flex-grow: 0;
}

/* Primary button */
.contact-btn {
    /* Auto layout */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 17px 48px;
    gap: 10px;

    width: 285px;
    height: 52px;

    background: #D63384;
    border-radius: 16px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;

    /* Inside auto layout */
    flex: none;
    order: 0;
    flex-grow: 0;

    /* Send a Message */
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 18px;
    color: #F7F3E9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    /* Performance optimizations */
    contain: layout style;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.contact-btn:hover {
    background: #C32873;
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 4px 12px rgba(214, 51, 132, 0.3);
    /* Optimize hover animations for performance */
    will-change: transform, box-shadow;
}

/* Secondary button */
.secondary-btn {
    background: #F7F3E9;
    border: 1px solid #D63384;
    color: #D63384;
    width: 274px;
    padding: 24px 48px;
    font-size: 18px;
    line-height: 18px;
    box-sizing: border-box;
}

.secondary-btn:hover {
    background: rgba(214, 51, 132, 0.1);
    border: 1px solid #C32873;
    color: #C32873;
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 4px 12px rgba(214, 51, 132, 0.2);
}

/* Remove image styles since we're now using text */

.whatsapp-btn {
    order: 0;
}

.whatsapp-btn img {
    filter: none; /* Remove filter for whatsapp.png as it should be the actual image */
}

.telegram-btn {
    order: 1;
}

.telegram-btn img {
    transform: translate(-1px, 1px); /* Fine-tune alignment for wider Telegram icon (114x95) */
}

.mail-btn {
    order: 2;
}

/* Hero image container */
.hero-image-container {
    flex-shrink: 0;
    width: 450px;
    height: 563px;
    display: flex;
    align-items: flex-start;
    margin-top: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 51.8313px;
    position: relative;
    z-index: 1;
    /* Optimize image loading for SEO */
    loading: eager;
    decoding: async;
    /* Prevent layout shift */
    aspect-ratio: 450 / 563;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 132px);
    max-width: 1308px;
    background: #FFB3BA;
    border-radius: 40px 40px 0 0;
    padding: 6px 96px 6px 48px;
    z-index: 100;
}

/* Override fixed footer for home page */
body.home-page .footer {
    position: relative;
    left: auto;
    transform: none;
    margin: 0 auto;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 76px;
    height: 20px;
}

.footer-content span,
.footer-content a {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    color: #363031;
    white-space: nowrap;
}

.footer-content a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    text-decoration: underline;
}

.footer-content a.active {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    color: #363031;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}

.footer-content a.active:hover {
    text-decoration: none;
    color: #363031;
}

/* Responsive design - Mobile-first approach for better SEO */
/* Enhanced responsive breakpoints for better mobile experience */
@media (max-width: 1400px) {
    .main-content {
        padding: 40px 60px 60px;
    }
}

@media (max-width: 1200px) {
    .main-content {
        padding: 40px 40px 60px;
        min-height: calc(100vh - 160px);
    }

    .hero {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        max-width: 100%;
    }

    .hero-image-container {
        margin-top: 0;
    }

    .content {
        max-width: 100%;
        text-align: center;
        align-items: center;
        gap: 20px;
        padding-top: 0;
    }

    .content h1 {
        text-align: center;
        margin-bottom: 8px;
        font-size: 22px;
        line-height: 32px;
    }

    .description {
        text-align: center;
        font-size: 16px;
        line-height: 28px;
        margin-bottom: 12px;
    }
}

/* Tablet/medium screen adjustments - title wrapping */
@media (max-width: 1000px) {
    .logo-info p {
        font-size: 13px;
        line-height: 15px;
    }

    .logo-info p:last-child {
        line-height: 13px;
    }

    /* Tighter line spacing for navigation links when they wrap */
    .nav-link {
        line-height: 1.2;
        padding: 4px 0;
        text-align: center;
    }
}

/* Small tablet - switch to hamburger when Our Work Together would break */
@media (max-width: 900px) {
    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 20px 24px;
        gap: 0;
        position: relative;
    }

    .logo-section {
        gap: 12px;
        order: 1;
        flex-shrink: 0;
    }

    .logo-info {
        align-items: flex-start;
    }

    .hamburger-menu {
        display: flex !important;
        order: 2;
    }

    .navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #F7F3E9;
        flex-direction: column;
        align-items: center;
        padding: 24px;
        gap: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        transform: translateZ(0);
        backface-visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .navigation.active {
        display: flex;
    }

    .language-switcher {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(37, 37, 37, 0.2);
    }

    .nav-link {
        font-size: 16px;
    }
}

/* Critical mobile optimizations for Core Web Vitals */
@media (max-width: 768px) {
    /* Improve mobile navigation performance */
    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 20px 24px;
        gap: 0;
        position: relative;
    }

    .logo-section {
        gap: 12px;
        order: 1;
        flex-shrink: 0;
    }

    .logo-info {
        align-items: flex-start;
    }

    .hamburger-menu {
        display: flex !important;
        order: 2;
    }

    .navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #F7F3E9;
        flex-direction: column;
        align-items: center;
        padding: 24px;
        gap: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        /* Optimize mobile menu performance */
        transform: translateZ(0);
        backface-visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .navigation.active {
        display: flex;
    }

    .language-switcher {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(37, 37, 37, 0.2);
    }

    .nav-link {
        font-size: 16px;
    }

    .main-content {
        padding: 30px 24px 80px 24px;
        align-items: center;
        text-align: center;
        min-height: calc(100vh - 130px);
    }

    .hero {
        align-items: center;
        text-align: center;
        gap: 40px;
        margin: 0 auto;
    }

    .content {
        align-items: center;
        text-align: center;
        gap: 24px;
        margin: 0 auto;
        max-width: 100%;
        padding-top: 0;
    }

    .content h1 {
        font-size: 22px;
        line-height: 32px;
        text-align: center;
        margin: 0 auto 14px auto;
        max-width: 320px;
    }

    .description {
        font-size: 15px;
        line-height: 24px;
        text-align: center;
        margin: 0 auto 16px auto;
        max-width: 340px;
    }

    .cta-button {
        width: auto;
        min-width: 180px;
        align-self: center;
        margin: 8px auto 0 auto;
        font-size: 16px;
        padding: 12px 20px;
        height: 42px;
    }

    .contact-buttons {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 16px;
        margin-top: 16px;
        width: 100%;
        /* Ensure buttons are easily tappable on mobile */
        min-height: 44px;
        height: auto;
    }

    .contact-btn {
        width: 100%;
        max-width: 285px;
        height: 48px;
        padding: 12px 24px;
        font-size: 18px;
        /* Improve touch target for accessibility and mobile SEO */
        min-height: 44px;
        /* Reduce paint complexity */
        contain: layout;
    }

    .secondary-btn {
        width: 100%;
        max-width: 285px;
        padding: 12px 24px;
    }

    /* Remove mobile image styles since we're now using text */

    .hero-image-container {
        width: 100%;
        max-width: 351px;
        height: auto;
    }

    .hero-image {
        aspect-ratio: 351/439;
    }

    .footer {
        position: fixed;
        width: calc(100% - 48px);
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 18px 24px;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Keep home page footer relative on mobile */
    body.home-page .footer {
        position: relative;
        width: 100%;
        border-radius: 0;
        margin-top: 40px;
        left: auto;
        transform: none;
    }

    .footer-content {
        flex-wrap: wrap;
        gap: 24px;
        height: auto;
        padding: 6px 0;
        justify-content: center;
    }

}