:root {
    /* Color Palette - Premium Obsidian Gold, Emerald & Cyan */
    --bg-dark: #060a13;
    --bg-accent: #0d1424;
    --primary: #d4af37; /* Champagne Gold */
    --primary-light: #f3d06b;
    --primary-glow: rgba(212, 175, 55, 0.25);
    
    --secondary: #10b981; /* Emerald Green for Spiritual/Call-to-Action */
    --secondary-glow: rgba(16, 185, 129, 0.2);
    
    --tertiary: #0ea5e9; /* Sky Blue/Cyan for Tech/Bots */
    --tertiary-glow: rgba(14, 165, 233, 0.2);
    
    --text-white: #f8fafc;
    --text-light: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dark: #64748b;

    /* Glassmorphism */
    --glass-bg: rgba(13, 20, 36, 0.55);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-border-hover: rgba(212, 175, 55, 0.2);
    --glass-blur: blur(16px);

    /* Shadows & Transitions */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.05) 0px, transparent 45%),
        radial-gradient(circle at 90% 10%, rgba(16, 185, 129, 0.04) 0px, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.03) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-white);
    font-family: 'Tajawal', 'Outfit', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

[dir="rtl"] {
    font-family: 'Tajawal', 'Amiri', sans-serif;
}

.traditional-text {
    font-family: 'Amiri', serif !important;
    font-size: 1.25rem !important;
    line-height: 1.8 !important;
}

.gold-text {
    color: var(--primary);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 10;
}

/* Navbar */
.navbar {
    position: fixed !important;
    top: 25px;
    left: 0;
    width: 100%;
    z-index: 2000;
    padding: 0 1.5rem;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    top: 12px;
}

.nav-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.desktop-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 2rem;
    border-radius: 50px;
    pointer-events: auto;
    transition: var(--transition);
    width: 100%;
    max-width: 900px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}

.navbar.scrolled .desktop-nav {
    background: rgba(6, 10, 19, 0.85);
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(212, 175, 55, 0.05);
}

.nav-logo {
    font-size: 1.3rem;
    font-weight: 800;
}

.desktop-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.desktop-nav .nav-links a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 1.05rem;
    font-weight: 700;
    transition: var(--transition);
    border: 1px solid transparent;
}

.desktop-nav .nav-links a:hover {
    color: var(--bg-dark);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 8px 20px var(--primary-glow);
}

.nav-toggle-btn {
    display: none; /* Hidden by default on desktop */
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--bg-dark);
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--primary-glow);
    flex-shrink: 0;
    pointer-events: auto;
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 2005;
}

.nav-toggle-btn:hover {
    transform: rotate(15deg) scale(1.08);
    box-shadow: 0 0 25px var(--primary-glow);
}

/* Mobile Sidebar Drawer */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -320px; /* Hide on right side */
    width: 300px;
    height: 100vh;
    z-index: 3000;
    background: rgba(6, 10, 19, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: -15px 0 45px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.8rem;
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.mobile-sidebar.active {
    right: 0; /* Slide in */
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.sidebar-header .gold-text {
    font-size: 1.4rem;
}

.sidebar-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.sidebar-close-btn:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    display: block;
    transition: var(--transition);
    border: 1px solid transparent;
}

.sidebar-links a:hover {
    color: var(--bg-dark);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 5px 15px var(--primary-glow);
}

/* Sidebar Backdrop Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2990;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

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

/* Responsive Media Queries for Nav */
@media (max-width: 768px) {
    .desktop-nav {
        display: none; /* Hide horizontal nav on mobile */
    }
    
    .nav-toggle-btn {
        display: flex; /* Show mobile menu trigger */
    }
}

/* Welcome Badge */
.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-light);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.05);
    animation: badgePulse 3s infinite ease-in-out;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary); /* Emerald green dot */
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--secondary);
    animation: dotPulse 1.8s infinite ease-in-out;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 15px var(--secondary); }
}

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

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    border-radius: 24px;
    transition: var(--transition);
}

.glass:hover {
    border-color: var(--glass-border-hover);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

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

/* Header & Profile */
header {
    text-align: center;
    padding: 7rem 1rem 3rem;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 4rem;
}

.header-card {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    border-radius: 28px;
    border: 1px solid rgba(212, 175, 55, 0.12);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(212, 175, 55, 0.03);
    background: rgba(13, 20, 36, 0.45);
    transition: var(--transition);
}

.header-card:hover {
    border-color: rgba(212, 175, 55, 0.25);
    box-shadow: var(--shadow-lg), 0 0 50px rgba(212, 175, 55, 0.08);
}

.header-banner-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.header-banner {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 8s ease;
}

.header-card:hover .header-banner {
    transform: scale(1.03);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(6, 10, 19, 0) 50%, rgba(6, 10, 19, 0.85) 100%);
    border-bottom: 2px solid rgba(212, 175, 55, 0.15);
    pointer-events: none;
}

.header-profile-section {
    padding: 0 2rem 3rem;
    position: relative;
    margin-top: -80px; /* pull profile container over the banner */
    z-index: 10;
}

.profile-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 10px;
}

.profile-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed var(--primary);
    animation: rotateRing 25s linear infinite;
    box-sizing: border-box;
}

.profile-container::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    border-radius: 50%;
    border: 1px solid var(--secondary);
    animation: rotateRing 15s linear infinite reverse;
    box-sizing: border-box;
}

@keyframes rotateRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--bg-accent);
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.25);
    transition: var(--transition);
    position: relative;
    z-index: 2;
    display: block;
    background: var(--bg-accent);
}

.profile-img:hover {
    transform: scale(1.04);
    border-color: var(--primary);
    box-shadow: 0 0 45px rgba(212, 175, 55, 0.4);
}

.profile-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, var(--primary) 0%, var(--secondary) 100%);
    filter: blur(40px);
    opacity: 0.18;
    z-index: 1;
}

header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    transition: transform 0.4s ease;
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.section-title:hover {
    transform: scale(1.02);
}

header p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-weight: 500;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.social-icons a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(13, 20, 36, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 1.25rem;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.social-icons a:hover {
    transform: translateY(-6px);
    background: var(--bg-accent);
    border-color: rgba(212, 175, 55, 0.4);
    color: white;
}

/* Brand Colors on Hover */
.social-icons a:hover .fa-facebook-f {
    color: #1877F2;
}

.social-icons a:hover .fa-facebook {
    color: #1877F2;
}

.social-icons a:hover .fa-telegram-plane {
    color: #24A1DE;
}

.social-icons a:hover .fa-telegram {
    color: #24A1DE;
}

.social-icons a:hover .fa-youtube {
    color: #FF0000;
}

.social-icons a:hover .fa-github {
    color: #e6edf3;
}

.social-icons a:hover .fa-tiktok {
    color: #ffffff;
}

.social-icons a:hover .fa-x-twitter {
    color: #ffffff;
}

.social-icons a:hover .fa-twitter {
    color: #1DA1F2;
}

.social-icons a:hover .fa-instagram {
    color: #E4405F;
}

.social-icons a:hover .fa-globe {
    color: var(--primary-light);
}

.social-icons a:hover .fa-android {
    color: #A4C639;
}

/* Let's also add a nice glow effect based on brand color */
.social-icons a:hover:has(.fa-facebook-f),
.social-icons a:hover:has(.fa-facebook) {
    box-shadow: 0 10px 25px rgba(24, 119, 242, 0.35);
}

.social-icons a:hover:has(.fa-telegram-plane),
.social-icons a:hover:has(.fa-telegram) {
    box-shadow: 0 10px 25px rgba(36, 161, 222, 0.35);
}

.social-icons a:hover:has(.fa-youtube) {
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.35);
}

.social-icons a:hover:has(.fa-github) {
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
}

.social-icons a:hover:has(.fa-instagram) {
    box-shadow: 0 10px 25px rgba(228, 64, 95, 0.35);
}

/* Sections */
.section-title-container {
    margin-top: 5rem;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    display: inline-block;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

[dir="rtl"] .section-title::after {
    left: auto;
    right: 0;
}

/* Grid & Cards */
/* Grid & Cards */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.project {
    padding: 3.5rem 2rem 2rem; /* padding-top pushes content down to make room for badge */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(13, 20, 36, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.4s ease, 
                border-color 0.4s ease, 
                background-color 0.4s ease;
}

/* Category Specific Hover Interactions */
.project[data-category="project"]:hover { 
    border-color: rgba(212, 175, 55, 0.4); 
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.08); 
    background: rgba(13, 20, 36, 0.8);
}
.project[data-category="app"]:hover { 
    border-color: rgba(16, 185, 129, 0.4); 
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.08); 
    background: rgba(13, 20, 36, 0.8);
}
.project[data-category="bot"]:hover { 
    border-color: rgba(14, 165, 233, 0.4); 
    box-shadow: 0 15px 35px rgba(14, 165, 233, 0.08); 
    background: rgba(13, 20, 36, 0.8);
}
.project[data-category="blog"]:hover { 
    border-color: rgba(168, 85, 247, 0.4); 
    box-shadow: 0 15px 35px rgba(168, 85, 247, 0.08); 
    background: rgba(13, 20, 36, 0.8);
}

.project-img {
    width: 130px;
    height: 130px;
    border-radius: 22px;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.project:hover .project-img {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.project h3 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-white);
    line-height: 1.4;
}

.project p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.8rem;
    flex-grow: 1;
}

/* Buttons */
.download-btn {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--primary), #b39228);
    color: var(--bg-dark);
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    transition: none;
    animation: buttonShine 4s infinite ease-in-out;
}

@keyframes buttonShine {
    0% { left: -60%; }
    30% { left: 140%; }
    100% { left: 140%; }
}

.download-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
    filter: brightness(1.08);
}

/* Q&A Accordion */
.qa-container {
    max-width: 800px;
    margin: 2.5rem auto;
}

.qa {
    margin-bottom: 1.2rem;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(13, 20, 36, 0.35);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.qa:hover {
    border-color: rgba(212, 175, 55, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.question {
    width: 100%;
    padding: 1.4rem 1.8rem;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    font-family: inherit;
    text-align: right;
}

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

.question:hover {
    color: var(--primary-light);
    background: rgba(212, 175, 55, 0.03);
}

.question::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: var(--transition);
    color: var(--primary);
    font-size: 1.1rem;
}

.question.active {
    color: var(--primary);
    background: rgba(212, 175, 55, 0.05);
}

.question.active::after {
    transform: rotate(180deg);
    color: var(--primary-light);
}

.panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(6, 10, 19, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.panel .text {
    padding: 1.8rem 2.2rem;
    line-height: 1.8;
    color: var(--text-light);
}

.panel p {
    margin-bottom: 1.2rem;
}

.panel ul {
    margin-right: 1.5rem;
    margin-bottom: 1.2rem;
}

.panel li {
    margin-bottom: 0.6rem;
}

/* Custom styling for inline red text to make it readable & premium on dark bg */
.panel span[style*="color: #ef4444"],
.panel span[style*="color:#ef4444"],
.panel strong[style*="color: #ef4444"] {
    color: #f87171 !important;
    font-weight: 700;
}

/* Floating WhatsApp Button */
#floatingWhatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25d366; /* WhatsApp Green */
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
    transition: var(--transition);
    z-index: 1000;
    text-decoration: none;
}

#floatingWhatsapp:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

/* Scroll To Top Button */
#scrollTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 54px;
    height: 54px;
    background: rgba(13, 20, 36, 0.7);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

#scrollTop.active {
    opacity: 1;
    visibility: visible;
}

#scrollTop:hover {
    transform: translateY(-5px);
    background: var(--bg-accent);
    color: var(--text-white);
    border-color: var(--primary);
    box-shadow: 0 8px 25px var(--primary-glow);
}

/* Footer Styling */
footer {
    padding: 5rem 1rem 3rem;
    margin-top: 6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(to top, rgba(6, 10, 19, 0.95), transparent);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    text-align: right;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after,
.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.about-section p {
    color: var(--text-muted);
    line-height: 1.8;
}

.links-section ul {
    list-style: none;
    padding: 0;
}

.links-section li {
    margin-bottom: 0.8rem;
}

.links-section a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.links-section a i {
    font-size: 0.8rem;
    color: var(--primary);
    transition: var(--transition);
}

.links-section a:hover {
    color: var(--primary);
    transform: translateX(-5px);
}

.links-section a:hover i {
    transform: translateX(-3px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .nav-toggle-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .nav-horizontal-links a {
        font-size: 0.95rem;
        padding: 0.6rem 1rem;
    }

    .nav-menu-wrapper {
        padding: 0.2rem;
    }

    header {
        padding: 6rem 0rem 3.5rem;
    }

    .header-banner-wrapper {
        height: auto;
    }
    
    .header-profile-section {
        margin-top: -50px;
        padding: 0 1.2rem 2.5rem;
    }

    .profile-img {
        width: 120px;
        height: 120px;
        border-width: 4px;
    }

    .profile-background {
        width: 140px;
        height: 140px;
        filter: blur(30px);
    }

    header h1 {
        font-size: 2rem;
        margin-top: 0.3rem;
    }

    header p {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section h3::after,
    .footer-section h4::after {
        right: 50%;
        transform: translateX(50%);
    }

    .links-section a {
        justify-content: center;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .app-grid {
        grid-template-columns: 1fr;
    }

    #floatingWhatsapp {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
        bottom: 20px;
        left: 20px;
    }

    #scrollTop {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 20px;
        right: 20px;
    }
}

/* Glowing background blobs */
.glowing-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    z-index: -1;
    pointer-events: none;
    transition: transform 12s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.blob-1 {
    width: 450px;
    height: 450px;
    background: var(--primary);
    top: -10%;
    left: -10%;
}
.blob-2 {
    width: 550px;
    height: 550px;
    background: var(--secondary);
    bottom: -10%;
    right: -10%;
}
.blob-3 {
    width: 350px;
    height: 350px;
    background: #a855f7; /* Purple accent */
    top: 45%;
    left: 55%;
}

/* Search & Filter Container */
.search-filter-container {
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    align-items: center;
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: var(--shadow-md), inset 0 0 20px rgba(212, 175, 55, 0.02);
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.search-box input {
    width: 100%;
    padding: 1.1rem 3rem 1.1rem 1.5rem;
    background: rgba(6, 10, 19, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 500;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

[dir="rtl"] .search-box input {
    padding: 1.1rem 3.5rem 1.1rem 1.5rem;
}

.search-box input:focus {
    background: rgba(6, 10, 19, 0.85);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.search-icon {
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.25rem;
    pointer-events: none;
    transition: var(--transition);
}

.search-box input:focus ~ .search-icon {
    color: var(--primary-light);
    transform: translateY(-50%) scale(1.1);
}

[dir="rtl"] .search-icon {
    right: 1.5rem;
    left: auto;
}

#clearSearch {
    position: absolute;
    top: 50%;
    left: 1.2rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: none;
    align-items: center;
    justify-content: center;
}

#clearSearch:hover {
    color: var(--secondary);
    background: rgba(255, 255, 255, 0.08);
}

[dir="rtl"] #clearSearch {
    left: 1.2rem;
    right: auto;
}

.filter-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.65rem 1.4rem;
    background: rgba(13, 20, 36, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.filter-btn:hover {
    color: var(--text-light);
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.05);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--bg-dark);
    border-color: transparent;
    box-shadow: 0 8px 20px var(--primary-glow);
}

/* Badges inside cards */
.project-badge {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

[dir="rtl"] .project-badge {
    right: auto;
    left: 1.5rem; /* left side in RTL */
}

.badge-project {
    background: rgba(212, 175, 55, 0.15);
    color: #e5c158;
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.badge-app {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-bot {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.35);
}

.badge-blog {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.35);
}

/* Support Credentials Cards */
.support-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    margin: 1.5rem 0;
    direction: rtl;
}

.support-card {
    background: rgba(6, 10, 19, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    transition: var(--transition);
    text-align: right;
}

.support-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.05);
    transform: translateY(-3px);
    background: rgba(13, 20, 36, 0.5);
}

.support-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.support-card h5 i {
    font-size: 1rem;
}

.support-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

.support-card strong {
    color: var(--text-white);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.25);
    border-radius: 5px;
    border: 2px solid var(--bg-dark);
    transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Active Nav Links Style */
.desktop-nav .nav-links a.active {
    color: var(--bg-dark) !important;
    background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
    border-color: transparent !important;
    box-shadow: 0 8px 20px var(--primary-glow) !important;
}

.sidebar-links a.active {
    color: var(--bg-dark) !important;
    background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
    border-color: transparent !important;
    box-shadow: 0 5px 15px var(--primary-glow) !important;
}