/* ============================================================================
   PILO STUDIO — Minimalist Artist Portfolio
   Mobile-first · Inter + Cormorant Garamond (logo only)
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Cormorant+Garamond:ital,wght@1,300;1,400&display=swap');

/* --- Custom Properties --- */
:root {
  --bg: #FAFAF8;
  --bg-warm: #F5F3EF;
  --text: #1A1A1A;
  --text-light: #6B6B6B;
  --accent: #4A8B9E;
  --accent-dark: #2C5F6E;
  --white: #FFFFFF;
  --border: #E8E6E1;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --transition: 0.3s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================================================
   NAVIGATION
   ============================================================================ */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  transition: all var(--transition);
}

nav.scrolled {
  background: rgba(250, 250, 248, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 48px;
  box-shadow: 0 1px 0 var(--border);
}

.logo {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  transition: color var(--transition);
}

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

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px;
  background: var(--white);
}

.lang-btn {
  background: none;
  border: none;
  padding: 5px 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  border-radius: 16px;
  transition: all var(--transition);
  color: var(--text-light);
}

.lang-btn.active {
  background: var(--accent);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 24px; height: 2px;
  background: var(--text);
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

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

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 60%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 80px 80px;
}

.hero-text { max-width: 650px; }

.hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero p,
.hero .subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  font-weight: 300;
  margin-bottom: 32px;
}

.hero-cta {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
  padding: 14px 32px;
  transition: all var(--transition);
}

.hero-cta:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.8);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px; right: 80px;
  z-index: 2;
  color: rgba(255,255,255,0.5);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ============================================================================
   INTRO SECTION
   ============================================================================ */

.intro, .section-fade {
  padding: 120px 48px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.intro-container {
  max-width: 800px;
  margin: 0 auto;
}

.intro-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.intro h2 {
  font-family: var(--font-sans);
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 20px;
}

.intro p, .intro-text {
  font-size: 16px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ============================================================================
   FEATURED WORKS / WORKS GRID
   ============================================================================ */

.featured-works {
  padding: 40px 48px 120px;
  max-width: 1400px;
  margin: 0 auto;
}

.featured-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.featured-header h2 {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 300;
}

.view-all-link {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color var(--transition);
}

.view-all-link:hover { color: var(--accent); }

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-warm);
  aspect-ratio: 1;
}

.work-item:first-child {
  grid-row: span 2;
  aspect-ratio: auto;
}

.work-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.work-item:hover .work-img { transform: scale(1.05); }

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

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

.work-info h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 4px;
}

.work-info span {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

/* ============================================================================
   ABOUT PAGE
   ============================================================================ */

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 80px);
  margin-top: 80px;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 80px);
  margin-top: 80px;
}

.about-image {
  position: relative;
  min-height: 500px;
  background: var(--bg-warm);
  overflow: hidden;
}

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

.about-image-label {
  position: absolute;
  bottom: 20px; left: 20px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.about-text {
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}

.about-text h2 {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 28px;
}

.about-text p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 18px;
  line-height: 1.8;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.about-tags span {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border: 1px solid var(--border);
  color: var(--text-light);
  transition: all var(--transition);
}

.about-tags span:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================================
   PORTFOLIO PAGE
   ============================================================================ */

.portfolio-header {
  padding: 140px 48px 32px;
}

.portfolio-header-content { max-width: 700px; }

.portfolio-header h1 {
  font-family: var(--font-sans);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  margin-bottom: 12px;
}

.portfolio-header p {
  font-size: 15px;
  color: var(--text-light);
}

.portfolio-filters {
  padding: 0 48px 32px;
}

.filters-container {
  display: flex;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.filter-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 8px 0;
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
}

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

.filter-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--text);
}

.portfolio-grid-section {
  padding: 0 48px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: 80px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-warm);
  aspect-ratio: 4/5;
}

.portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-item:hover img { transform: scale(1.05); }

.portfolio-item .work-overlay { padding: 20px; }

.work-status {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  margin-top: 6px;
}

.status-available { background: rgba(74,139,158,0.85); color: white; }
.status-sold { background: rgba(100,100,100,0.6); color: white; }

.inquiry-btn {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
  padding: 8px 20px;
  background: none;
  cursor: pointer;
  transition: all var(--transition);
}

.inquiry-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.8);
}

/* ============================================================================
   CONTACT PAGE
   ============================================================================ */

.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.contact-info {
  background: var(--text);
  color: var(--white);
  padding: 140px 80px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h1 {
  font-family: var(--font-sans);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  margin-bottom: 28px;
}

.contact-info p {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  line-height: 1.8;
}

.contact-info a {
  color: var(--accent);
  transition: color var(--transition);
}

.contact-info a:hover { color: #6BB0C3; }

.contact-social {
  margin-top: 40px;
  display: flex;
  gap: 20px;
}

.contact-social a {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

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

.contact-form-wrapper {
  padding: 140px 80px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}

.contact-form { max-width: 460px; }

.form-group { margin-bottom: 28px; }

.form-group label {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--text);
  background: transparent;
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #C0BDB8;
}

.submit-btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--text);
  border: none;
  padding: 16px 40px;
  cursor: pointer;
  transition: background var(--transition);
  margin-top: 8px;
}

.submit-btn:hover { background: var(--accent-dark); }

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

footer, .footer {
  padding: 48px;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-light);
  max-width: 1400px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-light);
  font-size: 12px;
  letter-spacing: 0.5px;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--text); }

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================================
   RESPONSIVE — Tablet (< 768px)
   ============================================================================ */

@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  nav.scrolled { padding: 12px 24px; }

  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 56px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(250,250,248,0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }

  .hero-content { padding: 0 24px 60px; }

  .intro, .section-fade { padding: 80px 24px; }

  .featured-works { padding: 24px 24px 80px; }

  .works-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .work-item:first-child {
    grid-row: span 1;
    aspect-ratio: 1;
  }

  .about-content, .about-container {
    grid-template-columns: 1fr;
    margin-top: 60px;
  }

  .about-image { min-height: 350px; }
  .about-text { padding: 40px 24px; }

  .portfolio-header { padding: 110px 24px 24px; }
  .portfolio-filters { padding: 0 24px 24px; }
  .portfolio-grid-section { padding: 0 24px; }

  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .contact-section { grid-template-columns: 1fr; }
  .contact-info { padding: 110px 24px 48px; }
  .contact-form-wrapper { padding: 40px 24px 60px; }

  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .scroll-indicator { display: none; }
}

/* ============================================================================
   RESPONSIVE — Mobile (< 480px)
   ============================================================================ */

@media (max-width: 480px) {
  .works-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .work-item { aspect-ratio: 3/4; }
  .portfolio-item { aspect-ratio: 3/4; }

  .hero h1 { font-size: 28px; }
  .featured-header { flex-direction: column; gap: 12px; align-items: flex-start; }
  .filters-container { flex-wrap: wrap; gap: 8px; }
}

/* ============================================================================
   ACCESSIBILITY & REDUCED MOTION
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
