:root {
    --primary-color: #1E293B;    /* Modern Navy */
    --secondary-color: #0F172A;   /* Deep Blue */
    --accent-color: #DBA622;      /* Gold */
    --text-color: #334155;
    --light-bg: #F8FAFC;
    --card-bg: #FFFFFF;
    --box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    --gradient: linear-gradient(135deg, #1E293B, #0F172A);
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: var(--light-bg);
}

/* Modern Header with Video Background */
header {
    height: 90vh;
    position: relative;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/background-min.jpg') center/cover no-repeat;
    filter: brightness(0.6);
    will-change: transform;
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
}

.header-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Modern Navigation */
nav {
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    position: relative;
}

.logo img {
    height: 50px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    justify-content: center;
    margin-right: 100px; /* Add space for language switcher */
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    height: 40px;
    line-height: 1;
}

.nav-links a i {
    font-size: 1rem;
    opacity: 0.8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-links a:hover {
    background: var(--light-bg);
    color: var(--accent-color);
}

.contact-btn {
    background: var(--gradient);
    color: white !important;
    padding: 0.8rem 1.2rem !important;
    height: 40px !important;
    display: flex;
    align-items: center;
}

.contact-btn:hover {
    background: var(--accent-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(219, 166, 34, 0.3);
}

/* Responsive Navigation */
@media (max-width: 1200px) {
    .nav-links a {
        font-size: 0.85rem;
        padding: 0.5rem 0.6rem;
    }
}

@media (max-width: 992px) {
    .nav-links {
        margin-right: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        flex-direction: column;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 2px;
        background: var(--primary-color);
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .language-switcher {
        position: relative;
        right: 0;
        top: 0;
        transform: none;
        margin-right: 3rem; /* Space for hamburger menu */
    }

    [dir="rtl"] .language-switcher {
        margin-right: 0;
        margin-left: 3rem;
    }
}

@media (max-width: 576px) {
    .nav-container {
        padding: 0 0.5rem;
    }

    .logo img {
        height: 40px;
    }
}

/* Modern Sections */
section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 30px;
    box-shadow: var(--box-shadow);
    margin-top: 3rem;
    position: relative;
}

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

section h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

/* Values Grid with Icons */
.values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.value-card {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.value-card strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 2rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

/* Contact Section */
#contact {
    padding: 5rem 2rem;
    background: white;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Contact Info Cards */
.contact-info {
    display: grid;
    gap: 2rem;
}

.info-card {
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

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

.info-card i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.info-card p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.info-card a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-card a:hover {
    color: var(--accent-color);
}

.info-note {
    font-size: 0.9rem;
    color: #666;
}

/* Enhanced Contact Form Styles */
.contact-form {
    background: var(--light-bg);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.input-group {
    position: relative;
    margin-bottom: 2rem;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 0.5rem;
}

/* Enhanced Input Styles */
.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: white;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.input-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M8 10.5l-4-4h8l-4 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

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

/* Label Animations */
.input-group label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    padding: 0 0.5rem;
    color: #666;
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
}

.input-group textarea ~ label {
    top: 1.2rem;
    transform: none;
}

/* Input Focus & Valid States */
.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(219, 166, 34, 0.1);
    outline: none;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:valid ~ label {
    top: -0.5rem;
    left: 1rem;
    font-size: 0.85rem;
    color: var(--accent-color);
    background: white;
}

/* Enhanced Submit Button */
.submit-button {
    width: 100%;
    padding: 1.2rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.submit-button i {
    transition: transform 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.submit-button:hover i {
    transform: translateX(5px);
}

.submit-button::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.7s ease;
}

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

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

    .contact-form {
        padding: 2rem;
    }

    .input-group input,
    .input-group select,
    .input-group textarea {
        padding: 1rem;
    }

    .submit-button {
        padding: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

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

    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .info-card {
        padding: 1.5rem;
    }
}

/* Social Links */
.social-links {
    margin-top: 3rem;
}

.social-links h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

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

.social-icons a {
    width: 45px;
    height: 45px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-5px);
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }

    .nav-container {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }

    section {
        padding: 3rem 1rem;
        margin: 1.5rem;
        border-radius: 20px;
    }

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

/* Animations */
@keyframes fadeInUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Updated About Section Styles */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 400px;
    width: 100%;
}

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

.about-experience {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--accent-color);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.about-experience .number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.about-experience .text {
    font-size: 0.9rem;
    opacity: 0.9;
}

.about-header {
    margin-bottom: 2rem;
}

.about-header .subtitle {
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

.about-header h3 {
    font-size: 2rem;
    color: var(--primary-color);
    line-height: 1.3;
}

.about-text {
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-color);
    opacity: 0.9;
}

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

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature:hover {
    background: var(--gradient);
    color: white;
    transform: translateX(5px);
}

.feature i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.feature:hover i {
    color: white;
}

/* Responsive Design Updates */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: var(--box-shadow);
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 4px;
        cursor: pointer;
    }

    .hamburger span {
        width: 25px;
        height: 2px;
        background: var(--primary-color);
        transition: 0.3s;
    }

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

    .about-experience {
        bottom: 20px;
        right: 20px;
        padding: 1rem;
    }

    .about-experience .number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .about-image {
        height: 200px;
    }
}

/* Vision & Mission Section */
.vm-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    padding: 1rem;
}

.vm-card {
    background: var(--light-bg);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.vm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.vm-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.vm-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transform: rotate(-10deg);
    transition: transform 0.3s ease;
}

.vm-card:hover .vm-icon {
    transform: rotate(0deg);
}

.vm-icon i {
    font-size: 2rem;
    color: white;
}

.vm-content h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.vm-divider {
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin-bottom: 1.5rem;
}

.vm-content p {
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.vm-highlights {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.vm-highlights li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

.vm-highlights i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* Vision & Mission Responsive */
@media (max-width: 1024px) {
    .vm-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .vm-highlights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .vm-card {
        padding: 2rem;
    }

    .vm-icon {
        width: 60px;
        height: 60px;
    }

    .vm-icon i {
        font-size: 1.5rem;
    }

    .vm-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .vm-card {
        padding: 1.5rem;
    }
}

/* About Section Animations */
@keyframes aboutSlideUp {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
        filter: blur(10px);
    }
    60% {
        transform: translateY(-10px) scale(1.02);
        filter: blur(0);
    }
    80% {
        transform: translateY(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes aboutImageReveal {
    0% {
        opacity: 0;
        transform: translateX(-50px) scale(0.9);
        filter: brightness(0.5) blur(10px);
    }
    60% {
        transform: translateX(10px) scale(1.05);
        filter: brightness(1.1) blur(0);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: brightness(1);
    }
}

@keyframes aboutTextFade {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Initial states */
.about-content {
    opacity: 0;
    transform: translateY(50px);
}

.about-image {
    opacity: 0;
    transform: translateX(-50px);
}

.about-text p {
    opacity: 0;
    transform: translateY(30px);
}

/* Animation classes */
.about-section.animate .about-content {
    animation: aboutSlideUp 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.about-section.animate .about-image {
    animation: aboutImageReveal 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.2s;
}

.about-section.animate .about-text p {
    animation: aboutTextFade 1s ease forwards;
}

/* Stagger paragraph animations */
.about-text p:nth-child(1) { animation-delay: 0.4s; }
.about-text p:nth-child(2) { animation-delay: 0.6s; }
.about-text p:nth-child(3) { animation-delay: 0.8s; }

/* Enhanced hover effects */
.about-image {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    border-radius: 20px;
}

.about-image:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(219, 166, 34, 0.2);
}

.about-image img {
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.1);
}

/* Vision & Mission Animations */
@keyframes cardReveal {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0.8);
        filter: blur(15px);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
        filter: blur(0);
    }
    75% {
        transform: translateY(10px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes iconReveal {
    0% {
        opacity: 0;
        transform: rotate(-270deg) scale(0.3);
    }
    50% {
        transform: rotate(15deg) scale(1.2);
    }
    75% {
        transform: rotate(-10deg) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

@keyframes contentSlide {
    0% {
        opacity: 0;
        transform: translateX(-50px);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

/* Initial states */
.vm-card {
    opacity: 0;
    transform: translateY(100px);
}

.vm-icon {
    opacity: 0;
    transform: rotate(-270deg) scale(0.3);
}

.vm-content h3,
.vm-content p,
.vm-divider,
.vm-highlights li {
    opacity: 0;
    transform: translateX(-50px);
}

/* Animation classes */
.vm-card.animate {
    animation: cardReveal 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.vm-card:nth-child(2) {
    animation-delay: 0.3s;
}

.vm-card.animate .vm-icon {
    animation: iconReveal 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.4s;
}

.vm-card.animate .vm-content h3 {
    animation: contentSlide 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.6s;
}

.vm-card.animate .vm-divider {
    animation: contentSlide 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.7s;
}

.vm-card.animate .vm-content p {
    animation: contentSlide 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.8s;
}

.vm-card.animate .vm-highlights li {
    animation: contentSlide 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Stagger list items */
.vm-card.animate .vm-highlights li:nth-child(1) { animation-delay: 0.9s; }
.vm-card.animate .vm-highlights li:nth-child(2) { animation-delay: 1.0s; }
.vm-card.animate .vm-highlights li:nth-child(3) { animation-delay: 1.1s; }
.vm-card.animate .vm-highlights li:nth-child(4) { animation-delay: 1.2s; }

/* Enhanced hover effects */
.vm-card {
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: linear-gradient(145deg, #ffffff, var(--light-bg));
}

.vm-card:hover {
    transform: translateY(-20px) scale(1.03);
    background: var(--gradient);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.vm-icon {
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vm-card:hover .vm-icon {
    transform: rotate(360deg) scale(1.15);
    background: var(--accent-color);
    box-shadow: 0 15px 30px rgba(219, 166, 34, 0.3);
}

.vm-highlights li {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
}

.vm-highlights li:hover {
    transform: translateX(15px);
    background: rgba(255, 255, 255, 0.1);
}

.vm-highlights li:hover i {
    transform: scale(1.3) rotate(15deg);
    color: var(--accent-color);
}

.vm-card:hover .vm-content * {
    color: white;
}

.vm-card:hover .vm-divider {
    background: var(--accent-color);
    width: 100px;
}

/* Values Section Animations */
@keyframes valueCardReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    60% {
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes valueIconFloat {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    60% {
        transform: translateY(-5px) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes valueTextSlide {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Initial states */
.value-card {
    opacity: 0;
    transform: translateY(30px);
}

.value-icon {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
}

.value-card strong,
.value-card p {
    opacity: 0;
    transform: translateX(-20px);
}

/* Animation classes */
.value-card.animate {
    animation: valueCardReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.value-card.animate .value-icon {
    animation: valueIconFloat 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.2s;
}

.value-card.animate strong {
    animation: valueTextSlide 0.6s ease forwards;
    animation-delay: 0.3s;
}

.value-card.animate p {
    animation: valueTextSlide 0.6s ease forwards;
    animation-delay: 0.4s;
}

/* Stagger card animations */
.value-card:nth-child(1) { animation-delay: 0.1s; }
.value-card:nth-child(2) { animation-delay: 0.2s; }
.value-card:nth-child(3) { animation-delay: 0.3s; }
.value-card:nth-child(4) { animation-delay: 0.4s; }
.value-card:nth-child(5) { animation-delay: 0.5s; }
.value-card:nth-child(6) { animation-delay: 0.6s; }

/* Enhanced hover effects */
.value-card {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.value-card:hover {
    transform: translateY(-10px);
    background: var(--gradient);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.value-icon {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.value-card:hover .value-icon {
    transform: rotate(360deg) scale(1.2);
    color: var(--accent-color);
}

.value-card:hover strong {
    color: white;
}

.value-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

/* Header Animations */
@keyframes headerSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes headerFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 0 rgba(219, 166, 34, 0);
    }
    50% {
        text-shadow: 0 0 20px rgba(219, 166, 34, 0.5);
    }
    100% {
        text-shadow: 0 0 0 rgba(219, 166, 34, 0);
    }
}

/* Initial states */
.header-content h1 {
    opacity: 0;
    transform: translateY(-50px);
}

.header-content h1 span {
    opacity: 0;
    transform: scale(0.95);
}

.header-subtitle {
    opacity: 0;
    transform: translateY(30px);
}

/* Animation classes */
.header-content.animate h1 {
    animation: headerSlideDown 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.header-content.animate h1 span {
    animation: headerFadeIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               textGlow 2s ease-in-out infinite;
    animation-delay: 0.5s;
}

.header-content.animate .header-subtitle {
    animation: headerSlideDown 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.7s;
}

/* Enhanced header styles */
.header-content h1 {
    position: relative;
    display: inline-block;
}

.header-content h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: width 0.8s ease;
}

.header-content.animate h1::after {
    width: 100%;
    transition-delay: 1s;
}

/* Loading Screen Styles */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top: 5px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loader-wrapper p {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Why Elaf Vision Section */
.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem;
}

.why-card {
    background: var(--light-bg);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    transform: translateY(30px);
}

.why-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.why-icon {
    background: var(--gradient);
    min-width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.5s ease;
}

.why-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.why-content p {
    color: var(--text-color);
    line-height: 1.7;
}

/* Hover effects */
.why-card:hover {
    transform: translateY(-10px);
    background: var(--gradient);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.why-card:hover .why-icon {
    background: white;
    color: var(--accent-color);
    transform: rotate(360deg);
}

.why-card:hover .why-content h3,
.why-card:hover .why-content p {
    color: white;
}

/* Stagger animations */
.why-card:nth-child(1) { animation-delay: 0.1s; }
.why-card:nth-child(2) { animation-delay: 0.2s; }
.why-card:nth-child(3) { animation-delay: 0.3s; }
.why-card:nth-child(4) { animation-delay: 0.4s; }
.why-card:nth-child(5) { animation-delay: 0.5s; }

/* Responsive design */
@media (max-width: 768px) {
    .why-card {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        text-align: center;
    }

    .why-icon {
        margin: 0 auto;
    }
}

/* Services Section Styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.service-image {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-content {
    padding: 2.5rem;
    position: relative;
    background: white;
}

.service-content h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.service-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.service-content p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Hover Effects */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

.service-card:hover .service-content h3::after {
    width: 100px;
}

/* Stagger animations */
.service-card:nth-child(2) {
    transition-delay: 0.2s;
}

/* Responsive design */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }

    .service-image {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .service-content {
        padding: 2rem;
    }

    .service-content h3 {
        font-size: 1.5rem;
    }
}

/* Enhanced Clients Section */
.clients-section {
    background: linear-gradient(to bottom, var(--light-bg), white);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.clients-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(219, 166, 34, 0.2), transparent);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.client-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
}

.client-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, transparent, rgba(219, 166, 34, 0.1));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.client-card img {
    max-width: 85%;
    max-height: 85%;
    width: auto;
    height: auto;
    object-fit: contain;
    /* filter: grayscale(100%) brightness(0.95); */
    /* opacity: 0.7; */
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hover Effects */
.client-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(219, 166, 34, 0.1);
}

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

.client-card:hover img {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1.05);
}

/* Animation classes */
.client-card.animate {
    animation: clientCardReveal 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes clientCardReveal {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
        filter: blur(10px);
    }
    60% {
        transform: translateY(-10px) scale(1.02);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Stagger animations with smoother delays */
.client-card:nth-child(1) { animation-delay: 0.1s; }
.client-card:nth-child(2) { animation-delay: 0.15s; }
.client-card:nth-child(3) { animation-delay: 0.2s; }
.client-card:nth-child(4) { animation-delay: 0.25s; }
.client-card:nth-child(5) { animation-delay: 0.3s; }
.client-card:nth-child(6) { animation-delay: 0.35s; }

/* Responsive design */
@media (max-width: 1200px) {
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .client-card {
        height: 160px;
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .clients-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .client-card {
        height: 140px;
        padding: 1.5rem;
    }
}

/* Language Switcher Styles */
.language-switcher {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Update RTL support */
[dir="rtl"] .nav-links {
    margin-right: 0;
    margin-left: 100px;
}

[dir="rtl"] .language-switcher {
    right: auto;
    left: 1rem;
}

@media (max-width: 992px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-links {
        margin-right: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        flex-direction: column;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .language-switcher {
        position: relative;
        right: 0;
        top: 0;
        transform: none;
        margin-right: 3rem; /* Space for hamburger menu */
    }

    [dir="rtl"] .language-switcher {
        margin-right: 0;
        margin-left: 3rem;
    }
}

@media (max-width: 576px) {
    .nav-container {
        padding: 0 0.5rem;
    }
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* When hiding the loading screen */
.loading.hidden {
    display: none;
}

/* Add these styles for the modal */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.project-modal.active {
    display: flex;
}

.modal-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Modify the project card styles */
.project-card {
    cursor: pointer;
}

/* Language Button Styles */
.lang-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(219, 166, 34, 0.2);
}

.lang-btn i {
    font-size: 1rem;
}

.lang-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* RTL Support */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .nav-links {
    margin-left: auto;
}

/* Add these styles for the project intro video */
.project-intro-video {
    width: 100%;
    max-width: 800px; /* Adjust as needed for your design */
    margin: 0 auto 3rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: var(--primary-color);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    position: relative;
}

.project-intro-video.animate {
    opacity: 1;
    transform: translateY(0);
}

.project-intro-video video {
    width: 100%;
    max-height: 450px; /* Ensure video doesn't exceed container */
    object-fit: contain;
    background: black; /* Adds a background to fill empty space */
    margin: 0;
    vertical-align: middle;
}

/* Responsive styles */
@media (max-width: 992px) {
    .project-intro-video {
        max-width: 100%;
        margin: 0 1rem 2rem;
    }
    
    .project-intro-video video {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .project-intro-video {
        border-radius: 15px;
        margin: 0 auto 2rem;
    }
    
    .project-intro-video video {
        max-height: 350px;
    }
}

@media (max-width: 576px) {
    .project-intro-video video {
        max-height: 300px;
    }
}

/* Add these styles for the project subtitle */
.project-subtitle {
    width: 100%;
    max-width: 800px; /* Match the intro video max-width */
    margin: 0 auto 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-subtitle.animate {
    opacity: 1;
    transform: translateY(0);
}

.project-subtitle h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.project-subtitle h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.project-subtitle.animate h3::after {
    width: 100px;
}

/* Responsive styles for project subtitle */
@media (max-width: 992px) {
    .project-subtitle {
        max-width: 100%;
        margin: 0 1rem 2rem;
    }

    .project-subtitle h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .project-subtitle {
        margin: 0 auto 1.5rem;
    }

    .project-subtitle h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .project-subtitle h3 {
        font-size: 1.2rem;
    }
}