/*
Theme Name: Floating Portfolio
Theme URI: https://example.com/floating-portfolio
Author: Custom
Author URI: https://example.com
Description: A simple black and white creative portfolio theme inspired by floating project layouts. Features a masonry-style floating grid with hover effects.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: floating-portfolio
Tags: portfolio, black-and-white, creative, masonry, one-column
*/

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #fff;
  color: #000;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: #000;
  text-decoration: none;
}

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

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #000;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.main-nav a {
  margin-left: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.main-nav a:hover {
  text-decoration: underline;
}

/* Main Content */
.site-main {
  padding-top: 80px;
  min-height: 100vh;
}

.portfolio-hero {
  padding: 4rem 2rem 2rem;
  text-align: center;
}

.portfolio-hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin-bottom: 1rem;
}

.portfolio-hero p {
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
  opacity: 0.7;
}

/* Floating Portfolio Grid */
.floating-portfolio {
  padding: 2rem;
  max-width: 1600px;
  margin: 0 auto;
  columns: 3;
  column-gap: 1.5rem;
}

@media (max-width: 1200px) {
  .floating-portfolio {
    columns: 2;
  }
}

@media (max-width: 700px) {
  .floating-portfolio {
    columns: 1;
  }
}

.portfolio-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item:hover {
  transform: translateY(-8px);
}

.portfolio-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

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

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}

.portfolio-overlay h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}

.portfolio-overlay span {
  font-size: 0.85rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Footer */
.site-footer {
  border-top: 1px solid #000;
  padding: 3rem 2rem;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 4rem;
}

.site-footer p {
  opacity: 0.6;
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
