/* ================================================================
   VIMASY - OFFICIAL STYLESHEET
   ORGANIZED BY SECTIONS FOR SPA PAGES
================================================================ */
@font-face {
    font-family: 'ScienceGothic';
    src: url('Fonts/science-gothic-v5-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'ScienceGothic';
    src: url('Fonts/science-gothic-v5-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}
@font-face {
  font-family: 'Almarai';
  font-style: normal;
  font-weight: 400;
    src: url('Fonts/almarai-v19-arabic-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Almarai';
    src: url('Fonts/almarai-v19-arabic-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

:root {
    --primary-blue: #00C8FF;
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --bg-deep: #00050a;
    --bg-accent: #002d4d;
}

/* ---  GLOBAL & RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
body {
    font-family: 'ScienceGothic', 'Almarai', sans-serif;
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}
#site-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at var(--scroll-x, 50%) var(--scroll-y, 50%), var(--bg-accent) 0%, var(--bg-deep) 90%);
    pointer-events: none;
}
.bg-glow-scroll {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(0, 200, 255, 0.07), transparent 40%);
    pointer-events: none;
}
.section-title { 
    font-family: 'ScienceGothic', sans-serif; 
    font-weight: 600; 
    font-size: 2.5rem; 
    text-align: center; 
    margin-bottom: 80px; 
    position: relative; 
}
.section-title::after { 
    content: ''; 
    position: absolute; 
    bottom: -15px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 60px; 
    height: 3px; 
    background: var(--primary-blue); 
}
.reveal { opacity: 0; transform: translateY(50px); transition: all 1s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ---  HEADER & NAVIGATION --- */
#app-content {
    flex: 1 0 auto;
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

header::before {
    display: none;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.logo-area img {
    height: 45px;
    cursor: pointer;
    filter: drop-shadow(0 0 10px rgba(0, 200, 255, 0.3));
    transition: 0.3s;
}
.logo-area img:hover { 
    transform: scale(1.05); 
}

#menu-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 10px 22px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'ScienceGothic', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

#menu-btn:hover {
    background: var(--primary-blue);
    color: black;
        box-shadow: 
            0 2px 25px rgba(0, 200, 255, 0.6),
            0 0 40px rgba(0, 200, 255, 0.5);
}

/* HBG*/
.dropdown-menu {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

    max-height: 95px;

    position: absolute;
    top: 0;
    left: 0;

    padding: 0;
    overflow: hidden;

    transition: var(--transition);

    border-bottom: 2px solid rgba(0, 200, 255, 0.25);

    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.60) 100%
    );

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    z-index: 1;

    box-shadow: 0 0 0 rgba(0, 200, 255, 0);
}

.menu-open .dropdown-menu {
    max-height: 600px;
    padding: 90px 0 30px;

    border-bottom: 2px solid var(--primary-blue);

    box-shadow: 
        0 2px 15px rgba(0, 200, 255, 0.4),
        0 0 25px rgba(0, 200, 255, 0.3);

    animation: borderPulse 2s ease-in-out infinite;
}

/* LC*/
.dropdown-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 10px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s;
    font-family: 'ScienceGothic', sans-serif;
}

.menu-open .dropdown-menu a { 
    opacity: 1; 
    transform: translateY(0); 
}

.dropdown-menu a:hover {
    color: var(--primary-blue); 
    background: rgba(255,255,255,0.03);
    letter-spacing: 5px;
}

/* --- Ultra Gradient Submenu Style --- */

.menu-item-has-children {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    text-align: center;
}


.menu-item-has-children:hover .sub-menu {
    max-height: 100px;
    opacity: 1;
    visibility: visible;
    margin-top: 5px;
    margin-bottom: 10px;
}

.sub-menu li a {
    font-size: 0.85rem !important;
    color: var(--primary-blue) !important;
    opacity: 0.7;
    border-bottom: none !important; /* إلغاء الخط السفلي إذا وجد */
    padding: 5px 0 !important;
}

.sub-menu li a:hover {
    opacity: 1;
    text-shadow: 0 0 10px var(--primary-blue);
}

/* ✨ GLOW */
@keyframes borderPulse {
    0%, 100% {
        box-shadow: 
            0 2px 15px rgba(0, 200, 255, 0.3),
            0 0 20px rgba(0, 200, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 2px 25px rgba(0, 200, 255, 0.6),
            0 0 40px rgba(0, 200, 255, 0.5);
    }
}

/* --- PAGE: HOME --- */
.hero {
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px;
}
.hero-logo img {
    width: 160px;
    margin-bottom: 30px;
    margin-top: 50px;
    animation: logoEntrance 1.5s cubic-bezier(0.23, 1, 0.32, 1) forwards, pulse 4s infinite ease-in-out 1.5s;
    opacity: 0;
}
.hero h1 {
    font-family: 'ScienceGothic', sans-serif;
    font-weight: 600;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    background: linear-gradient(to bottom, #59c6ff 30%, #8da0aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    letter-spacing: -2px;
    animation: entranceEffect 1.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
}
.fade-words { font-size: 1.2rem; color: #aaa; max-width: 600px; line-height: 1.8; }
.fade-words span { display: inline-block; opacity: 0; transform: translateY(10px); animation: fadeInUp 0.8s forwards; }

/* --- PAGE: SERVICES --- */
section { padding: 120px 25px; max-width: 1200px; margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.service-card { 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid var(--glass-border); 
    padding: 40px; 
    border-radius: 20px; 
    transition: 0.4s; 
    position: relative; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; 
    text-align: start; 
}
.service-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y), var(--primary-blue), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: -1;
}
.service-card:hover::after { opacity: 0.4; }
.service-card:hover { border-color: var(--primary-blue); box-shadow: 0 10px 30px rgba(0, 200, 255, 0.2); transform: translateY(-10px); }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(0, 200, 255, 0.15), transparent 50%); opacity: 0; transition: 0.3s; }
.service-card:hover::before { opacity: 1; }
.card-icon { font-size: 2.5rem; color: var(--primary-blue); display: flex; justify-content: center; align-items: center; margin: 0 auto 25px auto; width: 100%; position: relative; z-index: 1; }
.service-card h3 { font-family: 'ScienceGothic', Almarai; font-weight: 600; margin-bottom: 15px; font-size: 1.4rem; width: 100%; }
.service-card p { color: #999; line-height: 1.6; width: 100%; }

/* --- PAGE: ABOUT --- */
.who-we-are-container { display: flex; align-items: center; gap: 60px; background: rgba(255, 255, 255, 0.02); padding: 60px; border-radius: 30px; border: 1px solid var(--glass-border); }
.admin-photo-wrapper { flex-shrink: 0; width: 250px; height: 250px; border-radius: 50%; padding: 5px; background: linear-gradient(45deg, var(--primary-blue), transparent); }
.admin-photo-wrapper img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 5px solid #000; }
.admin-text p { font-size: 1.15rem; line-height: 1.8; color: #ccc; margin-bottom: 20px; }
.admin-message { color: var(--primary-blue) !important; font-weight: 600; }

/* --- [11] JASMINE GIFT SECTION (Color Generator) --- */
.jasmine-gift-section {
    margin-top: 30px;
    padding: 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    text-align: center;
}

.gift-title {
    color: var(--primary-blue);
    margin-bottom: 25px;
    text-shadow: 0 0 15px rgba(0, 200, 255, 0.4);
}

.generator-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: right;
}

.chat-input {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    outline: none;
}

.color-pickers {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.color-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.color-field input {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: none;
}

.preview-box {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    border: 1px dashed var(--primary-blue);
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-gift {
    padding: 12px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.preview-box {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    min-height: 60px;
    display: block;
    word-break: break-all;
    font-weight: bold;
    font-size: 1.4rem;
    border: 1px solid var(--primary-blue);
    box-shadow: inset 0 0 15px rgba(0, 200, 255, 0.1);
}

.btn-preview { background: rgba(255,255,255,0.1); color: white; border: 1px solid var(--glass-border); }
.btn-copy { background: var(--primary-blue); color: #000; }

.btn-gift:active { transform: scale(0.95); }


/* --- PAGE: CONTACT --- */

.glass-form {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 25px;
    transition: var(--transition);
}
.glass-form:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 30px rgba(0, 200, 255, 0.1);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.form-group {
    margin-bottom: 20px;
    text-align: start;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--primary-blue);
    font-weight: 600;
}
.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 15px;
    color: white;
    font-family: inherit;
    transition: 0.3s;
}
#contact-message {
    resize: none;
    overflow: hidden;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-blue);
}
.submit-btn {
    width: 100%;
    background: var(--primary-blue);
    color: black;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.4s;
    font-family: inherit;
}
.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 200, 255, 0.3);
}

.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
}

.success-icon {
    font-size: 8rem;
    color: #007bff;
    filter: drop-shadow(0 0 20px rgba(0, 123, 255, 0.8));
}

.fade-in {
    display: flex !important;
    animation: fadeIn 0.5s ease-in forwards;
}

.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.8); }
}

@media (max-width: 600px) {
    .success-icon { font-size: 5rem; }
    .form-row { grid-template-columns: 1fr; }
    .glass-form { padding: 25px; }
}
.social-icons { display: flex; justify-content: center; gap: 20px; margin-bottom: 50px; }
.social-btn { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 15px; font-size: 1.5rem; color: white; text-decoration: none; transition: 0.3s; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border); }
.instagram:hover { background: #E1306C; box-shadow: 0 0 20px #E1306C; }
.facebook:hover { background: #1877F2; box-shadow: 0 0 20px #1877F2; }
.telegram:hover { background: #0088cc; box-shadow: 0 0 20px #0088cc; }
.youtube:hover { background: #FF0000; box-shadow: 0 0 20px #FF0000; }

.map-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    display: flex;
    flex-direction: column; 
}

.map-container iframe {
    width: 100%;
    height: 450px;
    display: block;
    border-bottom: 1px solid var(--glass-border);
}

.map-label-wrapper {
    width: 100%;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
}

.map-label-wrapper i {
    color: var(--primary-blue);
    font-size: 1.1rem;
}

html[lang="ar"] .map-label-wrapper {
    flex-direction: row-reverse;
}
/* --- FOOTER --- */
.main-footer { padding: 80px 25px 30px; background: rgba(0, 0, 0, 0.5); margin-top: auto; border-top: 1px solid var(--glass-border); position: relative; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-column h4 { font-family: 'ScienceGothic', sans-serif; font-weight: 600; margin-bottom: 25px; color: var(--primary-blue); }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 12px; }
.footer-column ul li a { color: #aaa; font-size: 0.9rem; transition: 0.3s; text-decoration: none; }
.footer-column ul li a:hover { color: var(--primary-blue); padding-inline-start: 5px; }
.footer-social-mini { display: flex; gap: 12px; margin-top: 20px; }
.mini-social-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; color: rgba(255,255,255,0.7); transition: all 0.3s ease; background: rgba(255,255,255,0.02); text-decoration: none !important; border-bottom: none !important; }
.mini-social-btn:hover { transform: translateY(-3px); color: white; border-color: transparent; text-decoration: none !important; }
.footer-bottom { text-align: center; margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.05); color: #999; font-size: 0.8rem; }

/* --- ARABIC ADJUSTMENTS --- */
html[lang="ar"] body { font-family: 'Almarai', sans-serif; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4,
html[lang="ar"] .section-title, html[lang="ar"] .fade-words, html[lang="ar"] #menu-btn span, html[lang="ar"] .dropdown-menu a {
    font-family: 'Almarai', sans-serif; font-weight: 700;
}

/* --- ANIMATIONS & MEDIA --- */
@keyframes entranceEffect {
    0% { opacity: 0; transform: scale(0.7) translateY(30px); filter: blur(15px); }
    100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}
@keyframes logoEntrance {
    0% { opacity: 0; transform: scale(0.5); filter: blur(10px); }
    100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
@keyframes pulse {
    0%, 100% { transform: scale(0.95); filter: drop-shadow(0 0 20px rgba(0, 200, 255, 0.2)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 40px rgba(0, 200, 255, 0.5)); }
}
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes forceFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.force-float { animation: forceFloat 3s infinite ease-in-out; }


@media (max-width: 768px) {
    .color-pickers { grid-template-columns: 1fr; }
    .action-buttons { grid-template-columns: 1fr; }
}

/* --- [10] RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .who-we-are-container { flex-direction: column; text-align: center; }
}

@media (hover: hover) {
    .logo-area img:hover {
        transform: scale(1.05);
        filter: brightness(1.1) drop-shadow(0 0 12px var(--primary-blue));
    }
}

@media (max-width: 768px) {
    #main-header {
        height: 70px;
    }

.logo-area img {
        transform: translateY(-5px);
    }

    .logo-area {
        display: flex;
        align-items: center;
        overflow: visible; 
    }

.logo-area img:hover { 
    transform: scale(1);
}

    .menu-item-has-children:active .sub-menu {
        max-height: 100px;
        opacity: 1;
        visibility: visible;
    }

.dropdown-menu {
    max-height: 70px;
    }
    .header-content {
        display: flex;
        align-items: center;
        height: 100%;
    }
    
    #menu-btn { 
        padding: 5px 12px; 
        font-size: 0.85rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    nav {
        position: absolute;
        top: 60px; 
        left: 0;
        width: 100%;
        background: #000c14;
        border-bottom: 1px solid var(--glass-border);
        max-height: 0;
        overflow: hidden;
        transition: 0.4s ease-in-out;
    }
    
    #main-header.menu-open nav {
        max-height: auto;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        text-align: center;
    }

    .hero h1 { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .section { padding-top: 140px !important; }
}