/* ============================================================
   UX HERO SECTION — COMPLETE STYLES
   ============================================================ */

:root {
  --paper: #F6F5FB;
  --paper-line: rgba(22, 22, 31, 0.07);
  --ink: #16161F;
  --body-text: #504E60;
  --accent: #5B4FE9;
  --accent-soft: #E8E5FC;
  --accent-2: #FF6B4A;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
}

.ux-hero {
  --dot: var(--paper-line);
  position: relative;
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
  padding: 96px 32px 104px;
  background-image: radial-gradient(circle, var(--dot) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  background-position: -8px -8px;
  text-align: center;
  font-family: 'Inter', sans-serif;
}

.ux-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.ux-hero > * {
  position: relative;
  z-index: 1;
}

/* ===== HERO TAG / BADGE ===== */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border: 1px solid rgba(22, 22, 31, 0.14);
  border-radius: 5px;
  background: #FFFFFF;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--body-text);
  box-shadow: 0 1px 2px rgba(22, 22, 31, 0.04);
}

.hero-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  flex-shrink: 0;
}

/* ===== HERO TITLE ===== */
.ux-hero h1 {
  margin: 28px 0 0;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.ux-hero h1 span {
  position: relative;
  display: inline-block;
  font-style: italic;
  color: var(--accent);
  padding: 0 4px;
}

.ux-hero h1 span::after {
  content: "";
  position: absolute;
  top: -6px;
  right: -14px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(255, 107, 74, 0.5);
  animation: cursor-pulse 2.4s ease-out infinite;
}

@keyframes cursor-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 107, 74, 0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(255, 107, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 74, 0); }
}

/* ===== HERO PARAGRAPH ===== */
.ux-hero p {
  max-width: 560px;
  margin: 24px auto 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body-text);
}

/* ===== FOCUS VISIBLE ===== */
.ux-hero *:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

@media (max-width: 640px) {
  .ux-hero {
    padding: 72px 20px 80px;
    background-size: 22px 22px;
  }
  .ux-hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
  }
}

/* ============================================================
   ACCESSIBILITY: REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .ux-hero h1 span::after {
    animation: none;
  }
}


/* ================================
   SERVICES SECTION — COMPACT
================================ */
.ux-services {
    width: min(1200px, 90%);
    margin: 60px auto;
    padding: 45px 35px;
    border-radius: 20px;
    background: linear-gradient(145deg,
            rgba(18, 18, 18, 0.95),
            rgba(10, 10, 10, 0.9));
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

/* Background Glow — Smaller */
.ux-services::before{
    content:"";
    position:absolute;
    width:200px;
    height:200px;
    background:rgba(0,153,255,.12);
    filter:blur(80px);
    border-radius:50%;
    top:-80px;
    right:-80px;
}

.ux-services::after{
    content:"";
    position:absolute;
    width:180px;
    height:180px;
    background:rgba(0,255,170,.06);
    filter:blur(70px);
    border-radius:50%;
    bottom:-70px;
    left:-60px;
}

.ux-services h2{
    text-align:center;
    font-size:clamp(1.5rem, 3vw, 2rem);
    font-weight:700;
    color:#fff;
    margin-bottom:32px;
    position:relative;
    z-index:2;
}

.ux-services h2::after{
    content:"";
    width:55px;
    height:3px;
    background:#00c6ff;
    display:block;
    margin:12px auto 0;
    border-radius:20px;
}

/* Grid — Tighter */
.ux-services ul{
    list-style:none;
    padding:0;
    margin:0;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:14px;
    position:relative;
    z-index:2;
}

/* Cards — Smaller */
.ux-services li{
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);
    border-radius:14px;
    padding:16px 18px;
    color:#f2f2f2;
    font-size:0.9rem;
    font-weight:500;
    display:flex;
    align-items:center;
    gap:12px;
    transition:.35s ease;
    cursor:pointer;
}

/* Check Icon — Smaller */
.ux-services li::before{
    content:"✓";
    width:28px;
    height:28px;
    min-width:28px;
    border-radius:50%;
    background:linear-gradient(135deg,#00c6ff,#0072ff);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    font-size:13px;
    box-shadow:0 8px 16px rgba(0,114,255,.30);
    flex-shrink:0;
}

/* Hover */
.ux-services li:hover{
    transform:translateY(-5px);
    background:rgba(255,255,255,.08);
    border-color:#00c6ff;
    box-shadow:0 15px 35px rgba(0,198,255,.15);
}

.ux-services li:hover::before{
    transform:rotate(360deg);
    transition:.6s;
}

/* ================================
   Responsive — Compact
================================ */

@media (max-width:992px){
    .ux-services{
        padding:40px 25px;
        margin:50px auto;
    }

    .ux-services ul{
        grid-template-columns:repeat(2, 1fr);
        gap:12px;
    }
}

@media (max-width:768px){
    .ux-services{
        padding:35px 20px;
        margin:40px auto;
        border-radius:16px;
    }

    .ux-services h2{
        font-size:clamp(1.3rem, 4vw, 1.7rem);
        margin-bottom:25px;
    }

    .ux-services h2::after{
        width:45px;
        height:2.5px;
        margin-top:10px;
    }

    .ux-services ul{
        grid-template-columns:1fr 1fr;
        gap:10px;
    }

    .ux-services li{
        padding:14px 14px;
        font-size:0.85rem;
        border-radius:12px;
        gap:10px;
    }

    .ux-services li::before{
        width:24px;
        height:24px;
        min-width:24px;
        font-size:11px;
    }
}

@media (max-width:480px){
    .ux-services{
        padding:28px 16px;
        margin:30px auto;
        border-radius:14px;
    }

    .ux-services::before{
        width:140px;
        height:140px;
        top:-60px;
        right:-60px;
        filter:blur(60px);
    }

    .ux-services::after{
        width:120px;
        height:120px;
        bottom:-50px;
        left:-40px;
        filter:blur(50px);
    }

    .ux-services h2{
        font-size:clamp(1.1rem, 5vw, 1.4rem);
        margin-bottom:20px;
    }

    .ux-services h2::after{
        width:35px;
        height:2px;
        margin-top:8px;
    }

    .ux-services ul{
        grid-template-columns:1fr;
        gap:8px;
    }

    .ux-services li{
        padding:12px 14px;
        font-size:0.8rem;
        border-radius:10px;
        gap:8px;
    }

    .ux-services li::before{
        width:22px;
        height:22px;
        min-width:22px;
        font-size:10px;
        box-shadow:0 6px 12px rgba(0,114,255,.25);
    }

    .ux-services li:hover{
        transform:translateY(-3px);
    }

    .ux-services li:hover::before{
        transform:rotate(360deg);
        transition:.6s;
    }
}

@media (max-width:360px){
    .ux-services{
        padding:22px 12px;
        margin:24px auto;
        border-radius:12px;
    }

    .ux-services h2{
        font-size:1rem;
        margin-bottom:16px;
    }

    .ux-services ul{
        gap:6px;
    }

    .ux-services li{
        padding:10px 12px;
        font-size:0.7rem;
        border-radius:8px;
    }

    .ux-services li::before{
        width:18px;
        height:18px;
        min-width:18px;
        font-size:8px;
    }
}

/* ================================
   DARK MODE SUPPORT
================================ */
@media (prefers-color-scheme: light) {
    .ux-services {
        background: linear-gradient(145deg,
                rgba(255, 255, 255, 0.95),
                rgba(245, 245, 255, 0.9));
        border: 1px solid rgba(0, 0, 0, 0.06);
    }

    .ux-services h2 {
        color: #16161F;
    }

    .ux-services li {
        color: #16161F;
        background: rgba(0, 0, 0, 0.03);
        border: 1px solid rgba(0, 0, 0, 0.06);
    }

    .ux-services li:hover {
        background: rgba(0, 0, 0, 0.06);
        border-color: #00c6ff;
    }

    .ux-services::before {
        background: rgba(0, 153, 255, 0.08);
    }

    .ux-services::after {
        background: rgba(0, 255, 170, 0.04);
    }
}

/* ================================
   REDUCED MOTION
================================ */
@media (prefers-reduced-motion: reduce) {
    .ux-services li {
        transition: none !important;
    }

    .ux-services li:hover {
        transform: none !important;
    }

    .ux-services li:hover::before {
        transform: none !important;
        transition: none !important;
    }
}

/* ============================================================
   UI SHOWCASE — FADE IN/OUT CYCLE (FASTER, BIGGER CARDS)
   ============================================================ */

.ui-showcase {
    width: 100%;
    padding: 60px 0;
    background: #F6F5FB;
    overflow: hidden;
    position: relative;
}

/* ===== SCROLL WRAPPER ===== */
.ui-scroll-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden;
    position: relative;
}

/* ===== SCROLL CONTAINER ===== */
.ui-scroll {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    height: 480px;
}

/* ===== CARD — BIGGER ON DESKTOP ===== */
.ui-card {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 700px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    animation: cardFadeCycle 12s ease-in-out infinite;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.ui-card img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* ===== CARD DELAYS ===== */
.ui-card:nth-child(1) { animation-delay: 0s; }
.ui-card:nth-child(2) { animation-delay: 2.4s; }
.ui-card:nth-child(3) { animation-delay: 4.8s; }
.ui-card:nth-child(4) { animation-delay: 7.2s; }
.ui-card:nth-child(5) { animation-delay: 9.6s; }
.ui-card:nth-child(6) { animation-delay: 12s; }
.ui-card:nth-child(7) { animation-delay: 14.4s; }
.ui-card:nth-child(8) { animation-delay: 16.8s; }
.ui-card:nth-child(9) { animation-delay: 19.2s; }
.ui-card:nth-child(10) { animation-delay: 21.6s; }

/* ===== KEYFRAMES — Fade In/Out Cycle ===== */
@keyframes cardFadeCycle {
    0% {
        opacity: 0;
        visibility: hidden;
        transform: translateX(-50%) scale(0.95);
    }
    6% {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) scale(1);
    }
    25% {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) scale(1);
    }
    31% {
        opacity: 0;
        visibility: hidden;
        transform: translateX(-50%) scale(0.95);
    }
    100% {
        opacity: 0;
        visibility: hidden;
        transform: translateX(-50%) scale(0.95);
    }
}

/* ===== HOVER ===== */
.ui-card:hover {
    transform: translateX(-50%) scale(1.02);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.12);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablets & small laptops */
@media (max-width: 1024px) {
    .ui-showcase {
        padding: 50px 0;
    }

    .ui-card {
        max-width: 580px;
        border-radius: 16px;
    }

    .ui-scroll {
        height: 420px;
    }
}

/* Mobile landscape & small tablets */
@media (max-width: 768px) {
    .ui-showcase {
        padding: 40px 0;
    }

    .ui-scroll-wrapper {
        padding: 0 16px;
    }

    .ui-card {
        max-width: 480px;
        border-radius: 14px;
    }

    .ui-scroll {
        height: 380px;
    }

    .ui-card img {
        aspect-ratio: 16 / 10;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .ui-showcase {
        padding: 30px 0;
    }

    .ui-scroll-wrapper {
        padding: 0 12px;
    }

    .ui-card {
        max-width: 340px;
        border-radius: 12px;
    }

    .ui-scroll {
        height: 300px;
    }

    .ui-card img {
        aspect-ratio: 16 / 11;
    }

    .ui-card:hover {
        transform: translateX(-50%) scale(1.02);
    }

    .ui-card {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    }
}

/* Extra small screens */
@media (max-width: 380px) {
    .ui-showcase {
        padding: 24px 0;
    }

    .ui-scroll-wrapper {
        padding: 0 10px;
    }

    .ui-card {
        max-width: 280px;
        border-radius: 10px;
    }

    .ui-scroll {
        height: 260px;
    }

    .ui-card img {
        aspect-ratio: 16 / 12;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .ui-card {
        max-width: 240px;
        border-radius: 8px;
    }

    .ui-scroll {
        height: 220px;
    }
}

/* ============================================================
   DARK MODE SUPPORT
   ============================================================ */
@media (prefers-color-scheme: dark) {
    .ui-showcase {
        background: #0a0a12;
    }

    .ui-card {
        background: #1a1a2e;
        border-color: rgba(255, 255, 255, 0.06);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    }

    .ui-card:hover {
        box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6);
    }
}

/* ============================================================
   ACCESSIBILITY: REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .ui-card {
        animation: none !important;
        position: static;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(-50%) !important;
        margin-bottom: 16px;
    }

    .ui-scroll {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .ui-card:hover {
        transform: translateX(-50%) scale(1.02) !important;
    }

    .ui-card:nth-child(n+6) {
        display: none;
    }
}


/* ============================================================
   UX TOOLS SECTION — CLEAN & MODERN (UPDATED COLORS)
   ============================================================ */

.ux-tools {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px 70px;
    text-align: center;
    position: relative;
}

/* ===== SECTION DIVIDER ===== */
.ux-tools::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    border-radius: 2px;
}

/* ===== HEADING ===== */
.ux-tools h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #16161F;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

/* ===== SUBTEXT ===== */
.ux-tools p {
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    color: #504E60;
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* ===== TOOLS LIST ===== */
.ux-tools ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

/* ===== TOOL ITEMS ===== */
.ux-tools ul li {
    padding: 12px 28px;
    background: rgba(0, 198, 255, 0.06);
    border: 1px solid rgba(0, 198, 255, 0.15);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #0072ff;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    cursor: default;
    position: relative;
}

.ux-tools ul li::before {
    content: '◆';
    margin-right: 8px;
    color: #00c6ff;
    font-size: 0.6rem;
}

.ux-tools ul li:hover {
    transform: translateY(-4px);
    border-color: #00c6ff;
    box-shadow: 0 8px 24px rgba(0, 198, 255, 0.15);
    background: rgba(0, 198, 255, 0.10);
    color: #005bb5;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablets & small laptops */
@media (max-width: 1024px) {
    .ux-tools {
        padding: 50px 20px 60px;
    }

    .ux-tools ul {
        gap: 12px;
    }

    .ux-tools ul li {
        padding: 10px 22px;
        font-size: 0.9rem;
    }
}

/* Mobile landscape & small tablets */
@media (max-width: 768px) {
    .ux-tools {
        padding: 40px 18px 50px;
    }

    .ux-tools h2 {
        font-size: clamp(1.3rem, 4vw, 1.8rem);
        margin-bottom: 10px;
    }

    .ux-tools p {
        font-size: 0.9rem;
        margin-bottom: 24px;
        padding: 0 10px;
    }

    .ux-tools ul {
        gap: 10px;
    }

    .ux-tools ul li {
        padding: 10px 18px;
        font-size: 0.85rem;
        border-radius: 6px;
    }

    .ux-tools ul li::before {
        font-size: 0.55rem;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .ux-tools {
        padding: 32px 14px 40px;
    }

    .ux-tools::before {
        width: 36px;
        height: 2px;
    }

    .ux-tools h2 {
        font-size: clamp(1.1rem, 5vw, 1.5rem);
    }

    .ux-tools p {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    .ux-tools ul {
        gap: 8px;
    }

    .ux-tools ul li {
        padding: 8px 14px;
        font-size: 0.8rem;
        border-radius: 6px;
    }

    .ux-tools ul li::before {
        display: none;
    }
}

/* Extra small screens */
@media (max-width: 380px) {
    .ux-tools {
        padding: 28px 12px 32px;
    }

    .ux-tools h2 {
        font-size: 1.05rem;
    }

    .ux-tools p {
        font-size: 0.8rem;
        margin-bottom: 16px;
    }

    .ux-tools ul {
        gap: 6px;
    }

    .ux-tools ul li {
        padding: 6px 12px;
        font-size: 0.7rem;
        border-radius: 4px;
    }
}

/* ============================================================
   DARK MODE SUPPORT
   ============================================================ */
@media (prefers-color-scheme: dark) {
    .ux-tools h2 {
        color: #f1f5f9;
    }

    .ux-tools p {
        color: #94a3b8;
    }

    .ux-tools ul li {
        background: rgba(0, 198, 255, 0.08);
        border-color: rgba(0, 198, 255, 0.12);
        color: #60d0ff;
        box-shadow: none;
    }

    .ux-tools ul li::before {
        color: #00c6ff;
    }

    .ux-tools ul li:hover {
        background: rgba(0, 198, 255, 0.15);
        border-color: #00c6ff;
        box-shadow: 0 8px 24px rgba(0, 198, 255, 0.12);
        color: #8ad4ff;
    }
}

/* ============================================================
   ACCESSIBILITY: REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .ux-tools ul li {
        transition: none !important;
    }

    .ux-tools ul li:hover {
        transform: none !important;
    }
}