/* Main Styles for Al-Salem uPVC Website */

/* ===== Custom Properties ===== */
:root {
    --primary-color: #3B82F6; /* Blue 500 */
    --primary-light: #93C5FD; /* Blue 300 */
    --primary-dark: #1E40AF; /* Blue 800 */
    --secondary-color: #10B981; /* Emerald 500 */
    --dark-color: #1F2937; /* Gray 800 */
    --light-color: #F9FAFB; /* Gray 50 */
    --gray-color: #6B7280; /* Gray 500 */
    --success-color: #10B981; /* Emerald 500 */
    --warning-color: #F59E0B; /* Amber 500 */
    --danger-color: #EF4444; /* Red 500 */
    --body-font: 'Cairo', sans-serif;
    --heading-font: 'Cairo', sans-serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ===== Base Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--dark-color);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
}

/* ===== Utilities ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.section-line {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== Header & Navigation ===== */
header {
    transition: var(--transition);
}

header.scrolled {
    padding: 0.5rem 0;
    background-color: white;
    box-shadow: var(--shadow-md);
}

.nav-link {
    color: var(--dark-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

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

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

.mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    font-weight: 600;
    color: var(--dark-color);
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    color: var(--primary-color);
    padding-right: 0.5rem;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    background-color: #25D366;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.whatsapp-btn i {
    font-size: 1.2rem;
    margin-left: 0.5rem;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
}

.hero-slide {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
}

.hero-slide .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
}

.hero-slide .text-content {
    position: relative;
    z-index: 3;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

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

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid white;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-down a {
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    color: white;
    font-size: 1.2rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.scroll-down a:hover {
    background-color: var(--primary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* ===== Features Section ===== */
.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

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

.feature-card .icon-wrapper {
    width: 70px;
    height: 70px;
    line-height: 70px;
    text-align: center;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-size: 1.8rem;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .icon-wrapper {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(360deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--gray-color);
}

/* ===== About Section ===== */
.about-image .image-wrapper {
    position: relative;
    padding-bottom: 75%;
    overflow: hidden;
    border-radius: 10px;
}

.about-image .image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.about-content h3 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

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

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray-color);
}

/* ===== Products Section ===== */
.category-btn {
    padding: 0.5rem 1.5rem;
    background-color: white;
    color: var(--dark-color);
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    margin-bottom: 0.5rem;
}

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

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.product-image {
    position: relative;
    padding-bottom: 75%;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-content {
    padding: 1.5rem;
}

.product-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.product-content p {
    color: var(--gray-color);
    margin-bottom: 1rem;
}

.product-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

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

/* ===== Projects Section ===== */
.project-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.project-image {
    position: relative;
    padding-bottom: 75%;
    overflow: hidden;
}

.project-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-category {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 1rem;
    transform: translateY(20px);
    transition: var(--transition);
}

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

.project-link {
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: white;
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.2rem;
    transform: translateY(20px);
    transition: var(--transition);
}

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

.project-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.project-content p {
    color: var(--gray-color);
}

/* ===== Testimonials Section ===== */
.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slide {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.testimonial-slide.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.testimonial-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.testimonial-quote {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
    display: block;
}

.testimonial-content p {
    font-style: italic;
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 1rem;
}

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

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.author-info p {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.testimonial-prev, .testimonial-next {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: white;
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial-prev:hover, .testimonial-next:hover {
    background-color: var(--primary-color);
    color: white;
}

.testimonial-dots {
    display: flex;
    margin: 0 1rem;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #e5e7eb;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-dot.active, .testimonial-dot:hover {
    background-color: var(--primary-color);
}

/* ===== Contact Section ===== */
.contact-item {
    display: flex;
    margin-bottom: 1.5rem;
    
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 50%;
    font-size: 1.2rem;
    margin-left: 1rem;
    transition: var(--transition);
}

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

}

.contact-item .text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
    flex-direction: row-reverse;
    
}

.contact-item .text p {
    color: var(--gray-color);
    
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 50%;
    font-size: 1rem;
    transition: var(--transition);
    margin: 0 0.75rem;
} /* Added missing closing brace */

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

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

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-light);
}

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

/* ===== Footer ===== */
.footer-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    padding-bottom: 0.75rem;
}

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

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #CBD5E1;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(-5px);
}

.whatsapp-btn-footer {
    display: inline-flex;
    align-items: center;
    background-color: #25D366;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.whatsapp-btn-footer i {
    font-size: 1.5rem;
    margin-left: 0.75rem;
}

.whatsapp-btn-footer:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.newsletter-form {
    display: flex;
    position: relative;
}

.newsletter-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-left: 3rem;
    border: none;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-form input::placeholder {
    color: #CBD5E1;
}

.newsletter-form input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
}

.newsletter-form button {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50px;
    border: none;
    background: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    color: var(--primary-color);
}

.social-icon-footer {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    font-size: 1rem;
    transition: var(--transition);
    margin: 0 0.75rem;
}
.social-icon-footer:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

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

.copyright {
    color: #CBD5E1;
}

.footer-bottom-links a {
    color: #CBD5E1;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: white;
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

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

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

/* ===== WhatsApp Fixed Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

.whatsapp-float i {
    font-size: 32px;
}

/* ===== Responsive Styles ===== */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section {
        height: 80vh;
    }
    
    .hero-slide .text-content h1 {
        font-size: 2.5rem;
    }
    
    .feature-card, .stat-item, .product-card, .project-card {
        margin-bottom: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        margin-top: 2rem;
    }
    
    .whatsapp-fixed, .back-to-top {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 1.5rem;
    }
    
    /* Mobile header adjustments */
    #header .flex-col {
        align-items: flex-end;
    }
    
    #mobile-menu-button {
        margin-bottom: 0.5rem;
    }
    
    .social-media {
        margin-top: 0.5rem;
    }
    
    .social-media .social-icon {
        margin: 0 1rem;
    }
}

/* ===== Animation Classes ===== */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s forwards;
}

.slide-right {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideRight 0.8s forwards;
}

.slide-left {
    opacity: 0;
    transform: translateX(30px);
    animation: slideLeft 0.8s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* RTL Specific Adjustments */
.rtl {
    direction: rtl;
    text-align: right;
}

.space-x-reverse > * + * {
    margin-right: 1rem;
    margin-left: 0;
}