/* Main Stylesheet for E-Service Portal */
:root {
    --primary-green: #006233;
    --dark-green: #004d26;
    --light-green: #e8f5e9;
    --accent-red: #d40000;
    --gold: #ffd700;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-600: #6c757d;
    --gray-900: #212529;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--light-green) 100%);
    min-height: 80vh;
    color: var(--gray-900);
    overflow-x: hidden;
}

/* Hero Section with Animated Background */
.hero {
    position: relative;
    min-height: auto;
    /* يسمح بالتمدد حسب المحتوى */
    padding: 2rem 0;
    /* مسافة معقولة */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--primary-green);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 0, 0, 0.1) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-60px, -60px);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0.1rem;
    max-width: 1000px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0.5rem;
    border-radius: 50px;
    color: var(--gold);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 2vw, 4.5rem);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.4rem;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h1 span {
    color: var(--gold);
    position: relative;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
    transform: scaleX(0);
    animation: underlineExpand 1s ease forwards 0.5s;
}

@keyframes underlineExpand {
    to {
        transform: scaleX(1);
    }
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
    display: block00;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Search Bar */
.search-container {
    max-width: 600px;
    margin: 0 auto 1rem;
    position: relative;
}

.search-box {
    width: 100%;
    padding: 1.25rem 3rem 1.25rem 1.5rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-family: 'Tajawal', sans-serif;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.search-box:focus {
    outline: none;
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.search-btn {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-green);
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--dark-green);
    transform: translateY(-50%) scale(1.1);
}

/* Sectors Grid */
.sectors-section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--gray-600);
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.sector-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.sector-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--gold));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.sector-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.sector-card:hover::before {
    transform: scaleX(1);
}

.sector-icon {
    width: 70px;
    height: 70px;
    background: var(--light-green);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.sector-card:hover .sector-icon {
    background: var(--primary-green);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

.sector-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.sector-desc {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.sector-count {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-red);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Quick Access Bar */
.quick-access {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin: 2rem auto;
    max-width: 1000px;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.quick-access::-webkit-scrollbar {
    display: none;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--gray-900);
    font-size: 0.9rem;
    white-space: nowrap;
    transition: var(--transition);
}

.quick-link:hover {
    background: var(--primary-green);
    color: var(--white);
}

/* Features Section */
.features {
    background: var(--white);
    padding: 10px 10px;
    margin-top: 5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
    box-shadow: var(--shadow-md);
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background: var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition);
    z-index: 1000;
    border: none;
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
}

/* Dark Mode Toggle */
.theme-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    z-index: 1000;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 768px) {
    .stats-bar {
        gap: 1.5rem;
    }

    .sectors-grid {
        grid-template-columns: 1fr;
    }

    .quick-access {
        margin: 1rem;
    }
}



/* Loading Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-green);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Footer - 3 Columns */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-brand img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
}

.footer-brand h3 {
    font-size: 1.3rem;
}

.footer-brand span {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
}

.footer-desc {
    color: var(--gray-300);
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
    transform: translateX(-5px);
}

.footer-contact p {
    color: var(--gray-300);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-contact i {
    color: var(--gold);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gold);
    color: var(--gray-900);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-bottom p {
    color: var(--gray-300);
    font-size: 0.9rem;
}

.footer-bottom .heart {
    color: var(--accent);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* Success Message */
.success-message {
    display: none;
    background: var(--success);
    color: var(--white);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    text-align: center;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }

    .contact-section {
        grid-template-columns: 1fr;
    }

    .contact-info-side {
        order: 2;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-hero h2 {
        font-size: 1.75rem;
    }
}





.sector-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f5f7fa, #e4e8eb);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: 0.3s ease;
}

/* الصورة */
.sector-icon img {
    width: 60%;
    height: 60%;
    border-radius: 50%;

    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Hover */
.sector-card:hover .sector-icon {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.sector-card:hover .sector-icon img {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .sector-icon {
        width: 55px;
        height: 55px;
    }

    .sector-icon img {
        width: 65%;
        height: 65%;
    }
}




/* =========================
   PWA Badge
========================= */

.pwa-badge {
    display: inline-flex;
    align-items: center;
    gap: 14px;

    padding: 12px 18px;

    border-radius: 18px;

    background: rgba(255,255,255,0.12);

    backdrop-filter: blur(14px);

    border: 1px solid rgba(255,255,255,0.12);

    box-shadow:
        0 8px 25px rgba(0,0,0,.18),
        inset 0 0 12px rgba(255,255,255,.05);

    transition: .35s ease;

    animation: floatBadge 4s ease-in-out infinite;
}

/* Hover */
.pwa-badge:hover {
    transform: translateY(-4px);

    box-shadow:
        0 14px 35px rgba(0,0,0,.25),
        0 0 20px rgba(255,255,255,.08);
}

/* =========================
   App Icon
========================= */

.app-icon {
    width: 64px;
    height: 64px;

    flex-shrink: 0;

    border-radius: 18px;

    overflow: hidden;

    background: rgba(255,255,255,0.08);

    border: 1px solid rgba(255,255,255,0.15);

    padding: 6px;

    box-shadow:
        0 6px 18px rgba(0,0,0,.2),
        inset 0 0 10px rgba(255,255,255,.08);
}

.app-icon img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 16px;

    display: block;
}

/* =========================
   Text
========================= */

.badge-content {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.badge-title {
    color: #fff;

    font-size: 1rem;
    font-weight: 700;

    line-height: 1.3;
}

.badge-subtitle {
    color: rgba(255,255,255,.78);

    font-size: .85rem;

    margin-top: 3px;
}

/* =========================
   Animation
========================= */

@keyframes floatBadge {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* =========================
   Responsive
========================= */

@media (max-width:768px) {

    .pwa-badge {
        gap: 10px;

        padding: 10px 14px;
    }

    .app-icon {
        width: 52px;
        height: 52px;
    }

    .badge-title {
        font-size: .92rem;
    }

    .badge-subtitle {
        font-size: .75rem;
    }
}

