/* ===== Root Variables ===== */
:root {
    --primary-color: #1E90A8; /* Teal/Turquoise from logo */
    --secondary-color: #B4825A; /* Brown/Tan from logo */
    --dark-color: #000000;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
body * {
    font-family: 'Almarai', sans-serif;
}

body {
    font-weight: 700;
    line-height: 1.8;
    color: var(--text-dark);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ===== Navigation ===== */
.navbar {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: bold;
    font-size: 1.5rem;
    text-decoration: none;
}

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

.brand-name {
    font-size: 1.3rem;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    color: #6c757d !important;
    font-weight: 500;
    margin: 0 10px;
    padding: 8px 15px !important;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(30, 144, 168, 0.1);
    transform: translateY(-2px);
}

.navbar-toggler {
    border-color: #6c757d;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28108, 117, 125, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    background-image: url('cover.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 144, 168, 0.85) 0%, rgba(180, 130, 90, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 60px 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 25px;
    font-weight: 300;
    animation: fadeInUp 1.2s ease;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 35px;
    line-height: 1.9;
    animation: fadeInUp 1.4s ease;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 1.6s ease;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 144, 168, 0.4);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(180, 130, 90, 0.5);
}

.btn-outline-light {
    border: 2px solid var(--white);
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

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

/* ===== Section Styles ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-dark);
    position: relative;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto 30px;
    border-radius: 2px;
}

/* ===== About Section ===== */
.about-section {
    background: var(--light-color);
    padding: 80px 0;
}

.about-content {
    padding: 20px;
}

.about-heading {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: bold;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.9;
}

.company-info {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.company-info p {
    margin: 0;
    font-size: 1.1rem;
}

.about-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.about-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== Products Section ===== */
.products-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 80px 0;
}

.product-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.product-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
}

.product-card h4 {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.product-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== Murabaha Section ===== */
.murabaha-section {
    background: var(--light-color);
    padding: 80px 0;
}

.murabaha-content {
    padding: 20px;
}

.murabaha-heading {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: bold;
}

.murabaha-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.9;
}

.murabaha-features {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.murabaha-features li {
    padding: 12px 0;
    font-size: 1.1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 15px;
}

.murabaha-features li i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.murabaha-image-box {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    background: var(--white);
    padding: 20px;
}

.murabaha-image-box:hover {
    transform: scale(1.05);
}

.murabaha-image-box img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* ===== Banks Section ===== */
.banks-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    padding: 80px 0;
}

.bank-logo-wrapper {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.bank-logo-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.bank-logo {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.bank-logo-wrapper:hover .bank-logo {
    filter: grayscale(0%);
}

/* ===== Contact Section ===== */
.contact-section {
    background: var(--light-color);
    padding: 80px 0;
}

.contact-info {
    padding: 20px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h5 {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.contact-details p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.8;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

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

.contact-form-wrapper h4 {
    color: var(--primary-color);
    font-weight: bold;
}

.contact-form .form-control {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 144, 168, 0.25);
    outline: none;
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 50px 0 20px;
}

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

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
}

.footer-brand h5 {
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-title {
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--white);
    padding-right: 5px;
}

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

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact li i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 30px 0 20px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

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

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-heading,
    .murabaha-heading {
        font-size: 1.6rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .contact-form-wrapper {
        padding: 25px;
    }
    
    .bank-logo-wrapper {
        height: 120px;
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .logo-img {
        height: 40px;
    }
    
    .brand-name {
        font-size: 1.1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

