/* ============================================
   Lightdigita - Graphic Designer & Video Editor
   Professional Landing Page Styles
   ============================================ */

/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ===== CSS Variables ===== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --accent: #6c63ff;
    --accent-light: #8b83ff;
    --accent-dark: #5a52e0;
    --accent-glow: rgba(108, 99, 255, 0.3);
    --accent-gradient: linear-gradient(135deg, #6c63ff, #a855f7);
    --text-primary: #ffffff;
    --text-secondary: #b0b0c0;
    --text-muted: #6b6b80;
    --border-color: rgba(255, 255, 255, 0.06);
    --glass-bg: rgba(22, 22, 31, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-accent: 0 8px 30px rgba(108, 99, 255, 0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Poppins', sans-serif;
    --container: 1200px;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-secondary);
}

html::-webkit-scrollbar {
    width: 8px;
}

html::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

html::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

body {
    font-family: var(--font-ar);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    direction: rtl;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Section Base ===== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
    margin: 15px auto 0;
}

/* ===== Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* ===== Header / Navbar ===== */
.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.header.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-en);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: .04em;
    direction: ltr;
    white-space: nowrap;
}

.brand-word {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-mark {
    position: relative;
    display: inline-block;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 12px;
    background: white;
    box-shadow: 0 5px 17px rgba(255, 212, 40, .14);
}

.brand-mark img {
    position: absolute;
    left: -35%;
    top: -8%;
    width: 170%;
    height: auto;
    max-width: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition);
    border-radius: 1px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--accent-gradient);
    color: var(--text-primary) !important;
    padding: 10px 25px !important;
    border-radius: var(--radius-xl);
    font-weight: 600 !important;
    box-shadow: var(--shadow-accent);
    transition: var(--transition) !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(108, 99, 255, 0.35);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-bg .gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: float 8s ease-in-out infinite;
}

.hero-bg .orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(108, 99, 255, 0.15);
    top: -100px;
    left: -100px;
}

.hero-bg .orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(168, 85, 247, 0.1);
    bottom: -50px;
    right: -50px;
    animation-delay: 2s;
}

.hero-bg .orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(108, 99, 255, 0.08);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

/* Grid pattern */
.hero-bg .grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(108, 99, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 99, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: slideInRight 1s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.2);
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    color: var(--accent-light);
    margin-bottom: 25px;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-name {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero-name span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-family: var(--font-ar);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-primary);
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    transform: translateY(-3px);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: slideInLeft 1s ease-out;
}

.portfolio-showcase {
    width: min(100%, 530px);
    padding: 22px 22px 16px;
    border: 1px solid rgba(167, 155, 255, 0.18);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(32, 29, 53, 0.82), rgba(15, 15, 25, 0.86));
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.07);
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.portfolio-showcase::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    top: 8%;
    left: 20%;
    border-radius: 50%;
    background: rgba(108, 99, 255, 0.2);
    filter: blur(70px);
    pointer-events: none;
    z-index: -1;
}

.showcase-heading,
.showcase-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.showcase-eyebrow {
    font: 700 0.76rem var(--font-en);
    letter-spacing: 0.2em;
    color: #d4d0ff;
}

.showcase-sparkle {
    color: #b896ff;
    font-size: 1.1rem;
    margin-inline-start: 4px;
}

.showcase-counter {
    color: var(--text-muted);
    font: 600 0.8rem var(--font-en);
    letter-spacing: 0.1em;
    direction: ltr;
}

.showcase-stage {
    height: 385px;
    position: relative;
    perspective: 1000px;
    touch-action: pan-y;
    overscroll-behavior-x: contain;
}

.showcase-stage::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 42px;
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    filter: blur(16px);
}

.showcase-deck {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: transform 220ms ease-out;
}

.showcase-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 62%;
    max-width: 290px;
    height: 310px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    background: #1c1c28;
    color: white;
    cursor: pointer;
    overflow: hidden;
    backface-visibility: hidden;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.36);
    transition: transform 700ms cubic-bezier(0.2, 0.75, 0.2, 1), box-shadow 700ms ease, filter 700ms ease;
}

.showcase-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.showcase-card::after {
    content: '';
    position: absolute;
    inset: 48% 0 0;
    background: linear-gradient(transparent, rgba(9, 8, 18, 0.83));
    pointer-events: none;
}

.showcase-card-caption {
    position: absolute;
    inset: auto 16px 16px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 8px;
    font-size: 0.94rem;
    font-weight: 800;
    text-align: right;
    z-index: 1;
}

.showcase-card-caption span {
    font: 700 0.72rem var(--font-en);
    color: #d4d0ff;
}

.showcase-card.is-active {
    z-index: 3;
    transform: translate(-50%, -50%) translateZ(105px) rotateZ(-2deg);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.58), 0 0 45px rgba(108, 99, 255, 0.25);
}

.showcase-card.is-prev {
    z-index: 1;
    transform: translate(-4%, -45%) translateZ(-45px) rotateY(-24deg) rotateZ(7deg);
    filter: brightness(0.72);
}

.showcase-card.is-next {
    z-index: 2;
    transform: translate(-96%, -45%) translateZ(-45px) rotateY(24deg) rotateZ(-7deg);
    filter: brightness(0.76);
}

.showcase-card:hover,
.showcase-card:focus-visible {
    filter: brightness(1);
    outline: 2px solid #aa9dff;
    outline-offset: 3px;
}

.showcase-bottom {
    position: relative;
    z-index: 4;
    padding: 13px 4px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    text-align: right;
}

.showcase-description {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.showcase-description span {
    color: var(--text-muted);
    font-size: 0.76rem;
}

.showcase-current {
    font-size: 1.12rem;
}

.showcase-actions {
    display: flex;
    gap: 8px;
}

.showcase-arrow {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.19);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 200ms ease, transform 200ms ease;
}

.showcase-arrow:hover,
.showcase-arrow:focus-visible {
    background: var(--accent);
    transform: translateY(-2px);
    outline: none;
}

.showcase-hint {
    color: #a9a5bc;
    font-size: 0.7rem;
    margin-top: 12px;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .showcase-deck,
    .showcase-card,
    .showcase-arrow {
        transition-duration: 0.01ms;
    }
}

/* Stats */
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 45px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.hero-stat h3 {
    font-family: var(--font-en);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.hero-stat p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== About Section ===== */
#about {
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.tool-lab {
    --lab-accent: #36a9ff;
    --lab-soft: rgba(54, 169, 255, .28);
    position: relative;
    padding: 19px 18px 15px;
    border: 1px solid rgba(154, 147, 255, .24);
    border-radius: 28px;
    background: radial-gradient(circle at 50% 40%, var(--lab-soft), transparent 58%), #10101c;
    box-shadow: 0 28px 65px rgba(0, 0, 0, .27), inset 0 1px 0 rgba(255, 255, 255, .07);
    overflow: hidden;
    isolation: isolate;
    user-select: none;
}

.tool-lab[data-active="illustrator"] { --lab-accent: #ff9b39; --lab-soft: rgba(255, 155, 57, .28); }
.tool-lab[data-active="premiere"] { --lab-accent: #ba88ff; --lab-soft: rgba(186, 136, 255, .28); }
.tool-lab[data-active="after-effects"] { --lab-accent: #8b84ff; --lab-soft: rgba(139, 132, 255, .28); }
.tool-lab[data-active="capcut"] { --lab-accent: #f5f7ff; --lab-soft: rgba(178, 197, 255, .19); }

.tool-lab-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    color: #a8a7c7;
    font: 700 .63rem/1.4 var(--font-en);
    letter-spacing: .16em;
}

.tool-lab-live {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 50%;
    background: #7ae7b3;
    box-shadow: 0 0 12px #7ae7b3;
}

.tool-lab-count { color: var(--lab-accent); }

.tool-lab-stage {
    position: relative;
    height: 345px;
    display: grid;
    place-items: center;
    perspective: 900px;
    cursor: pointer;
}

.tool-lab-stage:focus-visible { outline: 2px solid var(--lab-accent); outline-offset: -4px; border-radius: 12px; }

.tool-lab-grid {
    position: absolute;
    inset: 0;
    opacity: .45;
    background-image: linear-gradient(rgba(139, 132, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(139, 132, 255, .09) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: radial-gradient(ellipse at center, #000 28%, transparent 75%);
}

.tool-lab-orbit {
    position: absolute;
    width: 85%;
    height: 42%;
    border: 1px solid var(--lab-soft);
    border-radius: 50%;
    transform: rotate(-23deg);
    pointer-events: none;
}

.tool-lab-orbit-two {
    width: 65%;
    height: 58%;
    transform: rotate(52deg);
    opacity: .65;
}

.tool-lab-scene {
    position: relative;
    z-index: 2;
    width: min(61%, 260px);
    height: 275px;
    transform-style: preserve-3d;
    transform: rotateX(var(--lab-x, -7deg)) rotateY(var(--lab-y, 13deg));
    transition: transform .3s ease-out;
    will-change: transform;
}

.tool-lab-card {
    width: 100%;
    height: 100%;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, .23);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .13), transparent 35%), linear-gradient(145deg, #252638, #11121f 67%);
    box-shadow: 13px 18px 0 rgba(5, 6, 15, .7), 16px 24px 33px rgba(0, 0, 0, .38), 0 0 45px var(--lab-soft);
    transform: translateZ(32px);
    backface-visibility: hidden;
}

.tool-lab-card::after {
    content: '';
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 18px;
    pointer-events: none;
}

.tool-lab-card-top {
    display: flex;
    justify-content: space-between;
    color: #bab8d0;
    font: 700 .6rem var(--font-en);
    letter-spacing: .15em;
}

.tool-lab-card-top span:last-child { color: var(--lab-accent); font-size: 1rem; }

.tool-lab-art {
    position: relative;
    height: 152px;
    transform-style: preserve-3d;
}

.tool-lab-art-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 135px;
    height: 135px;
    border: 18px solid var(--lab-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotateX(26deg) translateZ(26px);
    box-shadow: inset 0 0 15px var(--lab-soft), 0 0 28px var(--lab-soft);
    opacity: .92;
}

.tool-lab-art-shape {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 98px;
    height: 98px;
    border-radius: 25px;
    transform: translate(-50%, -50%) rotate(36deg) translateZ(51px);
    background: linear-gradient(135deg, rgba(255, 255, 255, .87), var(--lab-accent) 75%);
    box-shadow: 12px 14px 22px rgba(0, 0, 0, .23);
}

.tool-lab-art-line {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 63px;
    height: 63px;
    border: 2px solid rgba(255, 255, 255, .86);
    border-radius: 18px;
    transform: translate(-50%, -50%) rotate(-16deg) translateZ(75px);
}

.tool-lab-card-bottom {
    display: flex;
    align-items: center;
    gap: 11px;
    transform: translateZ(18px);
}

.tool-lab-monogram {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    height: 40px;
    border: 1px solid var(--lab-accent);
    border-radius: 10px;
    background: #141723;
    color: var(--lab-accent);
    font: 800 1.2rem var(--font-en);
}

.tool-lab-card-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tool-lab-name { color: #fff; font: 700 .9rem var(--font-en); white-space: nowrap; }
.tool-lab-category { color: #aaa8c2; font-size: .7rem; text-align: left; }

.tool-lab-mini {
    position: absolute;
    z-index: 3;
    width: 100px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 11px;
    background: rgba(30, 30, 49, .89);
    box-shadow: 0 13px 26px rgba(0, 0, 0, .3);
    backdrop-filter: blur(9px);
    pointer-events: none;
    color: #aaa8c2;
    font: 700 .53rem var(--font-en);
    letter-spacing: .12em;
}

.tool-lab-mini-layers { left: 1%; top: 17%; transform: rotate(-10deg); }
.tool-lab-mini-layers i { display: block; height: 8px; margin-top: 6px; border-radius: 3px; background: var(--lab-soft); }
.tool-lab-mini-layers i:nth-of-type(2) { width: 80%; background: var(--lab-accent); }
.tool-lab-mini-layers i:nth-of-type(3) { width: 58%; }
.tool-lab-mini-colors { right: 0; bottom: 16%; transform: rotate(9deg); }
.tool-lab-mini-colors b { display: inline-block; width: 17px; height: 17px; margin: 8px 3px 0 0; border-radius: 50%; background: var(--lab-accent); }
.tool-lab-mini-colors b:nth-of-type(2) { background: #af6bff; }
.tool-lab-mini-colors b:nth-of-type(3) { background: #f5cb75; }
.tool-lab-cursor { position: absolute; z-index: 4; right: 20%; top: 12%; color: white; filter: drop-shadow(0 2px 3px #000); transform: rotate(-18deg); }

.tool-lab-dock {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 17px;
    background: rgba(6, 7, 17, .64);
}

.tool-lab-tool {
    min-width: 0;
    padding: 7px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: #a9a8bd;
    cursor: pointer;
    transition: transform .22s, background .22s, border-color .22s, color .22s;
}

.tool-lab-tool span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #1b1d31;
    color: #9ecbff;
    font: 800 1rem var(--font-en);
}

.tool-lab-tool[data-tool="illustrator"] span { color: #ffb873; }
.tool-lab-tool[data-tool="premiere"] span { color: #c5a7ff; }
.tool-lab-tool[data-tool="after-effects"] span { color: #aaa8ff; }
.tool-lab-tool[data-tool="capcut"] span { color: #fff; }
.tool-lab-tool small { font: 600 .56rem var(--font-en); white-space: nowrap; }
.tool-lab-tool:hover { transform: translateY(-4px); color: white; }
.tool-lab-tool.is-active { border-color: var(--lab-soft); background: var(--lab-soft); color: white; }
.tool-lab-tool:focus-visible { outline: 2px solid var(--lab-accent); outline-offset: 2px; }
.tool-lab-hint { margin: 12px 0 0; color: #a9a8bd; font-size: .68rem; text-align: center; }

.tool-lab.is-changing .tool-lab-card { animation: labCardSwitch .55s cubic-bezier(.2, .7, .2, 1); }
@keyframes labCardSwitch {
    0% { transform: translateZ(32px) rotateY(0); }
    48% { transform: translateZ(95px) rotateY(25deg) scale(1.05); }
    100% { transform: translateZ(32px) rotateY(0); }
}

.about-image .experience-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 13px;
    background: var(--accent-gradient);
    color: white;
    padding: 10px 15px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-accent);
}

@media (prefers-reduced-motion: reduce) {
    .tool-lab-scene,
    .tool-lab-tool { transition: none; will-change: auto; }
    .tool-lab.is-changing .tool-lab-card { animation: none; }
}

.experience-badge .number {
    font-family: var(--font-en);
    font-size: 1.65rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.experience-badge .label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.about-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.about-content h2 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 30px;
}

/* Tools */
.about-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 35px;
}

.tool-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(108, 99, 255, 0.08);
    border: 1px solid rgba(108, 99, 255, 0.15);
    padding: 8px 18px;
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    color: var(--accent-light);
    transition: var(--transition);
}

.tool-tag:hover {
    background: rgba(108, 99, 255, 0.15);
    transform: translateY(-2px);
}

/* Skills */
.skills-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.skill-info span:first-child {
    color: var(--text-primary);
    font-weight: 600;
}

.skill-info span:last-child {
    color: var(--accent);
    font-family: var(--font-en);
    font-weight: 700;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-bar .skill-progress {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== Portfolio Section ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    group: true;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(10, 10, 15, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay h3 {
    transform: translateY(0);
}

.portfolio-overlay .view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-light);
    font-size: 0.9rem;
    font-weight: 600;
    transform: translateY(20px);
    transition: var(--transition);
    transition-delay: 0.1s;
}

.portfolio-item:hover .portfolio-overlay .view-btn {
    transform: translateY(0);
}

.portfolio-overlay .view-btn:hover {
    gap: 12px;
}

/* ===== Video Section ===== */
#videos {
    background: var(--bg-secondary);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.video-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: rgba(108, 99, 255, 0.2);
    box-shadow: var(--shadow-accent);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(108, 99, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(108, 99, 255, 0.4);
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--accent);
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Video iframe container */
.video-thumbnail iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border: none;
}

/* ===== Services Section ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 35px 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(108, 99, 255, 0.2);
    box-shadow: var(--shadow-accent);
    background: var(--bg-card-hover);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--accent-gradient);
    color: white;
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Reviews Section ===== */
.reviews-section {
    background: radial-gradient(circle at 50% 12%, rgba(108, 99, 255, .09), transparent 45%), var(--bg-primary);
}

.reviews-layout {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 28px;
    align-items: start;
}

.reviews-form-panel,
.reviews-feed {
    min-width: 0;
    padding: clamp(22px, 3vw, 36px);
    border: 1px solid rgba(154, 143, 255, .18);
    border-radius: 25px;
    background: linear-gradient(145deg, rgba(31, 29, 47, .94), rgba(19, 19, 29, .95));
    box-shadow: 0 20px 50px rgba(0, 0, 0, .16);
}

.reviews-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: var(--accent-light);
    font-size: .86rem;
    font-weight: 700;
}

.reviews-form-panel h3,
.reviews-feed-heading h3 {
    color: var(--text-primary);
    font-size: 1.45rem;
    font-weight: 800;
}

.reviews-form-panel > p { color: var(--text-secondary); font-size: .93rem; margin: 8px 0 24px; }
.reviews-form-panel form { display: flex; flex-direction: column; }
.reviews-form-panel label { margin: 0 0 8px; font-size: .88rem; font-weight: 700; }

.reviews-form-panel input,
.reviews-form-panel textarea {
    width: 100%;
    margin-bottom: 18px;
    padding: 13px 15px;
    border: 1px solid rgba(154, 143, 255, .2);
    border-radius: 12px;
    outline: none;
    background: #101019;
    color: var(--text-primary);
    font: inherit;
    transition: border-color .2s, box-shadow .2s;
}

.reviews-form-panel textarea { resize: vertical; min-height: 130px; line-height: 1.7; }
.reviews-form-panel input::placeholder,
.reviews-form-panel textarea::placeholder { color: #77758b; }
.reviews-form-panel input:focus,
.reviews-form-panel textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(108, 99, 255, .12); }

.reviews-form-bottom { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.reviews-form-bottom span { color: var(--text-muted); font: 600 .75rem var(--font-en); direction: ltr; }
.reviews-form-bottom .btn { border: 0; cursor: pointer; font: 700 .91rem var(--font-ar); }
.reviews-form-bottom .btn:disabled { opacity: .65; cursor: wait; }
.review-feedback { min-height: 1.5em; margin: 13px 0 0; color: #aee8c4; font-size: .84rem; }
.review-feedback.is-error { color: #ffaaa9; }

.reviews-feed-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 23px; }
.reviews-feed-heading span { padding: 7px 12px; border-radius: 20px; background: rgba(108, 99, 255, .13); color: var(--accent-light); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.reviews-list { display: grid; gap: 14px; max-height: 570px; overflow-y: auto; padding: 2px 0 2px 8px; }
.reviews-list::-webkit-scrollbar { width: 6px; }
.reviews-list::-webkit-scrollbar-thumb { background: rgba(154, 143, 255, .3); border-radius: 8px; }
.reviews-empty { padding: 50px 20px; border: 1px dashed rgba(154, 143, 255, .2); border-radius: 16px; color: var(--text-secondary); text-align: center; line-height: 1.8; }

.review-card {
    padding: 19px;
    border: 1px solid rgba(154, 143, 255, .14);
    border-radius: 17px;
    background: rgba(255, 255, 255, .025);
    animation: reviewAppear .4s ease both;
}

.review-card-head { display: flex; align-items: center; gap: 11px; }
.review-avatar { display: grid; place-items: center; flex: 0 0 39px; width: 39px; height: 39px; border-radius: 12px; background: var(--accent-gradient); color: white; font-weight: 800; }
.review-author { display: block; color: white; font-size: .94rem; font-weight: 700; overflow-wrap: anywhere; }
.review-date { color: var(--text-muted); font-size: .73rem; }
.review-quote { margin-inline-start: auto; color: rgba(154, 143, 255, .38); font-size: 1.1rem; }
.review-body { margin: 13px 0 0; color: var(--text-secondary); font-size: .95rem; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }

@keyframes reviewAppear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
    .reviews-layout { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .reviews-form-panel,
    .reviews-feed { padding: 20px 16px; }
    .reviews-form-bottom { align-items: stretch; flex-direction: column-reverse; }
    .reviews-form-bottom .btn { justify-content: center; }
    .reviews-form-bottom span { text-align: left; }
}

@media (prefers-reduced-motion: reduce) { .review-card { animation: none; } }

/* ===== Contact Section ===== */
#contact {
    background: var(--bg-secondary);
}

.contact-panel {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 30px;
    min-height: 560px;
    padding: clamp(30px, 5vw, 70px);
    border: 1px solid rgba(154, 143, 255, 0.22);
    border-radius: 34px;
    overflow: hidden;
    isolation: isolate;
    background: radial-gradient(circle at 78% 45%, rgba(108, 99, 255, 0.18), transparent 44%),
                linear-gradient(135deg, #171522, #101016 70%);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.25);
}

.contact-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(90deg, transparent, black);
    pointer-events: none;
    z-index: -1;
}

.contact-copy {
    position: relative;
    z-index: 2;
}

.contact-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px;
    border: 1px solid rgba(124, 242, 175, 0.24);
    border-radius: 30px;
    background: rgba(61, 186, 109, 0.08);
    color: #a6e6bb;
    font-size: 0.83rem;
    font-weight: 700;
    margin-bottom: 22px;
}

.contact-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #58db84;
    box-shadow: 0 0 0 5px rgba(88, 219, 132, 0.13);
    animation: contactPulse 2s ease-in-out infinite;
}

.contact-copy h2 {
    font-size: clamp(2.5rem, 4.3vw, 4.5rem);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 14px;
}

.contact-copy h2 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-copy > p {
    max-width: 480px;
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.9;
    margin-bottom: 26px;
}

.contact-choices {
    display: grid;
    gap: 10px;
    max-width: 430px;
}

.contact-choice {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 10px 17px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
    color: white;
    font-weight: 700;
    transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease, background 250ms ease;
}

.contact-choice-primary {
    border-color: transparent;
    background: var(--accent-gradient);
    box-shadow: 0 12px 32px rgba(108, 99, 255, 0.27);
}

.contact-choice-icon {
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.13);
    font-size: 1rem;
}

.contact-choice > .fa-arrow-left {
    margin-inline-start: auto;
    transition: transform 250ms ease;
}

.contact-choice:hover,
.contact-choice:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(177, 168, 255, 0.55);
    background-color: rgba(108, 99, 255, 0.2);
    box-shadow: 0 15px 34px rgba(0, 0, 0, 0.24);
    outline: none;
}

.contact-choice-primary:hover,
.contact-choice-primary:focus-visible {
    background: var(--accent-gradient);
}

.contact-choice:hover > .fa-arrow-left,
.contact-choice:focus-visible > .fa-arrow-left {
    transform: translateX(-5px);
}

.contact-direct {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    margin-top: 23px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.contact-direct a {
    color: #d0caff;
    font: 700 1rem var(--font-en);
    letter-spacing: 0.05em;
}

.contact-direct a:hover {
    color: white;
}

.contact-art {
    min-height: 455px;
    position: relative;
    display: grid;
    place-items: center;
    perspective: 900px;
    user-select: none;
}

.contact-scene {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 455px;
    transform-style: preserve-3d;
    transform: rotateX(var(--scene-x, 0deg)) rotateY(var(--scene-y, 0deg));
    transition: transform 180ms ease-out;
    will-change: transform;
}

.contact-orbit {
    position: absolute;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(152, 140, 255, 0.25);
    border-radius: 50%;
    transform: translateZ(10px) rotateX(65deg) rotateZ(-28deg);
    box-shadow: inset 0 0 45px rgba(108, 99, 255, 0.07);
}

.orbit-two {
    width: 295px;
    height: 295px;
    border-color: rgba(117, 241, 164, 0.22);
    transform: translateZ(22px) rotateY(62deg) rotateZ(28deg);
}

.orbit-three {
    width: 235px;
    height: 235px;
    border-color: rgba(152, 140, 255, 0.3);
    transform: translateZ(36px) rotateX(63deg) rotateZ(56deg);
}

.contact-whatsapp {
    position: relative;
    display: grid;
    place-items: center;
    width: 215px;
    height: 215px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 52px;
    background: linear-gradient(145deg, #48d77a, #1a9e56);
    color: white;
    font-size: 6.7rem;
    box-shadow: 0 38px 75px rgba(22, 170, 91, 0.28), inset 0 2px rgba(255, 255, 255, 0.35);
    transform-style: preserve-3d;
    transform: translateZ(90px) rotate(-12deg) rotateY(17deg);
    animation: contactFloat 5s ease-in-out infinite;
}

.contact-whatsapp::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--light-x, 30%) var(--light-y, 25%), rgba(255, 255, 255, 0.35), transparent 55%);
    pointer-events: none;
}

.contact-whatsapp::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 43px;
}

.contact-whatsapp i {
    position: relative;
    z-index: 1;
    transform: translateZ(30px);
}

.contact-bubble {
    position: absolute;
    z-index: 1;
    padding: 11px 17px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    background: rgba(30, 30, 46, 0.93);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.28);
    color: white;
    font-size: 0.86rem;
    font-weight: 700;
    backdrop-filter: blur(12px);
    animation: contactBob 4s ease-in-out infinite;
}

.bubble-one {
    top: 65px;
    right: 7%;
    transform: translateZ(130px) rotate(7deg);
}

.bubble-one span {
    color: #a393ff;
}

.bubble-two {
    bottom: 55px;
    left: 1%;
    transform: translateZ(115px);
    animation-delay: 1.2s;
}

.bubble-two i {
    color: #63df90;
    margin-inline-start: 7px;
}

.contact-orbit-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #a293ff;
    box-shadow: 0 0 24px #a293ff;
}

.dot-one { top: 49px; left: 24%; }
.dot-two { bottom: 61px; right: 12%; background: #52d985; box-shadow: 0 0 24px #52d985; }

@keyframes contactFloat {
    0%, 100% { transform: translateZ(90px) translateY(0) rotate(-12deg) rotateY(17deg); }
    50% { transform: translateZ(102px) translateY(-15px) rotate(-7deg) rotateY(22deg); }
}

@keyframes contactBob {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -12px; }
}

@keyframes contactPulse {
    0%, 100% { box-shadow: 0 0 0 5px rgba(88, 219, 132, 0.13); }
    50% { box-shadow: 0 0 0 9px rgba(88, 219, 132, 0.04); }
}

@media (prefers-reduced-motion: reduce) {
    .contact-whatsapp,
    .contact-bubble,
    .contact-live-dot { animation: none; }
    .contact-scene { transition: none; will-change: auto; }
    .contact-choice,
    .contact-choice > .fa-arrow-left { transition-duration: 0.01ms; }
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-primary);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-light);
    padding-right: 5px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
}

.footer-contact h3 { margin-bottom: 6px; }

.footer-whatsapp,
.footer-facebook {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid var(--border-color);
    border-radius: 11px;
    background: rgba(255, 255, 255, .025);
    color: var(--text-secondary);
    font-size: .92rem;
    font-weight: 600;
}

.footer-whatsapp i {
    color: #58db84;
    font-size: 1.3rem;
}

.footer-facebook i { color: #69a5ff; font-size: 1.15rem; width: 21px; text-align: center; }
.footer-whatsapp:hover,
.footer-facebook:hover { color: white; border-color: rgba(139, 131, 255, .28); transform: translateY(-2px); }

.footer-bottom {
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 0;
    }

    .hero-visual {
        order: 1;
    }

    .hero-name {
        font-size: 3.5rem;
    }

    .hero-desc {
        margin: 0 auto 35px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }


    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .about-image { width: min(100%, 560px); margin-inline: auto; }

    .about-tools {
        justify-content: center;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .contact-panel {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-copy > p,
    .contact-choices { margin-inline: auto; }
    .contact-direct { justify-content: center; }
    .contact-art { min-height: 330px; }
    .contact-scene { height: 330px; }
    .contact-orbit { width: 290px; height: 290px; }
    .orbit-two { width: 245px; height: 245px; }
    .orbit-three { width: 190px; height: 190px; }
    .contact-whatsapp { width: 165px; height: 165px; border-radius: 38px; font-size: 5.2rem; }
    .contact-whatsapp::after { border-radius: 30px; }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    /* Mobile Nav */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: var(--transition-slow);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.3rem;
    }

    .hamburger {
        display: flex;
    }

    .hero-name {
        font-size: 2.8rem;
    }

    .hero-title {
        font-size: 1.2rem;
    }

    .hero-stats {
        gap: 25px;
    }

    .hero-stat h3 {
        font-size: 1.5rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .tool-lab { padding: 14px 11px 12px; border-radius: 23px; }
    .tool-lab-stage { height: 290px; }
    .tool-lab-scene { width: min(67%, 230px); height: 232px; }
    .tool-lab-art { height: 125px; }
    .tool-lab-art-ring { width: 110px; height: 110px; border-width: 15px; }
    .tool-lab-art-shape { width: 80px; height: 80px; }
    .tool-lab-art-line { width: 52px; height: 52px; }
    .tool-lab-mini { width: 76px; padding: 7px; font-size: .47rem; }
    .tool-lab-tool small { font-size: .49rem; }
    .tool-lab-cursor { display: none; }

    .portfolio-showcase {
        padding: 17px 14px 14px;
        border-radius: 22px;
    }

    .showcase-stage {
        height: clamp(300px, 84vw, 365px);
        margin-inline: -4px;
    }

    .showcase-card {
        width: 69%;
        height: 82%;
        border-radius: 18px;
        will-change: transform;
        transition-duration: 360ms;
    }

    .showcase-deck { transition-duration: 160ms; }
    .showcase-card.is-active { transform: translate(-50%, -50%) translateZ(42px) rotateZ(-1deg); }
    .showcase-card.is-prev { transform: translate(1%, -44%) translateZ(-24px) rotateY(-15deg) rotateZ(4deg); }
    .showcase-card.is-next { transform: translate(-101%, -44%) translateZ(-24px) rotateY(15deg) rotateZ(-4deg); }
    .showcase-bottom { align-items: flex-end; }
    .showcase-actions { flex-shrink: 0; }
    .showcase-hint { margin-bottom: 2px; }
    .tool-lab-stage,
    .contact-art { touch-action: pan-y; }
    .tool-lab-scene { transition-duration: 180ms; }
    .tool-lab.is-changing .tool-lab-card { animation-duration: 360ms; }
    .contact-scene { animation: mobileSceneFloat 10s ease-in-out infinite; transition-duration: 240ms; }
    .contact-whatsapp { animation-duration: 7s; will-change: transform; }
    .contact-bubble { animation-duration: 6s; backdrop-filter: none; }

    .showcase-card-caption {
        inset: auto 11px 12px;
        font-size: 0.8rem;
    }
}

@keyframes mobileSceneFloat {
    /* Animate the independent translate axis so touch-updated 3D angles
       remain visible instead of being overwritten by the keyframes. */
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -6px; }
}

@media (max-width: 480px) {
    .contact-panel { padding: 28px 18px; border-radius: 24px; }
    .contact-copy h2 { font-size: 2.4rem; }
    .contact-copy > p { font-size: 0.92rem; }
    .contact-choice { min-height: 58px; padding: 8px 12px; }
    .contact-art { min-height: 270px; }
    .contact-scene { height: 270px; }
    .contact-orbit { width: 240px; height: 240px; }
    .orbit-two { width: 198px; height: 198px; }
    .orbit-three { width: 155px; height: 155px; }
    .contact-whatsapp { width: 130px; height: 130px; border-radius: 30px; font-size: 4.2rem; }
    .contact-whatsapp::after { border-radius: 23px; }
    .contact-bubble { font-size: 0.7rem; padding: 8px 10px; }
    .bubble-one { top: 19px; right: 0; }
    .bubble-two { bottom: 15px; left: 0; }

    .hero-name {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: row;
        gap: 15px;
        justify-content: space-around;
    }

    .tool-lab-stage { height: 265px; }
    .tool-lab-scene { width: 65%; height: 213px; }
    .tool-lab-card { padding: 12px; }
    .tool-lab-art { height: 110px; }
    .tool-lab-name { font-size: .78rem; }
    .tool-lab-card-bottom { gap: 7px; }
    .tool-lab-monogram { flex-basis: 33px; height: 33px; font-size: 1rem; }
    .tool-lab-tool span { width: 30px; height: 30px; }
    .tool-lab-tool small { font-size: .43rem; }
    .about-image .experience-badge { padding: 9px 14px; }

    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero {
        padding-bottom: 50px;
    }

    .hero .container {
        gap: 35px;
    }
}

/* ===== Loading Screen ===== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 22px;
    direction: ltr;
}

.brand-mark-large { flex-basis: 82px; width: 82px; height: 82px; border-radius: 20px; }

.loader-logo {
    font-family: var(--font-en);
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 480px) {
    .logo { gap: 7px; font-size: 1.4rem; }
    .brand-mark { flex-basis: 38px; width: 38px; height: 38px; border-radius: 10px; }
    .brand-mark-large { flex-basis: 64px; width: 64px; height: 64px; border-radius: 16px; }
    .loader-brand { gap: 10px; }
    .footer-contact { align-items: center; }
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-bar::after {
    content: '';
    display: block;
    width: 40%;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 2px;
    animation: loaderSlide 1.2s ease-in-out infinite;
}

@keyframes loaderSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: var(--shadow-accent);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(108, 99, 255, 0.4);
}
