@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

:root {
    --primary: #5A8491;
    --secondary: #6c757d;
    --dark: #12263f;
    --light: #f9fbfd;
    --accent: #00d97e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-left: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-right: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    bottom: -5px;
    right: 0;
    transition: width 0.3s;
}

.nav-links a:hover:after {
    width: 100%;
    right: auto;
    left: 0;
}

.nav-links a.active {
    color: var(--primary);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1579684385127-1ef15d508118?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: right;
    color: white;
    padding-top: 80px;
}

.hero-content {
    max-width: 600px;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background-color: #95b3bc;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    /* margin-bottom: 10px;
    margin-right: 15px; */
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary);
}

/* About Section */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 36px;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--secondary);
    max-width: 700px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.6;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--primary);
    bottom: -15px;
    right: 50%;
    transform: translateX(50%);
    border-radius: 2px;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding-left: 50px;
    animation: fadeInRight 1s ease;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--dark);
}

.about-text p {
    color: var(--secondary);
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 16px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    animation: fadeInLeft 1s ease;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Products Section */
.products {
    background-color: #f8fafc;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--dark);
}

.product-info p {
    color: var(--secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-features {
    margin-bottom: 20px;
}

.product-features li {
    margin-bottom: 8px;
    color: var(--secondary);
    list-style-position: inside;
}

/* Contact Section */
.contact {
    background: linear-gradient(rgba(44, 123, 229, 0.9), rgba(44, 123, 229, 0.9)), url('https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
}

.contact .section-title h2,
.contact .section-title p {
    color: white;
}

.contact .section-title:after {
    background: white;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    animation: fadeInLeft 1s ease;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 20px;
}

.contact-text h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-text p {
    opacity: 0.8;
    line-height: 1.6;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    animation: fadeInRight 1s ease;
}

.form-group {
    margin-bottom: 25px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: white;
    font-size: 16px;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: white;
    color: var(--primary);
    width: 100%;
    padding: 15px;
    font-weight: 700;
}

.submit-btn:hover {
    background-color: #f8f9fa;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
    bottom: 0;
    right: 0;
}

.footer-column p {
    opacity: 0.7;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 15px;
    list-style: none;
}

.footer-links a {
    color: white;
    opacity: 0.7;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    padding-right: 5px;
}

.social-links {
    display: flex;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 14px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Page Transitions */
.page {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.page.active {
    display: block;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 40px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        padding-left: 0;
        margin-bottom: 40px;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info {
        margin-bottom: 50px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        top: 80px;
        background-color: white;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-links li {
        margin: 15px 0;
        margin-right: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active div:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active div:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active div:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section-title h2 {
        font-size: 30px;
    }
    
    .section-title p {
        font-size: 16px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.hero-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ***************** */

/* Stats Section */
.stats-section {
    background-color: var(--primary);
    color: white;
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.stat-content h3 {
    font-size: 42px;
    margin-bottom: 5px;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background-color: #f8fafc;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

/* Chart Section */
.chart-section {
    padding: 80px 0;
    background-color: white;
}

.chart-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.chart-container h2 {
    margin-bottom: 15px;
}

.chart-container p {
    color: var(--secondary);
    margin-bottom: 30px;
}

/* Showcase Section */
.showcase-section {
    padding: 100px 0;
    background-color: #f8fafc;
}

.showcase-slider {
    display: flex;
    gap: 30px;
    margin-top: 50px;
}

.showcase-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    flex: 1;
}

.showcase-image {
    height: 300px;
    overflow: hidden;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.showcase-item:hover .showcase-image img {
    transform: scale(1.1);
}

.showcase-content {
    padding: 30px;
    text-align: center;
}

.showcase-content h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

.showcase-content p {
    color: var(--secondary);
    margin-bottom: 20px;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background-color: white;
}

.testimonials-slider {
    display: flex;
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background-color: #f8fafc;
    padding: 30px;
    border-radius: 10px;
    flex: 1;
}

.testimonial-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
}

.testimonial-content:after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 40px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid white;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 20px;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
    color: var(--dark);
}

.author-info span {
    color: var(--secondary);
    font-size: 14px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1581093057305-208a0aaea1fe?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.cta-content h2 {
    margin-bottom: 20px;
}

.cta-content p {
    margin-bottom: 30px;
    font-size: 18px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .showcase-slider,
    .testimonials-slider {
        flex-direction: column;
    }
    
    .stat-content h3 {
        font-size: 36px;
    }
}


/* Services Section */
#services {
    position: relative;
}

.service-card {
    background-color: white;
    border: none;
    padding: 15px;
    margin: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(44, 123, 229, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: var(--primary);
    color: white;
    transform: rotate(15deg) scale(1.1);
}

.service-card .card-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark);
    position: relative;
    padding-bottom: 10px;
}

.service-card .card-title:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    bottom: 0;
    right: 0;
    transition: width 0.3s ease;
}

.service-card:hover .card-title:after {
    width: 100%;
}

.service-card .card-text {
    color: var(--secondary);
    line-height: 1.8;
    font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-card {
        margin-bottom: 30px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 25px;
    }
    
    .service-card .card-title {
        font-size: 20px;
    }
}

/* Alert styles */
.alert {
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
    font-family: 'Tahoma', Arial, sans-serif;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Form message container */
#formMessage {
    transition: all 0.3s ease;
    margin: 20px 0;
}