/* Brand Identity & Colors */
:root {
    --primary-blue: #0D47A1;
    --tech-purple: #5E35B1;
    --highlight-cyan: #00BCD4;
    --bg-light: #F5F7FA;
    --text-dark: #1A237E;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
}

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@700&family=Tajawal:wght@400;500;700&family=JetBrains+Mono&display=swap');

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', sans-serif;
    color: var(--primary-blue);
}

code, pre {
    font-family: 'JetBrains Mono', monospace;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
    justify-content: center;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--highlight-cyan);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--tech-purple));
    color: white;
    border-radius: 0 0 50px 50px;
    margin-bottom: 50px;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Sections */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--highlight-cyan);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Cards (Glassmorphism) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card h3 {
    color: var(--tech-purple);
    margin-top: 0;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-top: 80px;
}

footer p {
    opacity: 0.8;
}

footer a {
    color: white;
    text-decoration: none;
    font-weight: 700;
}

footer a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--highlight-cyan);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn:hover {
    background: var(--primary-blue);
}

/* Specific Sections */
.tech-stack span {
    display: inline-block;
    background: rgba(13, 71, 161, 0.1);
    color: var(--primary-blue);
    padding: 5px 15px;
    border-radius: 15px;
    margin: 5px;
    font-size: 0.9rem;
    font-weight: bold;
}

.page-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--tech-purple));
    color: white;
    border-radius: 0 0 40px 40px;
    margin-bottom: 40px;
}

.page-hero h1 {
    color: white;
    margin: 0 0 10px;
}

.legal {
    line-height: 1.9;
    font-size: 1.05rem;
}

.legal h2 {
    margin-top: 40px;
}

.legal ul {
    padding-right: 22px;
}

.legal li {
    margin: 10px 0;
}
