/* ==========================================================================
   DESIGN SYSTEM - DAVIDE D'ANNA PHOTO
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Montserrat:wght@200;300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #fbfbfb;
  --bg-tertiary: #f5f5f5;
  --text-primary: #111111;
  --text-secondary: #4a4a4a;
  --text-muted: #888888;
  --accent-color: #b8975a; /* Warm gold/bronze */
  --accent-hover: #9c7f47;
  --border-color: #e8e8e8;
  --border-focus: #111111;
  
  /* Fonts */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  
  /* Layout */
  --max-width: 1280px;
  --header-height: 80px;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.2s ease;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

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

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */

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

main {
  min-height: calc(100vh - var(--header-height) - 150px);
  padding-top: var(--header-height);
}

/* Section styling */
section {
  padding: var(--space-lg) 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background-color: var(--accent-color);
  margin: var(--space-sm) auto 0;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition-smooth);
}

header.scrolled {
  height: 70px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-md);
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  position: relative;
  padding: 0.5rem 0;
  color: var(--text-secondary);
}

.nav-link:hover {
  color: var(--text-primary);
}

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

.nav-link.active {
  color: var(--text-primary);
  font-weight: 500;
}

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

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 1px;
  background-color: var(--text-primary);
  margin: 6px 0;
  transition: var(--transition-smooth);
}

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

.hero-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
}

.hero-intro h1 {
  font-size: 2.5rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.hero-intro .subtitle {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--accent-color);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  font-weight: 400;
}

.hero-intro .description {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-secondary);
  text-align: justify;
  text-align-last: center;
}

/* ==========================================================================
   PORTFOLIO GRID
   ========================================================================== */

.portfolio-section {
  padding-top: 0;
}

/* ==========================================================================
   PORTFOLIO FILTER CONTROLS
   ========================================================================== */

.portfolio-filter-container {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem 1.2rem;
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--text-primary);
  border-color: var(--accent-color);
}

.portfolio-item.hide-filter {
  display: none !important;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-sm);
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-tertiary);
  cursor: pointer;
  aspect-ratio: 3/2;
}

/* Masonry variations using spanning */
.portfolio-item.span-6 { grid-column: span 6; }
.portfolio-item.span-4 { grid-column: span 4; }
.portfolio-item.span-8 { grid-column: span 8; }
.portfolio-item.span-12 { grid-column: span 12; }
.portfolio-item.portrait { aspect-ratio: 2/3; }

.portfolio-img-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  filter: grayscale(15%);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition-smooth);
  padding: var(--space-md);
  text-align: center;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

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

.portfolio-info h3 {
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
  transform: translateY(10px);
  transition: var(--transition-smooth);
  transition-delay: 0.1s;
}

.portfolio-info p {
  font-size: 0.8rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: var(--accent-color);
  letter-spacing: 0.15em;
  transform: translateY(15px);
  transition: var(--transition-smooth);
  transition-delay: 0.15s;
}

.portfolio-item:hover .portfolio-info h3,
.portfolio-item:hover .portfolio-info p {
  transform: translateY(0);
}

/* ==========================================================================
   FEEDBACK / TESTIMONIALS SECTION
   ========================================================================== */

.feedback-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.review-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: var(--space-md);
  border-radius: var(--border-radius-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border-color: var(--accent-color);
}

.stars {
  color: var(--accent-color);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

.review-text {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
}

.reviewer-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.reviewer-source {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.google-link-container {
  text-align: center;
  margin-top: var(--space-md);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  border-bottom: 1px solid var(--text-primary);
  padding-bottom: 2px;
}

.btn-secondary:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

/* ==========================================================================
   CHI SONO / ABOUT PAGE
   ========================================================================== */

.about-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-lg);
  align-items: start;
  margin-top: var(--space-md);
}

.about-img-container {
  position: relative;
  border: 1px solid var(--border-color);
  padding: 10px;
  background-color: var(--bg-primary);
}

.about-img {
  width: 100%;
  filter: grayscale(10%);
  transition: var(--transition-smooth);
}

.about-img:hover {
  filter: grayscale(0%);
}

.about-content h2 {
  font-size: 2rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.about-content h2 span {
  color: var(--accent-color);
}

.about-content h3 {
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-bottom: var(--space-md);
}

.about-text p {
  margin-bottom: var(--space-md);
  text-align: justify;
}

.about-quote {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  border-left: 2px solid var(--accent-color);
  padding-left: var(--space-sm);
  margin: var(--space-md) 0;
  color: var(--text-primary);
  font-weight: 300;
}

/* ==========================================================================
   LIBRO LIBERO SECTION
   ========================================================================== */

.book-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.book-card {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: var(--space-lg);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: var(--space-lg);
  border-radius: var(--border-radius-sm);
  align-items: center;
}

.book-img-wrapper {
  max-width: 260px;
  margin: 0 auto;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  border-radius: 2px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.book-img-wrapper:hover {
  transform: translateY(-5px) rotate(-2deg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.book-info h3 {
  font-size: 1.75rem;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.book-tag {
  display: inline-block;
  background-color: rgba(184, 151, 90, 0.1);
  color: var(--accent-color);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: var(--space-md);
}

.book-description {
  margin-bottom: var(--space-md);
}

.book-description p {
  margin-bottom: var(--space-sm);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background-color: var(--text-primary);
  color: var(--bg-primary);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.9rem 2.2rem;
  border: 1px solid var(--text-primary);
  transition: var(--transition-smooth);
  cursor: pointer;
}

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

.btn-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.book-locations {
  margin-top: var(--space-md);
  border-top: 1px dashed var(--border-color);
  padding-top: var(--space-md);
}

.book-locations h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.book-locations ul {
  list-style: none;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.book-locations li {
  background-color: var(--bg-tertiary);
  padding: 4px 10px;
  border-radius: var(--border-radius-sm);
}

.book-locations li strong {
  color: var(--text-primary);
}

/* ==========================================================================
   CONTACT PAGE & FORM
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.contact-details h2 {
  font-size: 2rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.contact-info-list {
  list-style: none;
  margin-bottom: var(--space-lg);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.contact-info-icon {
  color: var(--accent-color);
  margin-top: 4px;
}

.contact-info-text h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.contact-info-text p, 
.contact-info-text a {
  font-size: 1.05rem;
  color: var(--text-primary);
}

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

.social-grid {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.social-button:hover {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form-container {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: var(--space-lg);
  border-radius: var(--border-radius-sm);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23111111' d='M10.293,3.293,6,7.586,1.707,3.293A1,1,0,0,0,.293,4.707l5,5a1,1,0,0,0,1.414,0l5-5a1,1,0,1,0-1.414-1.414Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form-status {
  padding: var(--space-sm);
  margin-bottom: var(--space-md);
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  display: none;
}

.form-status.success {
  display: block;
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-status.error {
  display: block;
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.form-status.info {
  display: block;
  background-color: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

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

footer {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: var(--space-lg) 0 var(--space-md);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.footer-nav {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

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

.copyright {
  text-align: center;
  border-top: 1px solid var(--border-color);
  width: 100%;
  padding-top: var(--space-md);
  margin-top: var(--space-md);
}

.piva-text {
  font-size: 0.75rem;
  display: block;
  margin-top: 4px;
}

/* ==========================================================================
   LIGHTBOX COMPONENT (CUSTOM JAVASCRIPT)
   ========================================================================== */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox.active {
  display: flex;
}

.lightbox-content-wrapper {
  position: relative;
  max-width: 90%;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox-img.loaded {
  opacity: 1;
  transform: scale(1);
}

.lightbox-caption {
  margin-top: var(--space-md);
  text-align: center;
  max-width: 600px;
}

.lightbox-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.lightbox-category {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* Lightbox Controls */
.lightbox-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  transition: var(--transition-fast);
  z-index: 2100;
}

.lightbox-btn:hover {
  color: var(--accent-color);
  transform: scale(1.05);
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* Scroll Animation classes */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  visibility: hidden;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .about-img-container {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .book-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-md);
  }
  
  .book-img-wrapper {
    margin: 0 auto;
  }
  
  .book-locations ul {
    justify-content: center;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 5rem;
  }
  
  header {
    height: 70px;
  }
  
  .logo-text {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
  }
  
  .logo-img {
    height: 35px;
  }
  
  /* Mobile Menu navigation toggle active */
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--bg-primary);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    transition: var(--transition-smooth);
    z-index: 1050;
    border-left: 1px solid var(--border-color);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  /* Hamburger animation */
  .nav-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  .hero-intro h1 {
    font-size: 1.85rem;
  }
  
  .hero-intro .description {
    font-size: 1rem;
    text-align: left;
    text-align-last: left;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .portfolio-item.span-4,
  .portfolio-item.span-6,
  .portfolio-item.span-8,
  .portfolio-item.span-12 {
    grid-column: span 6;
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  
  .lightbox-btn {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
  }
  
  .lightbox-prev {
    left: 5px;
  }
  
  .lightbox-next {
    right: 5px;
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }
  
  .portfolio-item.span-4,
  .portfolio-item.span-6,
  .portfolio-item.span-8,
  .portfolio-item.span-12 {
    grid-column: span 1;
  }
  
  .portfolio-item {
    aspect-ratio: 3/2;
  }
  
  .portfolio-item.portrait {
    aspect-ratio: 3/2; /* Flatten on mobile for consistency */
  }
  
  .contact-form-container {
    padding: var(--space-md);
  }
  
  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }
}

/* ==========================================================================
   WHATSAPP FLOATING BUTTON
   ========================================================================== */

.whatsapp-floating {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 1500;
  transition: var(--transition-smooth);
}

.whatsapp-floating:hover {
  background-color: #128c7e;
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.whatsapp-floating svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* Pulse Animation for WhatsApp button */
.whatsapp-floating::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #25d366;
  opacity: 0.3;
  z-index: -1;
  animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .whatsapp-floating {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
  }
  .whatsapp-floating svg {
    width: 24px;
    height: 24px;
  }
}

/* ==========================================================================
   COOKIE CONSENT BANNER
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: -250px; /* Hidden initially */
  left: 30px;
  right: 30px;
  max-width: var(--max-width);
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: var(--space-sm) var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  z-index: 1400;
  transition: bottom 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.cookie-banner.active {
  bottom: 30px;
}

.cookie-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: left;
}

.cookie-text a {
  color: var(--text-primary);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-text a:hover {
  color: var(--accent-color);
}

.cookie-btns {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.btn-cookie-accept {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border: 1px solid var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-cookie-accept:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.btn-cookie-decline {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-cookie-decline:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

@media (max-width: 768px) {
  .cookie-banner {
    left: 15px;
    right: 15px;
    bottom: -350px;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
    padding: var(--space-sm);
  }
  
  .cookie-banner.active {
    bottom: 80px; /* Avoid overlaying mobile menu if needed, or overlap floating buttons */
  }

  .cookie-text {
    font-size: 0.8rem;
  }
  
  .cookie-btns {
    justify-content: flex-end;
  }
}


