/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection only for input fields and textareas */
input, textarea, [contenteditable="true"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Cursor pointer for all interactive elements */
button, .btn, .modal-close, .language-toggle, .nav-link, .service-card.clickable, 
.modal-link, [onclick], [data-modal], .project-card, .close-btn, .cta-button,
.dropdown-toggle, .language-flag, .submit-btn, input[type="submit"], 
input[type="button"], [role="button"], .clickable {
    cursor: pointer !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0a;
    color: #e5e5e5;
    line-height: 1.6;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Pulse animation */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Glow animation */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 255, 136, 0.3); }
    50% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.6), 0 0 30px rgba(0, 255, 136, 0.4); }
}

/* Slide in from left */
@keyframes slideInLeft {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Slide in from right */
@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Slide in from bottom */
@keyframes slideInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

body::-webkit-scrollbar {
    display: none;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

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

/* Header Styles */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    background: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    height: auto;
}

header:hover {
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 8px 32px rgba(0, 255, 136, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: rgba(17, 17, 17, 0.75);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00ff88, #00ccff, #ff6b6b);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    position: relative;
    animation: gradientShift 4s ease infinite;
    padding: 0.8rem 0;
    display: flex;
    align-items: center;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.logo::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #00ff88, #00ccff);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(8px);
}

.logo:hover::before {
    opacity: 0.3;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    border-radius: 15px;
    padding: 0.8rem;
}

.nav-links a {
    color: #a0a0a0;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    display: block;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-links a:hover::before {
    left: 100%;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    transform: translateY(-1px);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    overflow: hidden;
}

.hero-content {
    max-width: 640px;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #00ff88, #00ccff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.hero p {
    font-size: 1.2rem;
    color: #a0a0a0;
    margin-bottom: 2rem;
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #00ff88, #00ccff);
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    animation: ctaSlideIn 0.8s ease-out 0.6s, pulse 2s infinite 3.4s;
}

@keyframes ctaSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.4);
    animation: none;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23333" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
}

/* Section Styles */
.section {
    padding: 5rem 0;
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 0.8s ease-out forwards;
}

.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.4s; }
.section:nth-child(4) { animation-delay: 0.6s; }

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
    position: relative;
    animation: slideInUp 0.8s ease-out both;
    opacity: 0;
    transform: translateY(50px);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #00ff88, #00ccff);
    border-radius: 2px;
    animation: slideInUp 0.8s ease-out 0.3s both;
}

/* Services Section */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: #111;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #222;
    transition: all 0.4s ease;
    transform: translateY(20px);
    opacity: 0;
    animation: slideInUp 0.6s ease-out forwards;
    position: relative;
    overflow: hidden;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 136, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.service-card:hover::before {
    transform: translateX(100%);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #00ff88;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00ff88, #00ccff);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.service-card p {
    color: #a0a0a0;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00ff88;
    margin: 1rem 0;
}

.service-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.service-order-btn,
.service-info-btn {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-order-btn {
    background: linear-gradient(135deg, #00ff88, #00ccff);
    color: #000;
}

.service-info-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #e5e5e5;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

.service-info-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.service-order-btn::before,
.service-info-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.service-order-btn:hover::before,
.service-info-btn:hover::before {
    left: 100%;
}

/* Projects Section */
.projects {
    background: #111;
}

.projects-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem 0;
    transition: all 0.5s ease;
}

.projects-slider.expanded {
    grid-template-columns: repeat(4, 1fr);
}

/* Hidden projects initially */
.project-card.hidden-project {
    display: none !important;
}

.project-card.hidden-project.show {
    display: flex !important;
    animation: slideUpReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.project-card.hidden-project.hide {
    animation: slideDownHide 0.8s cubic-bezier(0.55, 0.06, 0.68, 0.19) forwards;
}

/* Animation for revealing projects - as if a cover is sliding down */
@keyframes slideUpReveal {
    from {
        opacity: 0;
        transform: translateY(0);
        clip-path: inset(0 0 100% 0);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        clip-path: inset(0 0 0% 0);
    }
}

/* Animation for hiding projects - as if a cover is sliding up */
@keyframes slideDownHide {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
        clip-path: inset(0 0 0% 0);
    }
    70% {
        opacity: 0.7;
        transform: translateY(0) scale(0.98);
        clip-path: inset(0 0 50% 0);
    }
    100% {
        opacity: 0;
        transform: translateY(0) scale(0.95);
        clip-path: inset(0 0 100% 0);
    }
}

/* Show all projects button */
.show-all-container {
    text-align: center;
    margin-top: 3rem;
}

.show-all-btn {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    color: #fff;
    border: 2px solid #333;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.show-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transition: left 0.5s ease;
}

.show-all-btn:hover::before {
    left: 100%;
}

.show-all-btn:hover {
    border-color: #00ff88;
    color: #00ff88;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.show-all-btn .btn-icon {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.show-all-btn.active .btn-icon {
    transform: rotate(180deg);
}

.show-all-btn.active .btn-text::after {
    content: " меньше";
}

.show-all-btn.active .btn-text {
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.project-card {
    background: #1a1a1a;
    border-radius: 20px;
    border: 1px solid #333;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #00ff88;
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.1);
}

.project-logo {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    background: #222;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.project-type {
    font-size: 0.9rem;
    color: #00ff88;
    font-weight: 500;
}

/* Contact Section */
.contact {
    text-align: center;
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    background: #111;
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid #333;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 1rem;
    color: #e5e5e5;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    background: linear-gradient(135deg, #00ff88, #00ccff);
    color: #000;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.form-submit:active {
    transform: translateY(0);
}

.form-message {
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    font-weight: 600;
}

.form-message.success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
}

.form-message.error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #a0a0a0;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: #222;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item a {
    color: #e5e5e5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #00ff88;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #111;
    border: 1px solid #333;
    border-radius: 15px;
    padding: 0;
    max-width: 400px;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.toast-notification.toast-show {
    opacity: 1;
    transform: translateX(0);
}

.toast-notification.toast-success {
    border-color: rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.05);
}

.toast-notification.toast-error {
    border-color: rgba(255, 107, 107, 0.3);
    background: rgba(255, 107, 107, 0.05);
}

.toast-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    gap: 1rem;
}

.toast-message {
    color: #e5e5e5;
    font-weight: 500;
    line-height: 1.4;
    flex: 1;
}

.toast-success .toast-message {
    color: #00ff88;
}

.toast-error .toast-message {
    color: #ff6b6b;
}

.toast-close {
    background: none;
    border: none;
    color: #a0a0a0;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Loading state for form button */
.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.form-submit:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Footer */
footer {
    background: #0a0a0a;
    padding: 2rem 0;
    border-top: 1px solid #222;
    text-align: center;
    color: #666;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .projects-slider {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-slider.expanded {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    header {
        top: 10px;
        width: calc(100% - 20px);
    }

    nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .projects-slider {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .projects-slider.expanded {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-card {
        padding: 1.5rem;
    }
    
    .show-all-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    header {
        top: 10px;
        width: calc(100% - 20px);
        border-radius: 20px;
    }
    
    nav {
        padding: 0.8rem 1rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .language-switcher {
        transform: scale(0.9);
    }
    
    .hero {
        min-height: 70vh;
        padding: 6rem 0 4rem;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .projects-slider {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .projects-slider.expanded {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        padding: 1.2rem;
        min-height: auto;
    }
    
    .project-logo img {
        width: 50px;
        height: 50px;
    }
    
    .project-title {
        font-size: 1.1rem;
    }
    
    .project-type {
        font-size: 0.8rem;
    }
    
    .contact-form {
        padding: 0.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 0.9rem;
        font-size: 0.9rem;
    }
    
    footer {
        padding: 2rem 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-section {
        flex: none;
        width: 100%;
    }
    
    .footer-section h4 {
        margin-bottom: 1rem;
    }
}

/* Hidden projects */
.hidden-project {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.hidden-project.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.projects-slider.expanded .hidden-project {
    display: block;
    animation: fadeInUp 0.3s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Desktop: show 6 projects initially (3x2 grid) */
.projects-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem 0;
}

/* Mobile: hide desktop-only projects */
@media (max-width: 768px) {
    .project-card.desktop-visible {
        display: none !important;
    }
}

/* Mobile: show 3 projects initially (1 per row) */
@media (max-width: 480px) {
    .projects-slider {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .projects-slider.expanded {
        grid-template-columns: 1fr;
    }
}

/* Text overflow fixes for all languages */
.hero h1,
.section-title,
.project-title,
.service-card h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.hero p,
.modal-description,
.service-card p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Russian language specific fixes */
[lang="ru"] .hero h1 {
    line-height: 1.1;
}

[lang="ru"] .project-title {
    font-size: 0.95rem;
    line-height: 1.2;
}

[lang="ru"] .service-card h3 {
    font-size: 1.2rem;
    line-height: 1.3;
}

[lang="ru"] .modal-title {
    line-height: 1.2;
}

/* Korean language specific fixes */
[lang="ko"] .hero h1 {
    line-height: 1.2;
    word-break: keep-all;
}

[lang="ko"] .service-card h3 {
    font-size: 1.1rem;
    line-height: 1.4;
    word-break: keep-all;
}

[lang="ko"] .project-title {
    font-size: 0.9rem;
    line-height: 1.3;
    word-break: keep-all;
}

/* Japanese language specific fixes */
[lang="ja"] .hero h1 {
    line-height: 1.3;
    word-break: keep-all;
}

[lang="ja"] .service-card h3 {
    font-size: 1.1rem;
    line-height: 1.4;
    word-break: keep-all;
}

[lang="ja"] .project-title {
    font-size: 0.9rem;
    line-height: 1.3;
    word-break: keep-all;
}

/* Mobile specific Russian fixes */
@media (max-width: 480px) {
    [lang="ru"] .hero h1 {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    [lang="ru"] .project-title {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    [lang="ru"] .service-card h3 {
        font-size: 1.1rem;
    }
    
    [lang="ru"] .modal-title {
        font-size: 1.3rem;
        line-height: 1.1;
    }
    
    [lang="ru"] .modal-subtitle {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    /* Fix project cards layout for Russian */
    [lang="ru"] .project-card {
        min-height: 140px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    [lang="ru"] .project-logo {
        margin-bottom: 0.8rem;
    }
    
    [lang="ru"] .project-type {
        font-size: 0.75rem;
        margin-top: auto;
    }
}

/* Hide Google reCAPTCHA badge */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Alternative method */
iframe[src*="recaptcha"] {
    display: none !important;
}

/* reCAPTCHA notice styling */
.recaptcha-notice {
    margin-top: 1rem;
    text-align: center;
    opacity: 0.7;
}

.recaptcha-notice small {
    font-size: 0.75rem;
    color: #999;
    line-height: 1.4;
}

.recaptcha-notice a {
    color: #00ff88;
    text-decoration: none;
}

.recaptcha-notice a:hover {
    text-decoration: underline;
}

/* Very Small Phones */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    header {
        top: 5px;
        width: calc(100% - 10px);
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .project-card {
        padding: 1rem;
        min-height: 120px;
    }
    
    .project-logo img {
        width: 40px;
        height: 40px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .contact-form {
        padding: 0.3rem;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.7rem;
        font-size: 0.8rem;
    }
    
    .submit-btn {
        padding: 0.8rem;
        font-size: 0.8rem;
    }
    
    /* Extra fixes for Russian on very small screens */
    [lang="ru"] .hero h1 {
        font-size: 1.6rem;
        line-height: 1.1;
    }
    
    [lang="ru"] .project-title {
        font-size: 0.8rem;
        line-height: 1.1;
    }
    
    [lang="ru"] .project-type {
        font-size: 0.7rem;
    }
    
    [lang="ru"] .project-card {
        min-height: 130px;
        padding: 0.8rem;
    }
    
    /* Reduced animations on mobile for better performance */
    .service-card {
        animation-duration: 0.4s;
    }
    
    .hero-content,
    .hero h1,
    .hero p,
    .cta-button {
        animation-duration: 0.5s;
    }
    
    /* Simplify hover effects on touch devices */
    .service-card:hover::before,
    .cta-button:hover::before {
        animation-duration: 0.3s;
    }
}

/* Performance optimizations for reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .service-card:hover::before,
    .cta-button:hover::before,
    .nav-links a:hover::before {
        display: none;
    }
    
    .cta-button {
        animation: none !important;
    }
}

/* Additional responsive improvements */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .services {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}

/* Enhanced mobile experience */
@media (max-width: 768px) {
    .hero {
        padding: 0 1rem;
    }
    
    .hero-content {
        animation: slideInUp 0.6s ease-out;
    }
    
    .services {
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .service-card {
        transform: none;
        opacity: 1;
        animation: none;
    }
    
    .service-card:hover {
        transform: translateY(-2px);
    }
    
    /* Touch-friendly interactions */
    .service-card.clickable:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .cta-button:active {
        transform: scale(0.95);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: #0a0a0a;
        color: #e5e5e5;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid #fff;
    }
    
    .section-title::after {
        background: #fff;
    }
}