/* ==========================================================================
   AWWWARDS LUXURY EFFECTS, TYPOGRAPHY & SLIDE SPECIFIC STYLES
   ========================================================================== */

/* Custom Magnetic Cursor */
.custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.25s ease, height 0.25s ease, background-color 0.25s ease;
    mix-blend-mode: exclusion;
}

.custom-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 38px;
    height: 38px;
    border: 1.5px solid rgba(0, 240, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.18s cubic-bezier(0.25, 1, 0.5, 1), width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(1px);
}

.custom-cursor-ring.cursor-active {
    width: 65px;
    height: 65px;
    border-color: var(--accent-gold);
    background: rgba(229, 184, 105, 0.08);
}

.custom-cursor-dot.cursor-active {
    width: 14px;
    height: 14px;
    background-color: var(--accent-gold);
}

/* Typography & Hero Badges */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.15rem;
    border-radius: 999px;
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(8px);
    width: fit-content;
}

.badge-pill i {
    font-size: 0.9rem;
}

.display-title {
    font-size: clamp(1.8rem, 2.9vw, 2.6rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.25rem;
    color: #fff;
    letter-spacing: 0;
}

.gradient-text-cyan {
    background: none;
    color: inherit;
    -webkit-text-fill-color: currentColor;
    display: inline;
}

html[dir="rtl"] .gradient-text-cyan {
    text-shadow: none;
}

.gradient-text-gold {
    background: linear-gradient(120deg, #ffffff 20%, var(--accent-gold) 70%, #ff9e00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.hero-description {
    font-size: clamp(1rem, 1.25vw, 1.12rem);
    color: var(--text-secondary);
    max-width: 620px;
    line-height: 1.85;
    margin-bottom: 1.75rem;
}

/* ==========================================================================
   SLIDE 01: HERO SECTION
   ========================================================================== */
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
}

/* Hero is intentionally the largest heading; section headings use the scale above. */
.hero-text-side .display-title {
    font-size: clamp(1.65rem, 2.4vw, 2.25rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.35rem;
    white-space: nowrap;
}

/* Keep the contact message concise and balanced within its half-width layout. */
.contact-info-side .display-title {
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    white-space: nowrap;
}

.hero-stats-row {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: clamp(1.85rem, 2.5vw, 2.15rem);
    font-weight: 800;
    font-family: var(--font-en-display);
    color: #fff;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 0.35rem;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.btn-primary-glow {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 2.2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #00f0ff, #8b5cf6);
    color: #05070c;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.4);
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    overflow: hidden;
}

.btn-primary-glow:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.65);
    color: #000;
}

.btn-primary-glow i {
    transition: transform 0.3s ease;
}

.btn-primary-glow:hover i {
    transform: translateX(4px);
}

html[dir="rtl"] .btn-primary-glow:hover i {
    transform: translateX(-4px);
}

/* 3D Showcase Card on Slide 1 */
.hero-visual-card {
    position: relative;
    width: 100%;
    max-width: 340px;
    aspect-ratio: 4/4.8;
    margin: 0 auto;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(20, 25, 40, 0.7) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6),
                inset 0 0 40px rgba(0, 240, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.65rem;
    transform-style: preserve-3d;
    transition: transform 0.4s ease-out, box-shadow 0.4s ease;
}

.hero-visual-card:hover {
    box-shadow: 0 40px 80px rgba(0, 240, 255, 0.2),
                inset 0 0 50px rgba(0, 240, 255, 0.1);
}

.hero-logo-center {
    position: relative;
    z-index: 2;
    width: 140px;
    height: auto;
    filter: drop-shadow(0 0 24px rgba(0, 240, 255, 0.42));
    transform: translateZ(50px);
    transition: transform 0.5s var(--ease-elastic);
}

.hero-visual-card:hover .hero-logo-center {
    transform: translateZ(70px) scale(1.05);
}

.floating-pill {
    position: absolute;
    padding: 0.48rem 0.9rem;
    border-radius: 999px;
    background: rgba(7, 8, 11, 0.72);
    border: 1px solid var(--accent-cyan);
    backdrop-filter: blur(12px);
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--accent-cyan);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 18px rgba(0, 240, 255, 0.14);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    transform: translateZ(35px);
    animation: floatAnim 4s ease-in-out infinite alternate;
}

.floating-pill.pill-1 {
    top: 3%;
    left: 50%;
    min-width: max-content;
    animation-name: floatCenter;
    animation-delay: 0s;
}

.floating-pill.pill-2 {
    top: 25%;
    left: -25%;
    animation-delay: 1.5s;
}

.floating-pill.pill-3 {
    top: 25%;
    right: -25%;
    animation-delay: 2.5s;
}

.floating-pill.pill-4 {
    top: 50%;
    left: -25%;
    animation-delay: 1s;
}

.floating-pill.pill-5 {
    top: 50%;
    right: -25%;
    animation-delay: 2s;
}

.floating-pill.pill-6 {
    top: 75%;
    left: -25%;
    animation-delay: 0.7s;
}

.floating-pill.pill-7 {
    top: 75%;
    right: -25%;
    animation-delay: 2.1s;
}

@keyframes floatAnim {
    0% { transform: translateZ(35px) translateY(0); }
    100% { transform: translateZ(45px) translateY(-10px); }
}

@keyframes floatCenter {
    0% { transform: translateX(-50%) translateZ(35px) translateY(0); }
    100% { transform: translateX(-50%) translateZ(45px) translateY(-10px); }
}

/* ==========================================================================
   SLIDE 02: SERVICES SECTION
   ========================================================================== */
.section-header-compact {
    text-align: center;
    margin-bottom: 1.75rem;
}

.section-header-compact .display-title {
    font-size: clamp(1.6rem, 2.15vw, 2rem);
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.section-header-compact .hero-description {
    font-size: 0.95rem;
    margin-bottom: 0.5rem !important;
}

.services-grid-awwwards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.service-glass-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 1.2rem 1.25rem;
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
    isolation: isolate;
}

.service-glass-card--featured {
    border-color: rgba(229, 184, 105, 0.24);
    background: linear-gradient(145deg, rgba(229, 184, 105, 0.09), var(--bg-card));
}

.service-icon-wrap--gold,
.service-glass-card--featured .service-features-list li i {
    color: var(--accent-gold);
    border-color: rgba(229, 184, 105, 0.3);
}

.service-glass-card--featured:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 15px 35px rgba(229, 184, 105, 0.15);
}

.service-glass-card--consulting {
    border-color: rgba(0, 240, 255, 0.28);
    background: linear-gradient(145deg, rgba(0, 240, 255, 0.09), var(--bg-card));
}

.service-icon-wrap--consulting,
.service-glass-card--consulting .service-features-list li i {
    color: var(--accent-cyan);
    border-color: rgba(0, 240, 255, 0.32);
}

.service-glass-card--consulting:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 15px 35px rgba(0, 240, 255, 0.15);
}

.service-glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(145deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.service-glass-card::after,
.project-card::after,
.contact-quick-item::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(180px circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(0, 240, 255, 0.13), transparent 72%);
    transition: opacity 0.3s ease;
}

.service-glass-card:hover::after,
.project-card:hover::after,
.contact-quick-item:hover::after {
    opacity: 1;
}

.service-glass-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0, 240, 255, 0.12);
}

.service-glass-card--featured:hover {
    background: linear-gradient(145deg, rgba(229, 184, 105, 0.15), var(--bg-card-hover));
    border-color: var(--accent-gold);
    box-shadow: 0 15px 35px rgba(229, 184, 105, 0.18);
}

.service-glass-card--featured:hover .service-icon-wrap--gold {
    color: var(--accent-gold);
    background: rgba(229, 184, 105, 0.14);
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(229, 184, 105, 0.35);
}

.service-glass-card--events {
    border-color: rgba(139, 92, 246, 0.24);
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.1), var(--bg-card));
}

.service-icon-wrap--purple,
.service-glass-card--events .service-features-list li i {
    color: var(--accent-purple);
    border-color: rgba(139, 92, 246, 0.3);
}

.service-glass-card--events:hover {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.16), var(--bg-card-hover));
    border-color: var(--accent-purple);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.18);
}

.service-glass-card--events:hover .service-icon-wrap--purple {
    color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.14);
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.35);
}

.service-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.service-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--accent-cyan);
    transition: var(--transition-smooth);
}

.service-glass-card:hover .service-icon-wrap {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    transform: scale(1.08) rotate(4deg);
}

.service-index {
    font-family: var(--font-en-display);
    font-size: 0.95rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.25);
}

.service-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.service-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.65rem;
}

.service-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: auto;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.service-features-list li {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.service-features-list li i {
    color: var(--accent-cyan);
    font-size: 0.65rem;
}

/* ==========================================================================
   SLIDE 03: PORTFOLIO / SELECTED WORKS
   ========================================================================== */
.portfolio-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    gap: 2rem;
}

.portfolio-filter-pills {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-cyan);
    color: #000;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
}

.projects-awwwards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    width: 100%;
}

.portfolio-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
}

.portfolio-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 1.3rem;
    border: 1px solid rgba(0, 240, 255, 0.35);
    border-radius: 999px;
    background: rgba(0, 240, 255, 0.08);
    color: var(--accent-cyan);
    font: 700 0.88rem var(--font-ar);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.portfolio-more-btn:hover {
    background: var(--accent-cyan);
    color: #061016;
    box-shadow: 0 0 22px rgba(0, 240, 255, 0.28);
    transform: translateY(-2px);
}

html[dir="ltr"] .portfolio-more-btn {
    font-family: var(--font-en-body);
}

/* English has a separate, editorial type scale so it does not inherit Arabic line lengths. */
html[dir="ltr"] .display-title {
    font-family: var(--font-en-display);
    font-size: clamp(1.8rem, 2.8vw, 2.7rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0;
}

html[dir="ltr"] .hero-text-side .display-title {
    font-size: clamp(2.1rem, 3.35vw, 3.15rem);
    line-height: 1.04;
    white-space: normal;
}

html[dir="ltr"] .contact-info-side .display-title {
    font-size: clamp(1.8rem, 2.55vw, 2.5rem);
    white-space: normal;
}

html[dir="ltr"] .section-header-compact .display-title {
    font-size: clamp(1.7rem, 2.25vw, 2.2rem);
}

html[dir="ltr"] .hero-description {
    max-width: 580px;
    font-size: clamp(0.95rem, 1.05vw, 1.08rem);
    line-height: 1.72;
}

html[dir="ltr"] .service-title,
html[dir="ltr"] .project-title,
html[dir="ltr"] .quick-meta h4 {
    font-family: var(--font-en-display);
    font-weight: 700;
    letter-spacing: 0;
}

html[dir="ltr"] .service-desc,
html[dir="ltr"] .service-features-list li,
html[dir="ltr"] .project-sub {
    line-height: 1.55;
}

.project-card {
    position: relative;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    isolation: isolate;
    transition: var(--transition-smooth);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(229, 184, 105, 0.5);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7),
                0 0 30px rgba(229, 184, 105, 0.15);
}

.btn-primary-glow::after,
.portfolio-more-btn::after {
    content: '';
    position: absolute;
    top: -120%;
    left: -35%;
    width: 28%;
    height: 340%;
    background: rgba(255, 255, 255, 0.32);
    transform: rotate(24deg) translateX(-380%);
    transition: transform 0.65s ease;
}

.btn-primary-glow:hover::after,
.portfolio-more-btn:hover::after {
    transform: rotate(24deg) translateX(720%);
}

.btn-primary-glow:active,
.glass-btn:active,
.filter-btn:active,
.chip-btn:active,
.portfolio-more-btn:active,
.contact-quick-item:active {
    transform: scale(0.97);
}

/* Click feedback shared by buttons and cards. */
.btn-primary-glow,
.glass-btn,
.service-glass-card,
.project-card,
.contact-quick-item,
.chip-btn,
.filter-btn,
.nav-bullet,
.portfolio-more-btn {
    position: relative;
    overflow: hidden;
}

.interaction-ripple {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    z-index: 4;
    animation: interactionRipple 0.65s ease-out forwards;
}

.slide-item.active .display-title,
.slide-item.active .badge-pill {
    animation: titleReveal 0.7s 0.08s both var(--ease-awwwards);
}

@keyframes interactionRipple {
    to { transform: translate(-50%, -50%) scale(24); opacity: 0; }
}

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

.project-thumb-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background-color: #121520;
}

.project-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-awwwards);
}

.project-card:hover .project-thumb-img {
    transform: scale(1.08);
}

.project-badge-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: rgba(10, 12, 18, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-gold);
}

html[dir="rtl"] .project-badge-tag {
    right: auto;
    left: 1rem;
}

.project-info-box {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-title i {
    font-size: 0.95rem;
    color: var(--accent-cyan);
    transition: transform 0.3s ease;
}

.project-card:hover .project-title i {
    transform: translate(3px, -3px);
}

.project-sub {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   SLIDE 04: CONTACT & COLLABORATION
   ========================================================================== */
.contact-layout-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3.5rem;
    align-items: center;
}

.contact-direct-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-quick-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.1rem 1.5rem;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
}

.contact-quick-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-cyan);
    transform: translateX(6px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
}

html[dir="rtl"] .contact-quick-item:hover {
    transform: translateX(-6px);
}

.contact-quick-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.icon-whatsapp {
    background: rgba(37, 211, 102, 0.12);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.icon-email {
    background: rgba(0, 240, 255, 0.12);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.icon-insta {
    background: rgba(225, 48, 108, 0.12);
    color: #e1306c;
    border: 1px solid rgba(225, 48, 108, 0.3);
}

.icon-snapchat {
    background: rgba(255, 252, 0, 0.12);
    color: #fffc00;
    border: 1px solid rgba(255, 252, 0, 0.35);
}

.icon-location {
    background: rgba(229, 184, 105, 0.12);
    color: var(--accent-gold);
    border: 1px solid rgba(229, 184, 105, 0.3);
}

.quick-meta h4 {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.15rem;
}

.quick-meta p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* Contact Interactive Terminal Form */
.terminal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 2.2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

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

.terminal-dots {
    display: flex;
    gap: 0.4rem;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background-color: #ff5f56; }
.dot-yellow { background-color: #ffbd2e; }
.dot-green { background-color: #27c93f; }

.terminal-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    font-family: var(--font-en-display);
}

.service-selector-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.chip-btn {
    padding: 0.4rem 0.95rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.chip-btn.selected {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.form-inputs-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.custom-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 0.85rem 1.15rem;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition-smooth);
}

.custom-input:focus {
    border-color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.03);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

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

textarea.custom-input {
    resize: none;
    min-height: 85px;
}

.whatsapp-dispatch-btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.95rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    transition: var(--transition-smooth);
}

.whatsapp-dispatch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
}

/* ==========================================================================
   MODAL PREVIEW FOR PROJECTS
   ========================================================================== */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(5, 7, 12, 0.88);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.project-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content-box {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    background: #0d101a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.4s var(--ease-elastic);
}

.project-modal.active .modal-content-box {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

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

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Responsive Overrides */
@media (max-width: 1200px) {
    .services-grid-awwwards {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-glass-card {
        min-height: 245px;
    }
    .service-glass-card--events {
        grid-column: auto;
    }
    .projects-awwwards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .hero-stats-row {
        justify-content: center;
    }
    .hero-cta-group {
        justify-content: center;
    }
    .badge-pill {
        margin: 0 auto 1.25rem auto;
    }
    .hero-visual-card {
        max-width: 290px;
    }
    .contact-layout-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .portfolio-header-wrap {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .projects-awwwards-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: 58vh;
        overflow-y: auto;
        padding-inline-end: 0.4rem;
    }
}

@media (max-width: 640px) {
    .services-grid-awwwards {
        grid-template-columns: 1fr;
        max-height: 60vh;
        overflow-y: auto;
    }
    .projects-awwwards-grid {
        grid-template-columns: 1fr;
        max-height: 60vh;
        overflow-y: auto;
    }
    .display-title {
        font-size: 1.7rem;
        line-height: 1.35;
    }
    .hero-text-side .display-title {
        font-size: clamp(1.75rem, 8vw, 2.1rem);
        line-height: 1.25;
        white-space: normal;
    }
    .contact-info-side .display-title {
        white-space: normal;
    }
    .section-header-compact {
        margin-bottom: 1.25rem;
    }
    .service-glass-card {
        min-height: auto;
        padding: 1rem;
    }
    .hero-stats-row {
        gap: 1.25rem;
    }
    .stat-number {
        font-size: 1.7rem;
    }
    .floating-pill {
        display: none;
    }
    .hero-visual-card {
        max-width: 230px;
        padding: 1.25rem;
    }
    .hero-logo-center {
        width: 115px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 640px) {
    html[dir="ltr"] .display-title,
    html[dir="ltr"] .hero-text-side .display-title,
    html[dir="ltr"] .contact-info-side .display-title {
        font-size: clamp(1.75rem, 8vw, 2.15rem);
        line-height: 1.08;
    }
}

/* Mobile slides use one scroll area, with reachable navigation and safe edges. */
@media (max-width: 1024px) {
    .slider-main,
    .slide-item {
        min-height: 0;
        width: 100%;
    }

    .slider-main { height: 100vh; height: 100dvh; }

    .site-header {
        padding: calc(0.75rem + env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 0.75rem max(1rem, env(safe-area-inset-left));
        background: rgba(7, 8, 11, 0.9);
    }

    .uae-clock { display: none; }
    .bottom-clock { display: none; }
    .header-actions { gap: 0.5rem; flex-shrink: 0; }
    .brand-logo-wrap, .brand-meta { min-width: 0; }
    .header-actions .glass-btn { min-height: 44px; justify-content: center; }
    .theme-toggle-btn { width: 44px; height: 44px; }
    .language-toggle-btn { width: 44px; height: 44px; }

    .slide-item {
        padding: calc(6rem + env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) calc(8.5rem + env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
        overflow-y: visible;
        overflow-x: hidden;
    }

    .slide-content-wrapper {
        height: auto;
        min-height: 100%;
        margin-block: auto;
        flex-shrink: 0;
    }
    .slide-item { align-items: flex-start; }
    .hero-grid, .contact-layout-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .hero-grid > *, .contact-layout-grid > *, .quick-meta { min-width: 0; }
    .hero-text-side .display-title, .contact-info-side .display-title { white-space: normal; }
    .hero-description { margin-inline: auto; }
    .hero-cta-group { flex-wrap: wrap; }
    .projects-awwwards-grid, .services-grid-awwwards {
        max-height: none;
        overflow: visible;
        padding-inline-end: 0;
    }
    .projects-awwwards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portfolio-header-wrap { flex-direction: column; align-items: stretch; gap: 1rem; }
    .portfolio-filter-pills { justify-content: center; }
    .filter-btn, .chip-btn { min-height: 44px; }
    .quick-meta { overflow-wrap: anywhere; }
    .custom-input { font-size: 16px; }

    .bottom-bar {
        left: 1rem;
        right: 1rem;
        bottom: calc(4.5rem + env(safe-area-inset-bottom));
        align-items: center;
        justify-content: center;
    }
    .scroll-indicator { display: none; }
    .social-pills-bar { justify-content: center; gap: 0.5rem; }
    .social-pills-bar a { min-height: 44px; background-color: rgba(7, 8, 11, 0.95); }
    .project-modal { padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left)); }
    .modal-content-box { max-height: 90vh; max-height: 90dvh; padding: 4.5rem 1.25rem 1.25rem; overscroll-behavior: contain; }
    .modal-close-btn { width: 44px; height: 44px; }
}

@media (max-width: 640px) {
    .brand-name { font-size: 0.85rem; }
    .brand-logo-wrap .logo-img { height: 32px; }
    .header-actions .glass-btn { padding-inline: 0.6rem; }
    .projects-awwwards-grid, .services-grid-awwwards { grid-template-columns: minmax(0, 1fr); }
    .hero-stats-row { gap: 0.75rem; justify-content: space-between; }
    .stat-box { flex: 1; min-width: 0; }
    .hero-cta-group > * { width: 100%; justify-content: center; }
    .terminal-card { padding: 1.25rem; }
    .terminal-header { gap: 0.75rem; }
    .terminal-title { overflow-wrap: anywhere; min-width: 0; }
    .contact-quick-item { padding: 1rem; gap: 0.75rem; }
    .social-pills-bar a { padding: 0.5rem; font-size: 0.7rem; gap: 0.35rem; }
}

/* Keyboard visibility, readable controls, and motion preferences. */
:root { --text-muted: #9aa9bd; }
html, body { user-select: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #00f0ff; outline-offset: 4px; }
.slide-item:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: -3px; }
.skip-link { position: fixed; top: 0.5rem; inset-inline-start: 1rem; z-index: 1000; padding: 0.75rem 1rem; background: #fff; color: #07080b; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.nav-bullet { min-width: 44px; min-height: 44px; }
.nav-bullet .bullet-number { opacity: 1; }
.custom-input, .filter-btn, .chip-btn, .glass-btn { border-color: #64748b; }
.whatsapp-dispatch-btn { background: #087440; }
.service-index { color: var(--text-muted); }
.form-inputs-group label { font-size: 0.9rem; color: var(--text-primary); }
.slide-item { overflow: visible; scroll-padding-block: 6rem; }
.slide-content-wrapper { height: auto; min-height: 100%; flex-shrink: 0; }
.slide-item { align-items: flex-start; }
@media (max-width: 1024px) {
    .slide-item { scroll-padding-bottom: calc(9rem + env(safe-area-inset-bottom)); }
}
.effects-paused *, .effects-paused *::before, .effects-paused *::after { animation: none !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
.effects-paused #bg-canvas, .effects-paused .custom-cursor-dot, .effects-paused .custom-cursor-ring { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0s !important; }
    #bg-canvas, .custom-cursor-dot, .custom-cursor-ring { visibility: hidden; }
}
@media (max-width: 380px) {
    .brand-name { max-width: 75px; font-size: 0.75rem; }
    .header-actions { gap: 0.25rem; }
    .brand-logo-wrap { gap: 0.3rem; }
    .header-actions .glass-btn { padding-inline: 0.45rem; }
}
