/* ===== BRAND IDENTITY: Ecom AI Solution Expert 🇩🇿 (Premium & Deep) ===== */
/* Colors: Deeper premium blues for a more professional, less bright look */
/* Fonts: Cairo (headings) | Amiri (body) | Noto Sans Arabic (CTA) */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&family=Amiri:wght@400;700&family=Noto+Sans+Arabic:wght@300;400;600;700&display=swap');

:root {
    /* Balanced premium sapphire — professional, bright, and easy on the eye */
    --brand-blue: #0F2952;
    /* Lighter than before: rich sapphire instead of near-black */
    --brand-blue-mid: #1A408F;
    /* NEW mid-point for gradient depth */
    --brand-blue-light: #2853B8;
    /* Brighter blue for vibrancy */
    --brand-orange: #F06215;
    /* Slightly warmer orange for better contrast on lighter bg */
    --brand-white: #F8FAFC;
    --brand-body: #E8EDF5;
    /* Very slightly warmer for comfort */

    --glass-bg: rgba(20, 55, 120, 0.35);
    /* Slightly brighter glass */
    --glass-border: rgba(255, 255, 255, 0.15);
    --gradient: linear-gradient(150deg, #0F2952 0%, #1A408F 50%, #2853B8 100%);

    --radius: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--gradient);
    background-attachment: fixed;
    color: var(--brand-body);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cairo', sans-serif;
    font-weight: 900;
    color: var(--brand-white);
    letter-spacing: -0.02em;
}

p,
li {
    font-family: 'Amiri', sans-serif;
    color: var(--brand-body);
    line-height: 1.8;
}

.text-cta {
    font-family: 'Noto Sans Arabic', sans-serif;
    font-weight: 600;
    color: var(--brand-orange);
}

.accent {
    color: var(--brand-orange);
}

/* ===== GLASSMORPHISM PANELS ===== */
.glass-panel {
    background: rgba(15, 41, 82, 0.82);
    /* lighter nav panel */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.glass-card {
    background: rgba(20, 55, 120, 0.38);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.glass-card:hover {
    background: rgba(40, 83, 184, 0.35);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.glass-white {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 60px -12px rgba(10, 25, 60, 0.35);
}

/* ===== NAVIGATION ===== */
nav.glass-panel {
    position: fixed;
    width: 100%;
    z-index: 50;
    top: 0;
}

.nav-link {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--brand-orange);
    transition: width 0.3s ease, transform 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--brand-white);
}

.nav-link:hover::after,
.nav-link-active::after {
    width: 100%;
}

.nav-link-active {
    color: var(--brand-white) !important;
}

.nav-contact {
    font-family: 'Noto Sans Arabic', sans-serif;
    font-weight: 600;
    background: var(--brand-orange);
    color: white;
    padding: 0.6rem 1.8rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(232, 93, 4, 0.3);
}

.nav-contact:hover {
    background: #FF7A1F;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 93, 4, 0.5);
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
}

.hero-blob {
    position: absolute;
    width: 750px;
    height: 750px;
    background: radial-gradient(circle, rgba(40, 83, 184, 0.55) 0%, rgba(15, 41, 82, 0.2) 60%, transparent 80%);
    border-radius: 50%;
    filter: blur(55px);
    animation: pulseBlob 10s infinite ease-in-out alternate;
    top: -20%;
    right: -10%;
    z-index: 0;
}

/* Second accent blob for depth */
.hero-blob::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(240, 98, 21, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    bottom: -10%;
    left: 20%;
}

@keyframes pulseBlob {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.12) translate(-50px, 50px);
        opacity: 0.9;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1.3rem;
    background: rgba(40, 83, 184, 0.35);
    border: 1px solid rgba(150, 200, 255, 0.25);
    border-radius: 9999px;
    font-family: 'Noto Sans Arabic', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #BAD8FF;
    letter-spacing: 0.03em;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* ===== BUTTONS ===== */
.btn-primary {
    font-family: 'Noto Sans Arabic', sans-serif;
    font-weight: 700;
    background: var(--brand-orange);
    color: white;
    padding: 1rem 2.2rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(232, 93, 4, 0.4);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.05rem;
}

.btn-primary:hover {
    background: #FF7A1F;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(232, 93, 4, 0.5);
}

.btn-secondary {
    font-family: 'Noto Sans Arabic', sans-serif;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding: 1rem 2.2rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.05rem;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

/* ===== SECTION LAYOUT ===== */
.section {
    padding: 7rem 0;
    position: relative;
    z-index: 10;
}

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

.section-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 900;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: var(--brand-white);
    text-align: center;
    margin-bottom: 1.2rem;
}

.section-subtitle {
    font-family: 'Amiri', sans-serif;
    font-size: 1.15rem;
    color: rgba(226, 232, 240, 0.9);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
    line-height: 1.9;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--brand-orange);
    border-radius: 2px;
    margin: 1.5rem auto 2.5rem;
    box-shadow: 0 0 10px rgba(232, 93, 4, 0.5);
}

/* ===== SERVICE CARDS ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-card {
    padding: 3rem;
    cursor: default;
    display: flex;
    flex-direction: column;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: rgba(147, 197, 253, 0.1);
    border: 1px solid rgba(147, 197, 253, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #93C5FD;
    margin-bottom: 1.75rem;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: rgba(232, 93, 4, 0.15);
    border-color: rgba(232, 93, 4, 0.4);
    color: var(--brand-orange);
    transform: translateY(-5px);
}

.service-card h3 {
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--brand-white);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.service-card p {
    font-family: 'Amiri', sans-serif;
    color: rgba(226, 232, 240, 0.8);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ===== CONTACT / BOOKING SECTION ===== */
.contact-container {
    padding: 1rem;
}

.booking-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    color: #0A192F;
    margin-bottom: 1rem;
}

.booking-subtitle {
    color: #475569;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.booking-btn {
    font-family: 'Noto Sans Arabic', sans-serif;
    font-weight: 700;
    background: #0A192F;
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(10, 25, 47, 0.3);
    width: 100%;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.booking-btn:hover {
    background: #1E3A8A;
    box-shadow: 0 15px 30px rgba(30, 58, 138, 0.4);
    transform: translateY(-3px);
}

/* ===== FORM STYLES ===== */
.form-label {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #334155;
    display: block;
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    font-family: 'Cairo', sans-serif;
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 2px solid #E2E8F0;
    outline: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #F8FAFC;
    color: #0F172A;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #1E3A8A;
    background: white;
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}

.form-textarea {
    resize: none;
    height: 120px;
}

.form-submit {
    font-family: 'Noto Sans Arabic', sans-serif;
    font-weight: 700;
    background: var(--brand-orange);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(232, 93, 4, 0.3);
}

.form-submit:hover {
    background: #FF7A1F;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(232, 93, 4, 0.45);
}

/* ===== HERO PROFILE CARD ===== */
.hero-profile-card {
    padding: 3rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-profile-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.05), 0 20px 40px rgba(0, 0, 0, 0.4);
    margin-bottom: 2rem;
    transition: transform 0.5s ease;
}

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

.hero-profile-card h3 {
    margin-bottom: 0.5rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    justify-content: center;
}

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

.hero-stat .num {
    font-family: 'Cairo', sans-serif;
    font-weight: 900;
    font-size: 2.2rem;
    color: #93C5FD;
    display: block;
    line-height: 1.2;
}

.hero-stat .label {
    font-family: 'Amiri', sans-serif;
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.7);
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(180deg, #0c1f40 0%, #071325 100%);
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

footer h3 {
    font-family: 'Cairo', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 0.75rem;
}

footer p {
    color: rgba(226, 232, 240, 0.6);
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    font-family: 'Noto Sans Arabic', sans-serif;
    color: rgba(226, 232, 240, 0.8);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 600;
    font-size: 1.05rem;
}

.footer-links a:hover {
    color: var(--brand-orange);
}

footer .copyright {
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.4);
    font-family: 'Noto Sans Arabic', sans-serif;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    width: 64px;
    height: 64px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
    z-index: 100;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0;
    z-index: 200;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 25, 47, 0.98);
    backdrop-filter: blur(24px);
    z-index: 150;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-nav.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav a {
    font-family: 'Cairo', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}

.mobile-nav a:hover {
    color: var(--brand-orange);
    transform: scale(1.05);
}

.mobile-nav .mobile-contact-btn {
    padding: 1rem 3rem;
    background-color: var(--brand-orange);
    color: white !important;
    border-radius: 9999px;
    box-shadow: 0 10px 25px rgba(232, 93, 4, 0.4);
}

.mobile-nav select {
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    outline: none;
}

.mobile-nav select option {
    color: #0A192F;
    background: white;
}

/* ===== LANG SELECT NAV ===== */
#lang-switch {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

#lang-switch:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

#lang-switch option {
    color: #0A192F;
    background: white;
}

/* ===== FORM MESSAGE ===== */
#form-message {
    display: none;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
}

#form-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #059669;
}

#form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #DC2626;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .desktop-nav {
        display: none !important;
    }

    .hamburger {
        display: flex;
    }

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

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 25px;
        right: 20px;
    }

    .hero-section .container>div:first-child {
        text-align: center;
    }

    .hero-section .flex-wrap {
        justify-content: center;
    }

    .hero-profile-card {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 640px) {
    .hero-stats {
        gap: 1.5rem;
    }

    .section {
        padding: 5rem 0;
    }
}

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

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

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

/* Tailwind Utilities needed for layout */
.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-12 {
    margin-top: 3rem;
}

.pt-24 {
    padding-top: 6rem;
}

.pb-24 {
    padding-bottom: 6rem;
}

.max-w-7xl {
    max-width: 80rem;
}

.max-w-5xl {
    max-width: 64rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.hidden {
    display: none;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.inline-flex {
    display: inline-flex;
}

.text-lg {
    font-size: 1.125rem;
}

.opacity-90 {
    opacity: 0.9;
}

.ml-2 {
    margin-left: 0.5rem;
}

@media (min-width: 640px) {
    .sm\:w-auto {
        width: auto;
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:p-12 {
        padding: 3rem;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lg\:block {
        display: block;
    }
}

/* ===================================================
   PORTFOLIO CAROUSEL
   =================================================== */
.portfolio-section {
    background: transparent;
}

/* Outer wrapper — handles the arrows + viewport together */
.portfolio-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

/* Arrow buttons */
.carousel-arrow {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 41, 82, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, transform 0.25s, opacity 0.25s;
    z-index: 5;
    position: relative;
}

.carousel-arrow:hover {
    background: rgba(240, 98, 21, 0.55);
    border-color: rgba(240, 98, 21, 0.5);
    transform: scale(1.1);
}

.carousel-arrow:disabled,
.carousel-arrow.hidden-arrow {
    opacity: 0;
    pointer-events: none;
}

/* Viewport — clips the track */
.portfolio-viewport {
    overflow: hidden;
    width: 100%;
    /* generous padding so scaled active card doesn't clip */
    padding: 1.5rem 0.5rem;
}

/* The sliding track */
.portfolio-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Individual card */
.portfolio-card {
    /* show ~1 card on mobile, ~2 on tablet, ~3 on desktop */
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 0;
    background: rgba(20, 55, 120, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, opacity 0.4s ease;
    position: relative;
    opacity: 0.65;
}

@media (max-width: 1024px) {
    .portfolio-card {
        flex: 0 0 calc(50% - 0.75rem);
    }
}

@media (max-width: 640px) {
    .portfolio-card {
        flex: 0 0 calc(100% - 0.5rem);
    }
}

/* Active (center-ish) card highlight */
.portfolio-card.active-card {
    transform: scale(1.03);
    box-shadow: 0 28px 60px -12px rgba(0, 0, 0, 0.55), 0 0 0 1.5px rgba(147, 197, 253, 0.35);
    border-color: rgba(147, 197, 253, 0.35);
    opacity: 1;
}

.portfolio-card:hover {
    opacity: 1;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.45);
    border-color: rgba(147, 197, 253, 0.25);
}

.portfolio-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.3);
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-card-thumb {
    transform: scale(1.04);
}

.portfolio-card-thumb-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(40, 83, 184, 0.6) 0%, rgba(15, 41, 82, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-card-thumb-placeholder svg {
    width: 48px;
    height: 48px;
    color: rgba(147, 197, 253, 0.4);
}

.portfolio-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.portfolio-card-body h3 {
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--brand-white);
    margin-bottom: 0.45rem;
    line-height: 1.4;
}

.portfolio-card-body p {
    font-family: 'Amiri', sans-serif;
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.7);
    line-height: 1.6;
    margin-bottom: 0.9rem;
}

.portfolio-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.portfolio-tag {
    font-family: 'Noto Sans Arabic', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.18rem 0.7rem;
    border-radius: 9999px;
    background: rgba(147, 197, 253, 0.12);
    border: 1px solid rgba(147, 197, 253, 0.25);
    color: #93C5FD;
}

.portfolio-card-img-count {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    border-radius: 9999px;
    padding: 0.2rem 0.65rem;
    font-family: 'Cairo', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Carousel dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.75rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
}

.carousel-dot.active {
    background: var(--brand-orange, #f06215);
    transform: scale(1.35);
}



/* ===================================================
   PORTFOLIO MODAL SLIDER
   =================================================== */
.portfolio-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 15, 40, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.portfolio-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.portfolio-modal-box {
    background: rgba(15, 41, 82, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    width: 100%;
    max-width: 780px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-modal-overlay.open .portfolio-modal-box {
    transform: scale(1) translateY(0);
}

/* Scrollbar style for modal */
.portfolio-modal-box::-webkit-scrollbar {
    width: 5px;
}

.portfolio-modal-box::-webkit-scrollbar-track {
    background: transparent;
}

.portfolio-modal-box::-webkit-scrollbar-thumb {
    background: rgba(147, 197, 253, 0.2);
    border-radius: 10px;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(240, 98, 21, 0.3);
    border-color: rgba(240, 98, 21, 0.5);
    transform: rotate(90deg);
}

/* Image wrapper */
.modal-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 2rem 2rem 0 0;
    background: rgba(10, 25, 60, 0.6);
}

.modal-images-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.4);
    user-select: none;
    -webkit-user-drag: none;
}

.modal-slide-placeholder {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(40, 83, 184, 0.5), rgba(15, 41, 82, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(147, 197, 253, 0.35);
}

/* Nav buttons */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.modal-nav-btn:hover {
    background: rgba(240, 98, 21, 0.55);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 0.75rem;
}

.modal-next {
    right: 0.75rem;
}

.modal-nav-btn.hidden-btn {
    display: none;
}

/* Dots */
.modal-dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.9rem 0 0.25rem;
}

.modal-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.modal-dot.active {
    background: var(--brand-orange);
    transform: scale(1.3);
}

/* Modal info area */
.modal-info {
    padding: 1.5rem 2rem 2rem;
}

.modal-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 900;
    font-size: 1.45rem;
    color: var(--brand-white);
    margin-bottom: 0.6rem;
    line-height: 1.35;
}

.modal-desc {
    font-family: 'Amiri', sans-serif;
    font-size: 1rem;
    color: rgba(226, 232, 240, 0.75);
    line-height: 1.75;
    margin-bottom: 1.2rem;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}