/* =========================================================
   JOEY PORTFOLIO WEBSITE — MODERN INTERACTIVE ANIMATIONS
   Exact Brand: tomxaos™ CoreApps
   ========================================================= */

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

:root {
  --bg-main: #0e0e10;
  --bg-card: #161618;
  --bg-pill: rgba(26, 26, 30, 0.96);
  
  --text-white: #ffffff;
  --text-grey: #a1a1aa;
  --text-dim: #71717a;
  
  /* Vivid Card Accents */
  --card-purple: #7c3aed;
  --card-green: #15803d;
  --card-blue: #2563eb;
  --card-orange: #ea580c;
  
  --border-color: #27272a;
  
  --font-main: 'Plus Jakarta Sans', 'Inter', sans-serif;
  
  --radius-pill: 999px;
  --radius-xl: 32px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

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

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

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

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

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

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

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

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

.brand-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  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.7;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--bg-pill);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  padding: 12px 32px;
  border-radius: var(--radius-pill);
  list-style: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

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

.btn-header {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: var(--text-white);
  color: #000000;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* =========================================================
   2. HERO SECTION
   ========================================================= */
.hero-section {
  padding: 20px 0 90px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: flex-end;
}

.hero-display {
  font-size: clamp(48px, 8.5vw, 110px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text-white);
}

.hero-side-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 12px;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-grey);
  line-height: 1.6;
}

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

.btn-circle-arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--text-white);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.btn-circle-arrow:hover {
  transform: scale(1.12) rotate(45deg);
}

/* =========================================================
   3. PROJECTS 2x2 VIVID CARDS GRID & HOVER EFFECTS
   ========================================================= */
.section-title-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}

.projects-section {
  padding: 0 0 120px;
}

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

.vivid-card {
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text-white);
  min-height: 480px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.vivid-card:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.card-purple { background: var(--card-purple); }
.card-green { background: var(--card-green); }
.card-blue { background: var(--card-blue); }
.card-orange { background: var(--card-orange); }

.real-image-container {
  height: 280px;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

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

.vivid-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vivid-card-title {
  font-size: 24px;
  font-weight: 800;
}

.vivid-card-sub {
  font-size: 14px;
  opacity: 0.85;
  margin-top: 4px;
}

.card-arrow-action {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.3s ease;
}

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

/* =========================================================
   4. EXPERTISE SECTION
   ========================================================= */
.expertise-section {
  padding: 80px 0 120px;
  border-top: 1px solid var(--border-color);
}

.expertise-layout {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 40px;
}

.expertise-h2 {
  font-size: 40px;
  font-weight: 800;
}

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

.expertise-card-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius-lg);
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.expertise-card-item:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-4px);
}

.expertise-col-h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}

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

/* =========================================================
   5. ABOUT & CTA & FOOTER
   ========================================================= */
.testimonials-section {
  padding: 80px 0;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.testimonials-h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 24px;
}

.quote-text {
  font-size: clamp(18px, 2vw, 24px);
  color: var(--text-grey);
  line-height: 1.6;
}

.cta-section {
  padding: 80px 0 140px;
  text-align: center;
}

.cta-display {
  font-size: clamp(56px, 10vw, 130px);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 36px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 48px;
  border-radius: var(--radius-pill);
  background: var(--text-white);
  color: #000000;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

.btn-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.25);
}

.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--border-color);
  color: var(--text-grey);
  font-size: 14px;
}

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

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

.footer-icon-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-grey);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.footer-icon-link:hover {
  background: var(--text-white);
  color: #000000;
  border-color: var(--text-white);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* =========================================================
   AIRY & LUXURIOUS MOBILE UI (MAX-WIDTH: 640px)
   ========================================================= */
@media (max-width: 960px) {
  .container {
    padding: 0 28px;
  }
  
  .hero-section {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 60px;
  }

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

  .projects-vivid-grid {
    grid-template-columns: 1fr;
  }

  .nav-pill {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 24px !important;
  }

  .site-header {
    top: 16px !important;
    margin-bottom: 36px !important;
  }

  .header-inner {
    background: var(--bg-pill);
    border: 1px solid var(--border-color);
    padding: 10px 20px !important;
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

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

  .brand-tm {
    font-size: 9px !important;
  }

  .btn-header {
    padding: 8px 16px !important;
    font-size: 12px !important;
  }

  .hero-section {
    padding: 16px 0 48px !important;
    gap: 20px !important;
  }

  .hero-display {
    font-size: 36px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.03em !important;
  }

  .hero-side-content {
    gap: 20px !important;
  }

  .hero-desc {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }

  .btn-circle-arrow {
    width: 48px !important;
    height: 48px !important;
    font-size: 20px !important;
  }

  .projects-section {
    padding: 0 0 50px !important;
  }

  .section-title-label {
    font-size: 11px !important;
    margin-bottom: 20px !important;
  }

  .projects-vivid-grid {
    gap: 24px !important;
  }

  .vivid-card {
    padding: 24px !important;
    border-radius: 28px !important;
    min-height: auto !important;
  }

  .real-image-container {
    height: 200px !important;
    border-radius: 18px !important;
    margin-bottom: 20px !important;
  }

  .vivid-card-footer {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .vivid-card-title {
    font-size: 20px !important;
  }

  .vivid-card-sub {
    font-size: 13px !important;
    line-height: 1.4 !important;
  }

  .card-arrow-action {
    font-size: 14px !important;
    padding-top: 4px;
  }

  .expertise-section {
    padding: 48px 0 !important;
  }

  .expertise-h2 {
    font-size: 28px !important;
  }

  .expertise-columns {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .expertise-card-item {
    padding: 20px !important;
    border-radius: 20px !important;
  }

  .expertise-col-h3 {
    font-size: 17px !important;
    margin-bottom: 6px !important;
  }

  .expertise-col-desc {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  .testimonials-section {
    padding: 48px 0 !important;
  }

  .testimonials-h2 {
    font-size: 24px !important;
    margin-bottom: 16px !important;
  }

  .quote-text {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }

  .cta-section {
    padding: 48px 0 60px !important;
  }

  .cta-display {
    font-size: 46px !important;
    margin-bottom: 24px !important;
  }

  .btn-cta {
    width: 100% !important;
    padding: 16px 24px !important;
    font-size: 15px !important;
    justify-content: center !important;
  }

  .site-footer {
    padding: 32px 0 !important;
  }

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

  .footer-icons-group {
    gap: 18px !important;
  }
}
