/* Base Styles */
:root {
    --color-primary: #303f9f;
    --color-accent: #F28C28;
    /* --color-background-light: #E2F2F2; */
    --color-background-light: #E0E0E0;
    --color-background-gray: #E0E0E0;
    --color-success: #2AB690;
    --color-secondary: #5C6B82;
    --color-warning: #f1C40F;
    --color-error: #E74C3C;
    --color-depth: #564C77;
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.nav.scrolled {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav__progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transform-origin: 0 50%;
    transform: scaleX(0);
}

.nav__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav__logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__link {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav__link:hover {
    color: var(--color-primary);
}

.nav__lang {
    position: relative;
}

.nav__lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.nav__lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: none;
    min-width: 120px;
    z-index: 1000;
}

.nav__lang:hover .nav__lang-dropdown {
    display: block;
}

.nav__lang-option {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s;
}

.nav__lang-option:hover {
    background-color: #f5f5f5;
}

.nav__lang-option.active {
    background-color: #e0e0e0;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    color: white;
}

.hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero__video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.hero__title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
}

.hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
}

.hero__scroll-icon {
    width: 24px;
    height: 40px;
    border: 2px solid white;
    border-radius: 12px;
    position: relative;
}

.hero__scroll-icon::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: white;
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn--primary {
    background-color: var(--color-primary);
    color: white;
}

.btn--primary:hover {
    background-color: var(--color-primary);
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn--secondary {
    background-color: var(--color-accent);
    color: white;
}

.btn--secondary:hover {
    background-color: var(--color-accent);
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* About Section */
.about {
    position: relative;
    padding: 6rem 0;
    background-color: var(--color-background-light);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about__image {
    position: relative;
    width: 100%;
}

.about__image img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about__content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about__stats {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    background-color: var(--color-primary);
    color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.about__stats-number {
    font-size: 2.5rem;
    font-weight: 700;
}

.timeline {
    margin-top: 3rem;
}

.timeline__item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.timeline__year {
    flex-shrink: 0;
    width: 6rem;
    font-weight: 700;
    color: var(--color-primary);
}

.timeline__content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.about__cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.about__cta .btn {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

@media (max-width: 768px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about__image {
        order: 1;
    }
    
    .about__content {
        order: 2;
    }
}

/* Services Section */
.services {
    padding: 6rem 0;
    background-color: white;
}

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

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

.service-card {
    background-color: var(--color-background-light);
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.services__cta {
    text-align: center;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background-color: var(--color-background-light);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact__details {
    margin-top: 2rem;
}

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

.contact__form {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-background-gray);
    border-radius: 0.5rem;
    font-family: var(--font-sans);
}

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

/* Animations */
@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
}

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

    .hero__title {
        font-size: 2.5rem;
    }

    .about__grid,
    .contact__grid {
        grid-template-columns: 1fr;
    }

    .about__image {
        order: -1;
    }

    .about__stats {
        bottom: -1rem;
        right: -1rem;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Projects Section */
.projects {
    padding: 6rem 0;
    background-color: white;
}

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

.project-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
}

.project-card__content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
}

.project-card__content p {
    font-size: 1rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .projects__grid {
        grid-template-columns: 1fr;
    }
}

/* Decorative Elements */
.decoration {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.decoration--circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--color-primary), transparent);
    opacity: 0.1;
}

.decoration--square {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, var(--color-accent), transparent);
    opacity: 0.1;
    transform: rotate(45deg);
}

.decoration--dots {
    background-image: radial-gradient(var(--color-primary) 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.1;
}

/* Section Backgrounds */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(48, 63, 159, 0.1), transparent);
    z-index: 0;
}

.about {
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, var(--color-primary), transparent);
    opacity: 0.05;
    border-radius: 50%;
}

.services {
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, var(--color-accent), transparent);
    opacity: 0.05;
    transform: rotate(45deg);
}

/* Enhanced Cards */
.service-card {
    position: relative;
    overflow: hidden;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* Enhanced Timeline */
.timeline__item {
    position: relative;
    padding-left: 2rem;
}

.timeline__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
}

.timeline__year {
    position: relative;
    padding-left: 1rem;
}

.timeline__year::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 50%;
    width: 1rem;
    height: 1rem;
    background: var(--color-accent);
    border-radius: 50%;
    transform: translateY(-50%);
}

/* Enhanced Contact Form */
.contact__form {
    position: relative;
    overflow: hidden;
}

.contact__form::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, var(--color-primary), transparent);
    opacity: 0.05;
    border-radius: 50%;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(48, 63, 159, 0.1);
}

/* Enhanced Buttons */
.btn {
    position: relative;
    overflow: hidden;
}

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

.btn:hover::after {
    transform: translateX(100%);
}

/* Section Dividers */
.section-divider {
    position: relative;
    height: 100px;
    overflow: hidden;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--color-primary), transparent);
    opacity: 0.05;
    transform: skewY(-3deg);
}

/* Values Section */
.values {
    padding: 6rem 0;
    background: var(--color-background);
    position: relative;
    overflow: hidden;
}

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

.value-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.value-card__ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(48, 63, 159, 0.1) 0%, rgba(48, 63, 159, 0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
}

.value-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    color: var(--color-primary);
}

.value-card__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.value-card__text {
    color: var(--color-text);
    line-height: 1.6;
    transition: transform 0.3s ease;
}

/* RTL Adjustments for Value Cards */
[dir="rtl"] .value-card {
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .values__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .value-card {
        padding: 1.5rem;
    }
}

/* Values Section CTA */
.values__cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

[dir="rtl"] .values__cta {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .values__cta {
        flex-direction: column;
        align-items: center;
    }
    
    [dir="rtl"] .values__cta {
        flex-direction: column;
    }
    
    .values__cta .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Footer */
.footer {
    background: #f8f9fa;
    padding: 60px 0 30px;
    margin-top: 60px;
    border-top: 1px solid #eee;
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__brand {
    max-width: 300px;
}

.footer__logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer__tagline {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer__column h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.footer__column a {
    display: block;
    color: #666;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer__column a:hover {
    color: #007bff;
}

.footer__bottom {
    padding-top: 30px;
    border-top: 1px solid #F28C28;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
}

.footer__social {
    display: flex;
    gap: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon i {
    font-size: 1.2rem;
}

.social-icon.linkedin {
    background-color: #0077B5;
}

.social-icon.twitter {
    background-color: #1DA1F2;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

@media (max-width: 768px) {
    .footer__content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer__brand {
        max-width: 100%;
        text-align: center;
    }

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

    .footer__bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    position: relative;
    transition: background-color 0.3s ease;
}

.mobile-menu-icon::before,
.mobile-menu-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    transition: transform 0.3s ease;
}

.mobile-menu-icon::before {
    top: -8px;
}

.mobile-menu-icon::after {
    bottom: -8px;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: white;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active .mobile-menu__content {
    transform: translateX(0);
}

.mobile-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mobile-menu__logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.mobile-menu__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu__close-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    position: relative;
    transform: rotate(45deg);
}

.mobile-menu__close-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    transform: rotate(90deg);
}

.mobile-menu__links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.mobile-menu__link {
    color: var(--color-secondary);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    transition: color 0.3s ease;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.mobile-menu.active .mobile-menu__link {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu__link:hover {
    color: var(--color-primary);
}

.mobile-menu__footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.mobile-menu__lang {
    position: relative;
}

.mobile-menu__lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.mobile-menu__lang-dropdown {
    position: absolute;
    bottom: 100%;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: none;
    min-width: 120px;
    z-index: 1000;
}

.mobile-menu__lang:hover .mobile-menu__lang-dropdown {
    display: block;
}

.mobile-menu__lang-option {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s;
}

.mobile-menu__lang-option:hover {
    background-color: #f5f5f5;
}

.mobile-menu__lang-option.active {
    background-color: #e0e0e0;
}

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

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu__link:nth-child(1) { transition-delay: 0.1s; }
    .mobile-menu__link:nth-child(2) { transition-delay: 0.2s; }
    .mobile-menu__link:nth-child(3) { transition-delay: 0.3s; }
    .mobile-menu__link:nth-child(4) { transition-delay: 0.4s; }
    .mobile-menu__link:nth-child(5) { transition-delay: 0.5s; }
} 