/* ==============================
   Fonts & Reset
============================== */
@font-face {
    font-family: 'Yekan';
    src: url('../fonts/yekan.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --primary: #0a1628;
    --secondary: #0d2b4e;
    --accent: #00d4ff;
    --accent2: #0080ff;
    --accent3: #7c3aed;
    --gold: #f59e0b;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --card-bg: rgba(13, 43, 78, 0.6);
    --border: rgba(0, 212, 255, 0.15);
    --gradient: linear-gradient(135deg, #0a1628 0%, #0d2b4e 50%, #0a1628 100%);
    --glow: 0 0 20px rgba(0, 212, 255, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Yekan', 'Tahoma', sans-serif;
    direction: rtl;
    background: var(--primary);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul { list-style: none; }

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

/* ==============================
   Scrollbar
============================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--primary); }
::-webkit-scrollbar-thumb { background: var(--accent2); border-radius: 3px; }

/* ==============================
   Preloader
============================== */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(0,212,255,0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ==============================
   Navbar
============================== */
#navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    padding: 0 2rem;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s ease;
}

#navbar.scrolled {
    background: rgba(10, 22, 40, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
    height: 60px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 8px;
}

.nav-title {
    font-size: 0.95rem;
    font-weight: bold;
    line-height: 1.4;
    color: var(--accent);
}

.nav-title span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: normal;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-menu a {
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent);
    background: rgba(0,212,255,0.08);
}

.nav-cta {
    background: linear-gradient(135deg, var(--accent2), var(--accent3)) !important;
    color: #fff !important;
    padding: 0.4rem 1.2rem !important;
    border-radius: 20px !important;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,128,255,0.4);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ==============================
   Hero Section
============================== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 70px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

.hero-glow1 {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,128,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero-glow2 {
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,212,255,0.1);
    border: 1px solid rgba(0,212,255,0.3);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    animation: pulse-border 2s ease-in-out infinite;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}

.hero-text h1 {
    font-size: 2.8rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    color: #fff;
}

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

.hero-text p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent2), var(--accent3));
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-family: 'Yekan', 'Tahoma', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,128,255,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,128,255,0.5);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--accent);
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-family: 'Yekan', 'Tahoma', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid rgba(0,212,255,0.4);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(0,212,255,0.08);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.shield-container {
    position: relative;
    width: 320px;
    height: 320px;
}

.shield-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(0,212,255,0.2);
    animation: rotateRing 15s linear infinite;
}

.shield-ring::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: var(--glow);
}

.shield-ring:nth-child(2) {
    inset: 30px;
    animation-direction: reverse;
    animation-duration: 10s;
    border-color: rgba(0,128,255,0.25);
}

.shield-ring:nth-child(3) {
    inset: 60px;
    animation-duration: 20s;
    border-color: rgba(124,58,237,0.25);
}

.shield-center {
    position: absolute;
    inset: 90px;
    background: linear-gradient(135deg, rgba(0,128,255,0.2), rgba(124,58,237,0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,212,255,0.3);
    box-shadow: var(--glow), inset 0 0 30px rgba(0,212,255,0.1);
}

.shield-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 0 15px rgba(0,212,255,0.8));
}

.orbit-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-num {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent);
    display: block;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==============================
   Section Shared
============================== */
section {
    padding: 6rem 2rem;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    background: rgba(0,212,255,0.08);
    border: 1px solid rgba(0,212,255,0.2);
    color: var(--accent);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 1rem;
}

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

.divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent3));
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ==============================
   Services Section
============================== */
#services {
    background: linear-gradient(180deg, var(--primary) 0%, rgba(13,43,78,0.3) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0,212,255,0.35);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), var(--glow);
    background: rgba(13,43,78,0.9);
}

.service-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    position: relative;
}

.service-card:nth-child(1) .service-icon-wrap { background: linear-gradient(135deg, rgba(0,128,255,0.2), rgba(0,128,255,0.05)); }
.service-card:nth-child(2) .service-icon-wrap { background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(0,212,255,0.05)); }
.service-card:nth-child(3) .service-icon-wrap { background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(124,58,237,0.05)); }
.service-card:nth-child(4) .service-icon-wrap { background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(245,158,11,0.05)); }
.service-card:nth-child(5) .service-icon-wrap { background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(16,185,129,0.05)); }
.service-card:nth-child(6) .service-icon-wrap { background: linear-gradient(135deg, rgba(239,68,68,0.2), rgba(239,68,68,0.05)); }

.service-card h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.2rem;
}

.service-tag {
    font-size: 0.72rem;
    padding: 0.2rem 0.6rem;
    background: rgba(0,212,255,0.08);
    border: 1px solid rgba(0,212,255,0.15);
    border-radius: 50px;
    color: var(--text-muted);
}

/* ==============================
   About Section
============================== */
#about {
    background: rgba(13,43,78,0.2);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image-wrap {
    position: relative;
}

.about-image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.about-photo-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, rgba(0,128,255,0.15), rgba(124,58,237,0.15));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-muted);
}

.about-photo-placeholder .big-icon {
    font-size: 5rem;
    filter: drop-shadow(0 0 20px rgba(0,212,255,0.5));
}

.about-cert-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: linear-gradient(135deg, var(--accent2), var(--accent3));
    border-radius: 16px;
    padding: 1rem 1.5rem;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,128,255,0.4);
}

.about-cert-badge .num {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    display: block;
}

.about-cert-badge .label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
}

.about-text h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.9;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text);
}

.about-feature .check {
    color: var(--accent);
    font-size: 0.9rem;
}

.cert-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.cert-item {
    background: rgba(0,212,255,0.08);
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: bold;
}

/* ==============================
   Stats Section
============================== */
#stats {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(0,128,255,0.05) 0%, rgba(124,58,237,0.05) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-card {
    padding: 2rem 1rem;
    border-radius: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,212,255,0.3);
    box-shadow: var(--glow);
}

.stat-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    display: block;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
}

.stat-suffix {
    font-size: 1.5rem;
    color: var(--accent);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    display: block;
}

/* ==============================
   Projects Section
============================== */
#projects {
    background: var(--primary);
}

.projects-filter {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.45rem 1.2rem;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-family: 'Yekan', 'Tahoma', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background: linear-gradient(135deg, var(--accent2), var(--accent3));
    border-color: transparent;
    color: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0,212,255,0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.project-thumb {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.project-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(10,22,40,0.9));
}

.project-info {
    padding: 1.5rem;
}

.project-category {
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: block;
}

.project-info h3 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.6rem;
}

.project-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.project-year {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.project-status {
    font-size: 0.72rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
}

.status-done {
    background: rgba(16,185,129,0.15);
    color: #10b981;
    border: 1px solid rgba(16,185,129,0.3);
}

.status-ongoing {
    background: rgba(245,158,11,0.15);
    color: #f59e0b;
    border: 1px solid rgba(245,158,11,0.3);
}

/* ==============================
   Process Section
============================== */
#process {
    background: rgba(13,43,78,0.2);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    right: 12.5%;
    left: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent2), var(--accent3));
    z-index: 0;
    opacity: 0.3;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent2), var(--accent3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 20px rgba(0,128,255,0.3);
    transition: all 0.3s ease;
}

.process-step:hover .step-num {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0,128,255,0.5);
}

.process-step h3 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.6rem;
}

.process-step p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ==============================
   Testimonials
============================== */
#testimonials {
    background: var(--primary);
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    gap: 1.5rem;
    overflow: hidden;
    position: relative;
}

.testimonials-inner {
    display: flex;
    gap: 1.5rem;
    animation: scrollTestimonials 30s linear infinite;
    width: max-content;
}

.testimonials-inner:hover {
    animation-play-state: paused;
}

.testimonial-card {
    flex-shrink: 0;
    width: 340px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.8rem;
}

.testimonial-stars {
    color: var(--gold);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent2), var(--accent3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
}

.author-name {
    font-size: 0.9rem;
    color: #fff;
    display: block;
}

.author-role {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ==============================
   Contact Section
============================== */
#contact {
    background: rgba(13,43,78,0.3);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: rgba(0,212,255,0.3);
    background: rgba(0,212,255,0.05);
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0,128,255,0.2), rgba(124,58,237,0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-item-text .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

.contact-item-text .value {
    font-size: 0.9rem;
    color: #fff;
    display: block;
    direction: ltr;
    text-align: right;
}

.contact-form {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
}

.contact-form h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 2rem;
    text-align: center;
}

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

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(10,22,40,0.8);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.7rem 1rem;
    color: var(--text);
    font-family: 'Yekan', 'Tahoma', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    direction: rtl;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(0,212,255,0.5);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.08);
    background: rgba(10,22,40,0.95);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select option {
    background: var(--secondary);
}

.form-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--accent2), var(--accent3));
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.9rem;
    font-family: 'Yekan', 'Tahoma', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,128,255,0.3);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,128,255,0.5);
}

/* ==============================
   Footer
============================== */
footer {
    background: rgba(5, 12, 25, 0.98);
    border-top: 1px solid var(--border);
    padding: 4rem 2rem 1.5rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 1rem;
    line-height: 1.8;
}

.footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.footer-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.footer-brand-name {
    font-size: 1rem;
    color: var(--accent);
    font-weight: bold;
}

.social-links {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(0,212,255,0.08);
    border: 1px solid rgba(0,212,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--accent2), var(--accent3));
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col ul li a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-col ul li a::before {
    content: '›';
    color: var(--accent);
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-right: 4px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--accent);
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ==============================
   Back to Top
============================== */
#back-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent2), var(--accent3));
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,128,255,0.4);
    z-index: 999;
}

#back-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,128,255,0.6);
}

/* ==============================
   Toast Notification
============================== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.4s ease;
    box-shadow: 0 8px 30px rgba(16,185,129,0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast.show {
    transform: translateX(0);
}

/* ==============================
   Animations
============================== */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes pulse-border {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,212,255,0); }
    50% { box-shadow: 0 0 0 4px rgba(0,212,255,0.1); }
}

@keyframes scrollTestimonials {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==============================
   Responsive
============================== */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-text h1 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    #navbar { padding: 0 1rem; }

    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        right: 0;
        left: 0;
        background: rgba(10,22,40,0.98);
        backdrop-filter: blur(12px);
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
        border-bottom: 1px solid var(--border);
        gap: 0.25rem;
    }

    .nav-menu.open { display: flex; }
    .nav-menu a { padding: 0.7rem 1rem; border-radius: 8px; }
    .nav-toggle { display: flex; }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        padding-top: 3rem;
    }

    .hero-visual { order: -1; }
    .shield-container { width: 220px; height: 220px; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-text h1 { font-size: 1.9rem; }

    .about-grid,
    .contact-grid { grid-template-columns: 1fr; }
    .about-cert-badge { bottom: -10px; left: 10px; }

    .services-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .process-steps::before { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .form-row { grid-template-columns: 1fr; }

    section { padding: 4rem 1rem; }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 1.6rem; }
    .section-header h2 { font-size: 1.7rem; }
    .about-features { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }
}
