/* Landing Page Styles */

:root {
    --primary-color: #0D2A45;
    --primary-hover: #1E4D7A;
    --accent-color: #C8A96A;
    --accent-hover: #A8843A;
    --secondary-color: #F5F5F5;
    --text-color: #333333;
    --light-text: #777777;
    --border-color: #E0E0E0;
    --success-color: #4caf50;
    --error-color: #f44336;
    --warning-color: #ff9800;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --gradient-primary: linear-gradient(135deg, #0D2A45, #1E4D7A);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #fff;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2rem;
    position: relative;
    display: inline-block;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--accent-color);
    transition: color 0.3s ease;
}

ul {
    list-style-type: none;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 42, 69, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: rgba(200, 169, 106, 0.1);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

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

.btn-light:hover {
    background-color: #f5f5f5;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 18px;
}

/* Header */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.sticky {
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 24px;
}

.logo i {
    font-size: 28px;
    margin-left: 10px;
}

.main-nav ul {
    display: flex;
    gap: 20px;
    margin: 0;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.main-nav a:hover:after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    margin-bottom: 20px;
    font-size: 2.8rem;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

.hero-stats {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.hero-stats div {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
}

.hero-stats i {
    font-size: 1.2rem;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background-color: #fff;
}

.section-title {
    margin-bottom: 60px;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(13, 42, 69, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 36px;
    color: var(--primary-color);
}

/* Benefits Section */
.benefits-section {
    padding: 100px 0;
    background-color: var(--secondary-color);
}

.benefits-content {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

.benefit-item {
    flex: 1;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--card-shadow);
}

.benefit-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 5px;
}

.benefit-item h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.benefit-item ul {
    padding-right: 20px;
}

.benefit-item li {
    margin-bottom: 15px;
    position: relative;
}

.benefit-item li i {
    color: var(--success-color);
    margin-left: 10px;
}

.buyer-benefit {
    border-top: 5px solid var(--accent-color);
}

.seller-benefit {
    border-top: 5px solid var(--success-color);
}

.economic-benefits {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--card-shadow);
}

.economic-benefits h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.economic-benefits ul {
    padding-right: 20px;
}

.economic-benefits li {
    margin-bottom: 15px;
}

.economic-benefits li i {
    color: var(--primary-color);
    margin-left: 10px;
}

/* Sudan Market Section */
.sudan-market-section {
    padding: 100px 0;
    background-color: #fff;
}

.sudan-market-content {
    display: flex;
    gap: 30px;
    align-items: center;
}

.sudan-market-text {
    flex: 1;
}

.sudan-market-text p {
    margin-bottom: 20px;
}

.sudan-market-text ul {
    margin-bottom: 20px;
}

.sudan-market-text li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.sudan-market-text li i {
    color: var(--primary-color);
    margin-left: 10px;
    margin-top: 5px;
}

.sudan-market-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.sudan-market-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

/* Call to Action Section */
.cta-section {
    padding: 80px 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 20px;
}

.cta-section h2:after {
    background-color: white;
}

.cta-section p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: #0D2A45;
    color: #fff;
    padding: 70px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.footer-about {
    margin-left: 20px;
}

.footer-about .logo {
    color: white;
    margin-bottom: 20px;
}

.footer-about p {
    opacity: 0.7;
    margin-bottom: 20px;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s;
}

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

.footer-links-group h4 {
    color: white;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links-group h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

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

.footer-links-group ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
}

.footer-links-group ul li a:hover {
    color: white;
    padding-right: 5px;
}

.footer-bottom {
    background-color: #091D31;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Scroll to Top Button */
#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

#scrollToTopBtn.visible {
    opacity: 1;
    visibility: visible;
}

#scrollToTopBtn:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-section {
        flex-direction: column;
        padding: 120px 0 60px;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
        margin-bottom: 40px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .benefits-content {
        flex-direction: column;
    }
    
    .sudan-market-content {
        flex-direction: column;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .auth-buttons {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-about {
        margin-left: 0;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links-group h4:after {
        right: 50%;
        transform: translateX(50%);
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 16px;
    }
}
