/* ================================================
   TRUE LOVE CREATIVE - Design System
   Apple-inspired Bento Grid with Glassmorphism
   ================================================ */

/* === DESIGN TOKENS === */
:root {
  /* Colors - Jesper Style */
  --bg-primary: #000000;
  --bg-secondary: #050505;
  --bg-card: #0a0a0a;
  --bg-card-hover: #111111;

  --accent: #FF0000;
  /* Standard Bright Red */
  --accent-light: #ff3333;
  --accent-glow: rgba(255, 0, 0, 0.4);
  --blue-glow: rgba(0, 102, 255, 0.1);

  --text-primary: #ffffff;
  --text-secondary: #818181;
  --text-tertiary: #555555;

  /* Glass effect */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 24px;

  /* Typography */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --gap: clamp(1rem, 2vw, 2.5rem);
  --padding-section: clamp(2rem, 8vw, 12rem);
  --radius: 0px;
  /* Minimalist style */
  --radius-lg: 32px;
  --radius-sm: 16px;
  --radius-xs: 12px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.6s;
  --duration-slow: 1s;
}

/* === RESET & BASE === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-primary);
  overflow-x: hidden;
}

/* Noise Filter */
.noise-filter {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10000;
  opacity: 0.15;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Texture Grain Overlay */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://www.transparenttextures.com/patterns/asfalt-dark.png");
  /* Simple grain pattern */
  opacity: 0.05;
  pointer-events: none;
  z-index: 9999;
}

/* Blue Vignette Glow */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, var(--blue-glow) 100%);
  pointer-events: none;
  z-index: -1;
}

/* Background Blobs */
.blur-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 40vw;
  height: 40vw;
  background: var(--accent-glow);
  filter: blur(100px);
  border-radius: 50%;
  opacity: 0.3;
  animation: blob-float 20s infinite alternate var(--ease-in-out);
}

.blob-1 {
  top: -10%;
  right: -5%;
  background: rgba(193, 78, 51, 0.2);
}

.blob-2 {
  bottom: 0%;
  left: -10%;
  background: rgba(0, 102, 255, 0.1);
  animation-duration: 25s;
  animation-delay: -5s;
}

@keyframes blob-float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(10%, 15%) scale(1.1);
  }

  66% {
    transform: translate(-5%, 10%) scale(0.9);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
  text-transform: uppercase;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--padding-section);
}

.section {
  padding: var(--padding-section) 0;
  position: relative;
}

/* === HEADER === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem var(--padding-section);
  z-index: 1000;
  transition: all 0.4s var(--ease-out);
}

.site-header.scrolled {
  padding: 1rem var(--padding-section);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
}

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

.site-logo {
  font-size: 2rem;
  font-weight: 900;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-icon {
  height: 1.5em;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.btn-contact {
  padding: 0.8rem 2rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-contact:hover {
  background: var(--accent);
  color: white;
  transform: scale(1.05);
}

.lang-switcher {
  display: flex;
  gap: 1rem;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.lang-btn.active {
  color: var(--text-primary);
}

/* === HERO SECTION === */
.section-hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 5vh;
}

.hero-title {
  font-size: clamp(4rem, 15vw, 15rem);
  margin-bottom: 2rem;
  line-height: 0.85;
  display: flex;
  flex-direction: column;
}

.hero-title .line {
  display: block;
}

.hero-title .accent {
  color: var(--accent);
}

.hero-bottom {
  position: absolute;
  bottom: 5rem;
  left: var(--padding-section);
  right: var(--padding-section);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.hero-tagline {
  font-size: 1.5rem;
  color: var(--text-secondary);
  max-width: 300px;
  text-align: left;
}

.scroll-indicator {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  transform: rotate(-90deg);
  transform-origin: right bottom;
}

/* === INTRO SECTION === */
.section-intro {
  padding: 10rem 0;
}

.intro-text {
  font-size: clamp(2rem, 5vw, 5rem);
  line-height: 1.1;
  max-width: 90%;
}

/* === SERVICES SECTION === */
.section-services .section-title {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: 4rem;
  letter-spacing: 0.3em;
}

.services-list {
  display: flex;
  flex-direction: column;
}

.service-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 0;
  border-top: 1px solid #1a1a1a;
  cursor: pointer;
  position: relative;
  transition: all 0.4s var(--ease-out);
}

.service-item:last-child {
  border-bottom: 1px solid #1a1a1a;
}

.service-item h3 {
  font-size: clamp(2rem, 5vw, 5rem);
  color: var(--text-primary);
  line-height: 1;
  margin: 0;
  transition: all 0.5s var(--ease-out);
}

.service-item i {
  font-size: 2rem;
  color: var(--text-tertiary);
  transition: all 0.4s var(--ease-out);
}

.service-item:hover {
  background: rgba(255, 255, 255, 0.02);
  padding-left: 2rem;
  padding-right: 2rem;
}

.service-item:hover h3 {
  color: var(--accent);
}

.service-item:hover i {
  color: var(--accent);
  transform: translateX(10px);
}

/* === PORTFOLIO SECTION === */
.section-portfolio .section-title {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: 3rem;
  letter-spacing: 0.3em;
}

.portfolio-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(200px, 20vw);
  gap: var(--gap);
}

.bento-item {
  position: relative;
  grid-column: span 6;
  grid-row: span 1;
  background: var(--bg-card);
  overflow: hidden;
  display: block;
  border: 1px solid var(--glass-border);
}

.bento-item.card-large {
  grid-column: span 8;
  grid-row: span 2;
}

.bento-item.card-tall {
  grid-column: span 4;
  grid-row: span 2;
}

.item-media {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s var(--ease-out), filter 0.8s ease;
  filter: grayscale(100%) contrast(1.1) brightness(0.6);
}

.bento-item:hover .item-media img {
  transform: scale(1.05);
  filter: grayscale(0%) contrast(1) brightness(0.8);
}

/* Item Overlay */
.item-overlay {
  position: absolute;
  inset: 0;
  padding: clamp(1.5rem, 3vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  z-index: 2;
}

.bento-item:hover .item-overlay {
  opacity: 1;
}

.item-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.8rem;
  transform: translateY(20px);
  transition: transform 0.6s var(--ease-out);
}

.item-meta span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 700;
}

.item-meta .year {
  color: var(--text-tertiary);
}

.item-title {
  font-size: clamp(1.2rem, 2.5vw, 3rem);
  margin-bottom: 0.5rem;
  transform: translateY(20px);
  transition: transform 0.6s var(--ease-out) 0.1s;
}

.item-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 400px;
  margin-bottom: 1.5rem;
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  transform: translateY(20px);
  transition: transform 0.6s var(--ease-out) 0.2s;
}

.view-project {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateY(20px);
  transition: transform 0.6s var(--ease-out) 0.3s;
}

.bento-item:hover .item-meta,
.bento-item:hover .item-title,
.bento-item:hover .item-description,
.bento-item:hover .view-project {
  transform: translateY(0);
}

/* === CTA SECTION === */
.section-cta {
  padding: 15rem 0;
  text-align: center;
}

.cta-large-link {
  text-decoration: none;
  font-size: clamp(3rem, 10vw, 10rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 0.9;
  display: inline-block;
  transition: color 0.3s ease;
}

.cta-large-link:hover {
  color: var(--accent);
}

/* === FOOTER === */
.site-footer {
  padding: 8rem 0 4rem;
  border-top: 1px solid #111;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 6rem;
}

.footer-logo {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo .logo-icon {
  height: 1em;
  width: auto;
}

.footer-tagline {
  color: var(--text-secondary);
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: 2rem;
}

.footer-col nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-col a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-col p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid #111;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* === REVEAL ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === CUSTOM CURSOR === */
.custom-cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

.custom-cursor.active {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--accent);
}

@media (max-width: 1024px) {
  .custom-cursor {
    display: none;
  }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  :root {
    --padding-section: 4rem;
  }
}

@media (max-width: 768px) {
  :root {
    --padding-section: 2rem;
  }

  .portfolio-bento {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 3rem;
  }

  .bento-item,
  .bento-item.card-large,
  .bento-item.card-tall {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 16/10;
  }

  .item-overlay {
    padding: 2rem;
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 80%);
  }

  .item-meta,
  .item-title,
  .item-description,
  .view-project {
    transform: translateY(0);
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .footer-col nav {
    align-items: center;
  }

  .hero-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }

  .hero-tagline {
    text-align: center;
  }

  .scroll-indicator {
    transform: none;
    position: static;
  }

  .hero-title {
    font-size: clamp(3rem, 12vw, 6rem);
  }
}

/* Small mobile */
@media (max-width: 480px) {
  :root {
    --gap: 0.75rem;
    --radius: 16px;
    --radius-sm: 12px;
  }

  .service-item h3 {
    font-size: clamp(2rem, 10vw, 4rem);
  }

  .service-hover-image {
    display: none;
  }

  .bento-card {
    padding: 1.25rem;
  }

  .portfolio-filters {
    justify-content: center;
  }

  .filter-btn {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}