/* ═══════════════════════════════════════════════════════════
   AHMED ASHRAF PORTFOLIO v2.0 — ULTRA PREMIUM CSS
   Theme: Dark Teal + Lime | Arabic First | World-Class Design
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;900&family=Outfit:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300&display=swap');

/* ═══ DESIGN TOKENS ═══ */
:root {
    --bg: #021a1e;
    --bg-2: #031f23;
    --bg-card: #051e22;
    --bg-card-2: #071f24;

    --primary: #a3cf2b;
    --primary-dim: rgba(163, 207, 43, 0.15);
    --primary-glow: rgba(163, 207, 43, 0.3);

    --teal: #00897b;
    --teal-dim: rgba(0, 137, 123, 0.15);
    --teal-glow: rgba(0, 137, 123, 0.3);

    --text: #f1f5f9;
    --text-2: #94a3b8;
    --text-3: #475569;

    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(163, 207, 43, 0.3);

    --glass: rgba(255, 255, 255, 0.025);
    --glass-2: rgba(255, 255, 255, 0.05);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(163, 207, 43, 0.15);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --font-ar: 'Cairo', 'Tajawal', sans-serif;
    --font-en: 'Outfit', 'Inter', sans-serif;

    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);

    --nav-h: 72px;
    --section-pad: 120px;
}

/* Light mode overrides */
body.light-mode {
    --bg: #f8fafc;
    --bg-2: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-2: #f8fafc;
    --text: #0f172a;
    --text-2: #475569;
    --text-3: #94a3b8;
    --border: rgba(0, 0, 0, 0.08);
    --glass: rgba(0, 0, 0, 0.02);
    --glass-2: rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.12);
}

/* ═══ RESET & BASE ═══ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-ar);
    direction: rtl;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.4s ease, color 0.4s ease;
}

body.ltr {
    direction: ltr;
    font-family: var(--font-en);
}

h1,
h2,
h3,
h4,
h5 {
    color: var(--text);
    line-height: 1.2;
    font-weight: 800;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input,
textarea,
select {
    font-family: inherit;
}

ul {
    list-style: none;
}

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* ═══ SELECTION ═══ */
::selection {
    background: var(--primary);
    color: #021a1e;
}

/* ═══ CONTAINER ═══ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══ CUSTOM CURSOR ═══ */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    transform: translate(-50%, -50%);
}

.cursor-ring {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(163, 207, 43, 0.6);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
    transform: translate(-50%, -50%);
}

.cursor-ring.hovered {
    width: 60px;
    height: 60px;
    border-color: var(--primary);
    background: rgba(163, 207, 43, 0.05);
}

@media (max-width: 768px) {

    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}

/* ═══ LOADING SCREEN ═══ */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.loader-logo {
    font-family: var(--font-en);
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary);
    animation: logoPulse 1.5s ease-in-out infinite;
}

@keyframes logoPulse {

    0%,
    100% {
        text-shadow: 0 0 20px var(--primary-glow);
        transform: scale(1);
    }

    50% {
        text-shadow: 0 0 60px var(--primary-glow);
        transform: scale(1.05);
    }
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.loader-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--teal), var(--primary));
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
}

.loader-text {
    font-size: 0.85rem;
    color: var(--text-2);
    letter-spacing: 2px;
}

/* ═══ NAVIGATION ═══ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
    background: rgba(2, 26, 30, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border);
}

body.light-mode .nav.scrolled {
    background: rgba(248, 250, 252, 0.85);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav-logo {
    font-family: var(--font-en);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-a {
    color: var(--text);
}

.logo-dot {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-2);
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s var(--ease-expo);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    color: var(--text-2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.85rem;
    transition: all 0.25s ease;
    background: var(--glass);
}

.icon-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-dim);
}

.nav-cta {
    padding: 10px 22px;
    background: var(--primary);
    color: #021a1e;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-cta:hover {
    background: #b8e030;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--primary-glow);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    padding: 4px;
}

.hamburger span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0;
    background: rgba(2, 26, 30, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-expo);
}

body.light-mode .mobile-menu {
    background: rgba(248, 250, 252, 0.98);
}

.mobile-menu.open {
    display: flex;
    max-height: 400px;
}

.mob-link {
    padding: 16px 24px;
    font-weight: 600;
    color: var(--text-2);
    border-bottom: 1px solid var(--border);
    transition: color 0.3s ease, padding 0.3s ease;
}

.mob-link:hover {
    color: var(--primary);
    padding-right: 32px;
}

body.ltr .mob-link:hover {
    padding-left: 32px;
    padding-right: 24px;
}

/* ═══ BUTTONS ═══ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--primary);
    color: #021a1e;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px var(--primary-glow);
    background: #b8e030;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: transparent;
    color: var(--text);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-dim);
    transform: translateY(-2px);
}

.magnetic-btn {
    position: relative;
}

/* ═══ SECTION SHARED STYLES ═══ */
.section {
    padding: var(--section-pad) 0;
    position: relative;
}

.section-dark {
    background: var(--bg-2);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-dim);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: 20px;
    border: 1px solid rgba(163, 207, 43, 0.2);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-2);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ═══ REVEAL ANIMATIONS ═══ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-expo), transform 0.8s var(--ease-expo);
}

.reveal[data-delay="0"] {
    transition-delay: 0s;
}

.reveal[data-delay="1"] {
    transition-delay: 0.1s;
}

.reveal[data-delay="2"] {
    transition-delay: 0.2s;
}

.reveal[data-delay="3"] {
    transition-delay: 0.3s;
}

.reveal[data-delay="4"] {
    transition-delay: 0.4s;
}

.reveal[data-delay="5"] {
    transition-delay: 0.5s;
}

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

/* ═══════════════════════════════════
   HERO SECTION
═══════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 0 clamp(24px, 5vw, 100px);
    padding-top: var(--nav-h);
    position: relative;
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: var(--glass-2);
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--text-2);
    font-size: 0.85rem;
    width: fit-content;
    backdrop-filter: blur(8px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
    }

    50% {
        box-shadow: 0 0 18px rgba(34, 197, 94, 1);
    }
}

/* Hero Title */
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
}

.title-line {
    display: block;
}

.title-accent {
    color: var(--primary);
    position: relative;
    width: fit-content;
}

.title-accent::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--teal));
    border-radius: 2px;
    animation: underlineGrow 0.6s var(--ease-expo) forwards;
}

@keyframes underlineGrow {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.hero-desc {
    color: var(--text-2);
    font-size: 1.05rem;
    max-width: 480px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Stats */
.hero-stats {
    display: flex;
    gap: 32px;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-num {
    font-family: var(--font-en);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-plus {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 800;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-2);
    white-space: nowrap;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-card {
    position: relative;
    width: 380px;
    height: 480px;
    cursor: default;
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
}

.card-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at center, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.95);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.profile-wrapper {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
    position: relative;
    z-index: 1;
}

.profile-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            transparent 50%,
            rgba(2, 26, 30, 0.8) 100%);
    z-index: 2;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Float Badges */
.float-badge {
    position: absolute;
    z-index: 10;
    background: rgba(2, 26, 30, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    box-shadow: var(--shadow-md);
    animation: floatAnim 3s ease-in-out infinite;
}

body.light-mode .float-badge {
    background: rgba(248, 250, 252, 0.95);
}

.float-badge i {
    color: var(--primary);
}

.badge-top-right {
    top: 20px;
    right: -20px;
    animation-delay: 0s;
}

.badge-bottom-left {
    bottom: 60px;
    left: -20px;
    animation-delay: 1.5s;
}

@keyframes floatAnim {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Tech Pills */
.tech-pill {
    position: absolute;
    z-index: 10;
    background: var(--primary);
    color: #021a1e;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-en);
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 16px var(--primary-glow);
}

.pill-1 {
    top: 50%;
    right: -30px;
    animation: floatAnim 4s ease-in-out infinite;
    animation-delay: 0.5s;
}

.pill-2 {
    top: 25%;
    left: -40px;
    animation: floatAnim 3.5s ease-in-out infinite;
    animation-delay: 1s;
}

.pill-3 {
    bottom: 30%;
    right: -35px;
    animation: floatAnim 5s ease-in-out infinite;
    animation-delay: 0.2s;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-2);
    font-size: 0.75rem;
    animation: fadeInUp 1s ease 2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--border);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(12px);
        opacity: 0;
    }
}

/* ═══════════════════════════════════
   MARQUEE STRIP
═══════════════════════════════════ */
.marquee-section {
    overflow: hidden;
    background: var(--primary);
    padding: 16px 0;
    border-top: 1px solid rgba(163, 207, 43, 0.3);
    border-bottom: 1px solid rgba(163, 207, 43, 0.3);
}

.marquee-track {
    display: flex;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    gap: 0;
    white-space: nowrap;
    animation: marqueeScroll 25s linear infinite;
    flex-shrink: 0;
}

.marquee-content span {
    color: #021a1e;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 0 24px;
}

@keyframes marqueeScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ═══════════════════════════════════
   BENTO GRID — ABOUT
═══════════════════════════════════ */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto auto;
    gap: 20px;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--primary-dim), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.bento-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.bento-card:hover::before {
    opacity: 1;
}

/* Bio card: spans 7 of 12 columns */
.bento-bio {
    grid-column: span 7;
}

.bento-inner {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.bio-avatar {
    position: relative;
    flex-shrink: 0;
}

.bio-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
}

.avatar-ring {
    position: absolute;
    inset: -6px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.bio-text h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.bio-role {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.bio-desc {
    color: var(--text-2);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.bio-location {
    color: var(--text-2);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bio-location i {
    color: var(--primary);
}

/* Specialty card: spans 5 */
.bento-specialty {
    grid-column: span 5;
}

.specialty-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-3);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.specialty-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    color: var(--text-2);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: default;
    transition: all 0.3s ease;
}

.spec-item i {
    width: 20px;
    text-align: center;
    color: var(--text-3);
    transition: color 0.3s ease;
}

.spec-item.active,
.spec-item:hover {
    background: var(--primary-dim);
    border-color: rgba(163, 207, 43, 0.2);
    color: var(--text);
}

.spec-item.active i,
.spec-item:hover i {
    color: var(--primary);
}

/* Stats card: spans 4 */
.bento-stats {
    grid-column: span 4;
}

.big-stat {
    font-family: var(--font-en);
    font-size: 5rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
}

.big-label {
    color: var(--text-2);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.mini-stats {
    display: flex;
    gap: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.mini-stats div {
    font-family: var(--font-en);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.mini-stats em {
    font-style: normal;
    font-size: 0.75rem;
    color: var(--text-2);
    font-family: var(--font-ar);
    margin-right: 4px;
}

/* Tools card: spans 5 */
.bento-tools {
    grid-column: span 5;
}

.bento-tools h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-2);
    font-weight: 600;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tool-badge {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-2);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    background: var(--glass);
}

.tool-badge i {
    color: var(--primary);
}

.tool-badge:hover {
    border-color: var(--primary);
    color: var(--text);
    background: var(--primary-dim);
    transform: translateY(-2px);
}

/* Quote card: spans 3 */
.bento-quote {
    grid-column: span 3;
    background: var(--primary-dim);
    border-color: rgba(163, 207, 43, 0.15);
}

.quote-mark {
    font-size: 4rem;
    color: var(--primary);
    line-height: 1;
    font-family: serif;
    opacity: 0.4;
    margin-bottom: -16px;
}

.quote-text {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 16px;
}

.quote-author {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
}

/* Timeline card: spans 4 */
.bento-timeline {
    grid-column: span 4;
}

.bento-timeline h4 {
    font-size: 1rem;
    margin-bottom: 24px;
    color: var(--text-2);
    font-weight: 600;
}

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

.t-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.t-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    border: 2px solid var(--bg);
    flex-shrink: 0;
    margin-top: 4px;
    transition: background 0.3s ease;
}

.t-dot.active {
    background: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

.t-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.t-content strong {
    font-family: var(--font-en);
    font-size: 0.9rem;
    color: var(--text);
}

.t-content span {
    font-size: 0.82rem;
    color: var(--text-2);
}

/* ═══════════════════════════════════
   PORTFOLIO GRID
═══════════════════════════════════ */
/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    color: var(--text-2);
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: #021a1e;
    border-color: var(--primary);
    box-shadow: 0 4px 16px var(--primary-glow);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.portfolio-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: all 0.4s var(--ease-expo);
    position: relative;
}

.portfolio-item.hidden {
    display: none;
}

.portfolio-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.port-featured {
    grid-column: span 2;
}

.port-img-wrap {
    height: 240px;
    overflow: hidden;
    position: relative;
    background: var(--bg-card-2);
}

.port-featured .port-img-wrap {
    height: 280px;
}

.port-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-expo);
}

.portfolio-item:hover .port-img-wrap img {
    transform: scale(1.08);
}

.port-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 26, 30, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(4px);
}

.portfolio-item:hover .port-overlay {
    opacity: 1;
}

.port-overlay h3 {
    font-size: 1rem;
    color: var(--text);
}

.port-overlay p {
    font-size: 0.82rem;
    color: var(--text-2);
}

.port-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 20px;
    background: var(--primary);
    color: #021a1e;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.port-link:hover {
    background: #b8e030;
    transform: scale(1.05);
}

.port-meta {
    padding: 20px;
}

.port-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--teal-dim);
    color: var(--teal);
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-en);
    border-radius: 6px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-tag {
    background: var(--primary-dim);
    color: var(--primary);
}

.port-meta h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.center-btn {
    display: flex;
    justify-content: center;
}

/* ═══════════════════════════════════
   SERVICES GRID
═══════════════════════════════════ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.4s var(--ease-expo);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--primary));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s var(--ease-expo);
}

.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.srv-featured {
    background: linear-gradient(135deg, rgba(163, 207, 43, 0.05), rgba(0, 137, 123, 0.05));
    border-color: rgba(163, 207, 43, 0.2);
}

.srv-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: #021a1e;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
}

body[dir="ltr"] .srv-badge {
    left: auto;
    right: 20px;
}

.srv-icon-wrap {
    margin-bottom: 20px;
}

.srv-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-dim);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    transition: all 0.3s ease;
    border: 1px solid rgba(163, 207, 43, 0.2);
}

.service-card:hover .srv-icon {
    background: var(--primary);
    color: #021a1e;
    transform: rotate(5deg) scale(1.1);
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.service-card p {
    color: var(--text-2);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.srv-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.srv-features span {
    color: var(--text-2);
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ═══════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.testi-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testi-featured {
    background: linear-gradient(135deg, var(--primary-dim), var(--teal-dim));
    border-color: rgba(163, 207, 43, 0.2);
}

.testi-stars {
    color: var(--primary);
    font-size: 1rem;
    letter-spacing: 2px;
}

.testi-text {
    color: var(--text-2);
    font-size: 0.92rem;
    line-height: 1.8;
    flex: 1;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.testi-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.av1 {
    background: var(--primary-dim);
    color: var(--primary);
}

.av2 {
    background: linear-gradient(135deg, var(--primary), var(--teal));
    color: #021a1e;
}

.av3 {
    background: var(--teal-dim);
    color: var(--teal);
}

.testi-author strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 2px;
}

.testi-author span {
    font-size: 0.78rem;
    color: var(--text-2);
    display: block;
}

/* ═══════════════════════════════════
   CONTACT SECTION
═══════════════════════════════════ */
.contact-section {
    background: radial-gradient(ellipse at 70% 50%, rgba(163, 207, 43, 0.04), transparent 60%),
        radial-gradient(ellipse at 30% 80%, rgba(0, 137, 123, 0.04), transparent 60%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 900;
    line-height: 1.2;
    margin: 16px 0 20px;
}

.text-accent {
    color: var(--primary);
}

.contact-desc {
    color: var(--text-2);
    font-size: 1rem;
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    color: inherit;
}

.contact-method:hover {
    border-color: var(--border-hover);
    background: var(--primary-dim);
    transform: translateX(-4px);
}

body.ltr .contact-method:hover {
    transform: translateX(4px);
}

.method-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-dim);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-method span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-2);
    margin-bottom: 2px;
}

.contact-method strong {
    font-size: 0.9rem;
    color: var(--text);
}

.social-row {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: var(--glass);
}

.social-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-dim);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--primary-glow);
}

/* Contact Form */
.contact-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
}

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

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

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

.form-group label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: inherit;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-dim);
    background: var(--bg-2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-3);
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 16px;
}

.form-success {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-sm);
    color: #22c55e;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-success.visible {
    display: flex;
}

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-family: var(--font-en);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.footer-brand p {
    color: var(--text-2);
    font-size: 0.85rem;
    margin-top: 4px;
}

.footer-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.footer-copy span {
    color: var(--text-2);
    font-size: 0.82rem;
}

.footer-heart {
    color: var(--primary);
}

.footer-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--teal), transparent);
    margin-top: 40px;
    opacity: 0.3;
}

/* ═══ BACK TO TOP ═══ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    left: 32px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #021a1e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 8px 24px var(--primary-glow);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    z-index: 500;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.back-to-top:hover {
    background: #b8e030;
    transform: translateY(-4px);
}

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 1100px) {
    .bento-bio {
        grid-column: span 12;
    }

    .bento-specialty {
        grid-column: span 6;
    }

    .bento-stats {
        grid-column: span 6;
    }

    .bento-tools {
        grid-column: span 7;
    }

    .bento-quote {
        grid-column: span 5;
    }

    .bento-timeline {
        grid-column: span 12;
    }

    .bento-timeline .timeline {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .bento-timeline .t-item {
        flex: 1;
        min-width: 160px;
    }
}

@media (max-width: 992px) {
    :root {
        --section-pad: 80px;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: calc(var(--nav-h) + 40px);
        gap: 40px;
    }

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

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

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

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

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

    .hero-visual {
        display: none;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .port-featured {
        grid-column: span 2;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-content {
        justify-content: center;
        text-align: center;
    }

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

@media (max-width: 768px) {
    :root {
        --section-pad: 60px;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

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

    .port-featured {
        grid-column: span 1;
    }

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

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

    .bento-specialty,
    .bento-stats,
    .bento-tools,
    .bento-quote {
        grid-column: span 12;
    }

    .bento-inner {
        flex-direction: column;
    }

    .big-stat {
        font-size: 4rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: 24px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

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

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        display: none;
    }

    .filter-tabs {
        gap: 8px;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 0.82rem;
    }

    .back-to-top {
        bottom: 16px;
        left: 16px;
    }
}

/* ═══ MINI NUM (Bento) ═══ */
.mini-num {
    color: var(--primary);
}

/* ═══ PAGE TRANSITIONS ═══ */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 100000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.transition-bg {
    position: absolute;
    inset: 0;
    background: var(--bg);
    transform: translateY(100%);
    transition: transform 0.6s var(--ease-expo);
}

.transition-bars {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
}

.transition-bars span {
    flex: 1;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-expo);
}

.transition-bars span:nth-child(even) {
    background: var(--teal);
    transform-origin: right;
}

.page-transition.active {
    pointer-events: all;
}

.page-transition.active .transition-bg {
    transform: translateY(0);
}

.page-transition.active .transition-bars span {
    transform: scaleX(1);
}

.page-transition.active .transition-bars span:nth-child(1) {
    transition-delay: 0.05s;
}

.page-transition.active .transition-bars span:nth-child(2) {
    transition-delay: 0.1s;
}

.page-transition.active .transition-bars span:nth-child(3) {
    transition-delay: 0.15s;
}

.page-transition.active .transition-bars span:nth-child(4) {
    transition-delay: 0.2s;
}

.page-transition.active .transition-bars span:nth-child(5) {
    transition-delay: 0.25s;
}

.page-transition.out .transition-bg {
    transform: translateY(-100%);
}

.page-transition.out .transition-bars span {
    transform: scaleX(0);
    transform-origin: right;
}

.page-transition.out .transition-bars span:nth-child(even) {
    transform-origin: left;
}

/* ═══ ULTRA PREMIUM ADD-ONS ═══ */
.holographic {
    position: relative;
    overflow: hidden;
}

.holographic::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0) 45%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0) 55%);
    transform: rotate(45deg);
    transition: 0.6s;
    pointer-events: none;
}

.holographic:hover::after {
    left: 100%;
    top: 100%;
}

.bento-card {
    transition: transform 0.4s var(--ease-expo), box-shadow 0.4s ease;
    perspective: 1000px;
}

.bento-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px var(--primary-dim);
}

.tool-badge {
    position: relative;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-2);
    transition: all 0.3s ease;
    cursor: default;
}

.tool-badge i {
    font-size: 1.1rem;
    transition: transform 0.3s var(--ease-back);
}

.tool-badge:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-dim);
    transform: translateY(-5px);
}

.tool-badge:hover i {
    transform: scale(1.2) rotate(12deg);
}

/* AI Terminal Simulator Styles */
.ai-terminal {
    background: #000;
    border: 1px solid var(--teal);
    border-radius: 12px;
    padding: 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.4;
    color: var(--teal);
    box-shadow: 0 0 30px rgba(0, 137, 123, 0.2);
    position: relative;
    overflow: hidden;
    height: 250px;
    margin-top: 20px;
}

.ai-terminal-header {
    border-bottom: 1px solid rgba(0, 137, 123, 0.3);
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-dots {
    display: flex;
    gap: 6px;
}

.ai-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.ai-dot.red {
    background: #ff5f56;
}

.ai-dot.yellow {
    background: #ffbd2e;
}

.ai-dot.green {
    background: #27c93f;
}

.terminal-scroll {
    height: 180px;
    overflow-y: hidden;
    text-align: left;
    direction: ltr;
}

.ai-line {
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
}

.ai-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.ai-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: var(--teal);
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}