/* ============================================================
   نظام التصميم - معيار للجودة (Premium Design System)
   ============================================================
   هذا الملف يعتمد على نظام الـ CSS Variables (Custom Properties)
   لإدارة الألوان، الخطوط، والتباعد بشكل مركزي لضمان الاتساق.
   ============================================================ */

:root {
    /* --- لوحة الألوان الأساسية --- */
    --primary: #1a5566;       /* اللون السماوي الداكن - يرمز للثقة والجودة */
    --primary-dark: #0b2239;  /* كحلي ملكي - للخلفيات العميقة */
    --primary-light: #2a7a8f; /* أزرق فاتح - للعناصر المساعدة */
    --accent: #d4af37;        /* ذهبي فاخر - للعناصر الجاذبة للانتباه */
    --accent-hover: #c19b2e;
    --accent-light: rgba(212, 175, 55, 0.15);
    
    /* --- ألوان الخلفية والنصوص --- */
    --text-dark: #1a1a2e;     /* للعناوين الرئيسية */
    --text-body: #4a4a6a;     /* للنصوص العادية */
    --text-muted: #7a7a9a;    /* للنصوص الأقل أهمية */
    --bg-body: #ffffff;
    --bg-section: #f8f9fc;
    --bg-card: #ffffff;
    --border: #e8e8f0;

    /* --- نظام الظلال الفاخرة --- */
    --shadow-sm: 0 2px 8px rgba(11, 34, 57, 0.06);
    --shadow-md: 0 8px 30px rgba(11, 34, 57, 0.1);
    --shadow-lg: 0 20px 60px rgba(11, 34, 57, 0.12);
    --shadow-glow: 0 0 30px rgba(212, 175, 55, 0.25);

    /* --- الزوايا (Radius) --- */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* --- الحركة والخطوط --- */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --font-ar: 'IBM Plex Sans Arabic', sans-serif;
    --font-en: 'Inter', sans-serif;
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
    border: 3px solid var(--bg-body);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loader-logo {
    width: 120px;
    animation: pulseLoader 2s infinite ease-in-out;
}

@keyframes pulseLoader {
    0%, 100% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-ar);
    line-height: 1.7;
    color: var(--text-body);
    background-color: var(--bg-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-size: clamp(16px, 1.1vw, 18px);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
}

.header {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1400px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 60px;
    box-shadow: 0 4px 30px rgba(11, 34, 57, 0.08);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 40px rgba(11, 34, 57, 0.12);
    top: 10px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 28px;
    flex-wrap: nowrap;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    transition: var(--transition);
    filter: contrast(1.15) brightness(0.95);
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(26, 85, 102, 0.06);
}

.btn-nav {
    background: var(--accent) !important;
    color: #fff !important;
    font-weight: 600;
    padding: 10px 24px !important;
}

.btn-nav:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2.5px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    backdrop-filter: blur(4px);
}

.mobile-overlay.active {
    display: block;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-ar);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-ar);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11, 34, 57, 0.2);
}

.btn-block {
    width: 100%;
    justify-content: center;
    margin-top: 20px;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(160deg, #f0f4f8 0%, #d9e2ec 40%, #e8eff7 100%);
    overflow: hidden;
    padding-top: 140px;
    padding-bottom: 100px;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 950px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: var(--accent-light);
    color: var(--accent-hover);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 4.8rem);
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.25;
    margin-bottom: 24px;
}

.hero-highlight {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-body);
    max-width: 750px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    animation: floatShape 8s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(212, 175, 55, 0.15);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: rgba(26, 85, 102, 0.08);
    bottom: -150px;
    right: -150px;
    animation-delay: -3s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: rgba(212, 175, 55, 0.1);
    top: 50%;
    right: 10%;
    animation-delay: -5s;
}

@keyframes floatShape {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 12s linear infinite;
}

.particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-duration: 10s;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 30%;
    top: 60%;
    animation-duration: 14s;
    animation-delay: -2s;
}

.particle:nth-child(3) {
    left: 50%;
    top: 30%;
    animation-duration: 11s;
    animation-delay: -4s;
    width: 4px;
    height: 4px;
}

.particle:nth-child(4) {
    left: 70%;
    top: 70%;
    animation-duration: 13s;
    animation-delay: -1s;
    width: 8px;
    height: 8px;
    opacity: 0.2;
}

.particle:nth-child(5) {
    left: 85%;
    top: 15%;
    animation-duration: 15s;
    animation-delay: -3s;
}

.particle:nth-child(6) {
    left: 15%;
    top: 80%;
    animation-duration: 9s;
    animation-delay: -5s;
    width: 5px;
    height: 5px;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) rotate(0);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

.stats {
    padding: 0;
    position: relative;
    z-index: 3;
    margin-top: -40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--primary-dark);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.stat-item {
    text-align: center;
    color: #fff;
    padding: 10px;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    inset-inline-end: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: var(--border);
}

.stat-number {
    display: block;
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-en);
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.95rem;
    margin-top: 4px;
    opacity: 0.85;
}

section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent-hover);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.section-tag-light {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.certificates {
    background: var(--bg-section);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 28px;
    border-radius: 50px;
    border: 2px solid var(--border);
    background: var(--bg-card);
    color: var(--text-body);
    font-family: var(--font-ar);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.cert-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #25d366;
    border-radius: 50%;
    z-index: -1;
    animation: wa-pulse 2s infinite;
}

@keyframes wa-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 30px;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: right;
    transition: var(--transition-slow);
}

.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.cert-card:hover::before {
    transform: scaleX(1);
}

.cert-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(26, 85, 102, 0.08), rgba(212, 175, 55, 0.08));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.cert-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--primary);
    transition: var(--transition);
}

.cert-card:hover .cert-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.cert-card:hover .cert-icon svg {
    stroke: #fff;
}

.cert-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent);
    color: #fff;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.cert-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
    font-family: var(--font-en);
}

.cert-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

.cert-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.cert-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
}

.tag-individual {
    background: rgba(26, 85, 102, 0.08);
    color: var(--primary);
}

.tag-company {
    background: var(--accent-light);
    color: var(--accent-hover);
}

.cert-card.hidden {
    display: none;
}

.for-whom {
    background: var(--bg-body);
}

.for-whom-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
    max-width: 1000px;
    margin: 0 auto;
}

.whom-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    transition: var(--transition);
    position: relative;
}

.whom-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.whom-card-featured {
    background: var(--primary-dark);
    border-color: transparent;
    color: #fff;
}

.whom-card-featured .whom-icon svg {
    stroke: var(--accent);
}

.whom-card-featured h3 {
    color: #fff !important;
}

.whom-card-featured .whom-list li {
    color: rgba(255, 255, 255, 0.85);
}

.whom-card-featured .whom-list svg {
    color: var(--accent);
}

.whom-card-featured .btn-primary {
    background: var(--accent);
}

.whom-featured-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    padding: 6px 24px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.whom-icon {
    width: 60px;
    height: 60px;
    background: rgba(26, 85, 102, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.whom-card-featured .whom-icon {
    background: rgba(255, 255, 255, 0.1);
}

.whom-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary);
}

.whom-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.whom-list {
    margin-bottom: 10px;
}

.whom-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.5;
}

.whom-list svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--primary);
}

.about {
    background: var(--bg-section);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.about-text .section-tag {
    margin-bottom: 20px;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
    line-height: 1.4;
}

.about-text>p {
    color: var(--text-body);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.about-feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-feature-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent);
}

.about-feature h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 2px;
}

.about-feature p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 350px; /* user ref had 380 then 350, I'll use 350 */
}

.about-image-wrapper img {
    width: 100%;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.about-image-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    opacity: 0.3;
}

.verify-section {
    padding: var(--section-padding) 0;
    transition: var(--transition);
}

.verify-container {
    max-width: 700px;
    margin: 0 auto;
}

.verify-search-box {
    background: var(--bg-section);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.verify-input-wrapper {
    display: flex;
    gap: 1rem;
}

@media (max-width: 576px) {
    .verify-input-wrapper {
        flex-direction: column;
    }
}

.verify-input-wrapper input {
    flex: 1;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    font-size: 1rem;
    transition: var(--transition);
}

.verify-input-wrapper input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-light);
}

.verify-result {
    margin-top: 2rem;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid var(--border);
    display: none;
    animation: slideUp var(--transition);
    box-shadow: var(--shadow-lg);
}

.verify-result h3 {
    color: var(--primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 1rem;
}

.result-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.result-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-section);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.result-field:hover {
    background: #fff;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.result-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-label svg {
    color: var(--accent);
}

.result-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    word-break: break-word;
    overflow-wrap: break-word;
}

.cert-id-field {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    border: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: default;
}

.cert-id-field:hover {
    background: #000;
    box-shadow: 0 12px 30px rgba(11, 34, 57, 0.2);
    transform: translateY(-2px);
}

.cert-id-field .result-label {
    color: rgba(255, 255, 255, 0.7);
    justify-content: center;
}

.cert-id-field .result-label svg {
    color: var(--accent);
}

.cert-id-field .result-value {
    color: #fff;
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-top: 0.5rem;
    font-family: var(--font-en);
    transition: var(--transition);
}

.cert-id-field:hover .result-value {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

@media (max-width: 768px) {
    .verify-result {
        padding: 1.5rem;
    }
    
    .verify-result h3 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .result-content-grid {
        gap: 1rem;
        grid-template-columns: 1fr;
    }
    
    .result-field {
        padding: 0.75rem;
    }
    
    .cert-id-field .result-value {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .verify-result {
        padding: 1rem;
    }
    
    .cert-id-field {
        padding: 1rem;
    }
    
    .cert-id-field .result-value {
        font-size: 1.2rem;
    }
}

.verify-error {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    display: none;
    font-weight: 500;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.contact {
    background: var(--bg-body);
}

.contact-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: var(--primary-dark);
    border-radius: var(--radius-xl);
    padding: 60px;
    overflow: hidden;
    position: relative;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 50%;
    filter: blur(60px);
}

.contact-info {
    position: relative;
    z-index: 1;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.3;
}

.contact-info>p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    margin-bottom: 36px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.contact-method svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent);
    fill: none;
    flex-shrink: 0;
}

a.contact-method {
    transition: var(--transition);
    text-decoration: none;
}

a.contact-method:hover {
    color: #fff;
    padding-right: 6px;
}

a.contact-method svg {
    fill: var(--accent);
    stroke: none;
}

.contact-form {
    position: relative;
    z-index: 1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-family: var(--font-ar);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-group select {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.form-group select option {
    background: var(--primary-dark);
    color: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.btn-submit {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 1.05rem;
    margin-top: 4px;
}

.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo-img {
    height: 60px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links-col h4 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links-col li {
    margin-bottom: 10px;
}

.footer-links-col a {
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links-col a:hover {
    color: var(--accent);
    padding-right: 5px;
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    font-size: 0.85rem;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 8s infinite ease-in-out;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 7s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 1s;
    animation-duration: 9s;
}

.particle:nth-child(3) {
    top: 30%;
    left: 60%;
    animation-delay: 2s;
    animation-duration: 6s;
}

.particle:nth-child(4) {
    top: 80%;
    left: 30%;
    animation-delay: 3s;
    animation-duration: 8s;
}

.particle:nth-child(5) {
    top: 10%;
    left: 90%;
    animation-delay: 4s;
    animation-duration: 10s;
}

.particle:nth-child(6) {
    top: 70%;
    left: 50%;
    animation-delay: 5s;
    animation-duration: 7s;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }

    25% {
        transform: translateY(-30px) translateX(15px);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-15px) translateX(-10px);
        opacity: 0.4;
    }

    75% {
        transform: translateY(-40px) translateX(20px);
        opacity: 0.5;
    }
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.mobile-only {
    display: none;
}

.deskt-only {
    display: block;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
    .deskt-only {
        display: none !important;
    }
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    background: var(--primary);
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation: shapeFloat 15s infinite ease-in-out;
}

.shape-2 {
    width: 250px;
    height: 250px;
    bottom: -50px;
    left: -80px;
    animation: shapeFloat 12s infinite ease-in-out reverse;
}

.shape-3 {
    width: 180px;
    height: 180px;
    top: 40%;
    left: 60%;
    background: var(--accent);
    opacity: 0.04;
    animation: shapeFloat 18s infinite ease-in-out;
}

@keyframes shapeFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.cert-card.hidden {
    display: none;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 24px;
}

.section-tag-light {
    color: var(--accent) !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
    background: rgba(212, 175, 55, 0.1) !important;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

@media (min-width: 1600px) {
    .container { max-width: 1540px; }
}

@media (max-width: 1200px) {
    .container { padding: 0 40px; }
    .section-header h2 { font-size: 2.2rem; }
    section { padding: 80px 0; }
}

@media (max-width: 1024px) {
    .header { width: calc(100% - 32px); border-radius: 40px; }
    .navbar { padding: 8px 20px; }
    .logo img { height: 55px; }
    .hero { min-height: 80vh; padding-top: 100px; }
    .hero-content { max-width: 800px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .stat-item::after { display: none !important; }
    .certificates-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-features { grid-template-columns: 1fr 1fr; }
    .contact-card { grid-template-columns: 1fr; gap: 40px; padding: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
    .header { width: calc(100% - 20px); top: 10px; border-radius: 20px; }
    .navbar { padding: 4px 16px; flex-wrap: nowrap !important; }
    .logo img { height: 40px !important; }
    .hamburger { display: flex; transform: scale(0.9); }
    .nav-links {
        position: fixed; top: 0; right: -100%;
        width: 100%; height: 100vh;
        background: rgba(255,255,255,0.98); 
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center; justify-content: center;
        padding: 40px; gap: 20px; z-index: 999;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .nav-links.active { right: 0; }
    .nav-link { 
        padding: 12px 20px; 
        border: none; 
        font-size: 1.4rem; 
        text-align: center;
        width: auto;
    }
    .btn-nav { width: 100%; max-width: 280px; border-radius: 50px !important; margin-top: 20px; }
    .hero { min-height: 70vh; padding-top: 100px; }
    .hero-desc { font-size: 1.1rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); padding: 20px; gap: 16px; }
    .stat-number { font-size: 1.8rem; }
    .section-header h2 { font-size: 1.8rem; }
    .for-whom-grid { grid-template-columns: 1fr; }
    .certificates-grid { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* Mobile Small */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .logo img { height: 35px !important; }
    .navbar { padding: 4px 12px; }
    .hero-btns { flex-direction: column; gap: 12px; }
    .btn { width: 100%; text-align: center; }
    .stat-number { font-size: 1.5rem; }
    .section-header h2 { font-size: 1.6rem; }
    section { padding: 60px 0; }
    .hero h1 { font-size: clamp(1.8rem, 8vw, 2.2rem); }
}