﻿/* ===================================================
   Ultra-Premium Portfolio Design System
   =================================================== */
:root {
    --bg-dark: #050811;
    --bg-surface: #0a0f1d;
    --bg-card: rgba(13, 19, 36, 0.72);
    --bg-card-hover: rgba(20, 29, 54, 0.85);

    --text-main: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-cyan: #38bdf8;
    --accent-blue: #2563eb;
    --accent-indigo: #6366f1;
    --accent-purple: #a855f7;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;

    --gradient-primary: linear-gradient(135deg, #38bdf8 0%, #6366f1 50%, #a855f7 100%);
    --gradient-glow: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(99, 102, 241, 0.35));

    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(56, 189, 248, 0.4);
    --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 35px rgba(56, 189, 248, 0.25);

    --font-ar: 'Cairo', system-ui, -apple-system, sans-serif;
    --font-en: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --radius-pill: 9999px;
}

/* ===================================================
   Reset & Global Setup
   =================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

html[lang="ar"], html[dir="rtl"] {
    font-family: var(--font-ar);
}

html[lang="en"], html[dir="ltr"] {
    font-family: var(--font-en);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* RTL Flip utilities */
html[dir="rtl"] .rtl-flip {
    transform: scaleX(1);
}
html[dir="ltr"] .rtl-flip {
    transform: scaleX(-1);
}

/* ===================================================
   Ambient Glow & Grid Background
   =================================================== */
.ambient-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.32;
    animation: pulseFloat 18s infinite ease-in-out alternate;
    will-change: transform;
}

.orb-top-left {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #38bdf8, #2563eb);
    top: -10%;
    left: -5%;
}

.orb-top-right {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #a855f7, #ec4899);
    top: 15%;
    right: -10%;
    animation-delay: -5s;
}

.orb-center {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #6366f1, #06b6d4);
    top: 50%;
    left: 20%;
    animation-delay: -10s;
}

.orb-bottom {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #10b981, #3b82f6);
    bottom: -10%;
    right: 20%;
    animation-delay: -15s;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

@keyframes pulseFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -40px) scale(1.08); }
    100% { transform: translate(-30px, 30px) scale(0.95); }
}

/* ===================================================
   Glassmorphic Design Core
   =================================================== */
.glass-panel {
    background: rgba(10, 15, 29, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s ease, 
                box-shadow 0.4s ease, 
                background 0.4s ease;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glass-hover);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), var(--shadow-glow);
    background: var(--bg-card-hover);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ===================================================
   Header & Navbar
   =================================================== */
.header-nav {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 0 5%;
    pointer-events: none;
}

.navbar {
    pointer-events: auto;
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: -0.5px;
}

.logo-symbol {
    color: var(--accent-cyan);
    font-weight: 900;
    font-size: 1.2rem;
}

.logo-accent {
    color: var(--accent-cyan);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.96rem;
    transition: color 0.3s ease;
    padding: 6px 0;
    position: relative;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-main);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item:hover::after, .nav-item.active::after {
    width: 80%;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lang-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border: 1px solid var(--border-glass);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-switch-btn:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-glow-sm {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(56, 189, 248, 0.4);
    transition: all 0.3s ease;
}

.btn-glow-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(56, 189, 248, 0.6);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
}

.mobile-menu-btn .bar {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Drawer */
.mobile-drawer {
    display: none;
    position: fixed;
    top: 85px;
    left: 5%;
    right: 5%;
    background: rgba(10, 15, 29, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 24px;
    z-index: 999;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.mobile-drawer.open {
    display: block;
    animation: drawerPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes drawerPop {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

.mob-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 8px;
    display: block;
}

/* ===================================================
   Hero Section
   =================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 5% 60px;
    text-align: center;
    position: relative;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 28px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-emerald);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.hero-headline {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.sub-headline {
    font-size: 1.95rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 760px;
    margin: 0 auto 36px;
    line-height: 1.8;
}

.hero-description strong {
    color: var(--accent-cyan);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn-primary-glow, .btn-secondary-glass {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 34px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.btn-primary-glow {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 8px 30px rgba(56, 189, 248, 0.4);
    border: none;
}

.btn-primary-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(56, 189, 248, 0.6);
}

.btn-secondary-glass {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-glass);
}

.btn-secondary-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 780px;
    margin: 0 auto;
}

.stat-item {
    padding: 22px 18px;
    text-align: center;
}

.stat-number {
    font-size: 2.3rem;
    font-weight: 900;
    color: var(--accent-cyan);
    margin-bottom: 4px;
    line-height: 1.1;
}

.stat-title {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ===================================================
   Sections Common Structure
   =================================================== */
.section-container {
    padding: 100px 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.section-heading {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 50px;
}

.heading-tag {
    display: inline-block;
    color: var(--accent-cyan);
    font-weight: 700;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.heading-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 16px;
}

.heading-subtitle {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.7;
}

/* ===================================================
   Projects Showcase & Controls
   =================================================== */
.projects-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    margin-top: 36px;
}

.search-box {
    width: 100%;
    max-width: 580px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
}

.search-box i {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    width: 100%;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

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

.tab-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.tab-count {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
}

.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
}

.tab-btn.active .tab-count {
    background: rgba(0, 0, 0, 0.25);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
}

.project-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .card-glow {
    opacity: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.app-icon-container {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.app-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .app-icon {
    transform: scale(1.08);
}

.card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.category-pill {
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
}

.pill-app {
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent-cyan);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.pill-pos {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.pill-game {
    background: rgba(168, 85, 247, 0.12);
    color: var(--accent-purple);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.pill-heritage {
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-amber);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.pill-p2p {
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent-indigo);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.pill-action {
    background: rgba(236, 72, 153, 0.12);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.platform-icons {
    display: flex;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.card-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 18px;
    flex-grow: 1;
}

.card-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 22px;
}

.card-features li {
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-features i {
    color: var(--accent-emerald);
    font-size: 0.8rem;
}

.card-footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--border-glass);
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-pills span {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--accent-cyan);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
}

.btn-card-action {
    background: transparent;
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--accent-cyan);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.btn-card-action:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

/* ===================================================
   Skills Bento Grid
   =================================================== */
.skills-bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.bento-box {
    padding: 34px;
}

.box-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 1.6rem;
    margin-bottom: 22px;
}

.bento-box h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.bento-box p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    margin-bottom: 22px;
    line-height: 1.7;
}

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

.skill-tags span {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.bento-box:hover .skill-tags span {
    border-color: rgba(56, 189, 248, 0.25);
    background: rgba(56, 189, 248, 0.06);
}

/* ===================================================
   Standards Grid
   =================================================== */
.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.standard-card {
    padding: 28px;
}

.standard-icon {
    font-size: 1.8rem;
    color: var(--accent-cyan);
    margin-bottom: 16px;
}

.standard-card h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.standard-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ===================================================
   Contact Section
   =================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    padding: 50px;
}

.contact-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin: 12px 0 16px;
    line-height: 1.25;
}

.contact-sub {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
}

.channel-item i {
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

.ch-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.ch-value {
    display: block;
    font-weight: 700;
    color: var(--text-main);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-group select option {
    background: #0d1324;
    color: #fff;
}

.btn-submit-glow {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 25px rgba(56, 189, 248, 0.4);
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(56, 189, 248, 0.6);
}

/* ===================================================
   Modal for Detailed View
   =================================================== */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.active {
    display: flex;
    animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-container {
    max-width: 750px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

html[dir="rtl"] .modal-close-btn {
    right: auto;
    left: 20px;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent-cyan);
}

/* Modal Content Styles */
.modal-header-section {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
}

.modal-app-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.modal-title-group h3 {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.modal-section-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-cyan);
    margin: 20px 0 10px;
}

.modal-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.modal-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.modal-features-list i {
    color: var(--accent-emerald);
    margin-top: 4px;
}

/* Toast */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(16, 185, 129, 0.95);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 14px 24px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 3000;
}

html[dir="rtl"] .toast-notification {
    right: auto;
    left: 30px;
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* ===================================================
   Footer
   =================================================== */
.main-footer {
    border-top: 1px solid var(--border-glass);
    padding: 40px 5%;
    background: rgba(6, 9, 17, 0.95);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-top: 6px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.1);
    transform: translateY(-3px);
}

/* ===================================================
   Animations & Responsive Breakpoints
   =================================================== */
.animate-fade {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .nav-links, .btn-glow-sm {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .hero-headline {
        font-size: 2.8rem;
    }
    .sub-headline {
        font-size: 1.5rem;
    }
    .hero-stats {
        grid-template-columns: 1fr;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .heading-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .hero-actions {
        flex-direction: column;
    }
    .btn-primary-glow, .btn-secondary-glass {
        width: 100%;
        justify-content: center;
    }
}