/* Bold Experimental Design - High Contrast & Typography-First */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #0a0a0a;
  --color-text: #0a0a0a;
  --color-text-light: #333333;
  --color-text-inverse: #ffffff;
  --color-accent: #2563eb;
  --color-accent-dark: #1e40af;
  --color-border: #0a0a0a;
  --color-border-thick: 4px solid #0a0a0a;
  --spacing-unit: 1rem;
  --max-width: 1400px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--spacing-unit) * 6) calc(var(--spacing-unit) * 3);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: calc(var(--spacing-unit) * 5);
  position: relative;
}

/* Experimental Header with Overlapping Typography */
.header {
  grid-column: 1 / -1;
  position: relative;
  margin-bottom: calc(var(--spacing-unit) * 8);
  min-height: 350px;
  overflow: visible;
}

.header-content {
  position: relative;
}

.name-wrapper {
  position: relative;
  display: inline-block;
  z-index: 10;
}

/* Geometric Shapes - Bauhaus Style */
.geo-shapes {
  position: absolute;
  top: -30px;
  left: 0;
  width: 100%;
  height: 420px;
  pointer-events: none;
  z-index: 1;
}

.geo-shape {
  position: absolute;
  transition: all 0.4s ease;
  pointer-events: auto;
  cursor: pointer;
}

/* Primary Red Circle - Bauhaus signature */
.geo-1 {
  top: 20px;
  right: 120px;
  width: 160px;
  height: 160px;
  background: #e63946;
  border-radius: 50%;
  opacity: 0.9;
}

.geo-1:hover {
  transform: scale(1.1);
  opacity: 1;
}

/* Yellow Square */
.geo-2 {
  top: 140px;
  right: 40px;
  width: 120px;
  height: 120px;
  background: #f4a261;
}

.geo-2:hover {
  transform: rotate(15deg) scale(1.1);
}

/* Blue Triangle (using borders) */
.geo-3 {
  top: 60px;
  right: 280px;
  width: 0;
  height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 87px solid var(--color-accent);
  background: transparent;
  opacity: 0.85;
}

.geo-3:hover {
  transform: rotate(180deg);
  opacity: 1;
}

/* Black Square - Solid */
.geo-4 {
  top: 280px;
  right: 200px;
  width: 80px;
  height: 80px;
  background: var(--color-text);
  opacity: 0.9;
}

.geo-4:hover {
  transform: rotate(45deg);
}

/* Thin Black Line - Horizontal */
.geo-5 {
  top: 180px;
  right: 300px;
  width: 180px;
  height: 6px;
  background: var(--color-text);
  opacity: 0.7;
}

.geo-5:hover {
  transform: scaleX(1.3);
  background: var(--color-accent);
}

/* Circle Outline */
.geo-6 {
  top: 240px;
  right: 60px;
  width: 100px;
  height: 100px;
  background: transparent;
  border: 6px solid var(--color-text);
  border-radius: 50%;
  opacity: 0.8;
}

.geo-6:hover {
  border-color: #e63946;
  transform: scale(1.15);
}

/* Small Yellow Dot */
.geo-7 {
  top: 10px;
  right: 300px;
  width: 30px;
  height: 30px;
  background: #f4a261;
  border-radius: 50%;
}

.geo-7:hover {
  transform: scale(1.5);
}

/* Vertical Line */
.geo-8 {
  top: 100px;
  right: 250px;
  width: 6px;
  height: 140px;
  background: var(--color-text);
  opacity: 0.5;
}

.geo-8:hover {
  opacity: 1;
  background: #e63946;
}

/* Small Red Square */
.geo-9 {
  top: 320px;
  right: 320px;
  width: 50px;
  height: 50px;
  background: #e63946;
  opacity: 0.7;
}

.geo-9:hover {
  transform: rotate(45deg) scale(1.2);
  opacity: 1;
}

/* Blue Circle - Small */
.geo-10 {
  top: 200px;
  right: 0;
  width: 60px;
  height: 60px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0.6;
}

.geo-10:hover {
  transform: scale(1.4);
  opacity: 1;
}

.geo-5:hover {
  opacity: 0.3;
  transform: rotate(75deg) scale(1.4);
}

.name {
  font-size: clamp(6rem, 15vw, 14rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--color-text);
  margin: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: block;
}

.name-primary {
  position: relative;
  z-index: 2;
}

.name-secondary {
  position: absolute;
  top: 0.6em;
  left: 0.3em;
  z-index: 1;
  color: var(--color-accent);
  mix-blend-mode: multiply;
  opacity: 0.9;
}

.name-primary:hover {
  transform: translate(8px, -8px) scale(1.02);
}

.name-secondary:hover {
  transform: translate(-4px, 4px) scale(1.02);
}

/* Subtle Bauhaus animations */
@keyframes float-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes rotate-slow {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(5deg); }
}

.geo-1 {
  animation: float-subtle 6s ease-in-out infinite;
}

.geo-2 {
  animation: float-subtle 7s ease-in-out infinite 1s;
}

.geo-4 {
  animation: rotate-slow 8s ease-in-out infinite;
}

/* Intro Section with Asymmetric Layout */
.intro {
  grid-column: 2 / 10;
  margin-bottom: calc(var(--spacing-unit) * 8);
  position: relative;
  padding-left: calc(var(--spacing-unit) * 3);
  border-left: var(--color-border-thick);
}

.intro-label {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-light);
  margin-bottom: calc(var(--spacing-unit) * 2);
  font-family: 'Courier New', monospace;
}

.intro-content {
  position: relative;
}

.intro-text {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  line-height: 1.6;
  color: var(--color-text);
  font-weight: 400;
  max-width: 90%;
}

.intro-text a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding: 0 4px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.intro-text a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--color-accent);
  opacity: 0.2;
  z-index: -1;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.intro-text a:hover {
  color: var(--color-text-inverse);
}

.intro-text a:hover::before {
  height: 100%;
  opacity: 1;
  background: var(--color-text);
}

/* Section Headers with Experimental Typography */
.section-header {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: calc(var(--spacing-unit) * 2);
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.section-title {
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--color-text);
  line-height: 0.9;
  margin: 0;
}

.section-title-large {
  grid-column: 1;
}

.section-title-small {
  grid-column: 2;
  color: var(--color-accent);
  transform: translateY(0.2em);
}

.section-link {
  grid-column: 3;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 3px solid var(--color-text);
  padding-bottom: 4px;
  transition: all 0.3s ease;
  align-self: end;
}

.section-link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateX(4px);
}

.section-title-projects {
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--color-text);
  line-height: 0.9;
  margin-bottom: calc(var(--spacing-unit) * 4);
}

/* Blog Section */
.blog {
  grid-column: 1 / -1;
  margin-bottom: calc(var(--spacing-unit) * 10);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: calc(var(--spacing-unit) * 4);
}

.blog-post {
  padding: calc(var(--spacing-unit) * 3);
  border: var(--color-border-thick);
  background: var(--color-bg);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.blog-post::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.blog-post:hover::before {
  opacity: 0.05;
}

.blog-post:hover {
  transform: translateY(-8px) translateX(4px);
  box-shadow: 12px 12px 0 0 var(--color-text);
}

.blog-post > * {
  position: relative;
  z-index: 1;
}

.blog-post-date {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: calc(var(--spacing-unit) * 1.5);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'Courier New', monospace;
}

.blog-post-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: calc(var(--spacing-unit) * 1.5);
  color: var(--color-text);
  line-height: 1.2;
}

.blog-post-title a {
  color: var(--color-text);
  text-decoration: none;
}

.blog-post-excerpt {
  font-size: 1.125rem;
  color: var(--color-text-light);
  line-height: 1.6;
  font-weight: 400;
}

/* Projects Section */
.projects {
  grid-column: 1 / -1;
  margin-bottom: calc(var(--spacing-unit) * 10);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: calc(var(--spacing-unit) * 4);
}

.project {
  padding: calc(var(--spacing-unit) * 3.5);
  border: var(--color-border-thick);
  background: var(--color-bg);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
}

.project:hover {
  transform: translateX(8px) translateY(-4px);
  box-shadow: -8px 8px 0 0 var(--color-accent);
  border-color: var(--color-accent);
}

.project-name {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  margin-bottom: calc(var(--spacing-unit) * 1.5);
  color: var(--color-text);
  line-height: 1.2;
}

.project-description {
  font-size: 1.125rem;
  color: var(--color-text-light);
  margin-bottom: calc(var(--spacing-unit) * 2);
  line-height: 1.6;
  font-weight: 400;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--spacing-unit) * 0.75);
}

.project-tag {
  font-size: 0.75rem;
  padding: 6px 14px;
  background: var(--color-text);
  color: var(--color-bg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid var(--color-text);
  transition: all 0.3s ease;
}

.project-tag:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text-inverse);
  transform: scale(1.05);
}

/* Footer */
.footer {
  grid-column: 1 / -1;
  margin-top: calc(var(--spacing-unit) * 8);
  padding-top: calc(var(--spacing-unit) * 4);
  border-top: var(--color-border-thick);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: calc(var(--spacing-unit) * 2);
}

.footer-text {
  font-size: 1rem;
  color: var(--color-text);
  font-weight: 600;
}

.easter-egg-trigger {
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
}

.easter-egg-trigger:hover {
  transform: rotate(360deg) scale(1.3);
}

.footer-nav {
  display: flex;
  gap: calc(var(--spacing-unit) * 2);
}

.footer-nav a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  padding-bottom: 2px;
}

.footer-nav a:hover {
  border-bottom-color: var(--color-text);
  transform: translateY(-2px);
}

/* Cursor Trail Effect */
.cursor-trail {
  position: fixed;
  width: 24px;
  height: 24px;
  border: 3px solid var(--color-accent);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

body:hover .cursor-trail {
  opacity: 0.4;
}

/* Hidden Easter Egg */
.hidden-message {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--color-text);
  color: var(--color-bg);
  padding: calc(var(--spacing-unit) * 2);
  border: var(--color-border-thick);
  font-size: 1rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 10000;
  box-shadow: 8px 8px 0 0 var(--color-accent);
}

.hidden-message.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Typography Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-post,
.project {
  animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
}

.blog-post:nth-child(1) { animation-delay: 0.1s; }
.blog-post:nth-child(2) { animation-delay: 0.2s; }
.blog-post:nth-child(3) { animation-delay: 0.3s; }
.blog-post:nth-child(4) { animation-delay: 0.4s; }
.blog-post:nth-child(5) { animation-delay: 0.5s; }

.project:nth-child(1) { animation-delay: 0.1s; }
.project:nth-child(2) { animation-delay: 0.2s; }
.project:nth-child(3) { animation-delay: 0.3s; }

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    gap: calc(var(--spacing-unit) * 4);
    padding: calc(var(--spacing-unit) * 4) calc(var(--spacing-unit) * 2);
  }

  .intro {
    grid-column: 1 / -1;
    padding-left: calc(var(--spacing-unit) * 2);
  }

  .section-header {
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-unit) * 1);
  }

  .section-title-small {
    grid-column: 1;
    transform: translateY(0);
  }

  .section-link {
    grid-column: 1;
    align-self: start;
  }
}

@media (max-width: 768px) {
  .container {
    padding: calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 1.5);
    gap: calc(var(--spacing-unit) * 3);
  }

  .header {
    min-height: 200px;
    margin-bottom: calc(var(--spacing-unit) * 5);
  }

  .geo-shapes {
    display: none;
  }

  .name-secondary {
    position: relative;
    top: 0;
    left: 0;
    margin-top: -0.2em;
  }

  .header-accent {
    width: 80px;
    height: 80px;
    top: -10px;
  }

  .intro {
    padding-left: calc(var(--spacing-unit) * 1.5);
  }

  .blog-grid,
  .projects-grid {
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-unit) * 3);
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}
