/* =========================
GLOBAL
========================= */
* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

body {
   font-family: 'Inter', sans-serif;
   background: #111;
   color: #f5f5f5;
   line-height: 1.6;
   scroll-behavior: smooth;
   -webkit-font-smoothing: antialiased;
   text-rendering: optimizeLegibility;
}

img {
   width: 100%;
   display: block;
}

a {
   text-decoration: none;
   color: inherit;
}

.container {
   width: 90%;
   max-width: 1200px;
   margin: auto;
}

/* =========================
HEADER
========================= */
header {
   position: fixed;
   width: 100%;
   top: 0;
   left: 0;
   background: rgba(0, 0, 0, 0.9);
   backdrop-filter: blur(10px);
   z-index: 1000;
   padding: 20px 0;
}

nav {
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.logo {
   display: flex;
   align-items: center;
   gap: 10px;
   font-family: 'Playfair Display', serif;
   font-size: 26px;
   font-weight: 700;
   color: #ffffff;
   white-space: nowrap;
}

.logo img {
   width: 40px;
   height: 40px;
   object-fit: cover;
   border-radius: 50%;
   background: #ffffff;
   padding: 2px;
}

.logo span {
   display: inline-block;
   line-height: 1;
   letter-spacing: 0.5px;
}

.nav-links {
   display: flex;
   gap: 30px;
}

.nav-links a {
   color: #ddd;
   transition: 0.3s;
}

.nav-links a:hover {
   color: #c9a66b;
}

.menu-toggle {
   display: none;
   font-size: 32px;
   cursor: pointer;
   color: #fff;
}

/* =========================
GALLERY
========================= */
.gallery-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
   gap: 35px;
}

.art-card {
   position: relative;
   background: #161616;
   border-radius: 28px;
   overflow: hidden;
   cursor: pointer;
   transform: translateY(0) scale(1);
   transition:
      transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
   will-change: transform;
   box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.25);
}

.art-card::before {
   content: "";
   position: absolute;
   inset: 0;
   background:
      radial-gradient(circle at top left,
         rgba(201, 166, 107, 0.16),
         transparent 55%);
   opacity: 0;
   transition:
      opacity 0.5s ease;
   pointer-events: none;
   z-index: 1;
}

.art-card:hover::before {
   opacity: 1;
}

.art-card:hover {
   transform:
      translateY(-10px) scale(1.015);
   box-shadow:
      0 35px 70px rgba(0, 0, 0, 0.42);
   z-index: 10;
}

.art-slider {
   position: relative;
   overflow: hidden;
   z-index: 2;
}

.slider-images {
   position: relative;
   display: flex;
   width: 100%;
   overflow-x: auto;
   scroll-snap-type: x mandatory;
   scrollbar-width: none;
}

.slider-images::-webkit-scrollbar {
   display: none;
}

.slider-images img {
   min-width: 100%;
   height: 420px;
   object-fit: cover;
   scroll-snap-align: start;
   filter: brightness(0.96);
   transition:
      transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
      filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.art-card:hover .slider-images img {
   transform: scale(1.06);
   filter: brightness(1.03);
}

.art-content {
   position: relative;
   padding: 28px;
   background: #161616;
   z-index: 2;
}

.art-content h3 {
   font-size: 30px;
   margin-bottom: 12px;
   font-family: 'Playfair Display', serif;
}

.price-tag {
   display: inline-block;
   margin-top: 14px;
   padding: 8px 14px;
   background: #c9a66b;
   color: #111;
   border-radius: 30px;
   font-weight: 600;
   font-size: 14px;
}

/* =========================
BADGES
========================= */
.art-status {
   position: absolute;
   text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
   top: 18px;
   left: 18px;
   z-index: 20;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   min-height: 40px;
   min-width: 120px;
   padding: 10px 16px;
   border-radius: 999px;
   font-size: 13px;
   font-weight: 700;
   letter-spacing: 0.8px;
   text-transform: uppercase;
   backdrop-filter: blur(14px);
   -webkit-backdrop-filter: blur(14px);
   box-shadow:
      0 8px 20px rgba(0, 0, 0, 0.35);
}

.art-status {
   transition:
      transform 0.4s ease,
      opacity 0.4s ease;
}

.art-card:hover .art-status {
   transform: translateY(-2px);
}

.art-status.available {
   background: rgba(22, 163, 74, 0.92);
   color: #fff;
}

.art-status.sold {
   background: rgba(220, 38, 38, 0.92);
   color: #fff;
}

.art-status.commissioned {
   background: rgba(37, 99, 235, 0.92);
   color: #fff;
}

.art-status.featured {
   background: rgba(202, 138, 4, 0.92);
   color: #fff;
}

.art-status.limited {
   background: rgba(147, 51, 234, 0.92);
   color: #fff;
}

.art-status.new {
   background: rgba(249, 115, 22, 0.92);
   color: #fff;
}

/* =========================
MODAL
========================= */
.modal {
   display: none;
   position: fixed;
   inset: 0;
   z-index: 5000;
   background: rgba(0, 0, 0, 0.92);
   overflow-y: auto;
   overflow-x: hidden;
   padding: 80px 20px;
}

.modal-content {
   width: 100%;
   max-width: 1200px;
   margin: auto;
   display: grid;
   grid-template-columns: 1.2fr 0.8fr;
   gap: 40px;
   align-items: start;
}

.modal-images {
   display: flex;
   gap: 20px;
   overflow-x: auto;
   scroll-snap-type: x mandatory;
}

.modal-images img {
   width: auto;
   height: auto;
   max-width: 80vw;
   max-height: 75vh;
   object-fit: contain;
   border-radius: 20px;
   background: #1b1b1b;
   padding: 10px;
   flex-shrink: 0;
}

.modal-details {
   padding-top: 20px;
}

.modal-details h2 {
   font-size: 42px;
   margin-bottom: 20px;
   font-family: 'Playfair Display', serif;
}

.modal-details p {
   margin-bottom: 14px;
   color: #ddd;
   line-height: 1.8;
}

.modal-status {
   margin: 20px 0;
}

.modal-status .art-status {
   position: static;
   display: inline-flex;
}

.modal-price {
   display: inline-block;
   margin-top: 20px;
   background: #c9a66b;
   color: #111;
   padding: 12px 18px;
   border-radius: 30px;
   font-weight: 700;
}

.close-modal {
   position: fixed;
   top: 20px;
   right: 20px;
   width: 48px;
   height: 48px;
   display: flex;
   align-items: center;
   justify-content: center;
   background: rgba(0, 0, 0, 0.75);
   border-radius: 50%;
   font-size: 30px;
   cursor: pointer;
   color: white;
   z-index: 10001;
}

/* =========================
CONTACT
========================= */
.contact-links-section {
   padding: 80px 0 40px;
   border-top: 1px solid #222;
}

.contact-links-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
   gap: 20px;
}

.contact-link-card {
   background: #1b1b1b;
   padding: 24px;
   border-radius: 18px;
   transition: 0.3s;
   text-align: center;
}

.contact-link-card:hover {
   transform: translateY(-5px);
   background: #222;
}

.whatsapp-float {
   position: fixed;
   width: 65px;
   height: 65px;
   bottom: 25px;
   right: 25px;
   background: #25D366;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   z-index: 9999;
}

.whatsapp-float:hover {
   transform: scale(1.08);
}

.whatsapp-float img {
   width: 34px;
   height: 34px;
}

footer {
   text-align: center;
   padding: 40px 0;
   border-top: 1px solid #222;
   color: #888;
}

@media (max-width:768px) {
   .menu-toggle {
      display: block;
   }

   .nav-links {
      position: absolute;
      top: 90px;
      right: 5%;
      background: #1b1b1b;
      width: 240px;
      border-radius: 18px;
      padding: 20px;
      flex-direction: column;
      gap: 20px;
      display: none;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
      z-index: 9999;
   }

   .nav-links.active {
      display: flex;
   }

   .nav-links a {
      font-size: 18px;
   }

   .art-card img {
      height: 280px;
   }

   .modal {
      padding: 90px 15px 140px;
   }

   .modal-content {
      grid-template-columns: 1fr;
      gap: 30px;
   }

   .modal-images {
      padding-bottom: 20px;
   }

   .modal-images img {
      max-width: 75vw;
      max-height: 60vh;
   }

   .modal-details {
      padding-bottom: 120px;
   }

   .modal-details h2 {
      font-size: 30px;
      line-height: 1.2;
   }

   .close-modal {
      top: 18px;
      right: 18px;
   }

   .art-card,
   .slider-images img {
      will-change: transform;
   }
}

/* =========================
SCROLL REVEAL
========================= */
.reveal {
   opacity: 0;
   transform:
      translateY(50px) scale(0.98);
   will-change: opacity, transform;
   transition:
      opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
   opacity: 1;
   transform:
      translateY(0) scale(1);
}

/* =========================
CINEMATIC REVEALS
========================= */
.reveal-soft {
   opacity: 0;
   transform:
      translateY(30px);
   will-change: opacity, transform;
   transition:
      opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
      transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-soft.active {
   opacity: 1;
   transform:
      translateY(0);
}

.reveal-image {
   opacity: 0;
   transform:
      scale(1.06);
   will-change: opacity, transform;
   transition:
      opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1),
      transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-image.active {
   opacity: 1;
   transform:
      scale(1);
}