/* متغيرات الألوان */
:root {
    --primary-color: #0a192f;
    --secondary-color: #172a45;
    --accent-color: #64ffda;
    --text-color: #ccd6f6;
    --light-text: #8892b0;
    --white: #e6f1ff;
}

/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
header {
    background-color: var(--secondary-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

header h1 a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.5rem;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

header nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 0;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero .accent {
    color: var(--accent-color);
}

.hero p {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* Projects Section */
.projects-section {
    background-color: var(--secondary-color);
}

.projects-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

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

.project-card {
    background-color: var(--primary-color);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #233554;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.project-card h3 {
    color: var(--white);
    margin-bottom: 15px;
}

.project-card p {
    color: var(--light-text);
    margin-bottom: 20px;
}

.project-card a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
}

/* Contact Section */
.contact-section {
    text-align: center;
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    text-align: center;
    padding: 20px 0;
    color: var(--light-text);
}

/* تمت الإضافة هنا: تصميم لسطر المصمم */
.footer-credit {
    font-size: 0.9rem;
    margin-top: 5px;
    color: var(--accent-color);
}