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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #333;
    direction: rtl;
    background-color: #fff;
}

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

/* Color Variables */
:root {
    --primary-dark: #1a365d;
    --primary-blue: #2d5aa0;
    --accent-bronze: #91694d;
    --accent-gold: #d4af37;
    --text-dark: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --light-gray: #f7fafc;
    --border-color: #e2e8f0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

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

.logo {
    height: 50px;
    width: auto;
}

/* Right side navigation items */
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

.nav-menu a:hover {
    color: var(--accent-bronze);
}

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

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin: 0;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: var(--primary-dark);
    color: var(--white);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    height: 180px;
    width: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
    color: var(--white);
}

.hero-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.feature {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.cta-button {
    display: inline-block;
    background: var(--accent-bronze);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
}

.cta-button:hover {
    background: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.4);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.timeline {
    margin-top: 2rem;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.timeline-year {
    background: var(--accent-bronze);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
}

.timeline-content {
    font-weight: 500;
    color: var(--text-dark);
}

.expert-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--accent-bronze);
}

.expert-image {
    width: 100px;
    height: 100px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 3px solid var(--accent-bronze);
}

.expert-image i {
    font-size: 2.5rem;
    color: var(--accent-bronze);
}

.expert-card h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.expert-title {
    color: var(--accent-bronze);
    font-weight: 500;
    margin-bottom: 1rem;
}

.expert-credentials {
    list-style: none;
    text-align: right;
}

.expert-credentials li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.expert-credentials i {
    color: var(--accent-bronze);
    margin-left: 0.5rem;
}

/* Services Section */
.services {
    padding: 80px 0;
}

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

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-bronze);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-bronze), var(--accent-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    line-height: 1.6;
}

/* Why Us Section */
.why-us {
    padding: 80px 0;
    background: var(--light-gray);
}

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

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--accent-bronze);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feature-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.feature-item h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: var(--primary-dark);
    color: var(--white);
}

.testimonials .section-title {
    color: var(--white);
}

.testimonials .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-card.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.testimonial-content p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--white);
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: var(--accent-bronze);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar i {
    font-size: 1.5rem;
    color: var(--white);
}

.author-info h4 {
    color: var(--white);
    margin-bottom: 0.25rem;
}

.author-info p {
    color: var(--accent-bronze);
    margin: 0;
    font-size: 0.9rem;
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: var(--accent-bronze);
}

/* Contact Section */
.contact {
    padding: 80px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-bronze);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--white);
    font-size: 1.2rem;
}

.contact-details h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.contact-details a {
    color: var(--accent-bronze);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-form {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-bronze);
}

.submit-btn {
    background: var(--accent-bronze);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: var(--accent-gold);
    transform: translateY(-1px);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-logo h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    color: var(--accent-bronze);
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-bronze);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-contact i {
    color: var(--accent-bronze);
    margin-left: 0.5rem;
    width: 20px;
}

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

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

.social-links a:hover {
    background: var(--accent-gold);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    background: #25d366;
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    gap: 0.5rem;
}

.whatsapp-float a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float i {
    font-size: 1.5rem;
}

.whatsapp-float span {
    font-weight: 500;
    white-space: nowrap;
}

/* Language Dropdown Styles */
.language-switcher {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
}

.language-dropdown {
    position: relative;
}

.lang-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    min-width: 120px;
    justify-content: space-between;
}

.lang-trigger:hover {
    border-color: var(--accent-bronze);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(145, 105, 77, 0.2);
}

.lang-trigger.active {
    border-color: var(--accent-bronze);
    box-shadow: 0 4px 15px rgba(145, 105, 77, 0.25);
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.lang-current-icon {
    font-size: 1.1rem;
}

.lang-current-text {
    font-family: inherit;
    white-space: nowrap;
}

.lang-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-trigger.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    min-width: 140px;
    backdrop-filter: blur(10px);
}

.lang-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    border: none;
    background: none;
    width: 100%;
    text-align: right;
}

.lang-option:first-child {
    border-radius: 10px 10px 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 10px 10px;
}

.lang-option:hover {
    background: var(--light-gray);
    color: var(--accent-bronze);
}

.lang-option.active {
    background: linear-gradient(135deg, var(--accent-bronze), #a6764d);
    color: white;
}

.lang-option-icon {
    font-size: 1.1rem;
}

.lang-option-text {
    font-family: inherit;
    flex: 1;
}

/* World icon for the trigger */
.lang-world-icon {
    font-size: 1.1rem;
    color: var(--accent-bronze);
}

/* Mobile language dropdown */
@media (max-width: 768px) {
    .language-switcher {
        margin-left: 0;
        margin-right: 1rem;
    }
    
    .lang-trigger {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
        min-width: 100px;
    }
    
    .lang-current-text {
        display: none;
    }
    
    .lang-dropdown-menu {
        right: 0;
        left: auto;
        min-width: 120px;
    }
    
    .lang-option {
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Enhanced navigation for language support */
.navbar .container {
    position: relative;
}

/* Language-specific adjustments */
.lang-fr {
    font-family: 'Montserrat', 'Cairo', sans-serif;
    direction: ltr;
}

/* Hero Section - French Layout */
.lang-fr .hero-title {
    font-size: 2.8rem;
    line-height: 1.3;
    text-align: center;
}

.lang-fr .hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
}

.lang-fr .section-title {
    font-size: 2.3rem;
}

.lang-fr .service-card h3,
.lang-fr .feature-item h3 {
    font-size: 1.2rem;
    line-height: 1.4;
}

/* Navigation - French Layout */
.lang-fr .nav-menu {
    flex-direction: row;
}

.lang-fr .navbar .container {
    flex-direction: row;
}

.lang-fr .language-switcher {
    margin-left: 1rem;
    margin-right: 0;
}

/* Mobile menu should be column for French */
@media (max-width: 768px) {
    .lang-fr .nav-menu {
        flex-direction: column;
    }
}

/* Hero Features - French Layout */
.lang-fr .hero-features {
    justify-content: center;
    flex-direction: row;
}

/* About Section - French Layout */
.lang-fr .about-content {
    grid-template-columns: 1fr 1fr;
    text-align: left;
}

.lang-fr .about-text {
    text-align: left;
}

.lang-fr .timeline-item {
    flex-direction: row;
    text-align: left;
}

.lang-fr .timeline-year {
    margin-right: 1rem;
    margin-left: 0;
}

.lang-fr .expert-card {
    text-align: center;
}

.lang-fr .expert-credentials {
    text-align: left;
}

/* Services Section - French Layout */
.lang-fr .services-grid {
    text-align: left;
}

.lang-fr .service-card {
    text-align: left;
}

.lang-fr .service-icon {
    margin: 0 auto 1.5rem;
}

/* Features Section - French Layout */
.lang-fr .features-grid {
    text-align: left;
}

.lang-fr .feature-item {
    text-align: left;
}

.lang-fr .feature-icon {
    margin: 0 auto 1rem;
}

/* Testimonials - French Layout */
.lang-fr .testimonials {
    text-align: center;
}

.lang-fr .testimonial-content {
    text-align: center;
}

.lang-fr .author-info {
    text-align: left;
}

/* Contact Section - French Layout */
.lang-fr .contact-content {
    grid-template-columns: 1fr 1fr;
}

.lang-fr .contact-info {
    text-align: left;
}

.lang-fr .contact-item {
    flex-direction: row;
    text-align: left;
}

.lang-fr .contact-icon {
    margin-right: 1rem;
    margin-left: 0;
}

.lang-fr .form-group {
    text-align: left;
}

.lang-fr .form-group label {
    text-align: left;
}

/* Footer - French Layout */
.lang-fr .footer-content {
    text-align: left;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.lang-fr .footer-logo {
    text-align: left;
}

.lang-fr .footer-links {
    text-align: left;
}

.lang-fr .footer-contact {
    text-align: left;
}

.lang-fr .footer-social {
    text-align: left;
}

.lang-fr .social-links {
    justify-content: flex-start;
}

.lang-fr .footer-bottom {
    text-align: center;
}

/* Icons and elements positioning for French */
.lang-fr .contact-details i {
    margin-right: 0.5rem;
    margin-left: 0;
}

.lang-fr .footer-contact i {
    margin-right: 0.5rem;
    margin-left: 0;
}

.lang-fr .expert-credentials i {
    margin-right: 0.5rem;
    margin-left: 0;
}

/* Text alignment improvements */
.lang-fr p,
.lang-fr .service-card p,
.lang-fr .feature-item p {
    text-align: left;
}

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

/* Mobile adjustments for French */
@media (max-width: 768px) {
    .lang-fr .about-content {
        grid-template-columns: 1fr;
    }
    
    .lang-fr .contact-content {
        grid-template-columns: 1fr;
    }
    
    .lang-fr .hero-content {
        text-align: center;
    }
    
    .lang-fr .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .lang-fr .social-links {
        justify-content: center;
    }
    
    .lang-fr .language-switcher {
        margin-left: 0;
        margin-right: 1rem;
    }
}

/* Professional Animations */
/* Performance-optimized animations using transform and opacity only */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale3d(0.9, 0.9, 1);
    }
    to {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translate3d(50px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translate3d(-50px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Hero Section Animations */
.hero-logo {
    animation: scaleIn 0.8s ease-out;
    animation-fill-mode: both;
}

.hero-title {
    animation: fadeInUp 0.8s ease-out 0.2s;
    animation-fill-mode: both;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.4s;
    animation-fill-mode: both;
}

.hero-features {
    animation: fadeInUp 0.8s ease-out 0.6s;
    animation-fill-mode: both;
}

.cta-button {
    animation: fadeInUp 0.8s ease-out 0.8s;
    animation-fill-mode: both;
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Service cards staggered animation */
.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Feature items animation */
.feature-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Button animations */
.cta-button, .submit-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cta-button::before, .submit-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;
}

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

/* Navigation animation */
.nav-menu a {
    position: relative;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-bronze);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

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

/* Testimonials animation */
.testimonial-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card.active {
    animation: fadeInUp 0.5s ease-out;
}

/* Timeline animation */
.timeline-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.timeline-year {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:hover .timeline-year {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(145, 105, 77, 0.3);
}

/* Contact form animations */
.form-group input, .form-group textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus, .form-group textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(145, 105, 77, 0.15);
}

/* Social links animation */
.social-links a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
}

/* WhatsApp float animation */
.whatsapp-float a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); }
    50% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5); }
    100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); }
}

.whatsapp-float a:hover {
    transform: translateY(-5px) scale(1.05);
    animation: none;
}

/* Performance optimizations */
* {
    backface-visibility: hidden;
}

.animate-on-scroll,
.service-card,
.feature-item,
.timeline-item {
    will-change: transform;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        gap: 0.5rem;
        position: relative;
    }
    
    .nav-right {
        order: 2;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .language-switcher {
        margin-left: 0;
        order: 1;
    }
    
    .mobile-menu-toggle {
        display: flex;
        margin-right: 0;
        order: 2;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        gap: 1rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .whatsapp-float span {
        display: none;
    }
    
    .whatsapp-float a {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        justify-content: center;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-card,
    .testimonial-card {
        padding: 1.5rem;
    }
}