/* 
 * Custom styles for SkyServs
 * A professional web development and hosting company
 * RTL layout for Arabic language
 */

/* ================ CSS Variables ================ */
:root {
    --primary-color: #0d6efd;
    --primary-dark: #0b5ed7;
    --primary-light: #6ea8fe;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --body-bg: #ffffff;
    --section-bg: #f8f9fa;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --transition-speed: 0.3s;
    --header-gradient: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    --whatsapp-color: #25D366;
}

/* ================ General Styles ================ */
body {
    font-family: 'Cairo', sans-serif;
    color: var(--dark-color);
    background-color: var(--body-bg);
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-dark);
}

.section-padding {
    padding: 5rem 0;
}

.section-title {
    position: relative;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.text-center .section-title::after {
    right: 50%;
    transform: translateX(50%);
}

.section-subtitle {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.bg-light-custom {
    background-color: var(--section-bg);
}

/* ================ Animations ================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes scaleUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--primary-color);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.page-transition {
    animation: fadeIn 0.8s ease-in-out;
}

/* ================ Header Styles ================ */
.site-header {
    background: var(--header-gradient);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.logo:hover h1 {
    transform: translateY(-2px);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.logo-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.logo:hover .logo-icon {
    transform: rotate(15deg);
    background: rgba(255, 255, 255, 0.3);
}

.contact-item {
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(-5px);
}

.social-links {
    display: flex;
}

.social-link {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    margin-right: 10px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-light);
    color: white;
    transform: translateY(-3px);
}

/* ================ Navigation Styles ================ */
.navbar {
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar-scrolled {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navbar-nav {
    font-weight: 600;
}

.nav-link {
    position: relative;
    padding: 0.8rem 1.2rem !important;
    font-size: 1rem;
    color: var(--dark-color);
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
    margin: 0 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 8px;
    right: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.05);
}

.nav-link i {
    transition: all 0.3s ease;
}

.nav-link:hover i,
.nav-link.active i {
    transform: translateY(-2px);
}

.request-service-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.25);
    transition: all 0.3s ease;
}

.request-service-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(13, 110, 253, 0.3);
}

/* ================ WhatsApp Button ================ */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    color: white;
}

/* ================ Hero Section ================ */
.hero-section {
    background: linear-gradient(rgba(13, 110, 253, 0.9), rgba(13, 110, 253, 0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, white, transparent);
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-features {
    margin: 2rem 0;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.hero-feature-icon {
    width: 25px;
    height: 25px;
    background-color: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    font-size: 0.8rem;
}

.hero-image img {
    max-width: 100%;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* ================ Service Card ================ */
.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--border-radius);
}

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

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

.service-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.service-card .btn {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-card .btn:hover {
    transform: translateY(-3px);
}

/* ================ Portfolio Item ================ */
.portfolio-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(13, 110, 253, 0.8), rgba(11, 94, 215, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-category {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.portfolio-title {
    color: white;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
}

.portfolio-links a {
    width: 40px;
    height: 40px;
    background-color: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.portfolio-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 10px;
}

.portfolio-filter-btn {
    border: none;
    background-color: var(--light-color);
    color: var(--dark-color);
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.portfolio-filter-btn.active,
.portfolio-filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ================ Testimonial Item ================ */
.testimonial-item {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

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

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 5px solid rgba(13, 110, 253, 0.1);
}

.testimonial-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-rating {
    color: var(--warning-color);
    margin-bottom: 1rem;
    text-align: center;
}

.testimonial-text {
    color: var(--secondary-color);
    font-style: italic;
    margin-bottom: 1.5rem;
    text-align: center;
}

.testimonial-author {
    text-align: center;
}

.testimonial-name {
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.testimonial-position {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* ================ Team Member ================ */
.team-member {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.team-member img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.team-member-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    transition: all 0.3s ease;
}

.team-member:hover .team-member-info {
    background: linear-gradient(to top, rgba(13, 110, 253, 0.9), transparent);
}

.team-member-name {
    color: white;
    margin-bottom: 5px;
    font-weight: 700;
}

.team-member-position {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.team-member-social {
    display: flex;
    gap: 10px;
}

.team-member-social a {
    width: 30px;
    height: 30px;
    background-color: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.team-member-social a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* ================ Contact Form ================ */
.contact-form {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.contact-info-item {
    display: flex;
    margin-bottom: 2rem;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.contact-info-item:hover .contact-info-icon {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
}

.contact-info-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-info-content p {
    color: var(--secondary-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* ================ Timeline ================ */
.timeline {
    position: relative;
    padding: 3rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 3px;
    background-color: rgba(13, 110, 253, 0.2);
    left: 50%;
    transform: translateX(-50%);
    top: 0;
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    z-index: 1;
}

.timeline-content {
    width: 45%;
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    margin-right: auto;
    margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: 0;
    margin-left: auto;
}

.timeline-date {
    position: absolute;
    top: -10px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
}

.timeline-item:nth-child(even) .timeline-date {
    right: auto;
    left: 20px;
}

/* ================ Pricing Card ================ */
.pricing-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

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

.pricing-header {
    padding: 2rem;
    text-align: center;
    position: relative;
}

.pricing-header.basic {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.pricing-header.standard {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.pricing-header.premium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
}

.pricing-period {
    font-size: 1rem;
    opacity: 0.8;
}

.pricing-body {
    padding: 2rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-features li.disabled {
    color: var(--secondary-color);
    text-decoration: line-through;
    opacity: 0.7;
}

/* ================ Back to Top Button ================ */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
}

/* ================ Map Container ================ */
.map-container {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* ================ Footer ================ */
footer {
    position: relative;
}

footer a {
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.3s ease;
}

footer a:hover {
    color: white;
    transform: translateX(-3px);
}

footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-light);
}

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

/* ================ Media Queries ================ */
@media (max-width: 991px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item::before {
        left: 30px;
        transform: none;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
        margin-right: 0;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px;
        margin-right: 0;
    }
    
    .timeline-date {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        display: inline-block;
        margin-bottom: 10px;
    }
    
    .timeline-item:nth-child(even) .timeline-date {
        left: auto;
    }
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .portfolio-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 15px;
        justify-content: flex-start;
    }
    
    .portfolio-filter-btn {
        white-space: nowrap;
    }
}
