/* ==========================================================================
   WORKS PORTFOLIO GRID STYLE SHEET
   ========================================================================== */

/* Base Dark Theme Layout */
html, body {
  width: 100vw;
  height: auto !important;
  overflow: visible !important;
  overflow-x: hidden !important;
  background-color: #030712; /* Rich luxury black background */
  color: #ffffff;
}

.works-grid-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 140px 40px 60px 40px;
  position: relative;
}

/* Abstract dynamic glowing gradient backdrops */
.works-grid-container::before {
  content: "";
  position: fixed;
  top: 20%;
  left: 5%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0) 70%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  filter: blur(50px);
  animation: blob-float 15s infinite alternate ease-in-out;
}

.works-grid-container::after {
  content: "";
  position: fixed;
  bottom: 20%;
  right: 5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0) 70%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  filter: blur(60px);
  animation: blob-float 18s infinite alternate-reverse ease-in-out;
}

@keyframes blob-float {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(40px) scale(1.1); }
}

/* Header Text Blocks */
.works-header-block {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 10;
}

.works-grid-title {
  font-size: 3.4rem; /* Slightly larger title size */
  font-weight: 700; /* Bold style */
  color: #ffffff; /* White title for dark theme */
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.works-grid-subtitle {
  font-size: 1.1rem;
  color: #94a3b8; /* Silver slate subtitle */
  max-width: 600px;
  margin: 0 auto;
}

/* Design Grid Columns */
.design-works-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  width: 100%;
  position: relative;
  z-index: 10;
}

/* Glassy dark card styling */
.design-grid-card {
  background: rgba(15, 23, 42, 0.4); /* Glass dark fill */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08); /* Dark subtle border */
  border-radius: 16px; /* Slightly curvier */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
              border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
              box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.design-grid-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Premium pop-up lift and glowing edges */
.design-grid-card:hover {
  transform: translateY(-10px) scale(1.03) !important; /* Force override GSAP inline transforms */
  border-color: #10b981; /* Glowing emerald border */
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.4), 
              0 20px 40px rgba(0, 0, 0, 0.6); /* Glowing edge drop-shadow */
}

/* Internal image zoom-in on hover */
.design-grid-card:hover img {
  transform: scale(1.04);
}

/* Active Nav Links */
.main-nav a.active {
  color: #10b981;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #10b981;
}

/* Footer layout spacer */
.grid-footer {
  margin-top: 80px;
}

/* Custom navigation styling overrides for works page to match dark theme */
.site-header {
  background: rgba(3, 7, 18, 0.8) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

.logo span {
  color: #ffffff !important;
}

.main-nav a {
  color: #94a3b8 !important;
  position: relative;
}

.main-nav a:hover {
  color: #ffffff !important;
}

.main-nav a.btn-primary-nav {
  background: #facc15 !important; /* Yellow background */
  color: #0f172a !important; /* Black text override */
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.2) !important;
  transition: background 0.25s ease, transform 0.2s ease !important;
}

.main-nav a.btn-primary-nav:hover {
  background: #eab308 !important; /* Gold hover */
  color: #0f172a !important;
  transform: translateY(-1px) scale(1.02) !important;
}

.sub-footer p {
  color: #64748b !important;
}

/* Responsive constraints */
@media (max-width: 768px) {
  .works-grid-container {
    padding: 120px 20px 40px 20px;
  }
  
  .works-grid-title {
    font-size: 2.2rem;
  }
  
  .design-works-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
