/* =========================================================
   tomxaos™ CoreApps — Personal Portfolio & Case Showcase
   Human-First UI/UX System
   ========================================================= */

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

:root {
  /* Color Tokens - Matte Charcoal Base */
  --bg-main: #090a0c;
  --bg-surface: #121316;
  --bg-surface-hover: #191a20;
  --bg-pill: rgba(18, 19, 22, 0.85);
  
  --text-white: #ffffff;
  --text-primary: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  
  /* Curated Card Accent Accents */
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-orange: #f59e0b;
  --accent-blue: #3b82f6;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.16);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --radius-pill: 999px;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  width: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

/* Accessibility: Focus Indicators */
:focus-visible {
  outline: 2px solid var(--accent-purple);
  outline-offset: 4px;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* =========================================================
   SCROLL ANIMATIONS (INTERSECTION OBSERVER)
   ========================================================= */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   1. HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 100;
  margin-bottom: 48px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-white);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.brand-logo:hover {
  opacity: 0.85;
}

.brand-tm {
  font-size: 11px;
  vertical-align: super;
  font-weight: 600;
  opacity: 0.6;
  margin: 0 2px;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--bg-pill);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  padding: 10px 28px;
  border-radius: var(--radius-pill);
  list-style: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.nav-pill a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
  display: inline-block;
}

.nav-pill a:hover {
  color: var(--text-white);
}

.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--text-white);
  color: #090a0c;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

@media (hover: hover) {
  .btn-header:hover {
    transform: translateY(-2px);
    background-color: #e4e4e7;
  }
}

/* =========================================================
   2. HERO SECTION
   ========================================================= */
.hero-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 72px;
}

.hero-status-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-pill);
  width: fit-content;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.status-text {
  font-size: 13px;
  font-weight: 600;
  color: #34d399;
}

.hero-display {
  font-family: var(--font-heading);
  font-size: clamp(42px, 6.5vw, 76px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-white);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-top: 8px;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 58ch;
  line-height: 1.6;
}

.hero-desc strong {
  color: var(--text-white);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
}

.btn-circle-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

@media (hover: hover) {
  .btn-circle-arrow:hover {
    transform: translateY(-2px);
    border-color: var(--border-color-hover);
  }
}

/* =========================================================
   3. PROJECTS GRID (VIVID CASE CARDS)
   ========================================================= */
.projects-section {
  margin-bottom: 96px;
}

.section-header-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.section-title-label {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-white);
}

.section-badge {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}

.projects-vivid-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.vivid-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-white);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

@media (hover: hover) {
  .vivid-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-color-hover);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  }
}

.real-image-container {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
  background-color: #16171d;
}

.real-img-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
  .vivid-card:hover .real-img-preview {
    transform: scale(1.03);
  }
}

.vivid-card-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Accent Badges per Card */
.card-purple .tag-badge-highlight {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border-color: rgba(139, 92, 246, 0.3);
}

.card-green .tag-badge-highlight {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.card-red .tag-badge-highlight {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.card-orange .tag-badge-highlight {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

.card-blue .tag-badge-highlight {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.3);
}

.vivid-card-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-white);
  line-height: 1.25;
}

.vivid-card-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 50ch;
}

.vivid-card-footer {
  padding: 16px 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-arrow-action {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease;
}

@media (hover: hover) {
  .vivid-card:hover .card-arrow-action {
    transform: translateX(4px);
  }
}

/* =========================================================
   4. EXPERTISE SECTION
   ========================================================= */
.expertise-section {
  margin-bottom: 96px;
}

.expertise-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.expertise-h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-white);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.expertise-card-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) {
  .expertise-card-item:hover {
    transform: translateY(-2px);
    border-color: var(--border-color-hover);
  }
}

.expertise-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  margin-bottom: 4px;
}

.expertise-col-h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
}

.expertise-col-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* =========================================================
   5. ABOUT / QUOTE SECTION
   ========================================================= */
.testimonials-section {
  margin-bottom: 96px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 48px;
  border-radius: var(--radius-xl);
}

.testimonials-h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 16px;
}

.quote-text {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 65ch;
}

/* =========================================================
   6. CTA SECTION
   ========================================================= */
.cta-section {
  margin-bottom: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding: 64px 32px;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-main) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
}

.cta-display {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-white);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  background: var(--text-white);
  color: #090a0c;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
}

@media (hover: hover) {
  .btn-cta:hover {
    transform: translateY(-2px);
    background-color: #e4e4e7;
  }
}

/* =========================================================
   7. FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 32px 0;
  color: var(--text-dim);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-icons-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-icon-link {
  color: var(--text-muted);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
}

.footer-icon-link:hover {
  color: var(--text-white);
}

/* =========================================================
   RESPONSIVE LAYOUT
   ========================================================= */
@media (max-width: 1024px) {
  .projects-vivid-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-cta-group {
    justify-content: flex-start;
  }
}

.mobile-text,
.cta-mobile-text {
  display: none;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .nav-pill {
    display: none;
  }

  .site-header {
    top: 8px;
    margin-bottom: 24px;
  }

  .brand-logo {
    font-size: 15px;
  }

  .desktop-text,
  .cta-desktop-text {
    display: none;
  }

  .mobile-text,
  .cta-mobile-text {
    display: inline;
  }

  .btn-header {
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
  }

  .hero-status-bar {
    padding: 3px 10px;
    gap: 6px;
  }

  .status-dot {
    width: 6px;
    height: 6px;
  }

  .status-text {
    font-size: 11px;
  }

  .cta-section {
    padding: 36px 16px;
    margin-bottom: 48px;
    gap: 20px;
    box-sizing: border-box;
    width: 100%;
  }

  .cta-display {
    font-size: clamp(24px, 6vw, 36px);
  }

  .btn-cta {
    padding: 12px 20px;
    font-size: 14px;
    width: 100%;
    max-width: 280px;
    box-sizing: border-box;
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column-reverse;
    gap: 16px;
    text-align: center;
  }

  .testimonials-section {
    padding: 28px;
  }

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

  .real-image-container {
    height: 220px;
  }
}
