/* ===== SERVICES PAGE STYLES ===== */

/* Services Hero Section */
.services-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 50, 100, 0.8) 100%);
    color: white;
    overflow: hidden;
}

.hero-bg-services {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-waves-services {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
}

.hero-wave-service {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(45deg, rgba(102, 204, 255, 0.1) 0%, rgba(0, 150, 255, 0.05) 100%);
    border-radius: 50% 50% 0 0;
    animation: heroWaveService 10s ease-in-out infinite;
}

.hero-wave-service.wave-1 {
    animation-delay: 0s;
    opacity: 0.3;
}

.hero-wave-service.wave-2 {
    animation-delay: 3s;
    opacity: 0.2;
}

.hero-wave-service.wave-3 {
    animation-delay: 6s;
    opacity: 0.1;
}

.hero-particles-services {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.particle-service {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--water-cyan);
    border-radius: 50%;
    animation: particleFloatService 8s ease-in-out infinite;
}

.particle-service:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle-service:nth-child(2) { left: 30%; top: 40%; animation-delay: 2s; }
.particle-service:nth-child(3) { left: 60%; top: 30%; animation-delay: 4s; }
.particle-service:nth-child(4) { left: 80%; top: 50%; animation-delay: 1s; }
.particle-service:nth-child(5) { left: 90%; top: 25%; animation-delay: 3s; }

.hero-content-services {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 2rem 0;
}

.hero-title-services {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    color: rgba(255, 255, 255, 0.8);
}

.title-highlight {
    display: block;
    background: linear-gradient(135deg, var(--water-cyan) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description-services {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
}

.hero-stats-services {
    display: flex;
    gap: 3rem;
}

.stat-item-service {
    text-align: center;
}

.stat-number-service {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--water-cyan);
    margin-bottom: 0.5rem;
}

.stat-label-service {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-visual-services {
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-cards-services {
    position: relative;
    width: 400px;
    height: 400px;
}

.floating-card-service {
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--water-cyan);
    font-size: 0.9rem;
    font-weight: 600;
    animation: floatCardService 6s ease-in-out infinite;
}

.floating-card-service i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.floating-card-service.card-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.floating-card-service.card-2 {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation-delay: 1s;
}

.floating-card-service.card-3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2s;
}

.floating-card-service.card-4 {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation-delay: 3s;
}

/* Services Grid Section */
.services-grid-section {
    padding: 6rem 0;
    background: var(--bg-color);
}

.section-header-services {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title-services {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.section-description-services {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 204, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 204, 255, 0.2);
}

.service-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.service-icon {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--water-cyan) 0%, var(--primary-blue) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.icon-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: inherit;
    filter: blur(10px);
    opacity: 0.5;
    animation: iconGlow 3s ease-in-out infinite;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.service-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, var(--water-cyan) 0%, var(--primary-blue) 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-card-body {
    margin-bottom: 2rem;
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.feature-item i {
    color: var(--water-cyan);
    font-size: 0.9rem;
}

.feature-item span {
    color: var(--text-color);
    font-size: 0.9rem;
}

.service-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(102, 204, 255, 0.1);
    color: var(--water-cyan);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(102, 204, 255, 0.2);
}

.service-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.service-price {
    display: flex;
    flex-direction: column;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.price-period {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.service-cta {
    background: linear-gradient(135deg, var(--water-cyan) 0%, var(--primary-blue) 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.service-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 204, 255, 0.4);
    color: white;
    text-decoration: none;
}

/* Process Section */
.process-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, rgba(102, 204, 255, 0.05) 100%);
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 4rem;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--water-cyan) 0%, var(--primary-blue) 100%);
    z-index: 1;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--water-cyan) 0%, var(--primary-blue) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(102, 204, 255, 0.3);
}

.step-content {
    max-width: 200px;
}

.step-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.step-icon {
    width: 40px;
    height: 40px;
    background: rgba(102, 204, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--water-cyan);
    margin-top: 1rem;
}

/* CTA Section */
.services-cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 50, 100, 0.8) 100%);
    color: white;
}

.cta-content-services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cta-text-services h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-text-services p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.cta-btn-primary {
    background: linear-gradient(135deg, var(--water-cyan) 0%, var(--primary-blue) 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 204, 255, 0.4);
}

.cta-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.cta-visual-services {
    display: flex;
    justify-content: center;
}

.cta-card-services {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    max-width: 300px;
}

.cta-card-services i {
    font-size: 3rem;
    color: var(--water-cyan);
    margin-bottom: 1rem;
}

.cta-card-services h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta-card-services p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Animations */
@keyframes heroWaveService {
    0%, 100% {
        transform: translateX(0) scaleY(1);
    }
    50% {
        transform: translateX(-25%) scaleY(1.1);
    }
}

@keyframes particleFloatService {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-30px) scale(1.2);
        opacity: 1;
    }
}

@keyframes floatCardService {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes iconGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* ===== RESPONSIVE STYLES ===== */

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .services-hero {
        min-height: 80vh;
    }
    
    .hero-content-services {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title-services {
        font-size: 3rem;
    }
    
    .hero-stats-services {
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .process-timeline {
        flex-wrap: wrap;
        gap: 2rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .services-hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-content-services {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title-services {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-description-services {
        font-size: 1rem;
    }
    
    .hero-stats-services {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-number-service {
        font-size: 2rem;
    }
    
    .hero-visual-services {
        display: none;
    }
    
    .services-grid-section {
        padding: 3rem 0;
    }
    
    .section-title-services {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .process-section {
        padding: 3rem 0;
    }
    
    .process-timeline {
        flex-direction: column;
        gap: 2rem;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .process-step {
        width: 100%;
    }
    
    .step-content {
        max-width: 100%;
    }
    
    .services-cta-section {
        padding: 3rem 0;
    }
    
    .cta-content-services {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .cta-text-services h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-btn-primary,
    .cta-btn-secondary {
        width: 100%;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .hero-title-services {
        font-size: 1.75rem;
    }
    
    .section-title-services {
        font-size: 1.75rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .service-title {
        font-size: 1.25rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .services-cta-section {
        padding: 2.5rem 0;
    }
    
    .cta-text-services h2 {
        font-size: 1.75rem;
    }
    
    .cta-text-services p {
        font-size: 0.95rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
    .hero-title-services {
        font-size: 1.5rem;
    }
    
    .section-title-services {
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: 0.875rem;
    }
    
    .service-title {
        font-size: 1.1rem;
    }
    
    .services-cta-section {
        padding: 2rem 0;
    }
    
    .cta-text-services h2 {
        font-size: 1.5rem;
    }
}

/* ===== LANGUAGES & TECHNOLOGIES SECTION ===== */

/* Languages Section Container */
.languages-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(0, 119, 255, 0.05) 0%, rgba(0, 204, 255, 0.05) 100%);
}

.language-category-wrapper {
    margin-bottom: 4rem;
}

.language-category-wrapper:first-of-type {
    margin-top: 3rem;
}

.language-category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--water-cyan);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    justify-content: center;
}

/* Languages Icons Grid Styles for Services Page */
.languages-grid-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.language-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    border: 1px solid rgba(0, 204, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: floatUp 0.6s ease-out backwards;
    width: 100%;
    box-sizing: border-box;
}

.language-icon-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 204, 255, 0.1), transparent);
    transition: left 0.5s;
}

.language-icon-item:hover::before {
    left: 100%;
}

.language-icon-item:nth-child(1) { animation-delay: 0.1s; }
.language-icon-item:nth-child(2) { animation-delay: 0.2s; }
.language-icon-item:nth-child(3) { animation-delay: 0.3s; }
.language-icon-item:nth-child(4) { animation-delay: 0.4s; }
.language-icon-item:nth-child(5) { animation-delay: 0.5s; }
.language-icon-item:nth-child(6) { animation-delay: 0.6s; }
.language-icon-item:nth-child(7) { animation-delay: 0.7s; }
.language-icon-item:nth-child(8) { animation-delay: 0.8s; }

@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.language-icon-item:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--water-cyan);
    box-shadow: 0 10px 40px rgba(0, 204, 255, 0.3);
}

.icon-container {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.2), rgba(0, 204, 255, 0.2));
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-icon-item:hover .icon-container {
    transform: rotate(360deg) scale(1.1);
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.4), rgba(0, 204, 255, 0.4));
}

.icon-container i {
    font-size: 2.5rem;
    color: var(--water-cyan);
    transition: all 0.4s ease;
    filter: drop-shadow(0 0 10px rgba(0, 204, 255, 0.5));
    z-index: 2;
    position: relative;
}

.language-icon-item:hover .icon-container i {
    color: var(--light-blue);
    filter: drop-shadow(0 0 20px rgba(102, 204, 255, 0.8));
    transform: scale(1.2);
}

.icon-glow-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 204, 255, 0.3) 0%, transparent 70%);
    animation: pulseGlow 2s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.4s;
}

.language-icon-item:hover .icon-glow-effect {
    opacity: 1;
    animation: pulseGlow 1s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.8;
    }
}

.language-name {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.language-icon-item:hover .language-name {
    color: var(--water-cyan);
    font-weight: 600;
    transform: translateY(-2px);
}

/* Languages Section Responsive Design */

/* Large Tablets and Small Desktops */
@media (min-width: 1025px) and (max-width: 1440px) {
    .languages-grid-icons {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 1.75rem;
    }
}

/* Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .languages-grid-icons {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1.5rem;
    }
    
    .icon-container {
        width: 70px;
        height: 70px;
    }
    
    .icon-container i {
        font-size: 2rem;
    }
    
    .language-category-title {
        font-size: 1.5rem !important;
    }
    
    .language-icon-item {
        padding: 1.25rem;
    }
    
    .language-name {
        font-size: 0.9rem;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .languages-section {
        padding: 3rem 0 !important;
    }
    
    .languages-section .container {
        padding: 0 1rem;
    }
    
    .section-title-services {
        font-size: 1.75rem !important;
    }
    
    .section-description-services {
        font-size: 0.95rem !important;
        padding: 0 0.5rem;
    }
    
    .language-category-wrapper {
        margin-bottom: 3rem !important;
    }
    
    .language-category-title {
        font-size: 1.4rem !important;
        margin-bottom: 1.5rem !important;
        flex-wrap: wrap;
        justify-content: center !important;
    }
    
    .languages-grid-icons {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1.25rem;
        padding: 0 0.5rem;
    }
    
    .language-icon-item {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .icon-container {
        width: 60px;
        height: 60px;
    }
    
    .icon-container i {
        font-size: 1.8rem;
    }
    
    .language-name {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    /* Reduce hover effects on mobile */
    .language-icon-item:active .icon-container {
        transform: rotate(360deg) scale(1.05);
    }
    
    .language-icon-item:active {
        transform: translateY(-5px) scale(1.02);
    }
    
    .hero-content-services {
        text-align: center;
    }
    
    .hero-visual-services {
        display: none;
    }
    
    .floating-cards-services {
        display: none;
    }
    
    .hero-stats-services {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .stat-item-service {
        flex: 1;
        min-width: 120px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .services-hero {
        padding: 2.5rem 0 1.5rem;
    }
    
    .hero-title-services {
        font-size: 1.75rem;
    }
    
    .hero-description-services {
        font-size: 0.95rem;
    }
    
    .hero-stats-services {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-item-service {
        padding: 0.875rem;
    }
    
    .stat-number-service {
        font-size: 1.5rem;
    }
    
    .stat-label-service {
        font-size: 0.85rem;
    }
    
    .languages-section {
        padding: 2.5rem 0 !important;
    }
    
    .languages-section .container {
        padding: 0 0.75rem;
    }
    
    .section-title-services {
        font-size: 1.5rem !important;
    }
    
    .section-description-services {
        font-size: 0.9rem !important;
        padding: 0 0.5rem;
    }
    
    .language-category-wrapper {
        margin-bottom: 2.5rem !important;
    }
    
    .language-category-title {
        font-size: 1.2rem !important;
        margin-bottom: 1.25rem !important;
        gap: 0.5rem !important;
    }
    
    .language-category-title i {
        font-size: 1.1rem !important;
    }
    
    .languages-grid-icons {
        grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
        gap: 1rem;
        padding: 0 0.25rem;
    }
    
    .language-icon-item {
        padding: 0.875rem 0.5rem;
        gap: 0.5rem;
    }
    
    .icon-container {
        width: 55px;
        height: 55px;
    }
    
    .icon-container i {
        font-size: 1.5rem;
    }
    
    .language-name {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .hero-stats-services {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .stat-item-service {
        width: 100%;
        padding: 1rem;
    }
    
    .stat-number-service {
        font-size: 1.75rem;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 375px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .services-hero {
        padding: 2rem 0 1rem;
    }
    
    .hero-title-services {
        font-size: 1.5rem;
    }
    
    .hero-description-services {
        font-size: 0.9rem;
    }
    
    .hero-stats-services {
        gap: 0.625rem;
    }
    
    .stat-item-service {
        padding: 0.75rem;
    }
    
    .stat-number-service {
        font-size: 1.25rem;
    }
    
    .languages-section {
        padding: 2rem 0 !important;
    }
    
    .section-title-services {
        font-size: 1.35rem !important;
    }
    
    .section-description-services {
        font-size: 0.85rem !important;
    }
    
    .language-category-wrapper {
        margin-bottom: 2rem !important;
    }
    
    .language-category-title {
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .languages-grid-icons {
        grid-template-columns: repeat(auto-fit, minmax(75px, 1fr));
        gap: 0.75rem;
    }
    
    .language-icon-item {
        padding: 0.75rem 0.5rem;
    }
    
    .icon-container {
        width: 50px;
        height: 50px;
    }
    
    .icon-container i {
        font-size: 1.3rem;
    }
    
    .language-name {
        font-size: 0.7rem;
    }
    
    .stat-number-service {
        font-size: 1.25rem;
    }
    
    .stat-label-service {
        font-size: 0.8rem;
    }
}

/* Landscape Mobile Devices */
@media (max-width: 768px) and (orientation: landscape) {
    .languages-grid-icons {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 1rem;
    }
    
    .icon-container {
        width: 55px;
        height: 55px;
    }
    
    .icon-container i {
        font-size: 1.6rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .language-icon-item {
        cursor: default;
    }
    
    .language-icon-item:active {
        transform: translateY(-5px) scale(1.03);
        background: rgba(255, 255, 255, 0.08);
    }
    
    .language-icon-item:active .icon-container {
        transform: rotate(360deg) scale(1.08);
    }
    
    /* Remove hover-only effects on touch devices */
    .language-icon-item:hover {
        transform: none;
    }
    
    .language-icon-item:hover .icon-container {
        transform: none;
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    .language-icon-item {
        animation: none;
    }
    
    .language-icon-item:hover .icon-container {
        transform: scale(1.05);
        transition: transform 0.2s ease;
    }
    
    .icon-glow-effect {
        animation: none;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .icon-container i {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ===== CRITICAL RESPONSIVE FIXES - Prevent Crashes ===== */
@media (max-width: 768px) {
    /* Prevent horizontal overflow */
    .services-hero,
    .hero-content-services,
    .services-grid-section,
    .services-grid,
    .languages-section,
    .languages-grid-icons,
    .process-section,
    .process-timeline {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    /* Ensure all cards don't overflow */
    .service-card,
    .language-icon-item,
    .process-step,
    .stat-item-service {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    
    /* Fix grid layouts */
    .services-grid {
        grid-template-columns: 1fr !important;
    }
    
    .languages-grid-icons {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)) !important;
    }
    
    .process-timeline {
        flex-direction: column !important;
    }
}

@media (max-width: 480px) {
    /* Additional mobile fixes */
    .services-hero,
    .services-grid-section,
    .languages-section,
    .process-section,
    .services-cta-section {
        padding-left: 1rem;
        padding-right: 1rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
}