/* =========================================
   DATAMAKER - Minimal & Refined
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
  --color-bg: #ffffff;
  --color-bg-soft: #f8f8f8;
  --color-text: #1a1a1a;
  --color-text-muted: #666666;
  --color-border: #e5e5e5;
  
  --font-display: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  
  --max-width: 1000px;
  --transition: 0.2s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Language Switcher (fixed top right) */
.lang-switch {
  position: fixed;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 100;
  display: flex;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.lang-switch a {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  transition: var(--transition);
}

.lang-switch a:hover,
.lang-switch a.active {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

/* Side Navigation (left side, vertical text) */
.side-nav {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-sm);
}

.side-nav-item {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.side-nav-item:hover {
  color: var(--color-text);
}

.side-nav-item.active {
  color: var(--color-text);
}

/* Hide side nav on mobile */
@media (max-width: 768px) {
  .side-nav {
    display: none;
  }
}

/* =========================================
   HERO SECTION
   ========================================= */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  position: relative;
}

.hero-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: var(--space-lg);
  background: var(--color-border);
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}

.hero-photo:hover {
  filter: grayscale(0%);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.hero-title::before {
  content: '[ ';
  opacity: 0.4;
}

.hero-title::after {
  content: ' ]';
  opacity: 0.4;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.hero-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-size: 0.875rem;
}

.hero-contact-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}

.hero-contact-label:first-child {
  margin-top: 0;
}

.hero-contact a:hover {
  opacity: 0.6;
}

.scroll-hint {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  color: var(--color-text-muted);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

/* =========================================
   ABOUT SECTION
   ========================================= */

.about {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 700px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.about-text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.about-text p {
  margin-bottom: var(--space-sm);
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text strong {
  color: var(--color-text);
}

.about-photo {
  border-radius: 4px;
  overflow: hidden;
  background: var(--color-border);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.about-skills {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.about-skills-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
  display: block;
}

.about-skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  font-size: 0.75rem;
  font-family: var(--font-display);
  padding: 0.3rem 0.6rem;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  color: var(--color-text-muted);
}

/* =========================================
   PRODUCTS SECTION
   ========================================= */

.products {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
}

.products h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.products-subtitle {
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 600px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-card {
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: var(--transition);
}

.product-card:hover {
  border-color: var(--color-text);
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-sm);
  gap: var(--space-sm);
}

.product-header h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
}

.product-price {
  text-align: right;
  flex-shrink: 0;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
}

.price-unit {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.price-from {
  display: block;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: lowercase;
}

.product-description {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* =========================================
   CLIENTS SECTION
   ========================================= */

.clients {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
}

.clients h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.clients-subtitle {
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

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

.client-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.client-row:hover {
  background: var(--color-bg-soft);
  margin: 0 calc(-1 * var(--space-sm));
  padding-left: var(--space-sm);
  padding-right: var(--space-sm);
}

.client-logo {
  width: 80px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-bg);
}

.client-logo:hover {
  background: var(--color-bg-soft);
}

.client-logo-placeholder {
  width: 80px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-text-muted);
}

.client-info {
  flex: 1;
  min-width: 0;
}

.client-name {
  display: block;
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.client-projects {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.client-project {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.client-tags {
  display: flex;
  gap: var(--space-xs);
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.client-tag {
  font-size: 0.7rem;
  font-family: var(--font-display);
  padding: 0.2rem 0.5rem;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  color: var(--color-text-muted);
}

/* CTA row */
.client-cta {
  color: var(--color-bg);
  margin-top: 0;
  border-bottom: none;
  border-top: 1px solid var(--color-border);
  border-color: var(--color-bg);
  background-color: #333; /* darker gray */
  padding: 8px 12px;
  border-radius: 4px;
}

.client-cta:hover {
  color: var(--color-text)
}

.client-cta .client-logo-placeholder {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
  background-color: #333; /* darker gray */
  padding: 8px 12px;
  border-radius: 4px;
}

.client-cta:hover .client-logo-placeholder {
  color: var(--color-text);
  background: var(--color-text-muted);
}


/* =========================================
   FOOTER
   ========================================= */

.footer {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-content {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer-brand {
  font-family: var(--font-display);
  margin-bottom: var(--space-xs);
}

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

@media (max-width: 600px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 4rem;
  }
  
  .hero-photo {
    width: 120px;
    height: 120px;
  }
  
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .client-card {
    padding: var(--space-sm);
    min-height: 100px;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint { animation: none; }
}
