/* Brand Colors from screenshots */
:root {
    --background-color: #edeae3;
    --primary-dark: #3e7f98;
    --primary-medium: #5e95a5;
    --primary-light: #7eabb2;
    --primary-lighter: #9ec2c0;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    background: var(--white);
    border-radius: 25px;
    padding: 4px;
    box-shadow: 0 4px 20px var(--shadow);
}

.lang-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--text-light);
}

.lang-btn.active {
    background: var(--primary-medium);
    color: var(--white);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(237, 234, 227, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo with animated spheres */
.logo {
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-medium);
    cursor: pointer;
}

.logo-text {
    font-weight: 700;
}

.logo-xi {
    font-weight: 400;
    margin: 0 2px;
    position: relative;
}

.logo-o {
    position: relative;
    width: 40px;
    height: 40px;
    margin: 0 2px;
}

.sphere-container {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sphere {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-lighter);
    border-radius: 50%;
    animation: sphereFloat 3s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes sphereFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-8px) scale(1.2);
        opacity: 1;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.cta-button {
    background: var(--primary-medium);
    color: var(--white);
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(94, 149, 165, 0.3);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(94, 149, 165, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-medium);
    border: 2px solid var(--primary-medium);
}

.cta-button.secondary:hover {
    background: var(--primary-medium);
    color: var(--white);
}

/* Floating background shapes */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-lighter);
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 5%;
    animation-delay: -5s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 30%;
    left: 60%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-30px) rotate(120deg);
    }
    66% {
        transform: translateY(20px) rotate(240deg);
    }
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 3rem;
    text-align: center;
}

/* Cases Section */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.case-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-medium);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px var(--shadow);
}

.case-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.case-location {
    color: var(--text-light);
    font-size: 0.9rem;
}

.case-result {
    margin-top: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* What I Do Section */
.what-i-do {
    background: var(--white);
}

.what-i-do-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.what-i-do-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.3;
}

.section-text {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.7;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .what-i-do-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

/* My Focus Section */
.focus-content {
    max-width: 1000px;
    margin: 0 auto;
}

.focus-intro {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    color: var(--primary-dark);
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
}

.focus-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.focus-area {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px var(--shadow);
    text-align: center;
}

.focus-area h3 {
    color: var(--primary-medium);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.focus-area p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* How I Work Section */
.how-i-work-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.how-i-work-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.how-i-work-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.3;
}

.work-note {
    font-size: 1.1rem;
    color: var(--primary-dark);
    font-weight: 500;
    font-style: italic;
    line-height: 1.6;
}

.work-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.work-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow);
    transition: all 0.3s ease;
}

.work-step:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px var(--shadow);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-medium);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.work-step p {
    color: var(--text-dark);
    font-weight: 500;
    margin: 0;
}

@media (max-width: 768px) {
    .how-i-work-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .how-i-work-left {
        text-align: center;
    }
    
    .work-step {
        text-align: left;
    }
}

/* Why Choose Me Section */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.reason-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.reason-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px var(--shadow);
}

.reason-card h3 {
    color: var(--primary-medium);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.reason-card p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* My Values Section */
.my-values {
    background: var(--background-color);
    padding: 60px 0;
}

.values-content {
    max-width: 900px;
    margin: 0 auto;
}

.values-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.values-title {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0;
    flex-shrink: 0;
}

.values-divider {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-lighter), transparent);
}

.values-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.value-item {
    padding: 0.8rem 0;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
}

.value-item::before {
    content: "•";
    color: var(--primary-medium);
    font-weight: bold;
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

.value-item:hover {
    transform: translateX(5px);
}

.value-item:hover::before {
    color: var(--primary-dark);
}

.value-item p {
    color: var(--text-dark);
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
    display: inline;
}

@media (max-width: 768px) {
    .values-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .values-divider {
        width: 100%;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--primary-lighter), transparent);
    }
    
    .values-list {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .value-item {
        text-align: center;
    }
}

/* Testimonials Section */
.testimonials {
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px var(--shadow);
}

.testimonial-content p {
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author strong {
    color: var(--primary-dark);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Final CTA Section */
.cta-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.cta-option {
    text-align: center;
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
}

.cta-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px var(--shadow);
}

.cta-option h3 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cta-option p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding-top: 80px;
        text-align: center;
    }
    
    .cases-grid,
    .focus-areas,
    .work-steps,
    .reasons-grid,
    .values-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-options {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .language-switcher {
        top: 15px;
        right: 15px;
    }
    
    .navbar {
        padding: 15px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .case-card,
    .focus-area,
    .reason-card,
    .value-item,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .cta-option {
        padding: 2rem 1.5rem;
    }
}

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

/* Language switching - managed by JavaScript */
[data-en], [data-ru] {
    /* Initial state will be managed by JavaScript */
}

/* Logo improvements */
.logo-text {
    font-weight: 700;
    position: relative;
}

.logo-dot {
    font-size: 1.2rem;
    color: var(--primary-medium);
    margin: 0 4px;
    font-weight: 700;
}

/* Infinity animation for logo-o */
.logo-o {
    position: relative;
    width: 40px;
    height: 40px;
    margin: 0 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo-o:hover .sphere-container {
    animation: morphToInfinity 3s ease-in-out infinite;
}

.logo-o:hover .sphere {
    animation: sphereToInfinity 3s ease-in-out infinite;
}

@keyframes morphToInfinity {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    20% {
        transform: scale(0.7) rotate(45deg);
    }
    40% {
        transform: scale(1.3) rotate(90deg);
    }
    60% {
        transform: scale(0.6) rotate(180deg);
    }
    80% {
        transform: scale(1.4) rotate(270deg);
    }
}

@keyframes sphereToInfinity {
    0%, 100% {
        opacity: 0.7;
        transform: translateY(0) scale(1);
    }
    25% {
        opacity: 1;
        transform: translateY(-10px) scale(1.3);
    }
    50% {
        opacity: 0.9;
        transform: translateY(5px) scale(0.8);
    }
    75% {
        opacity: 1;
        transform: translateY(-8px) scale(1.2);
    }
}

/* Navigation menu */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-menu li a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu li a:hover {
    color: var(--primary-medium);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-medium);
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after {
    width: 100%;
}

/* Footer */
.footer {
    background: var(--white);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    color: var(--primary-medium);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-medium);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Case logos */
.case-logo {
    width: 60px;
    height: 60px;
    background: var(--primary-lighter);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.2rem;
}

/* Testimonial avatars */
.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-dark);
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 20px var(--shadow);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
