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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #000000;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    color: white;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
    font-size: 15px;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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



.language-toggle {
    background: transparent;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 15px;
}

.language-toggle:hover {
    color: #cccccc;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: #000000;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    height: 100vh;
}

.hero-icon {
    margin-bottom: 1rem;
}

.hero-star {
    width: 96px;
    height: 96px;
    object-fit: contain;
}

.hero-title {
    font-size: 72px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 3rem;
    color: #cccccc;
    line-height: 1.6;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: white;
    color: black;
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: black;
    transform: translateY(-2px);
}

.hero-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.geometric-graphic {
    width: 100%;
    height: auto;
    max-width: 600px;
    object-fit: contain;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: left;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: #000000;
}

.section-identifier {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-number {
    color: #666666;
    font-size: 1.2rem;
    font-weight: 500;
}

.section-name {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid white;
    padding-bottom: 0.5rem;
}

.about-content-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 3rem 0;
}

.about-graphic {
    text-align: left;
    display: flex;
    justify-content: flex-start;
    padding-left: 0;
}

.geometric-shapes {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-left: 0;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #333333;
    transition: all 0.3s ease;
}

.feature-card:nth-child(1) {
    border-color: #2563eb;
}

.feature-card:nth-child(2) {
    border-color: #ec4899;
}

.feature-card:nth-child(3) {
    border-color: #10b981;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.feature-img {
    width: 180px;
    height: 180px;
    object-fit: contain;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-description {
    color: #cccccc;
    line-height: 1.6;
    font-size: 0.95rem;
}

.about-description p {
    color: #cccccc;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Services Section */
.services {
    background: #000000;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-card {
    background: #1a1a1a;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid #333333;
    position: relative;
    overflow: visible;
}

.service-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2rem;
}

.service-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2rem;
}

.service-header-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}


body[data-lang="es"] .service-card:nth-child(2) .service-header-row {
    align-items: flex-start;
}
body[data-lang="es"] .service-card:nth-child(2) .service-icon {
    margin-top: 3rem;
}


body[data-lang="en"] .service-card:nth-child(2) .service-header-row {
    align-items: center;
}
body[data-lang="en"] .service-card:nth-child(2) .service-icon {
    margin-top: 2rem;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.service-number {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    color: #666666;
    font-size: 1.1rem;
    font-weight: 500;
}

.service-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.service-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-description {
    color: #cccccc;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.service-graphic {
    margin-top: 1.5rem;
    position: absolute;
    bottom: -30px;
    z-index: 10;
}

.service-chart {
    width: 200%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
}

.service-card:nth-child(1) .service-graphic {
    left: -150px;
}

.service-card:nth-child(1) .service-chart {
    width: 200%;
    max-width: 400px;
}

.service-card:nth-child(4) .service-graphic {
    left: -10%;
}

/* Testimonials Section */
.testimonials {
    background: #000000;
    padding: 5rem 0;
}

.testimonials-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-container {
    position: relative;
    height: 450px;
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 0;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 1.67rem);
    background: #1a1a1a;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-left: 4px solid #2563eb;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s ease-in-out;
    display: none;
    height: 380px;
    min-height: 380px;
    max-height: 380px;
    display: flex;
    flex-direction: column;
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.7;
    text-align: center;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: auto;
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #333333;
    flex-shrink: 0;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.testimonial-author h4 {
    color: white;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.testimonial-author span {
    color: #cccccc;
    font-size: 1rem;
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% + 120px);
    left: -60px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.carousel-btn {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #333333;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: #666666;
    transform: scale(1.1);
}

.carousel-btn:active {
    transform: scale(0.95);
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: #666666;
}

.indicator.active {
    background: #ffffff;
    transform: scale(1.2);
}

/* Contact Section */
.contact {
    background: #000000;
    position: relative;
    overflow: hidden;
}

.contact-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.contact-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.contact .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.contact-form-container {
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: center;
}

.contact-form {
    background: rgba(26, 26, 26, 0.7);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    width: 100%;
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-title {
    color: white;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.form-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 300;
}

.form-group {
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: rgba(255, 255, 255, 0.8);
    border-bottom-width: 2px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

.error-message {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    min-height: 1.2rem;
}

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

.contact-form .btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: white;
    color: black;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.contact-form .btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

/* Footer */
.footer {
    background: #000000;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

.footer-left {
    max-width: 400px;
}

.footer-logo-section {
    margin-bottom: 1rem;
}

.footer-logo {
    width: 280px;
    height: 60px;
    object-fit: contain;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.footer-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-contact h4,
.footer-location h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-contact p,
.footer-location p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.footer-center {
    /* Пустий центр */
}

.footer-navigation {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: right;
    justify-self: end;
    align-self: start;
    margin-top: 1rem;
}

.nav-row {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
}

.nav-row a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-row a:hover {
    color: #2563eb;
}

.footer-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #000000;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content-row {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem;
    }

    .service-header-row {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    /* Testimonials responsive */
    .testimonials-carousel {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .testimonials-container {
        height: auto;
        flex-direction: column;
        gap: 1rem;
    }
    
    .testimonial-card {
        padding: 2rem;
        flex: 0 0 100%;
        height: auto;
        min-height: auto;
        max-height: none;
    }
    
    .testimonial-content p {
        height: auto;
        min-height: 100px;
        font-size: 1.1rem;
    }
    
    .testimonial-avatar {
        width: 60px;
        height: 60px;
    }
    
    .testimonial-author h4 {
        font-size: 1rem;
    }
    
    .testimonial-author span {
        font-size: 0.9rem;
    }
    
    .testimonial-content p {
        font-size: 1rem;
    }
    
    .carousel-controls {
        padding: 0 1rem;
        width: calc(100% + 80px);
        left: -40px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Contact responsive */
    .contact .container {
        min-height: 80vh;
        padding: 2rem 1rem;
    }
    
    .contact-form-container {
        max-width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .form-subtitle {
        font-size: 0.9rem;
    }
    
    /* Footer responsive */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-navigation {
        order: -1;
        text-align: center;
    }
    
    .nav-row {
        flex-direction: column;
        gap: 1rem;
        justify-content: center;
    }
    
    .footer-info {
        max-width: 100%;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-logo {
        width: 140px;
        height: 140px;
    }
    
    .nav-row a {
        font-size: 1rem;
    }

    .service-title {
        font-size: 20px;
    }

    .service-icon {
        margin-top: 1rem;
    }

    .service-graphic {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
    }

    .service-chart {
        width: 100%;
        max-height: 80px;
    }

    .section-header {
        text-align: center;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scrolling for older browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}
