
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;
}


.navbar-toggler {
    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(--bg-card));
    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;
}

.bin-main:hover, .contact-btn:hover {
    background-color: var(--text);
    color: var(--bg-card);
}

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: auto;
}
nav ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
nav ul li {
    list-style: none;
    color: #000000;

}
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 {
    color: #000000;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Fira Code', monospace;
}

.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: translateY(-2px);
}

.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: auto;
}


.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;
}

.downloads-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    width: 100%;
    perspective: 1200px;
}

.download-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    padding: 28px 24px;
    width: 100%;
    max-width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    will-change: transform;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.download-card:hover {
    transform: translateY(-6px) rotate(-2deg) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14), 0 6px 14px rgba(0, 0, 0, 0.08);
}

.download-icon {
    font-size: 2.2rem;
    color: var(--primary);
}

.download-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    width: 100%;
    padding: 0 12px;
    border-radius: 8px;
    border: none;
    background-color: var(--primary);
    color: var(--bg-light);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.4s ease, transform 0.4s ease;
}

.download-btn:hover {
    background-color: var(--text);
    color: var(--bg-light);
    transform: translateY(-3px);
}

.download-linux {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 260px;
    will-change: transform;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.download-linux:hover {
    transform: translateY(-6px) rotate(-2deg) scale(1.02);
}

.download-linux .download-card {
    width: 100%;
    max-width: 260px;
}

.download-linux .download-card:hover {
    transform: none;
    border-color: var(--primary);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14), 0 6px 14px rgba(0, 0, 0, 0.08);
}

.download-card .download-btn {
    margin-top: auto;
}

.download-cmd {
    display: block;
    width: 100%;
    padding: 10px 12px;
    background-color: rgba(0, 0, 0, 0.06);
    color: var(--text);
    font-family: 'Fira Code', monospace;
    font-size: 0.78rem;
    line-height: 1.6;
    text-align: left;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-sizing: border-box;
    cursor: pointer;
    user-select: all;
    word-break: break-word;
    overflow-wrap: anywhere;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.dark-mode .download-cmd {
    background-color: rgba(255, 255, 255, 0.08);
}

.download-cmd:hover {
    background-color: rgba(128, 134, 142, 0.15);
    border-color: var(--primary);
}

.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);
}


.custom-burger {
    border: none ;      
    box-shadow: none ;  
    outline: none ;     
}

.curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transform: translateY(100%);
    z-index: -1; 
    transition: transform 0.7s ease;
}

.curtain.active { 
    transform: translateY(0%);
    z-index: 9999; 
}
.curtain.exit { 
    transform: translateY(-100%);
    z-index: 9999; 
}