:root {
    --primary: #1a5cff;
    --primary-dark: #0d3fb8;
    --primary-glow: rgba(26,92,255,0.4);
    --secondary: #00b4ff;
    --accent: #00d4ff;
    --silver: #c0c8d4;
    --bg: #050a18;
    --bg-alt: #0a1228;
    --bg-card: #0d1a35;
    --text: #e8eaf0;
    --text-light: #8892a4;
    --card-bg: #0d1a35;
    --card-shadow: 0 4px 30px rgba(26,92,255,0.1);
    --border: #152040;
    --nav-bg: rgba(5,10,24,0.95);
    --sidebar-bg: #080e22;
    --transition: 0.3s ease;
    --glow: 0 0 20px rgba(26,92,255,0.4);
}

/* Light mode removed - site is always dark */

[data-theme="light"] {
    --primary: #1a5cff;
    --primary-dark: #0d3fb8;
    --primary-glow: rgba(26,92,255,0.3);
    --secondary: #00b4ff;
    --accent: #00d4ff;
    --silver: #555;
    --bg: #f0f4f8;
    --bg-alt: #e2e8f0;
    --bg-card: #ffffff;
    --text: #1a1a2e;
    --text-light: #64748b;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --border: #d1d5db;
    --nav-bg: rgba(240,244,248,0.95);
    --sidebar-bg: #ffffff;
}

[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

/* ========== PERFORMANCE OPTIMIZATIONS ========== */
/* GPU acceleration for animations */
.navbar, .hero, .service-card, .card-img, .card-overlay,
.feature-box, .btn, .social-link, .whatsapp-float, .hire-float,
.dark-toggle, .lang-btn, .hamburger, .sidebar, .sidebar-overlay,
.footer, .stat-box, .info-card, .scanner-section, .cyber-research-tree {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Font display swap for faster text rendering */
@font-face {
    font-family: 'SystemFont';
    src: local('Segoe UI'), local('Tahoma'), local('Arial');
    font-display: swap;
}

/* Smooth scrolling performance */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Reduce paint for dark mode transitions */
[data-theme] * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Image rendering optimization */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    max-width: 100%;
    height: auto;
}

/* Critical CSS inline helper */
.critical-resources {
    display: none;
}

/* Reduce layout thrashing */
.grid, .services-grid, .stats-grid, .footer-grid, .contact-grid,
.scanner-results, .tree-branches {
    contain: layout style;
}

/* ========== END PERFORMANCE OPTIMIZATIONS ========== */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background var(--transition), color var(--transition);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--primary-glow); }
    50% { box-shadow: 0 0 0 15px transparent; }
}

@keyframes glowPulse {
    0%, 100% { filter: drop-shadow(0 0 8px var(--primary-glow)); }
    50% { filter: drop-shadow(0 0 20px var(--primary-glow)); }
}

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

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

@keyframes borderGlow {
    0%, 100% { border-color: var(--primary); box-shadow: 0 0 5px var(--primary-glow); }
    50% { border-color: var(--accent); box-shadow: 0 0 20px var(--primary-glow); }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease forwards;
}

.scale-in {
    animation: scaleIn 0.6s ease forwards;
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: fadeIn 0.5s ease;
}

.nav-brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition);
}

.nav-brand:hover {
    text-shadow: var(--glow);
}

.nav-logo-img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 0.3rem;
}

.nav-links a {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    transition: all var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all var(--transition);
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 60%;
}

.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    width: 60%;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.lang-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.lang-btn .arrow {
    font-size: 0.7rem;
    transition: transform var(--transition);
}

.lang-switcher.active .lang-btn .arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.5rem 0;
    min-width: 160px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition);
}

.lang-switcher.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.9rem;
}

.lang-option:hover {
    background: var(--bg-alt);
    color: var(--primary);
}

.lang-option.active {
    color: var(--primary);
    font-weight: 600;
}

/* Dark Mode Toggle */
.dark-toggle {
    width: 48px;
    height: 28px;
    background: var(--bg-alt);
    border: 2px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    transition: all var(--transition);
}

.dark-toggle::after {
    content: '';
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform var(--transition);
    box-shadow: 0 0 8px var(--primary-glow);
}

[data-theme="light"] .dark-toggle::after {
    transform: translateX(20px);
    background: var(--secondary);
}

/* Hamburger */
.hamburger {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 5px;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 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(6px, -6px);
}

/* ========== SIDEBAR ========== */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    backdrop-filter: blur(5px);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: var(--sidebar-bg);
    z-index: 1200;
    transition: right var(--transition);
    overflow-y: auto;
    box-shadow: -5px 0 30px rgba(0,180,255,0.1);
    border-left: 1px solid var(--border);
}

[dir="rtl"] .sidebar {
    right: auto;
    left: -320px;
}

.sidebar.active {
    right: 0;
}

[dir="rtl"] .sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-header h2 {
    font-size: 1.3rem;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav .nav-item {
    padding: 0;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.5rem;
    color: var(--text);
    transition: all var(--transition);
    cursor: pointer;
}

.sidebar-nav .nav-link:hover {
    background: var(--bg-alt);
    color: var(--primary);
    border-inline-start: 3px solid var(--primary);
}

.sidebar-nav .nav-link .icon {
    margin-inline-end: 0.8rem;
}

.sidebar-nav .nav-link .toggle-icon {
    font-size: 0.8rem;
    transition: transform var(--transition);
}

.sidebar-nav .nav-link.active .toggle-icon {
    transform: rotate(90deg);
}

.sidebar-nav .sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: var(--bg-alt);
}

.sidebar-nav .sub-menu.active {
    max-height: 500px;
}

.sidebar-nav .sub-menu .sub-link {
    display: block;
    padding: 0.6rem 1.5rem 0.6rem 3rem;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: all var(--transition);
}

[dir="rtl"] .sidebar-nav .sub-menu .sub-link {
    padding: 0.6rem 3rem 0.6rem 1.5rem;
}

.sidebar-nav .sub-menu .sub-link:hover {
    color: var(--primary);
    background: var(--bg);
}

/* ========== HERO ========== */
.hero {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow), transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,102,204,0.15), transparent 70%);
    bottom: -200px;
    left: -200px;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 2rem;
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--primary);
    text-shadow: 0 0 30px var(--primary-glow);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-inline: auto;
}

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

.btn {
    padding: 0.8rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 30px var(--primary-glow);
    transform: translateY(-3px);
}

/* ========== SECTION STYLES ========== */
.section {
    padding: 5rem 2rem;
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 0.5rem auto 0;
    border-radius: 3px;
    box-shadow: 0 0 10px var(--primary-glow);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin-inline: auto;
}

/* ========== SERVICES GRID ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(26,92,255,0.15);
}

.service-card .card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-img {
    transform: scale(1.05);
}

.service-card .card-body {
    padding: 1.5rem;
}

.service-card .card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.service-card .card-body p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.service-card .card-body .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
}

/* ========== SERVICE DETAIL PAGE ========== */
.service-detail {
    margin-top: 70px;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin-inline: auto;
}

.service-detail .service-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.service-detail .service-hero img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    animation: fadeInLeft 0.8s ease;
    transition: transform 0.5s ease;
}

.service-detail .service-hero img:hover {
    transform: scale(1.02);
}

.service-detail .service-hero .service-info {
    animation: fadeInRight 0.8s ease;
}

.service-detail .service-hero .service-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.service-detail .service-hero .service-info p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    opacity: 1;
}

.feature-box:nth-child(1) { animation-delay: 0.2s; }
.feature-box:nth-child(2) { animation-delay: 0.4s; }
.feature-box:nth-child(3) { animation-delay: 0.6s; }

.feature-box:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(26,92,255,0.15);
}

.feature-box .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.feature-box h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.feature-box p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ========== SCANNER SECTION ========== */
.scanner-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

.scanner-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.scanner-input-group {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.scanner-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    transition: all var(--transition);
}

.scanner-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.scanner-btn {
    padding: 1rem 2rem;
    white-space: nowrap;
}

.scanner-results {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.result-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition);
}

.result-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.result-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.result-card h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--primary);
}

.result-card p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ========== ABOUT PAGE ========== */
.about-page {
    margin-top: 70px;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin-inline: auto;
}

.about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-hero img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    animation: fadeInLeft 0.8s ease;
}

.about-hero .about-text {
    animation: fadeInRight 0.8s ease;
}

.about-hero .about-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-hero .about-text p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-box {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.4s ease;
    opacity: 1;
}

.stat-box:nth-child(1) { animation-delay: 0.1s; }
.stat-box:nth-child(2) { animation-delay: 0.2s; }
.stat-box:nth-child(3) { animation-delay: 0.3s; }
.stat-box:nth-child(4) { animation-delay: 0.4s; }

.stat-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.stat-box .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
}

.stat-box .label {
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* ========== CONTACT PAGE ========== */
.contact-page {
    margin-top: 70px;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin-inline: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-form {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    animation: fadeInLeft 0.8s ease;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeInRight 0.8s ease;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.4s ease;
}

.info-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: translateX(-5px);
}

[dir="rtl"] .info-card:hover {
    transform: translateX(5px);
}

.info-card .icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 0 15px var(--primary-glow);
}

.info-card h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.info-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ========== SERVICES LIST PAGE ========== */
.services-page {
    margin-top: 70px;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin-inline: auto;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem 1.5rem;
    margin-top: 2rem;
}

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

.footer-brand h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    text-shadow: 0 0 10px var(--primary-glow);
}

.footer-brand p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul li a {
    color: var(--text-light);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary-glow);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.9rem;
    max-width: 1200px;
    margin-inline: auto;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .navbar {
        padding: 0 1rem;
    }
}

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

    .nav-brand {
        font-size: 1.1rem;
    }

    .nav-logo-img {
        height: 32px;
    }

    .hero {
        margin-top: 60px;
        min-height: calc(100vh - 60px);
        padding: 2rem 1rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .section {
        padding: 3rem 1rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card .card-img {
        height: 180px;
    }

    .service-card .card-body {
        padding: 1.2rem;
    }

    .service-card .card-body h3 {
        font-size: 1.1rem;
    }

    .service-card .card-body p {
        font-size: 0.9rem;
    }

    .service-detail {
        margin-top: 60px;
        padding: 2rem 1rem;
    }

    .service-detail .service-hero {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-detail .service-hero .service-info h1 {
        font-size: 1.5rem;
    }

    .service-detail .service-hero .service-info p {
        font-size: 0.95rem;
    }

    .service-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-box {
        padding: 1.5rem;
    }

    .about-page {
        margin-top: 60px;
        padding: 2rem 1rem;
    }

    .about-hero {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-hero .about-text h1 {
        font-size: 1.5rem;
    }

    .about-hero .about-text p {
        font-size: 0.95rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-box {
        padding: 1.2rem;
    }

    .stat-box .number {
        font-size: 1.8rem;
    }

    .stat-box .label {
        font-size: 0.85rem;
    }

    .contact-page {
        margin-top: 60px;
        padding: 2rem 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.7rem 0.8rem;
        font-size: 0.95rem;
    }

    .contact-info {
        gap: 1rem;
    }

    .info-card {
        padding: 1rem;
    }

    .info-card .icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .services-page {
        margin-top: 60px;
        padding: 2rem 1rem;
    }

    .footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-brand h3 {
        font-size: 1.1rem;
    }

    .footer-brand p {
        font-size: 0.85rem;
    }

    .footer-col h4 {
        font-size: 0.95rem;
    }

    .footer-col ul li a {
        font-size: 0.85rem;
    }

    .social-links {
        gap: 0.6rem;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    .social-link svg {
        width: 18px;
        height: 18px;
    }

    .footer-bottom {
        font-size: 0.8rem;
        padding-top: 1rem;
        margin-top: 1.5rem;
    }

    .hire-float {
        bottom: 90px;
        left: 15px;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

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

    .whatsapp-float {
        bottom: 20px;
        left: 15px;
        width: 50px;
        height: 50px;
    }

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

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }

    .scanner-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .scanner-section h2 {
        font-size: 1.3rem;
    }

    .scanner-results {
        grid-template-columns: 1fr;
    }

    .cyber-research-tree {
        padding: 0 1rem;
    }

    .tree-branches {
        grid-template-columns: 1fr;
    }

    .branch-item {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .stat-box {
        padding: 1rem;
    }

    .stat-box .number {
        font-size: 1.5rem;
    }

    .stat-box .label {
        font-size: 0.8rem;
    }

    .nav-controls {
        gap: 0.4rem;
    }

    .lang-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }

    .dark-toggle {
        width: 40px;
        height: 24px;
    }

    .dark-toggle::after {
        width: 16px;
        height: 16px;
    }

    .hamburger {
        width: 36px;
        height: 36px;
    }

    .hamburger span {
        width: 20px;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .feature-box .icon {
        font-size: 2rem;
    }

    .feature-box h3 {
        font-size: 1rem;
    }

    .feature-box p {
        font-size: 0.85rem;
    }
}

/* ========== HIRE US BUTTON ========== */
.btn-hire {
    background: var(--bg-alt);
    color: var(--primary);
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hire:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

/* ========== HIRE US FLOATING ========== */
.hire-float {
    position: fixed;
    bottom: 100px;
    left: 30px;
    background: var(--bg-alt);
    color: var(--primary);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 999;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(26,92,255,0.2);
    animation: pulse 2s infinite;
}

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

.hire-float:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 6px 30px var(--primary-glow);
}

/* ========== WHATSAPP FLOATING ========== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

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

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

/* ========== SOCIAL MEDIA ========== */
.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    text-decoration: none;
}

.social-link svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.social-link.whatsapp {
    background: #25d366;
    color: #fff;
}

.social-link.facebook {
    background: #1877f2;
    color: #fff;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
}

.social-link.youtube {
    background: #ff0000;
    color: #fff;
}

.social-link.linkedin {
    background: #0077b5;
    color: #fff;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ========== FOOTER PHONE ========== */
.footer-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    direction: ltr;
}

/* ========== SERVICE CARD IMAGE HOVER ========== */
.service-card .card-img {
    transition: transform 0.5s ease;
}

.service-card:hover .card-img {
    transform: scale(1.1);
}

.service-card .card-body {
    position: relative;
    z-index: 2;
}

/* ========== SIDEBAR ICONS SVG ========== */
.sidebar-nav .nav-link .icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-nav .nav-link .icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ========== CYBER RESEARCH TREE ========== */
.cyber-research-tree {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.tree-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 2rem;
    color: var(--primary);
}

.tree-header svg {
    width: 28px;
    height: 28px;
    fill: var(--primary);
}

.tree-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.tree-branches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

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

.branch-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--primary);
    border-radius: 2px;
    transition: height 0.3s ease;
    transform: translateY(-50%);
}

.branch-item:hover::before {
    height: 60%;
}

.branch-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px var(--primary-glow);
    transform: translateY(-3px);
}

.branch-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26,92,255,0.1);
    border-radius: 10px;
    border: 1px solid rgba(26,92,255,0.2);
}

.branch-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

.branch-text p {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
}

@media (max-width: 640px) {
    .tree-branches {
        grid-template-columns: 1fr;
    }
    .tree-header h2 {
        font-size: 1.4rem;
    }
}
