/* 1. SETUP & MODERN RESET */
:root {
    --p2p-navy: #1d2645;
    --p2p-azure: #2d7fb0;
    --p2p-white: #ffffff;
    --p2p-bg: #f4f7fa;
    --p2p-text: #1a202c;
    --p2p-text-light: #4a5568;
    --glass: rgba(255, 255, 255, 0.8);
    --border-glass: rgba(255, 255, 255, 0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
    --radius: 16px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

html { scroll-behavior: smooth; }
body {
    margin: 0; padding: 0;
    background-color: var(--p2p-bg);
    color: var(--p2p-text);
    direction: rtl;
    /* Font Optimization for Win & Mac */
    font-family: 'Assistant', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. LAYOUT ENGINE (Header & Footer) */
.layout-header-wrapper {
    position: fixed; top: 0; width: 100%; z-index: 2000;
    background: var(--glass);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition);
}

.layout-header {
    max-width: 1300px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 25px;
}

.logo img { height: 50px; transition: var(--transition); }

/* Navigation Styling */
.TopMenu > ul { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.TopMenu > ul > li > a {
    color: var(--p2p-navy) !important; font-weight: 600; font-size: 15px;
    padding: 10px 15px !important; border-radius: 10px; text-decoration: none;
    transition: var(--transition);
}
.TopMenu > ul > li > a:hover { background: rgba(45, 127, 176, 0.1); color: var(--p2p-azure) !important; }

/* 3. MODERN SECTIONS (Hero, Section1, Section2...) */
.section-wrapper { padding: 80px 5%; position: relative; overflow: hidden; }
.container { max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }

/* Hero Specific */
.hero-section {
    min-height: 80vh; display: flex; align-items: center; justify-content: center;
    text-align: center; color: white; background: var(--p2p-navy);
}

/* Parallax Background Class */
.parallax-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 130%;
    background-size: cover; background-position: center;
    z-index: 1; will-change: transform;
}

/* 4. MODERN COMPONENTS (Cards, Grids) */
.grid-system {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; width: 100%;
}

.card-modern {
    background: var(--p2p-white); border-radius: var(--radius);
    padding: 30px; box-shadow: var(--shadow-md); transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}
.card-modern:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }

/* Buttons */
.btn-p2p {
    display: inline-block; padding: 14px 35px; border-radius: 50px;
    background: linear-gradient(135deg, var(--p2p-navy) 0%, var(--p2p-azure) 100%);
    color: white !important; font-weight: 700; text-decoration: none;
    box-shadow: 0 10px 20px rgba(45, 127, 176, 0.2); transition: var(--transition);
}
.btn-p2p:hover { transform: scale(1.05); filter: brightness(1.1); }

/* 5. REVEAL ANIMATIONS CLASS */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* 6. RESPONSIVENESS */
@media (max-width: 768px) {
    .layout-header { flex-direction: column; gap: 15px; }
    .section-wrapper { padding: 50px 20px; }
    .TopMenu > ul { flex-wrap: wrap; justify-content: center; font-size: 14px; }
}