/* ==========================================================================
   STREAMER & WEB CREATOR PORTFOLIO — CUTE MONOCHROME DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  /* Color System — Soft White & High-Contrast Black */
  --bg-primary: #F7F7F4;
  --bg-surface: #FFFFFF;
  --bg-dark: #111111;
  --bg-dark-secondary: #1A1A1A;

  --text-main: #111111;
  --text-muted: #6F6F6F;
  --text-inverse: #FFFFFF;
  --text-inverse-muted: #A3A3A3;

  --border-light: #DEDEDA;
  --border-dark: #262626;

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Corner Radius */
  --radius-lg: 24px;
  --radius-card: 20px;
  --radius-img: 18px;
  --radius-sm: 16px;
  --radius-pill: 999px;

  /* Transitions */
  --ease-out-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.2s var(--ease-out-smooth);
  --transition-normal: 0.4s var(--ease-out-smooth);
}

/* --- Global Reset & Base Setup --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden !important;
  max-width: 100%;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden !important;
  max-width: 100%;
  line-height: 1.6;
}

/* Khóa cuộn web nền khi có popup/modal bật lên */
html.modal-scroll-locked,
body.modal-scroll-locked {
  overflow: hidden !important;
  overscroll-behavior: none !important;
  touch-action: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #C4C4BD;
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-main);
}

/* Selection Color */
::selection {
  background-color: var(--text-main);
  color: #FFFFFF;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- CUSTOM MAGNETIC DESKTOP MOUSE FOLLOWER --- */
.custom-cursor {
  display: none;
}

@media (min-width: 1024px) {
  .custom-cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
  }

  .cursor-dot {
    width: 7px;
    height: 7px;
    background-color: var(--text-main);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
  }

  .cursor-follower {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(17, 17, 17, 0.35);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    transition: width 0.25s, height 0.25s, border-color 0.25s, background-color 0.25s;
  }

  .cursor-follower.hovering {
    width: 60px;
    height: 60px;
    background-color: rgba(17, 17, 17, 0.08);
    border-color: var(--text-main);
  }

  .cursor-follower.card-hover {
    width: 75px;
    height: 75px;
    background-color: var(--text-main);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
  }

  .cursor-follower.card-hover::after {
    content: 'VISIT ↗';
  }
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* Section Headings */
.section-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.6;
}

/* Accessibility: Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .custom-cursor {
    display: none !important;
  }
}
