/* styles.css */
:root {
    --text-primary: #111111;
    --text-secondary: #707070;
    --text-primary-light: #ffffff;
    --text-secondary-light: #a0a0a0;
    --bg-light: #E3E5E9;
    --bg-white: #FFFFFF;
    --divider-color: #A0A0A0;
    --border-color: #E3E5E9;
    --footer-bg: #161414;
    --border-dark: #111111;
    --body-bg: var(--bg-white);
    --body-color: var(--text-primary);
    --font-family: 'Work Sans', sans-serif;
    --lang-active-color: var(--text-primary);
    --lang-inactive-color: var(--text-secondary);
    --theme-switch-bg: var(--bg-light);
}

/* Global Styles */
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background-color: var(--bg-white);
    color: var(--body-color);
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 120px;
    min-width: 320px;
    height: 180px;
    box-sizing: border-box;
}

.logo {
    display: block;
    max-width: 100%;
    height: auto;
}

.actions-container {
    display: flex;
    gap: 40px;
    align-items: center;
}

.theme-switch {
    display: flex;
    gap: 8px;
    padding: 8px;
    background-color: var(--theme-switch-bg);
    border-radius: 1000px;
}

.toggle {
    display: flex;
    padding: 8px 12px;
    border-radius: 34.15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle.active {
    background-color: var(--bg-white);
}

.language-switch {
    text-decoration: none;
    display: flex;
    color: inherit;
    cursor: pointer;
    gap: 24px;
    align-items: center;
    font-size: 20px;
    text-transform: uppercase;
}

.lang.active {
    color: var(--lang-active-color);
    text-decoration: none;
}

.lang.inactive {
    color: var(--lang-inactive-color);
    opacity: 0.6;
    text-decoration: none;
}

.divider {
    width: 3px;
    height: 3px;
    background-color: var(--divider-color);
    border-radius: 1000px;
}

/* Intro Block Styles */
.intro-block {
    width: 100%;
    min-width: 320px;
    padding: 40px 120px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
}

.text-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0 auto;
}

.main-container {
    width: 100%;
    max-width: 1300px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0 auto;
}

.main-heading, .main-heading-h2 {
    font-size: 64px;
    line-height: 64px;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0;
}

.main-heading-h2 {
    margin-top: -20px;
}

.description {
    font-size: 20px;
    line-height: 28px;
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0;
    white-space: pre-line;
}

/* Common Section Styles */
.section-divider {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: center;
}

.section-title {
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
    margin: 0;
    color: var(--text-primary);
}

.divider-line {
    flex-grow: 1;
    background-color: #8d8d8d;
    height: 1px;
    margin-left: auto;
    opacity: 0.5 ;
}

/* Services Block Styles */
.services-block, .other-services-block {
    padding: 40px 120px 120px;
    display: flex;
    flex-direction: column;
    gap: 64px;
    width: 100%;
    box-sizing: border-box;
}

.services-container {
    display: flex;
    flex-direction: row;
    gap: 41px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.other-services-container {
    display: flex;
    flex-direction: row;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* Card Styles (Shared properties) */
.service-card, .other-service-card {
    width: 293px;
    height: 340px;
    border-radius: 40px;
    border: 1px solid transparent;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
    background-clip: padding-box;
}

.service-card::before, .other-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 40px;
    border: 1px solid var(--border-color);
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.service-card:hover::before, .other-service-card:hover::before {
    opacity: 0;
}

.service-card:hover, .other-service-card:hover {
    transform: translateY(-4px);
}

.service-card a, .other-service-card a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.image-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease, mix-blend-mode 0.3s ease;
    mix-blend-mode: multiply;
    opacity: 0.5;
}

.service-card:hover .image-container img, 
.other-service-card:hover .image-container img {
    mix-blend-mode: normal;
    opacity: 1;
    transform: scale(1.1);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 40px;
    width: calc(100% - 80px);
    z-index: 2;
    font-size: 16px;
    color: black; /* Set text color to black */
}

.card-content h3 {
    font-size: 28px;
    font-weight: 500;
    line-height: 36px;
    color: var(--text-primary);
    margin: 0 0 24px 0;
}

.learn-more {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.learn-more span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-primary);
}

.arrow-line {
    position: relative;
    width: 40px;
    height: 2px; /* Slightly thicker line */
    background-color: var(--text-primary);
    flex-grow: 0;
    flex-shrink: 0;
    transition: width 0.3s ease; /* Animate the line width on hover */
}

.image-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease, mix-blend-mode 0.3s ease;
    mix-blend-mode: multiply;
    opacity: 0.5;
}

.image-container video:hover {
    display: block;
    border-radius: inherit; /* Inherit the border radius from the card */
    mix-blend-mode: normal;
    opacity: 1;
    transform: scale(1.1);
}




.arrow-line::after {
    content: '';
    position: absolute;
    right: -2px; /* Start slightly more to the right */
    top: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--text-primary); /* Thicker border */
    border-right: 2px solid var(--text-primary); /* Thicker border */
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.3s ease, right 0.3s ease;
}

/* Add an additional element for more style */
.arrow-line {
    position: relative;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--text-primary));
    flex-grow: 0;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.arrow-line::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--text-primary);
    border-right: 2px solid var(--text-primary);
    transform: translateY(-50%) rotate(45deg);
    transition: all 0.4s ease;
}

.service-card:hover .arrow-line {
    width: 55px;
}

.other-service-card:hover .arrow-line::after {
    animation: pulse 1.5s infinite;
}

.other-service-card:hover .arrow-line {
    width: 55px;
}

.service-card:hover .arrow-line::after {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: translateY(-50%) rotate(45deg) scale(1); }
    50% { transform: translateY(-50%) rotate(45deg) scale(1.2); }
    100% { transform: translateY(-50%) rotate(45deg) scale(1); }
}



/* Footer Styles */
.footer {
    background-color: var(--footer-bg);
    min-width: 320px;
    padding: 72px 120px;
    border-top: 1px solid var(--border-dark);
    width: 100%;
    box-sizing: border-box;
}

.footer-content {
    display: flex;
    flex-direction: row;
    gap: px;
    justify-content: space-between; /* Changed from center to space-between */
    align-items: flex-start;        /* Changed from center to flex-start */
    max-width: 1100px;              /* Same max-width as other content sections */
    margin: 0 auto;                 /* Center the block itself */
    flex-wrap: wrap;
}

.info-block {
    width: 270px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-block h3 {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    margin: 0;
}

.info-block p {
    color: var(--text-primary-light);
    font-size: 20px;
    line-height: 28px;
    margin: 0;
}

.email p {
    color: var(--text-primary-light);
}

.social-icons {
    display: flex;
    gap: 50px;
    margin-top: 10px;
}

.social-icon img {
        max-width: 24px; /* Control icon size */
        height: auto;
    }

.social-icon {
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.social-icon:hover {
    opacity: 0.8;
}

/* Theme Images Control */
.theme-image.dark {
    display: none;
}

body[data-theme="dark"] .theme-image.dark {
    display: inline;
}

body[data-theme="dark"] .theme-image.light {
    display: none;
}

/* Contact icon styles */
.text-content .theme-image {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
    display: inline-block;
}

/* Logo visibility */
.light-logo {
    display: block;
}

.dark-logo {
    display: none;
}

body[data-theme="dark"] .dark-logo {
    display: block;
}

body[data-theme="dark"] .light-logo {
    display: none;
}

/* Service page styles */
.main-content {
    display: flex;
    padding: 40px 120px;
    gap: 40px;
    max-width: 1440px;
    margin: 0 auto;
}

.text-content {
    flex: 1;
    max-width: 550px;
}

.text-content h1 {
    font-size: 48px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 32px;
    margin-top: -12px;
}

.text-content p {
    font-size: 20px;
    line-height: 28px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.text-content h2 {
    font-size: 32px;
    font-weight: 400;
    color: var(--text-primary);
    margin: 48px 0 24px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-info img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.contact-info a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    vertical-align: middle;
}

.image-content {
    flex: 1;
    max-width: 400px;
    
}

.image-content img {
    width: 100%;
    height: auto;
    border-radius: 40px;
    background: #F5F6F7;
}

/* Dark Mode Styles */
body[data-theme="dark"] {
    background-color: #161414;
    color: var(--text-primary-light);
    --text-primary: #efe2e2;
    --lang-active-color: #fff;
    --lang-inactive-color: #a0a0a0;
    --theme-switch-bg: var(--text-secondary);
    --border-color: #2c2d2d;
}

body[data-theme="dark"] .other-services {
    background: #111111;
}

body[data-theme="dark"] .other-services .service-card {
    background: #2C2D2D;
}

body[data-theme="dark"] .image-content img {
    background: #2C2D2D;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
        padding: 24px;
    }

    .text-content,
    .image-content {
        max-width: 100%;
    }

    .other-services {
        padding: 40px 24px;
    }

    .other-services .services-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: center;
        padding: 16px 60px;
        min-width: auto;
        height: auto;
    }
    
    .logo {
        margin: 0 auto 20px;
        max-width: 75%;
    }
    
    .actions-container {
        width: 100%;
        justify-content: center;
    }

    .intro-block, .services-block, .other-services-block {
        padding: 20px;
    }

    .main-heading, .main-heading-h2 {
        font-size: 48px;
        line-height: 60px;
    }

    .description {
        font-size: 18px;
        line-height: 24px;
    }

    .service-card, .other-service-card {
        width: 100%;
    }
    
    .text-content h1 {
        font-size: 36px;
    }

    .text-content p {
        font-size: 18px;
        line-height: 26px;
    }

    .footer {
        padding: 40px 20px; /* Match other sections' padding */
    }
      .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-block {
        width: 100%;
        text-align: left;
        margin-left: 0;
        margin-right: auto;
    }

    .social-icons {
        justify-content: flex-start;
    }
}
@media (max-width: 480px) {
    .header {
        padding: 16px 24px;
    }
    
    .logo {
        margin: 25px auto; /* Fixed your margin value which had 500 */
        max-width: 70%;
    }
    
    .main-heading, .main-heading-h2 {
        font-size: 36px;
        line-height: 44px;
    }

    .footer {
        padding: 32px 24px;
    }
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }
    
    .description {
        font-size: 16px;
        line-height: 22px;
    }
    
    /* Add these styles for the footer social icons */
    .info-block.social {
        text-align: left;
    }
    
    .social-icons {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 15px; /* Space between icons */
    }
    
    .social-icon img {
        max-width: 20px; /* Control icon size */
        height: auto;
    }
}

/* Specific styles for contact lines */
.text-content .contact-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.text-content .contact-line a {
    display: inline-block;
    vertical-align: middle;
}