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

:root {
    /* Color System (Extracted from Almawsim Logo) */
    --primary-color: #0a5c36;
    --primary-color-rgb: 10, 92, 54;
    --secondary-color: #cca115;
    --secondary-color-rgb: 204, 161, 21;
    --accent-color: #1a8e57;
    
    /* Theme Dark (Locked Default) */
    --bg-primary: #0a0f0c;
    --bg-secondary: #111a15;
    --bg-tertiary: #18241d;
    --text-primary: #ebf2ed;
    --text-secondary: #a3b8aa;
    --text-light: #708477;
    --border-color: #213327;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.6);
    --glass-bg: rgba(17, 26, 21, 0.65);
    --glass-border: rgba(255, 255, 255, 0.05);
    
    /* Font and Spacing */
    --font-family: 'Cairo', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    font-size: 15px;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: var(--radius-full);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Header & Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 15, 12, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

header.scrolled {
    padding: 5px 0;
    box-shadow: var(--shadow-md);
    background-color: rgba(10, 15, 12, 0.95);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
    transition: var(--transition);
}

header.scrolled .nav-container {
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo img {
    height: 55px;
    width: auto;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
}

header.scrolled .logo img {
    height: 48px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.68rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-btn:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.nav-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.menu-toggle {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(10, 15, 12, 0.75) 0%, rgba(17, 26, 21, 0.9) 100%), url('../assets/hero.png') no-repeat center center/cover;
    color: #ffffff;
    padding-top: 85px;
    overflow: hidden;
}

.hero-content {
    max-width: 750px;
    z-index: 10;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    margin-top: -60px; /* Raise the content position */
}

.hero h1 {
    font-size: 3.8rem; /* Large again */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero h1 span {
    color: var(--secondary-color);
    display: block;
    font-size: 2rem;
    margin-top: 18px; /* Maintain spacing */
    font-weight: 600;
}

.hero p {
    font-size: 1.05rem;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    max-width: 650px;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    gap: 8px;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(10, 92, 54, 0.25);
}

.btn-primary:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(10, 92, 54, 0.3), 0 4px 12px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: var(--primary-color);
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

/* Livestock Import Activity Section */
.activities {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.activities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

@media (max-width: 992px) {
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.activity-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.activity-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-lg), 0 10px 30px rgba(204, 161, 21, 0.08);
}

.activity-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
    background-color: #000;
}

.activity-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: var(--transition);
}

.activity-card:hover .activity-img-wrapper img {
    transform: scale(1.06);
    opacity: 1;
}

.activity-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(17, 26, 21, 1), rgba(17, 26, 21, 0));
    pointer-events: none;
}

.activity-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.activity-tag {
    align-self: flex-start;
    background-color: rgba(204, 161, 21, 0.12);
    color: var(--secondary-color);
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    border: 1px solid rgba(204, 161, 21, 0.25);
    margin-bottom: 16px;
}

.activity-info h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

.activity-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.activity-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.activity-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.activity-features li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: 900;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* About Us Section */
.about {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.about-text h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

/* Elegant line below title */
.about-text h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: var(--radius-full);
}

.about-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.8;
    max-width: 720px;
    text-align: center;
}

.about-values {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 650px;
    margin: 20px auto 0;
    width: 100%;
}

.about-values li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.about-values li:hover {
    transform: translateY(-3px);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-sm);
}

.about-values li svg {
    color: var(--secondary-color);
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .about-values {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Scroll Animation Setup */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Stagger delays */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

/* Contact Us Section - Structured & Symmetrical */
.contact {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

/* Top row: 3-column contact cards */
.contact-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.contact-card {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    padding: 30px;
    border: 1px solid var(--border-color);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(204, 161, 21, 0.08);
    border-color: var(--secondary-color);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-card:hover .contact-icon {
    background-color: var(--primary-color);
    color: #ffffff;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.contact-details h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #ffffff;
}

.contact-details p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
}

.contact-details a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--primary-color);
}

/* Bottom row: Symmetrical Form and Map side-by-side */
.contact-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch; /* Ensures form and map wrapper match in height */
}

.contact-form-container {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form-container h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    background-color: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(10, 92, 54, 0.15);
}

/* Symmetrical Map Container */
.map-container {
    height: 100%; /* Symmetrical to the form wrapper */
    min-height: 450px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 4px solid var(--bg-primary);
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(1) invert(0.9) contrast(1.2) hue-rotate(120deg);
}

@media (max-width: 992px) {
    .contact-cards-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .contact-bottom-row {
        grid-template-columns: 1fr;
    }
    .map-container {
        min-height: 350px;
    }
}

/* Footer Section - Centered & Minimal */
footer {
    background-color: #0b140f;
    color: #ebf2ed;
    padding: 60px 0 30px;
    position: relative;
    border-top: 5px solid var(--secondary-color);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.footer-logo img {
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
}

.footer-logo-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-logo-subtitle {
    font-size: 0.72rem;
    color: #a3b8aa;
    text-align: right;
}

.footer-desc {
    max-width: 600px;
    font-size: 0.9rem;
    color: #a3b8aa;
    line-height: 1.6;
    margin: 0 auto;
}

.footer-socials {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.social-link {
    width: 44px;
    height: 44px;
    background-color: #16241c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--secondary-color);
    color: #0b140f;
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid #16241c;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #708477;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #708477;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--secondary-color);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    background-color: #20ba59;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    animation: slideInLeft 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    border-right: 5px solid var(--secondary-color);
}

.toast svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
