/* اعدادات */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&family=Fira+Code:wght@300..700&display=swap');
:root {
    --primary: #4A90E2;
    --bg-light: #FFFFFF;
    --bg-card: #F8F9FA;
    --text: #1B1C1D;
    --text-gray: #6B7280;
    --accent: #00B4D8;  
    --border: rgba(0, 0, 0, 0.1); 
}

.dark-mode {
    --primary: #60a5fa;  
    --bg-light: #121417; 
    --bg-card: #1e2126;  
    --text: #f0f2f5;
    --text-gray: #b0bbca; 
    --accent: #60a5fa;    
    --border: rgba(255, 255, 255, 0.08); 
}

html {
    scroll-behavior: smooth;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

::selection {
    background-color: var(--border);
    color: var(--primary);
}
::-webkit-scrollbar {
    background-color: var(--border);
}
::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 20px;
}

.dark-mode-toggle {
    position: fixed;
    top: 90%;
    right: 20px;
    width: 44px;
    height: 44px;
    background-color: var(--bg-card);
    color: var(--text);
    border: none;
    display: flex;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 1.5s ease;
}
.dark-mode-toggle:hover {
    border-radius: 5px;
    transform: rotate(90deg);
}
body, header, section, footer, div, a, button, input, textarea {
    transition: background-color 0.8s ease, color 0.8s ease, border-color 0.8s ease, transform 0.8s ease;
}
.dark-mode-toggle {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-mode-toggle i {
    transition: opacity 0.8s ease, transform 0.8s ease, color 0.8s ease;
}

.dark-mode-toggle:hover { color: #1e3a8a; transform: scale(1.1); }
.dark-mode .dark-mode-toggle:hover { color: #fbbf24; transform: scale(1.1); }
.fa-sun, .dark-mode .fa-moon { display: none; }
.dark-mode .fa-sun { display: block; }
.fa-sun { opacity: 0; transform: scale(0) rotate(-180deg); }
.fa-moon { opacity: 1; transform: scale(1) rotate(0); }
.dark-mode .fa-sun { opacity: 1; transform: scale(1) rotate(0); }
.dark-mode .fa-moon { opacity: 0; transform: scale(0) rotate(180deg); }


.nav-link, button {
    min-width: 48px;
    min-height: 48px;
    padding: 10px;
}

body {
    background-color: var(--bg-light);
    color: var(--text);
    padding-top: 60px; 
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    color: var(--text);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--bg-light);
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid var(--border);
}


.dark-mode .about {
    background: linear-gradient(145deg, var(--primary), var(--text));
    color: var(--text);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

nav ul li a {
    color: var(--text);
}

#contact-form {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
}

.contact-text, textarea {
    background-color: var(--bg-light);
    color: var(--text);
    border: 1px solid var(--border);
}


.bin-main, .contact-btn {
    background-color: var(--primary);
    color: #fff;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bin-main:hover, .contact-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.dark-mode-toggle {
    z-index: 2000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

header.header--hidden {
    transform: translateY(-100%);
}
section {
    display: flex;
    place-content: center;   /* يوسّط العنصر */
    min-height: 100vh;
}

.about {
    background-color: var(--primary);
    color: var(--bg-card);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-inline: aouto;
}
nav ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
nav ul li {
    list-style: none;
}
nav ul li a {
    position: relative;
    display: inline-block;
    color: var(--black-font);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    border: 1px solid transparent;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s ease;
    margin: 0 5px; 
}
nav ul li a:hover {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
    transform: translateY(-2px); 
}
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%) scale(0); 
    width: 40px;
    height: 3px;
    border-radius: 5px; 
    background: var(--accent);
    transition: transform 0.3s ease;
}
nav ul li a.active::after {
    transform: translateX(-50%) scale(1);
}


.logo {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Fira Code', monospace;
}

.search-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.text {
    padding: 5px 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.btn{
    padding: 5px 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: all 0.8s ease-in-out;
}

.btn:hover {
    background-color: var(--text);
    color: var(--bg-card);
    padding: 5px 10px;
}

.contenr-main {
    margin: 120px 30px ;
}

.titel-main {
    font-size: 1.9rem;
    font-weight: 800;
    transition: all 0.5s ease;
    width: fit-content;
}

.titel-main:hover {
    transform: translate(-3px, -9px);
	box-shadow: 3px 9px 0 #000000, 15px 15px 20px rgba(64, 164, 122, 0.2);
    color: var(--primary);
}

.detales-main {
    margin-bottom: 10px;
    width: 490px;
    font-size: 1.2rem;
}

.bin-main {
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    padding: 9px;
    background-color: var(--text);
    color: var(--bg-card);
    border-radius: 5px;
    transition: all 0.1s ease;
}

.bin-main a {
    color: var(--bg-card);
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    padding: 9px;
    text-decoration: none;
}

.bin-main:hover {
    transform: rotateY('-1000px');
}

.contenr-about {
    margin-top: 150px;
}

.titel-about {
    font-size: 1.9rem;
    font-weight: 800;
    margin-left: 60px;
    width: fit-content;
    transition: all 0.4s ease;
}

.titel-about:hover {
    transform: translateX(20px);
}

.detales-about {
    font-size: 1.2rem;   
    margin-left: 60px;
    width: 600px;
    height: 20px;
}


.contact {
    background-color: var(--bg-light);
    color: var(--text);
    flex-direction: column;
    padding: 60px 20px;
}

.titel-contact {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    transition: all 1s ease ;
}

.titel-contact:hover {
    color: var(--primary);
    transform: translateY(-15px);
}

.contenr-contact {
    width: 100%;
    display: flex;
    justify-content: center;
}

#contact-form {
    background-color: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 24px 20px;
    max-width: 340px;
    width: 100%;
}

.titel-form {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 10px 0 4px;
}

.contact-text {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 8px;
    font-size: 0.95rem;
    resize: vertical;
    transition: all 2s ease;
}

.contact-btn {
    margin-top: 12px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: none;
    background-color: var(--primary);
    color: var(--bg-light);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 1s ease;
}

.contact-btn:hover {
    background-color: var(--text);
    transform: translateY(-10px);
}

.contact-text {
    min-height: 20px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 8px;
    font-size: 0.95rem;
    resize: vertical;
}

textarea {
    width: 10%;
    height: 74px;
    min-height: 120px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 8px;
    font-size: 0.95rem;
    resize: vertical;
}

.status {
    width: 300px;
    display: flex;
    margin-top: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    background-color: rgba(0, 0, 0, 0.03);
    color: var(--text);
}

.status--success {
    display: block;
    background-color: #d1fae5;
    color: #065f46;
}

.status--error {
    display: block;
    background-color: #fee2e2;
    color: #991b1b;
}

/* Footer */
.footer {
    background-color: var(--text);
    color: var(--bg-light);
    padding: 48px 24px 24px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-content a {
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-brand {
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    font-family: 'Fira Code', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--bg-light);
}

.footer-desc {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.footer-links,
.footer-contact {
    min-width: 120px;
}

.footer-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--accent);
    padding-right: 6px;
}

.footer-email {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-email:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--text-gray);
}
