/* cairo-regular - arabic */
@font-face {
    font-display: swap;
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/cairo-v31-arabic-regular.woff2') format('woff2');
}
/* cairo-700 - arabic */
@font-face {
    font-display: swap;
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/cairo-v31-arabic-700.woff2') format('woff2');
}

:root {
    --primary: #040916;
    --secondary: #0a192f;
    --accent: #e6992d;
    --gold: #fcd34d;
    --text-main: #e6f1ff;
    --text-dim: #8892b0;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Cairo', sans-serif; scroll-behavior: smooth; }
body { font-family: 'Cairo', sans-serif; font-weight: 400; background-color: var(--primary); color: var(--text-main); line-height: 1.7; overflow-x: hidden; }
strong, b { font-weight: 600; }
h1, h2 { font-weight: 700; }

#network-canvas {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
    background: radial-gradient(circle at center, #0a192f 0%, #040916 100%);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

.hero { text-align: center; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 100px 20px; }
.logo-img { height: 100px; margin-bottom: 30px; filter: drop-shadow(0 0 15px rgba(230, 153, 45, 0.3)); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; line-height: 1.4; margin-bottom: 25px; max-width: 1000px; }
h1 span { background: linear-gradient(90deg, var(--accent), var(--gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.subtitle { font-size: clamp(1rem, 2vw, 1.3rem); color: var(--text-dim); max-width: 900px; margin-bottom: 50px; }

.btn-group { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin-bottom: 50px; }
.btn { padding: 18px 40px; border-radius: 100px; font-weight: 800; cursor: pointer; transition: 0.4s; text-decoration: none; border: none; font-size: 1.1rem; display: inline-flex; align-items: center; gap: 10px; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(230, 153, 45, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(230, 153, 45, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 153, 45, 0); }
}
.btn-primary { background: linear-gradient(135deg, var(--accent), #b3731a); color: white; animation: pulse 2s infinite; }
.btn-primary:hover { transform: translateY(-7px) scale(1.05); box-shadow: 0 15px 35px rgba(230, 153, 45, 0.3); }
.btn-secondary-outline { background: transparent; color: white; border: 2px solid rgba(230, 153, 45, 0.5); backdrop-filter: blur(10px);}
.btn-secondary-outline:hover { background: rgba(230, 153, 45, 0.1); border-color: var(--accent); transform: translateY(-7px);}

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
#about h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); text-align: center; margin-bottom: 25px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; padding: 40px 0 60px; }
.card { 
    background: rgba(10, 25, 47, 0.4); 
    padding: 50px 40px; border-radius: 35px; 
    border: 1px solid rgba(255,255,255,0.05); 
    backdrop-filter: blur(12px); 
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    text-align: center; 
}
.card:hover { transform: translateY(-15px) scale(1.02); border-color: var(--accent); background: rgba(10, 25, 47, 0.7); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.card h3 { color: var(--accent); margin-bottom: 20px; font-size: 1.6rem; }

#backToTop {
    position: fixed; bottom: 30px; left: 30px; 
    width: 50px; height: 50px; background: var(--accent); 
    color: white; border: none; border-radius: 50%; 
    cursor: pointer; display: none; z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); transition: 0.3s; font-weight: bold;
    opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
}
#backToTop.visible { opacity: 1; visibility: visible; }

.countdown { display: flex; gap: 15px; justify-content: center; margin-bottom: 40px; }
.time-unit { 
    background: rgba(17, 34, 64, 0.8); border: 1px solid rgba(230, 153, 45, 0.3);
    padding: 15px; border-radius: 15px; min-width: 85px; backdrop-filter: blur(10px); text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); transition: 0.4s;
}
.time-unit span { display: block; font-size: 2rem; font-weight: 900; color: var(--accent); line-height: 1.2; }
.time-unit label { font-size: 0.75rem; color: var(--text-dim); }

.form-section { padding: 60px 0; }
.form-box { background: var(--secondary); padding: 45px; border-radius: 30px; max-width: 750px; margin: 0 auto; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 30px 60px rgba(0,0,0,0.4); }
.form-content-wrapper.hidden { display: none; }
.form-group { margin-bottom: 20px; text-align: right; }
.form-group label { display: block; margin-bottom: 10px; color: var(--gold); font-weight: 600; }
input, select { width: 100%; padding: 16px; border-radius: 15px; background: var(--primary); border: 1px solid rgba(255,255,255,0.1); color: white; font-size: 1rem; outline: none; transition: 0.3s; }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 10px rgba(230, 153, 45, 0.2); }
.error-msg { color: #ff4d4d; font-size: 0.8rem; display: block;  margin-top: 5px; height: 1rem; opacity: 0; transition: opacity 0.3s; text-align: right; }
input.invalid { border-color: #ff4d4d !important; background: rgba(255, 77, 77, 0.05); }

#success-message {
    display: none;
    text-align: center;
    padding: 60px 20px;
}
#success-message.visible {
    display: block;
    animation: fadeInScale 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#success-message .success-icon {
    font-size: 5rem;
    margin-bottom: 25px;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(230, 153, 45, 0.4));
    animation: crownPop 1s 0.3s ease-out both;
}
#success-message h3 {
    color: var(--accent);
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    margin-bottom: 30px;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(230, 153, 45, 0.2);
}
#success-message p {
    color: var(--text-main);
    font-size: 1.15rem;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.9;
    opacity: 0.9;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes crownPop {
    0% { transform: translateY(20px) scale(0.5); opacity: 0; }
    60% { transform: translateY(-10px) scale(1.1); }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

footer { background: #01040a; padding: 60px 0 30px; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 60px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; margin-bottom: 30px; text-align: right; }
.footer-info h2 { color: var(--accent); margin-bottom: 20px; font-size: 1.8rem; }
.footer-links h3 { color: #fff; margin-bottom: 25px; font-size: 1.2rem; }
.contact-item { margin-bottom: 15px; display: flex; align-items: center; gap: 12px; color: var(--text-dim); }
.contact-icon { width: 20px; height: 20px; fill: var(--accent); }
.contact-item a { color: var(--text-dim); text-decoration: none; transition: 0.3s; }
.contact-item a:hover { color: var(--accent); }
.social-flex { display: flex; gap: 15px; margin-top: 25px; justify-content: flex-start; }
.social-circle { width: 45px; height: 45px; border-radius: 50%; background: var(--secondary); display: flex; align-items: center; justify-content: center; color: var(--text-dim); border: 1px solid rgba(255,255,255,0.1); transition: 0.4s; text-decoration: none; }
.social-circle svg { width: 20px; height: 20px; fill: currentColor; }
.social-circle:hover { background: var(--accent); color: white; transform: rotate(360deg) scale(1.1); }
.copyright { text-align: center; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem; color: var(--text-dim); }

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .hero { padding: 40px 15px; min-height: auto; }
    .logo-img { height: 60px; width: 118px; }
    h1 { margin-bottom: 20px; line-height: 1.3; }
    .btn-group { flex-direction: column; gap: 12px; }
    .btn { width: 100%; justify-content: center; }
    .countdown { gap: 8px; }
    .time-unit { min-width: 60px; padding: 10px 5px; }
    .time-unit span { font-size: 1.3rem; }
    .grid { grid-template-columns: 1fr; gap: 15px;  padding: 20px 0; }
    .form-box { padding: 25px; }
    .footer { margin-top: 40px; }
    .footer-content { text-align: center; }
    .social-flex { justify-content: center; }
    .contact-item { justify-content: center; }
}