/* style.css */
body {
    font-family: 'Assistant', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    direction: rtl;
    color: #333;
    overflow-x: hidden;
}

header {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.video-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.fullscreen-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fullscreen-video.active {
    opacity: 1;
}

.slider-controls {
    display: none;
}

.slider-controls button {
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

.slider-controls button:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.header-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 1;
    width: 80%;
    max-width: 800px;
}

.header-content h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px #000000;
    animation: slideInRight 1.2s ease-out 0.7s forwards;
    opacity: 0;
}

.header-content .tagline {
    font-size: 1.5em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px #000000;
    animation: slideInLeft 1.2s ease-out 0.9s forwards;
    opacity: 0;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #0056b3;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

.cta-button:hover {
    background-color: #003d82;
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

main {
    padding: 20px;
}

section {
    padding: 60px 0;
}

section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    opacity: 0;
}

section h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #0056b3;
    margin: 15px auto 0;
}

/* About Section */
#about {
    padding: 60px 0;
    background-color: #ffffff;
}

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

.about-text {
    line-height: 1.8;
    text-align: justify;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #444;
}

/* Services Section */
#services {
    padding: 60px 0;
    text-align: center;
    background-color: #f8f9fa;
}

.service-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.category {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    opacity: 0;
}

.category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.category img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.category:hover img {
    transform: scale(1.05);
}

.category h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #0056b3;
    position: relative;
    padding-bottom: 10px;
}

.category h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: #0056b3;
}

.category p {
    line-height: 1.8;
    text-align: justify;
    color: #555;
}

/* Testimonials Section */
#testimonials {
    padding: 60px 0;
    background-color: #e9ecef;
    text-align: center;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.testimonial {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
    opacity: 0;
}

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

.testimonial:before {
    content: '\201D';
    font-family: Arial, sans-serif;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 5em;
    color: #f0f0f0;
    z-index: 0;
}

.testimonial p {
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    color: #555;
}

.testimonial .author {
    font-weight: bold;
    text-align: left;
    color: #0056b3;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

/* Contact Section */
#contact {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.contact-info {
    background-color: #0056b3;
    color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    opacity: 0;
}

.info-item i {
    font-size: 1.5em;
    margin-left: 15px;
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
    opacity: 0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Assistant', sans-serif;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #0056b3;
    outline: none;
}

.submit-btn {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #003d82;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 50px 0 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 30px;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: right;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: #0056b3;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #0056b3;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #444;
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}

.bottom-footer {
    background-color: #222;
    padding: 15px 0;
    font-size: 0.9em;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bottom-footer p {
    margin: 5px 0;
}

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

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

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

header .header-content {
    animation: fadeIn 1s ease-in-out 0.5s forwards;
    opacity: 0;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .header-content h1 {
        font-size: 3em;
    }
    
    .header-content .tagline {
        font-size: 1.3em;
    }
}

@media screen and (max-width: 768px) {
    .header-content h1 {
        font-size: 2.5em;
    }
    
    .header-content .tagline {
        font-size: 1.1em;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .service-categories, .testimonials-container {
        grid-template-columns: 1fr;
    }
    
    #services h2, #testimonials h2, #contact h2 {
        font-size: 2em;
    }
    
    .footer-sections {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section h3:after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .header-content h1 {
        font-size: 2em;
    }
    
    .slider-controls button {
        width: 40px;
        height: 40px;
    }
    
    section {
        padding: 40px 0;
    }
    
    .category, .testimonial {
        padding: 20px;
    }
}