/* CSS Variables for Color Scheme */
:root {
    --color-white: #FFF;
    --color-light-gray: #E1E8EE;
    --color-medium-blue: #445C75;
    --color-dark-blue: #2C3C4C;
    --color-bright-blue: #32BBFF;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-dark-blue);
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.lang-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background-color: var(--color-white);
    color: var(--color-medium-blue);
    text-decoration: none;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(44, 60, 76, 0.1);
    transition: all 0.3s ease;
}

.lang-link:hover {
    background-color: var(--color-bright-blue);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(50, 187, 255, 0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-dark-blue) 0%, var(--color-medium-blue) 100%);
    color: var(--color-white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#footer-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.logo {
    width: 100%;
    max-width: 400px;
    min-width: 300px;
    height: auto;
    margin-bottom: 30px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
    color: var(--color-dark-blue);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--color-bright-blue);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--color-light-gray);
}

.services-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.services-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-medium-blue);
    font-weight: 400;
}

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

.service-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(44, 60, 76, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(44, 60, 76, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-dark-blue);
}

.service-short {
    color: var(--color-medium-blue);
    font-weight: 400;
    line-height: 1.6;
    font-size: 1rem;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.service-detailed {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: var(--color-medium-blue);
    font-weight: 400;
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    background: var(--color-white);
    padding: 40px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.service-card:hover .service-short {
    opacity: 0;
}

.service-card:hover .service-detailed {
    opacity: 1;
    transform: translateY(0);
}

/* Technologies Section */
.technologies {
    padding: 100px 0;
    background-color: var(--color-white);
}

.tech-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.tech-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-medium-blue);
    font-weight: 400;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    margin-top: 60px;
    width: 100%;
    max-width: 100%;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
    background-color: var(--color-light-gray);
}

.tech-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    color: var(--color-bright-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-logo svg {
    width: 100%;
    height: 100%;
}

.tech-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tech-item span {
    font-weight: 500;
    color: var(--color-dark-blue);
    font-size: 1.1rem;
}

/* Clients Section */
.clients {
    padding: 100px 0;
    background-color: var(--color-light-gray);
}

.clients-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.clients-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-medium-blue);
    font-weight: 400;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    align-items: center;
    margin-top: 60px;
    width: 100%;
    max-width: 100%;
}

.client-logo {
    width: 100%;
    max-width: 150px;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin: 0 auto;
    display: block;
    filter: grayscale(100%);
}

.client-logo:hover {
    opacity: 1;
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Footer */
.footer {
    position: relative;
    background-color: var(--color-dark-blue);
    color: var(--color-white);
    padding: 50px 0;
    text-align: center;
    overflow: hidden;
}

.footer .container {
    position: relative;
    z-index: 2;
}

.footer p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer a {
    color: var(--color-bright-blue);
    text-decoration: none;
    font-weight: 500;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tech-grid,
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .service-card {
        padding: 30px 20px;
        text-align: center;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .service-short {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .service-detailed {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        font-size: 0.85rem;
        padding: 30px 20px;
    }
    
    .services-intro p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .tech-intro p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .clients-intro p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .language-switcher {
        top: 15px;
        right: 15px;
    }
    
    .lang-link {
        width: 35px;
        height: 35px;
        font-size: 0.75rem;
    }
    
    .tech-item {
        padding: 20px 10px;
        min-width: 0; /* Allow items to shrink */
    }
    
    .tech-logo {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }
    
    .tech-item span {
        font-size: 0.9rem;
    }
    
    .client-logo {
        max-width: 100px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .services,
    .technologies,
    .clients {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .logo {
        min-width: 250px;
        max-width: 300px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .tech-grid,
    .clients-grid {
        gap: 10px;
    }
    
    .tech-item {
        padding: 15px 5px;
    }
    
    .tech-logo {
        width: 35px;
        height: 35px;
        margin-bottom: 8px;
    }
    
    .tech-item span {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    .client-logo {
        max-width: 80px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: var(--color-bright-blue);
    color: var(--color-white);
}