:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --accent: #06b6d4;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-500: #64748b;
    --gray-700: #334155;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #f8fafc;
    background-image: 
        radial-gradient(ellipse 90% 60% at 50% -10%, rgba(37, 99, 235, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 90% 25%, rgba(6, 182, 212, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 10% 55%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 45%),
        radial-gradient(rgba(37, 99, 235, 0.085) 1.2px, transparent 1.2px),
        linear-gradient(to right, rgba(37, 99, 235, 0.018) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(37, 99, 235, 0.018) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 28px 28px, 112px 112px, 112px 112px;
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: -12vw;
    right: -10vw;
    width: 48vw;
    height: 48vw;
    max-width: 650px;
    max-height: 650px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.14) 0%, rgba(6, 182, 212, 0.06) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(70px);
    z-index: -1;
    pointer-events: none;
    animation: pulseGlowTop 16s infinite alternate ease-in-out;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10vw;
    left: -10vw;
    width: 45vw;
    height: 45vw;
    max-width: 600px;
    max-height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.13) 0%, rgba(37, 99, 235, 0.05) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(70px);
    z-index: -1;
    pointer-events: none;
    animation: pulseGlowBottom 20s infinite alternate-reverse ease-in-out;
}

@keyframes pulseGlowTop {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translate(3vw, 2vw) scale(1.1);
        opacity: 0.95;
    }
    100% {
        transform: translate(-2vw, 3vw) scale(0.95);
        opacity: 0.75;
    }
}

@keyframes pulseGlowBottom {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translate(-2vw, -2vw) scale(1.08);
        opacity: 0.9;
    }
    100% {
        transform: translate(3vw, -1vw) scale(0.95);
        opacity: 0.75;
    }
}

[dir="rtl"] body {
    font-family: 'Cairo', 'Inter', sans-serif;
}

[dir="rtl"] .ms-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

[dir="rtl"] .me-2,
[dir="rtl"] .me-3 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* NAVBAR */
#mainNav {
    padding: 1rem 0;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
}

#mainNav.scrolled {
    padding: 0.7rem 0;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark) !important;
    text-decoration: none;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.brand-text .accent {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--gray-700) !important;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after {
    width: 60%;
}

.lang-selector {
    display: flex;
    background: var(--gray-100);
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}

.lang-btn {
    border: none;
    background: transparent;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-500);
}

.lang-btn.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* HERO */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: transparent;
    padding-top: 80px;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-bg-animation::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(6, 182, 212, 0.08) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    animation: float 20s infinite ease-in-out;
}

.hero-bg-animation::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.14) 0%, rgba(37, 99, 235, 0.06) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--gray-500);
    margin-bottom: 2rem;
    max-width: 600px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}

.hero-visual {
    animation: fadeInRight 1s ease 0.5s both;
}

.code-window {
    background: #0b1120;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(37, 99, 235, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.25);
    position: relative;
}

.code-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.8), transparent);
}

.window-header {
    background: var(--dark-2);
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f57;
}

.dot.yellow {
    background: #febc01;
}

.dot.green {
    background: #28c840;
}

.file-name {
    margin-left: auto;
    color: var(--gray-500);
    font-size: 0.8rem;
    font-family: monospace;
}

.code-content {
    padding: 1.5rem;
    overflow-x: auto;
}

.code-content pre {
    margin: 0;
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
}

.keyword {
    color: #c792ea;
}

.class-name {
    color: #82aaff;
}

.function-name {
    color: #82aaff;
}

.string {
    color: #c3e88d;
}

.param {
    color: #f78c6c;
}

.comment {
    color: #546e7a;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--gray-500);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* SECTIONS */
.section-padding {
    padding: 6.5rem 0;
    position: relative;
}

#services {
    position: relative;
}

#services::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 65%;
    height: 65%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, rgba(6, 182, 212, 0.03) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

#apropos {
    position: relative;
}

#apropos::before {
    content: '';
    position: absolute;
    top: 30%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* SERVICE CARDS */
.service-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient-1);
    color: white;
    transform: rotate(-5deg) scale(1.1);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

.service-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* PORTFOLIO */
.bg-light {
    background: linear-gradient(180deg, rgba(238, 242, 255, 0.5) 0%, rgba(224, 242, 254, 0.38) 50%, rgba(241, 245, 249, 0.55) 100%) !important;
    position: relative;
}

.portfolio-filter-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.portfolio-filters {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.4rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.filter-btn {
    border: none;
    background: transparent;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    color: var(--primary);
    background: var(--gray-100);
}

.filter-btn.active {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.portfolio-item {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.portfolio-item.filtered-out {
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
}

.portfolio-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(15, 23, 42, 0.04);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(226, 232, 240, 0.85);
    position: relative;
}

.portfolio-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.16);
    border-color: rgba(37, 99, 235, 0.35);
}

.portfolio-img {
    height: 190px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portfolio-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

.portfolio-badge-pill {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--dark);
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
    letter-spacing: 0.2px;
}

[dir="rtl"] .portfolio-badge-pill {
    right: auto;
    left: 14px;
}

.portfolio-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3.5rem;
    opacity: 0.88;
    transition: var(--transition);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
    transform: scale(1.1) rotate(2deg);
}

.portfolio-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.portfolio-category {
    display: inline-block;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    width: fit-content;
}

.portfolio-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    color: var(--dark);
}

.portfolio-content p {
    color: var(--gray-500);
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 1.1rem;
    flex-grow: 1;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.2rem;
}

.portfolio-tech span {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0.22rem 0.6rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-tech span {
    border-color: rgba(37, 99, 235, 0.2);
    background: rgba(37, 99, 235, 0.03);
}

.portfolio-footer {
    padding-top: 0.9rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.portfolio-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.74rem;
    font-weight: 600;
    color: #059669;
}

.portfolio-status::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.portfolio-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.portfolio-cta-btn:hover {
    color: var(--primary-dark);
    transform: translateX(3px);
}

[dir="rtl"] .portfolio-cta-btn:hover {
    transform: translateX(-3px);
}

[dir="rtl"] .portfolio-cta-btn i {
    transform: rotate(180deg);
}

/* ABOUT */
.about-content {
    padding-right: 2rem;
}

[dir="rtl"] .about-content {
    padding-right: 0;
    padding-left: 2rem;
}

.about-text {
    color: var(--gray-500);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.about-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.feature-item h4 {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.feature-item p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin: 0;
}

.tech-stack {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05);
}

.tech-title {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-align: center;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: default;
}

.tech-item:hover {
    background: rgba(37, 99, 235, 0.06);
    transform: translateY(-3px);
}

.tech-item i {
    font-size: 2rem;
    color: var(--primary);
}

.tech-item span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
}

/* CONTACT */
.contact-wrapper {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.85);
}

.contact-info {
    background: var(--gradient-1);
    color: white;
    padding: 3rem 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.contact-info>p {
    opacity: 0.9;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.info-item i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-label {
    display: block;
    opacity: 0.7;
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

.info-item a,
.info-item span {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.info-item a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 2rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
}

.contact-form-wrapper {
    padding: 3rem 2.5rem;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--gray-100);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: var(--white);
}

/* BUTTONS */
.btn {
    border-radius: 10px;
    padding: 0.75rem 1.8rem;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--gradient-1);
    border: none;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
    background: var(--gradient-1);
    color: white;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* FOOTER */
.footer {
    background: #090e1a;
    color: var(--gray-300);
    padding: 5rem 0 2rem;
    position: relative;
    border-top: 1px solid rgba(37, 99, 235, 0.25);
    background-image: 
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(37, 99, 235, 0.16), transparent 70%),
        radial-gradient(rgba(255, 255, 255, 0.05) 1.2px, transparent 1.2px);
    background-size: 100% 100%, 28px 28px;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2563eb 30%, #06b6d4 70%, transparent);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.6);
}

.footer .navbar-brand {
    margin-bottom: 1rem;
}

.footer .brand-text {
    color: white;
}

.footer-brand p {
    color: var(--gray-500);
    font-size: 0.95rem;
    max-width: 300px;
}

.footer h5 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--gray-500);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer .social-links {
    margin-top: 1rem;
}

.footer .social-links a {
    background: var(--dark-2);
    color: var(--gray-300);
}

.footer .social-links a:hover {
    background: var(--primary);
    color: white;
}

.footer-divider {
    border-color: var(--dark-2);
    margin: 2rem 0 1.5rem;
}

.footer-bottom {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* MODAL */
.modal-content {
    border-radius: var(--radius-lg);
    border: none;
}

.success-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1rem;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.modal-body h3 {
    margin-bottom: 0.5rem;
}

.modal-body p {
    color: var(--gray-500);
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .section-padding {
        padding: 4rem 0;
    }

    .about-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    [dir="rtl"] .about-content {
        padding-left: 0;
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .navbar-collapse {
        background: white;
        margin-top: 1rem;
        padding: 1.5rem;
        border-radius: var(--radius);
        box-shadow: var(--shadow-md);
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding-top: 100px;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .tech-item {
        padding: 0.7rem;
    }

    .tech-item i {
        font-size: 1.5rem;
    }

    .contact-info {
        padding: 2rem 1.5rem;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .service-card,
    .portfolio-content {
        padding: 1.5rem;
    }
}

@media (max-width: 575px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* CURSOR AMBIENT GLOW */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, rgba(37, 99, 235, 0.04) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease;
    opacity: 0;
    filter: blur(20px);
}