/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e74c3c;
    --primary-dark: #c0392b;
    --primary-gradient: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    --secondary-color: #2c3e50;
    --text-color: #1a1a2e;
    --text-light: #64748b;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 0, 0, 0.06);
    --border-radius: 20px;
    --border-radius-sm: 12px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 60px rgba(231, 76, 60, 0.25);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER ===== */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
}

.header-logo:hover {
    transform: scale(1.05);
}

/* ===== LANGUAGE SWITCHER ===== */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    padding: 0.4rem 0.6rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.lang-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem;
    border-radius: 50%;
    transition: var(--transition);
    opacity: 0.8;
}

.lang-flag:hover {
    opacity: 1;
    transform: scale(1.15) rotate(5deg);
    background: rgba(255, 255, 255, 0.8);
}

.lang-flag img {
    width: 26px;
    height: 26px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

.page-title {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.page-title p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ===== SERVICE CARD ===== */
.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: rgba(231, 76, 60, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    opacity: 1;
}

.service-logo {
    height: 60px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    margin-bottom: 0.75rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.service-card:hover .service-logo {
    transform: scale(1.1);
}

.service-title {
    font-size: 1.15rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.4rem;
    position: relative;
    z-index: 1;
}

.service-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

a.service-card {
    text-decoration: none;
    display: block;
}

.service-card.no-link {
    cursor: default;
}

.service-card.no-link:hover {
    transform: none;
    box-shadow: var(--shadow-card);
    border-color: var(--glass-border);
}

.service-card.no-link:hover::before {
    transform: scaleX(0);
}

.service-card.no-link:hover::after {
    opacity: 0;
}

.service-card.no-link:hover .service-logo {
    transform: none;
    animation: none;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    margin-top: 2.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-card);
    padding: 2rem 2.5rem;
    position: relative;
    overflow: visible;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.about-title {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.about-content {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text-light);
}

.about-content p {
    margin-bottom: 1.25rem;
    text-align: justify;
}

.about-content p:last-child {
    margin-bottom: 0;
}


/* ===== SOCIAL SECTION ===== */
.social-section {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}

.social-link i {
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
    border-color: transparent;
}

.social-link.youtube:hover {
    background: #FF0000;
    color: white;
    border-color: transparent;
}

.social-link.linkedin:hover {
    background: #0077B5;
    color: white;
    border-color: transparent;
}

.social-link.email:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    margin-top: auto;
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-color);
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    transition: var(--transition);
}

.footer-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.footer-item i {
    color: var(--primary-color);
    font-size: 1rem;
    flex-shrink: 0;
}

.footer-item.whatsapp i {
    color: #25D366;
}

.footer-item.whatsapp:hover {
    background: #25D366;
}

.footer-item.whatsapp:hover i,
.footer-item.whatsapp:hover a {
    color: white;
}

.footer-contact-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.footer-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-item a:hover {
    color: var(--primary-color);
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .page-title h1 {
        font-size: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header {
        padding: 0.5rem 1rem;
    }
    
    .header-logo {
        height: 34px;
    }
    
    .language-switcher {
        gap: 0.25rem;
        padding: 0.3rem 0.5rem;
    }
    
    .lang-flag img {
        width: 22px;
        height: 22px;
    }
    
    .main-content {
        padding: 2rem 1rem;
    }
    
    .page-title {
        margin-bottom: 2rem;
    }
    
    .page-title h1 {
        font-size: 1.75rem;
    }
    
    .page-title p {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .service-card {
        padding: 1.25rem 0.75rem;
    }
    
    .service-logo {
        height: 38px;
    }
    
    .service-title {
        font-size: 0.95rem;
    }
    
    .service-description {
        font-size: 0.8rem;
    }
    
    .footer {
        padding: 1.5rem 1rem;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer-item {
        font-size: 0.85rem;
        justify-content: center;
    }
    
    .footer-item:first-child {
        width: 100%;
    }
    
    .footer-contact-row {
        display: flex;
        gap: 0.75rem;
        justify-content: center;
        flex-wrap: nowrap;
    }
    
    .footer-contact-row .footer-item {
        width: auto;
        flex: 1;
    }
    
    .about-section {
        margin-top: 1.5rem;
        padding: 1rem;
        border-radius: 12px;
    }
    
    .about-title {
        font-size: 1.15rem;
        padding: 0;
        margin: 0 0 1rem 0;
    }
    
    .about-content {
        font-size: 0.85rem;
        line-height: 1.7;
    }
    
    .about-content p {
        margin-bottom: 0.75rem;
    }
    
    .social-section {
        gap: 0.5rem;
        flex-wrap: nowrap;
    }
    
    .social-link {
        padding: 0.7rem 0.9rem;
        font-size: 0.8rem;
        flex: 1;
        justify-content: center;
    }
    
    .social-link span {
        display: none;
    }
    
    .social-link i {
        font-size: 1.2rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .page-title h1 {
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: 1.25rem 1rem;
    }
    
    .service-logo {
        height: 50px;
    }
}

/* ===== RTL SUPPORT ===== */
[dir="rtl"] {
    direction: rtl;
}

[dir="rtl"] .header-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .language-switcher {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .social-link {
    flex-direction: row-reverse;
}

[dir="rtl"] .about-content p {
    text-align: right;
}

[dir="rtl"] .footer-contact-row {
    flex-direction: row-reverse;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.service-card {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.15s; }
.service-card:nth-child(3) { animation-delay: 0.2s; }
.service-card:nth-child(4) { animation-delay: 0.25s; }
.service-card:nth-child(5) { animation-delay: 0.3s; }
.service-card:nth-child(6) { animation-delay: 0.35s; }

/* Floating animation for logos on hover */
.service-card:hover .service-logo {
    animation: float 2s ease-in-out infinite;
}
