@font-face {
    font-family: 'ITF Qomra Arabic Bold';
    src: url('01_zakaria_wan/fonts/itfQomraArabic-Bold.otf') format('opentype');
}

:root {
    --bg-color: #002623;
    --card-bg: rgba(5, 66, 57, 0.4);
    --border-color: rgba(185, 167, 121, 0.3);
    --primary: #988561;
    --primary-glow: #e8dcc4;
    --hover-bg: rgba(152, 133, 97, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'ITF Qomra Arabic Bold', 'Cairo', sans-serif;
    direction: rtl;
}

body {
    background: var(--bg-color);
    color: #edebe0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.grid-bg { 
    position: fixed; inset: 0; 
    background-image: url('01_zakaria_wan/pattern.png'); 
    background-size: 450px; 
    opacity: 0.2; 
    z-index: -2; 
}

#network-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.portal-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.portal-header {
    text-align: center;
    margin-bottom: 50px;
    background: rgba(0, 38, 35, 0.7);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.portal-logo {
    max-width: 25%;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(185, 167, 121, 0.5));
}

.portal-header h1 {
    font-size: 38px;
    color: var(--primary-glow);
    margin-bottom: 12px;
}

.portal-header p {
    font-size: 18px;
    color: #b9a779;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    flex: 1;
    align-items: stretch;
    justify-content: center;
}

/* Card Styles */
.portal-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.portal-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(152, 133, 97, 0.2);
    background: var(--hover-bg);
}

.card-icon {
    width: 90px;
    height: 90px;
    background: rgba(152, 133, 97, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: var(--primary);
    margin-bottom: 25px;
    transition: 0.5s;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.portal-card:hover .card-icon {
    background: var(--primary);
    color: #002623;
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--primary);
}

.portal-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #edebe0;
    font-weight: bold;
}

.portal-card p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-overlay {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    background: var(--primary);
    color: #002623;
    padding: 15px;
    font-weight: bold;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.4s;
}

.portal-card:hover .card-overlay {
    bottom: 0;
}

.specific-glow {
    border-color: rgba(16, 185, 129, 0.4);
}

.specific-glow .card-icon {
    color: #34d399;
}

.specific-glow:hover {
    border-color: #10b981;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.2);
}

.specific-glow:hover .card-icon {
    background: #10b981;
    color: #002623;
    box-shadow: 0 0 20px #10b981;
}

.specific-glow .card-overlay {
    background: #10b981;
}

footer {
    margin-top: auto;
    text-align: center;
    padding-top: 50px;
    padding-bottom: 20px;
    color: #64748b;
    font-size: 14px;
}