/* ========================================
   Roland Greczi — Interior Stylist
   Minimal, elegant portfolio design
   ======================================== */

:root {
  --color-bg: #FAF9F7;
  --color-text: #1A1A1A;
  --color-text-muted: #6B6B6B;
  --color-accent: #8B7355;
  --color-border: #E5E3DF;

  --font-display: 'Cormorant', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --space-2xl: 12rem;

  --max-width: 1400px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

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

/* Typography */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-md);
}

p {
  max-width: 60ch;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg);
  transition: var(--transition);
}

.header.scrolled {
  padding: var(--space-sm) var(--space-lg);
  box-shadow: 0 1px 0 var(--color-border);
}

.logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: var(--space-lg);
}

.nav a {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-text);
  transition: var(--transition);
}

.nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.menu-toggle span {
  width: 24px;
  height: 1px;
  background: var(--color-text);
  transition: var(--transition);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: var(--color-bg);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2rem;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: var(--space-2xl) var(--space-lg) calc(var(--space-lg) / 2);
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto var(--space-lg);
  width: 100%;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-style: italic;
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}

.hero-image {
  flex: 1;
  min-height: 50vh;
  overflow: hidden;
}

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

/* Work Section */
.work {
  padding: calc(var(--space-xl) / 2) var(--space-lg) var(--space-xl);
}

.section-header {
  max-width: var(--max-width);
  margin: 0 auto var(--space-xl);
}

/* Gallery */
.gallery {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.gallery-item {
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item--large {
  grid-column: span 2;
}

.gallery-item--large img {
  aspect-ratio: 16/9;
}

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-item--wide img {
  aspect-ratio: 21/9;
  object-position: center;
}

/* About Section */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  padding: var(--space-xl) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: center;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

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

.about-text p:first-child {
  color: var(--color-text);
  font-size: 1.125rem;
}

.about-image {
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
}

/* Contact Section */
.contact {
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact p {
  color: var(--color-text-muted);
  margin: 0 auto var(--space-lg);
}

.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-style: italic;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-xs);
  transition: var(--transition);
}

.contact-email:hover {
  border-color: var(--color-text);
}

.contact-social {
  margin-top: var(--space-lg);
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

.contact-social a {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.contact-social a:hover {
  color: var(--color-text);
}

/* Footer */
.footer {
  display: flex;
  justify-content: center;
  padding: var(--space-md) var(--space-lg);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Responsive */
@media (max-width: 1024px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 5rem;
    --space-2xl: 8rem;
  }
}

@media (max-width: 768px) {
  :root {
    --space-lg: 1.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

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

  .gallery-item--large,
  .gallery-item--wide {
    grid-column: span 1;
  }

  .gallery-item--large img,
  .gallery-item--wide img {
    aspect-ratio: 4/3;
  }

  .about {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about-content {
    order: 1;
  }

  .about-image {
    order: 2;
  }

  .hero {
    min-height: auto;
  }

  .footer {
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header {
    padding: var(--space-sm);
  }

  .hero {
    padding-top: var(--space-xl);
  }
}
