/* ============================================================================
   FONTS
   ============================================================================ */

@import url("https://fonts.googleapis.com/css2?family=Funnel+Sans:ital,wght@0,300..800;1,300..800&family=Science+Gothic:wght@100..900&display=swap");

/* ============================================================================
   CSS VARIABLES
   ============================================================================ */

:root {
  --color-set-1-color-1: hsl(240, 100%, 65%);
  --color-set-1-color-2: hsl(210, 100%, 75%);
  --color-set-1-color-3: hsl(190, 100%, 65%);
  --color-set-1-color-4: hsl(240, 45%, 20%);
  --color-set-2-color-1: hsl(1, 100%, 65%);
  --color-set-2-color-2: hsl(45, 100%, 60%);
  --color-set-2-color-3: hsl(210, 100%, 65%);
  --color-set-2-color-4: hsl(230, 60%, 45%);
  --color-set-3-color-1: hsl(250, 100%, 31%);
  --color-set-3-color-2: hsl(190, 100%, 67%);
  --color-set-3-color-3: hsl(210, 100%, 66%);
  --color-set-3-color-4: hsl(240, 65%, 15%);
  --primary-color: var(--color-set-1-color-1);
  --secondary-color: var(--color-set-1-color-2);
  --tertiary-color: var(--color-set-1-color-3);
  --dark-color: var(--color-set-1-color-4);
  --font-primary: "Funnel Sans", sans-serif;
  --font-secondary: "Science Gothic", sans-serif;
}

/* ============================================================================
   BASE LAYOUT
   ============================================================================ */

html {
  background: var(--dark-color);
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* ============================================================================
   HEADER
   ============================================================================ */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  width: 100%;
  padding-top: 1rem;
  padding-bottom: 1rem;
  padding-right: 2rem;
  padding-left: 2rem;
  z-index: 9;
  animation: slide-down 0.5s ease-in-out;
}
header nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  z-index: 3;
}
header nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1em;
  width: 2rem;
  height: 2rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease-in-out;
}
header nav a:hover {
  border-color: white;
  color: white;
  text-decoration: none;
  transform: scale(1.1);
}

/* ============================================================================
   MAIN CONTENT
   ============================================================================ */

section {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8rem;
  padding: 2rem;
  flex: 1;
  width: 100%;
  z-index: 9;
  animation: slide-up 0.5s ease-in-out;
}

article {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
  max-width: 380px;
}
article:last-child {
  width: auto;
  max-width: 100%;
}

hr {
  width: 100%;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================================================
   LOGO / WARP EFFECT
   ============================================================================ */

.warp {
  padding: 0.5rem;
  color: white;
  font-family: var(--font-secondary);
  letter-spacing: 1px;
  font-style: italic;
  font-weight: 700;
  font-size: 1rem;
  position: relative;
  transition: color 0.2s ease-in-out;
  z-index: 2;
}
.warp:before {
  content: "";
  border-radius: 100%;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: blur(1px);
  background: var(--primary-color);
  mix-blend-mode: overlay;
  transform: skew(-65deg, 9deg) rotate(19deg) scale(1.4);
  background: var(--primary-color);
  border: 4px solid var(--tertiary-color);
  box-shadow: inset 0 0.25rem 0rem var(--secondary-color), 0 -0.5rem 0rem var(--primary-color);
  animation: skew 10s ease-in-out infinite;
}
@keyframes skew {
  0% {
    transform: skew(-125deg, -2deg) rotate(-9deg) scale(1.4);
  }
  50% {
    transform: skew(-165deg, -6deg) rotate(-19deg) scale(1.4);
  }
  100% {
    transform: skew(-125deg, -2deg) rotate(-9deg) scale(1.4);
  }
}
.warp:after {
  content: "";
  border-radius: 100%;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--tertiary-color);
  transform: skew(-135deg, -2deg) rotate(-9deg) scale(1.6);
  border: 2px solid var(--primary-color);
  box-shadow: inset 0 1px 0 var(--secondary-color), 0 -1px 0 var(--secondary-color);
  mix-blend-mode: overlay;
  animation: warp 20s ease-in-out infinite;
}
@keyframes warp {
  0% {
    transform: skew(-135deg, -2deg) rotate(-9deg) scale(1.6);
  }
  50% {
    transform: skew(-155deg, -2deg) rotate(-19deg) scale(1.6);
  }
  100% {
    transform: skew(-135deg, -2deg) rotate(-9deg) scale(1.6);
  }
}

/* ============================================================================
   THEME COLORS SWITCHER
   ============================================================================ */

.colors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
  justify-content: center;
}
.colors .color {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 100%;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.colors .color i {
  font-size: 12px;
  line-height: 12px;
}
.colors .color:hover {
  transform: scale(1.2);
  border: 2px solid white;
}
.colors .color.active {
  border: 2px solid var(--secondary-color);
}
.colors .color.color-1 {
  background: var(--color-set-1-color-1);
  color: var(--color-set-1-color-2);
}
.colors .color.color-2 {
  background: var(--color-set-2-color-3);
  color: var(--color-set-2-color-2);
}
.colors .color.color-3 {
  background: var(--color-set-3-color-1);
  color: var(--color-set-3-color-2);
}

/* ============================================================================
   SHORTCUTS / PROJECT CARDS
   ============================================================================ */

.shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.shortcuts a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 0.5rem;
  padding: 0.5rem;
  justify-content: center;
  height: 9rem;
  flex: 1;
  min-width: 9rem;
  max-width: 9rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid transparent;
}
.shortcuts a:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--secondary-color);
}
.shortcuts a:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.05);
}
.shortcuts a img {
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

@keyframes slide-up {
  0% {
    transform: translateY(10%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes slide-down {
  0% {
    transform: translateY(-10%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ============================================================================
   RESPONSIVE STYLES
   ============================================================================ */

/* Mobile Styles (800px and below) */
@media (max-width: 800px) {
  /* Stack sections vertically on mobile */
  section {
    flex-direction: column;
    gap: 4rem;
  }

  /* Full width articles on mobile */
  article {
    max-width: 100%;
  }
  article:last-child {
    align-items: flex-start;
  }

  /* Full width shortcut buttons on mobile */
  .shortcuts a {
    max-width: 100%;
  }
}
