﻿/* ==========================================================================
   Crea8Digitals / Graphizine / Crea8Webs - Official Showcase Stylesheet
   ========================================================================== */

:root {
  --brand: #F8AF3C;
  --brand-glow: rgba(248, 175, 60, 0.4);
  --brand-secondary: #fac355;
  --brand-dark: #c97e1c;
  --bg-dark: #0a0a0c;
  --bg-card: rgba(22, 22, 28, 0.75);
  --border-card: rgba(255, 255, 255, 0.08);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: #0a0a0c;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #F8AF3C, #8c520e);
  border-radius: 999px;
  border: 2px solid #0a0a0c;
}
::-webkit-scrollbar-thumb:hover {
  background: #F8AF3C;
}

/* Background Cyber Grid */
.bg-grid {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 55px 55px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 50%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 50%, transparent 85%);
}

/* Ambient Glow Orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-30px) scale(1.08); }
  100% { transform: translateY(15px) scale(0.95); }
}

/* Shimmer Gradient Text */
.text-shimmer {
  background: linear-gradient(135deg, #ffffff 15%, #F8AF3C 55%, #ffd285 85%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 250% 250%;
  animation: shimmerMove 8s ease infinite;
}

.text-gold {
  background: linear-gradient(135deg, #F8AF3C 0%, #fac355 50%, #e89b2a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes shimmerMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Glassmorphic Navbar */
.nav-blur {
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Portfolio Card */
.portfolio-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.portfolio-card:hover {
  transform: translateY(-7px);
  border-color: rgba(248, 175, 60, 0.55);
  box-shadow: 0 16px 40px -10px rgba(248, 175, 60, 0.25), 0 0 20px rgba(248, 175, 60, 0.1);
}

.portfolio-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 12, 0.95) 0%, rgba(10, 10, 12, 0.5) 45%, rgba(10, 10, 12, 0.1) 100%);
  opacity: 0.85;
  transition: opacity 0.35s ease;
}

.portfolio-card:hover .card-overlay {
  opacity: 0.95;
}

.portfolio-card .card-img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .card-img {
  transform: scale(1.06);
}

/* Filter Tab Pills */
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}

.filter-btn:hover {
  color: #ffffff;
  border-color: rgba(248, 175, 60, 0.4);
  background: rgba(248, 175, 60, 0.08);
}

.filter-btn.active {
  color: #0a0a0c;
  background: linear-gradient(135deg, #F8AF3C, #e89b2a);
  border-color: #F8AF3C;
  font-weight: 600;
  box-shadow: 0 4px 20px -3px rgba(248, 175, 60, 0.55);
}

.filter-btn .count-badge {
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  transition: background 0.25s ease;
}

.filter-btn.active .count-badge {
  background: rgba(10, 10, 12, 0.2);
  color: #0a0a0c;
  font-weight: 700;
}

/* Floating Action / WhatsApp Widget */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.whatsapp-pulse {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: grid;
  place-items: center;
  color: white;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-pulse:hover {
  transform: scale(1.1);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.65);
}

.whatsapp-pulse::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.7;
  animation: ripple 2s infinite ease-out;
}

@keyframes ripple {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Lightbox Modal */
#lightboxModal {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#lightboxModal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#lightboxModal:not(.active) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lightbox-content {
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#lightboxModal.active .lightbox-content {
  transform: scale(1);
}

/* Shimmer Button */
.btn-gold {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: #0a0a0c;
  background: linear-gradient(135deg, #F8AF3C, #e89b2a);
  box-shadow: 0 8px 24px -5px rgba(248, 175, 60, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -6px rgba(248, 175, 60, 0.7);
}

.btn-gold::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(30deg) translateY(-100%);
  transition: transform 0.8s ease;
}

.btn-gold:hover::after {
  transform: rotate(30deg) translateY(100%);
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.92rem;
  color: #fff;
  border: 1px solid rgba(248, 175, 60, 0.35);
  background: rgba(248, 175, 60, 0.05);
  transition: all 0.25s ease;
}

.btn-outline-gold:hover {
  border-color: #F8AF3C;
  background: rgba(248, 175, 60, 0.15);
  color: #F8AF3C;
}

/* Animations for grid cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-card {
  animation: fadeInUp 0.45s ease forwards;
}

/* Brand pills in header */
.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.brand-crea8 {
  background: rgba(248, 175, 60, 0.12);
  border: 1px solid rgba(248, 175, 60, 0.3);
  color: #F8AF3C;
}
.brand-graphizine {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
}
.brand-crea8webs {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

/* Partner & Ecosystem Glow Card */
.glow-card {
  position: relative;
  background: linear-gradient(180deg, rgba(28,28,36,0.85), rgba(16,16,20,0.85));
  border: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  transition: transform .4s cubic-bezier(0.16, 1, 0.3, 1), border-color .4s ease, box-shadow .4s ease;
}

.glow-card:hover {
  transform: translateY(-6px);
  border-color: rgba(248,175,60,0.55);
  box-shadow: 0 20px 50px -10px rgba(248,175,60,0.25);
}

.glow-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(248,175,60,0.6), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  opacity: 0;
  transition: opacity .4s ease;
}

.glow-card:hover::before {
  opacity: 1;
}

/* Load More Button Styling (matching reference) */
#loadMoreBtn {
  background: rgba(16, 16, 22, 0.9);
  border: 1.5px solid rgba(168, 85, 247, 0.45);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#loadMoreBtn:hover {
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.12);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.35), 0 8px 25px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}
