/* =====================================================
   ONIXSERCOM — Shared Stylesheet
   All common styles extracted from the 4 pages
   ===================================================== */

:root {
  --primary: #0a2540;
  --accent-1: #00e5ff;
  --accent-2: #ff0055;
  --accent-3: #ffcc00;
  --surface: rgba(255, 255, 255, 0.75);
  --text-main: #1a1f36;
  --text-light: #4f566b;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: #f8f9fa;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

/* --- DYNAMIC COMPLEX IMAGE BLOBS BACKGROUND --- */
.blob-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-color: #f8f9fa;
}

.blob-img {
  position: absolute;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  animation: morph 15s ease-in-out infinite, floatAnimation 20s ease-in-out infinite alternate;
  will-change: transform, border-radius;
  box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.5);
}

.blob-img-1 {
  top: -10%;
  left: -5%;
  width: 45vw;
  height: 45vw;
  background-image: url('https://images.pexels.com/photos/1887946/pexels-photo-1887946.jpeg');
  animation-delay: 0s, 0s;
}

.blob-img-2 {
  top: 20%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background-image: url('https://images.pexels.com/photos/2293822/pexels-photo-2293822.jpeg');
  animation-delay: -5s, -7s;
  opacity: 0.12;
}

.blob-img-3 {
  bottom: -15%;
  left: 15%;
  width: 40vw;
  height: 40vw;
  background-image: url('https://images.pexels.com/photos/10194600/pexels-photo-10194600.jpeg');
  animation-delay: -10s, -3s;
  opacity: 0.1;
}

@keyframes morph {
  0%   { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50%  { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

@keyframes floatAnimation {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(30px, -40px) rotate(5deg); }
  100% { transform: translate(-20px, 20px) rotate(-5deg); }
}

/* --- TYPOGRAPHY & UTILS --- */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent-1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-custom-secondary {
  color: var(--text-light) !important;
}

.section-padding {
  padding: 120px 0;
}

.title-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(10, 37, 64, 0.05);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: var(--primary);
  backdrop-filter: blur(5px);
}

/* --- GLASSMORPHISM --- */
.glass-panel {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

/* --- NAVBAR --- */
.navbar {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(15px);
  transition: var(--transition);
  padding: 20px 0;
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  margin: 0 15px;
  color: var(--primary) !important;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-1);
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scale(1);
}

/* Active nav link — visible dot + slightly bolder text */
.nav-link.active {
  font-weight: 700;
  color: var(--primary) !important;
}

/* --- BUTTONS --- */
.btn-fluid {
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.5px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: none;
  z-index: 1;
}

.btn-fluid-primary {
  background: var(--primary);
  color: white;
}

.btn-fluid-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  z-index: -1;
  transition: opacity 0.4s;
  opacity: 0;
}

.btn-fluid-primary:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(0, 229, 255, 0.3);
}

.btn-fluid-primary:hover::before {
  opacity: 1;
}

/* --- FLOATING ACTION BUTTONS --- */
.fab-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.fab-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  text-decoration: none;
  position: relative;
}

.fab-btn:hover {
  transform: translateY(-5px);
  color: white;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.25);
}

.fab-whatsapp { background: #25D366; }
.fab-whatsapp:hover { background: #20ba56; }
.fab-phone { background: var(--primary); }
.fab-phone:hover { background: #0f365c; }

/* --- FOOTER --- */
footer {
  background: var(--primary);
  color: white;
  padding: 80px 0 30px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: var(--accent-1);
  filter: blur(150px);
  opacity: 0.2;
  border-radius: 50%;
}

/* =====================================================
   INDEX PAGE — Hero & Categories
   ===================================================== */
.top-section {
  padding-top: 140px;
  padding-bottom: 60px;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.top-title {
  font-size: 4.5rem;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}

/* Liquid Cards (Category Cards) */
.liquid-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 24px;
  padding: 24px;
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: var(--transition);
  z-index: 1;
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
}

.liquid-card > * { position: relative; z-index: 2; }

.liquid-card-img-wrapper {
  width: 100%;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
}

.liquid-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.liquid-card:hover .liquid-card-img-wrapper img { transform: scale(1.08); }

.liquid-card::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary);
  border-radius: 50% 50% 0 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.liquid-card:hover { transform: translateY(-10px); }
.liquid-card:hover::before { bottom: 0; border-radius: 0; }
.liquid-card:hover h3,
.liquid-card:hover p,
.liquid-card:hover .text-muted { color: white !important; }

.liquid-card .btn.glass-panel {
  color: var(--primary) !important;
  transition: var(--transition);
  margin-top: auto;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.8);
}

.liquid-card .btn.glass-panel:hover,
.liquid-card .btn.glass-panel:focus {
  background: #ffffff !important;
  color: var(--primary) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.liquid-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(255, 0, 85, 0.1));
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 25px;
  animation: morph 6s infinite alternate;
  transition: var(--transition);
}

.liquid-card:hover .liquid-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Services Glassmorphism Cards */
.service-glass {
  padding: 30px;
  text-align: center;
  height: 100%;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.4));
}

.service-glass:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 25px 50px rgba(10, 37, 64, 0.08);
  background: rgba(255, 255, 255, 0.95);
}

.service-glass-icon {
  font-size: 2.5rem;
  background: -webkit-linear-gradient(45deg, var(--accent-1), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  display: inline-block;
}

/* Portfolio Masonry (Index) */
.portfolio-grid { display: flex; gap: 30px; align-items: flex-start; }
.portfolio-col { display: flex; flex-direction: column; gap: 30px; flex: 1; }
.portfolio-col.mt-custom { margin-top: 80px; }
.portfolio-item { position: relative; border-radius: 20px; overflow: hidden; width: 100%; }
.portfolio-item.short { aspect-ratio: 4/3; }
.portfolio-item.tall  { aspect-ratio: 3/4; }

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-content {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 37, 64, 0.9) 0%, rgba(10, 37, 64, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-item:hover .portfolio-content { opacity: 1; transform: translateY(0); }

/* Contact Form */
.contact-form .form-control {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(10, 37, 64, 0.1);
  padding: 15px 20px;
  border-radius: 12px;
  transition: var(--transition);
}

.contact-form .form-control:focus {
  background: white;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.1);
}

/* =====================================================
   PORTFOLIO PAGE
   ===================================================== */
.page-header {
  padding-top: 180px;
  padding-bottom: 60px;
  position: relative;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: var(--text-light);
  border-radius: 50px;
  padding: 10px 24px;
  font-weight: 500;
  transition: var(--transition);
}

.filter-btn:hover { background: rgba(255, 255, 255, 0.9); color: var(--primary); transform: translateY(-2px); }
.filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 10px 20px rgba(10, 37, 64, 0.15); }

.project-item { transition: opacity 0.4s ease, transform 0.4s ease; }
.project-item.hide { display: none; }

.project-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  background: #fff;
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 37, 64, 0.95) 0%, rgba(10, 37, 64, 0.4) 50%, rgba(10, 37, 64, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.project-card:hover img { transform: scale(1.08); }
.project-card:hover .project-overlay { opacity: 1; transform: translateY(0); }

.project-overlay .badge {
  align-self: flex-start;
  margin-bottom: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 8px 16px;
  border-radius: 30px;
  backdrop-filter: blur(5px);
}

.badge-constructii { background: rgba(0, 229, 255, 0.2); color: #00e5ff; border: 1px solid rgba(0, 229, 255, 0.4); }
.badge-industrie   { background: rgba(255, 0, 85, 0.2);  color: #ff0055; border: 1px solid rgba(255, 0, 85, 0.4); }
.badge-lemn        { background: rgba(255, 204, 0, 0.2); color: #ffcc00; border: 1px solid rgba(255, 204, 0, 0.4); }

.project-link {
  display: inline-flex;
  align-items: center;
  color: white;
  text-decoration: none;
  font-weight: 500;
  margin-top: 15px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  transition: var(--transition);
}

.project-link i { margin-left: 8px; transition: transform 0.3s ease; }
.project-card:hover .project-link { opacity: 1; }
.project-card:hover .project-link i { transform: translateX(5px); }

.portfolio-cta {
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  padding: 60px 40px;
  text-align: center;
  margin-top: 80px;
}

/* =====================================================
   PRODUCT PAGE (Pagina Produs)
   ===================================================== */
.category-header {
  padding-top: 160px;
  padding-bottom: 80px;
  position: relative;
}

.breadcrumb { background: transparent; padding: 0; margin-bottom: 2rem; font-weight: 500; }
.breadcrumb-item a { color: var(--primary); text-decoration: none; opacity: 0.7; transition: var(--transition); }
.breadcrumb-item a:hover { opacity: 1; }
.breadcrumb-item.active { color: var(--accent-1); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-light); }

.subcat-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.subcat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(10, 37, 64, 0.08);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 229, 255, 0.3);
}

.subcat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.05), rgba(10, 37, 64, 0.1));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 20px;
  transition: var(--transition);
}

.subcat-card:hover .subcat-icon { background: var(--primary); color: white; transform: scale(1.1); }

.catalog-cta {
  background: linear-gradient(135deg, var(--primary), #113c66);
  border-radius: 30px;
  padding: 60px;
  position: relative;
  overflow: hidden;
  color: white;
}

.catalog-cta::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: var(--accent-1);
  filter: blur(120px);
  opacity: 0.2;
  border-radius: 50%;
}

/* =====================================================
   ABOUT PAGE (Despre Noi)
   ===================================================== */
.about-header {
  padding-top: 180px;
  padding-bottom: 80px;
  position: relative;
}

.about-service-glass {
  padding: 40px 30px;
  text-align: center;
  height: 100%;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.4));
  border-radius: 24px;
}

.about-service-glass:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 25px 50px rgba(10, 37, 64, 0.08);
  background: rgba(255, 255, 255, 0.95);
}

.about-service-glass .service-glass-icon {
  font-size: 3rem;
}

.stats-section {
  background: var(--primary);
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  color: white;
  padding: 80px 0;
  margin-top: 60px;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60vw;
  height: 60vw;
  background: var(--accent-1);
  filter: blur(150px);
  opacity: 0.15;
  border-radius: 50%;
}

.stat-item h2 {
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff, var(--accent-1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-header {
  padding-top: 180px;
  padding-bottom: 60px;
  position: relative;
}

.contact-info-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  padding: 40px;
  height: 100%;
  transition: var(--transition);
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(10, 37, 64, 0.08);
}

.contact-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(10, 37, 64, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 20px;
  transition: var(--transition);
}

.contact-info-card:hover .contact-icon-wrap {
  background: var(--primary);
  color: white;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 991px) {
  .top-title { font-size: 3rem; }
  .portfolio-grid { flex-direction: column; }
  .portfolio-col.mt-custom { margin-top: 0; }
  .portfolio-item.short, .portfolio-item.tall { aspect-ratio: 4/3; }
  .stat-item { margin-bottom: 40px; }
  .stat-item:last-child { margin-bottom: 0; }
  .catalog-cta { padding: 40px 30px; }
  .category-header { padding-top: 120px; }
}

@media (max-width: 768px) {
  .page-header   { padding-top: 140px; }
  .about-header  { padding-top: 140px; }
  .contact-header { padding-top: 140px; }
  .project-card  { aspect-ratio: 1/1; }
}
