/* 
  Bauhaus Architecture - style.css 
  Design Philosophy: Form Follows Function, Minimalist, High Contrast, Geometric Grid.
*/

:root {
  /* Color Palette */
  --primary-color: #d4ff00; /* Lime Green / Accent */
  --bg-color: #ffffff;
  --text-main: #000000;
  --text-secondary: #666666;
  --text-on-accent: #000000;
  --text-on-image: #ffffff;
  --border-color: #eeeeee;
  
  /* Typography */
  --font-family: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --fs-hero: clamp(3rem, 8vw, 10rem);
  --fs-h2: 2.5rem;
  --fs-body: 1rem;
  --fs-nav: 0.875rem;
  --fw-bold: 700;
  --fw-medium: 500;
  --fw-regular: 400;

  /* Spacing */
  --space-unit: 1rem;
  --section-padding: 8rem;
  --grid-gap: 2px; /* Bauhaus aesthetic often uses minimal or no gaps */
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 1. Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* 2. Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
}

.logo {
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
  letter-spacing: -1px;
  text-transform: uppercase;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.contact-info {
  font-size: var(--fs-nav);
  font-weight: var(--fw-medium);
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a:hover {
  color: var(--primary-color);
}

.menu-toggle {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 30px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  transition: var(--transition-smooth);
}

/* 3. Hero Section */
.hero {
  padding: calc(var(--section-padding) + 2rem) 4% var(--section-padding);
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-headline {
  font-size: var(--fs-hero);
  font-weight: var(--fw-bold);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  max-width: 90%;
}

/* 4. Filter Bar */
.filter-bar {
  padding: 2rem 4%;
  display: flex;
  gap: 2rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0;
}

.filter-item {
  font-size: var(--fs-nav);
  text-transform: uppercase;
  font-weight: var(--fw-bold);
  cursor: pointer;
  padding-bottom: 0.5rem;
  position: relative;
}

.filter-item.active {
  color: var(--text-main);
}

.filter-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
}

/* 5. Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
  background-color: var(--border-color); /* Creates the grid line effect */
}

.project-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--bg-color);
}

.project-image {
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  color: var(--text-on-image);
  z-index: 2;
  transition: var(--transition-smooth);
}

.project-title {
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  margin-bottom: 0.5rem;
}

.project-link {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Card Hover State (The Bauhaus Overlay) */
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 3;
}

.project-card:hover .project-overlay {
  opacity: 0.95;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.overlay-desc {
  font-size: 1.1rem;
  font-weight: var(--fw-medium);
  color: var(--text-on-accent);
  margin-bottom: 2rem;
}

/* 6. Footer */
.site-footer {
  padding: var(--section-padding) 4% 4rem;
  background-color: var(--bg-color);
  border-top: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 4rem;
}

.footer-brand .logo {
  margin-bottom: 2rem;
  display: block;
}

.footer-column h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.footer-column ul li a {
  font-size: 0.9rem;
  color: var(--text-main);
}

.footer-column ul li a:hover {
  padding-left: 5px;
  color: var(--text-secondary);
}

.language-switcher {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.lang-link {
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  color: var(--text-secondary);
}

.lang-link.active {
  color: var(--text-main);
}

/* 7. Floating UI Elements */
.floating-aside {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 100;
}

.floating-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-color);
  font-size: 0.8rem;
}

.floating-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

/* 8. Utility Classes */
.text-uppercase { text-transform: uppercase; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.whitespace-xl { height: 10rem; }

/* 9. Responsive Design */

/* Tablet (1024px) */
@media (max-width: 1024px) {
  :root {
    --section-padding: 5rem;
  }
  
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .header-right {
    gap: 1.5rem;
  }

  .contact-info {
    display: none;
  }
}

/* Mobile (768px) */
@media (max-width: 768px) {
  :root {
    --section-padding: 3rem;
  }

  .site-header {
    padding: 1.5rem 5%;
  }

  .hero-headline {
    font-size: 3.5rem;
    max-width: 100%;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    overflow-x: auto;
    white-space: nowrap;
    padding: 1.5rem 5%;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 2rem;
  }

  .floating-aside {
    display: none; /* Hide floating bar on mobile for cleaner UX */
  }

  .project-card {
    aspect-ratio: 1 / 1;
  }

  .project-info {
    padding: 1.5rem;
  }

  /* On touch devices, since hover isn't natural, we make a subtle permanent overlay */
  .project-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.7) 100%);
    pointer-events: none;
  }
}

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

.hero-headline {
  animation: fadeInUp 1s ease-out forwards;
}

.project-card {
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.2s;
}