/* RESET DE BAZĂ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
img { display: block; max-width: 100%; height: auto; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f6f9;
  color: #2c2c2c;
  line-height: 1.6;
  overflow-x: hidden;
}

/* CONTAINER GENERAL */
.container {
  max-width: 1280px;
  margin: auto;
  padding: 0 20px;
}

/* HERO SECTION */
.hero {
  position: relative;
  height: 368px;
  overflow: hidden;
  max-width: 100vw;
}
.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  overflow: hidden;
}
.hero-slider .slide,
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.slide.active { opacity: 1; z-index: 1; }
.hero-text {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center; color: white; z-index: 2;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
  padding: 0 1rem; width: 100%; max-width: 1280px;
}
.hero h1 { font-size: 2.5rem; margin-bottom: 10px; font-weight: 700; }
.hero p  { font-size: 1.4rem; color: #cbd5e1; font-style: italic; }

/* INTRO */
.intro {
  background-color: #ffffff;
  padding: 60px 0;
  text-align: center;
}
.intro h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #1f2937;
}
/* Intro paragraph tweaks (font puțin mai mare + prima literă bold) */
.intro p{
  font-size: 1.08rem;      /* +~8% față de 1rem */
  color: #334155;          /* gri mai „premium” pe alb */
  letter-spacing: 0.1px;   /* micro-rafinări */
}
.intro p::first-letter{
  font-weight: 700;        /* bold doar pe prima literă */
  font-size: 1.12em;       /* +~12% discret */
  margin-right: 1px;
}

/* SERVICES */
.services {
  background-color: #f1f5f9;
  padding: 60px 0;
}
.services h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #1f2937;
}

/* Grilă cu perspectivă pentru tilt 3D pe carduri */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  perspective: 1200px;           /* necesar pentru efectul 3D */
}

/* Card de serviciu — bază light + efecte hover premium */
.service-item {
  position: relative;            /* necesar pentru pseudo-elemente */
  background-color: #ffffff;
  border: 1px solid rgba(148,163,184,.16);
  border-left: 5px solid #3b82f6;/* păstrăm accentul tău */
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
  overflow: hidden;
  text-align: center;
  will-change: transform;
}
/* Aură subtilă pe contur (apare la hover) */
.service-item::before{
  content:"";
  position:absolute; inset:-1px;
  border-radius: inherit;
  background: conic-gradient(from 180deg, transparent, rgba(59,130,246,.28), transparent 32%);
  filter: blur(10px);
  opacity:0;
  transition: .35s ease;
  pointer-events: none;
}
/* Highlight pe marginea superioară la hover */
.service-item::after{
  content:"";
  position:absolute; left:-20%; right:-20%; top:-2px; height:2px;
  background: linear-gradient(90deg, transparent, rgba(96,165,250,.55), transparent);
  opacity:0;
  transition: .35s ease;
  pointer-events: none;
}

/* Hover animat: tilt + „ridicare” + întărirea conturului */
.service-item:hover{
  transform: translateY(-6px) rotateX(3deg) rotateY(-2deg);
  box-shadow: 0 18px 38px rgba(0,0,0,.20), 0 0 0 1px rgba(148,163,184,.12) inset;
  border-color: rgba(59,130,246,.45);
}
.service-item:hover::before{ opacity: .85; }
.service-item:hover::after { opacity: 1; }

/* Imagine în card */
.service-item img {
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: transform 0.45s ease, filter 0.45s ease, box-shadow 0.45s ease;
  display: block;
  max-height: 200px;     /* ajustează dacă e necesar */
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 6px 14px rgba(0,0,0,.10);
  transform-origin: center center;
}
.service-item:hover img {
  transform: scale(1.04) translateY(-2px);
  filter: brightness(1.06) contrast(1.06) saturate(1.02);
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}

.service-item h3 {
  margin-bottom: 10px;
  color: #1e40af;
  font-size: 1.1rem;
  font-weight: 700;
}

/* CTA / secțiune contact de pe home */
.contacthome {
  background-color: #e2e8f0;
  padding: 60px 20px;
  text-align: center;
}
.homecontacttitle h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #1e293b;
}

/* 🖼️ Imagini secțiuni */
.section-image {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  margin: 20px 0;
  transition: transform 0.5s ease, filter 0.5s ease;
}

/* 🧊 Imagini servicii individuale (dacă folosești .service-image separat) */
.service-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
  transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
/* Hover pentru .service-image (se cumulează cu cel de mai sus) */
.section-image:hover,
.service-image:hover {
  transform: scale(1.03);
  filter: brightness(1.05) contrast(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* Buton CTA */
.cta-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.4rem;
  background: linear-gradient(135deg, #1e3a8a, #1e40af);
  color: #ffffff;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-family: 'Segoe UI', sans-serif;
  box-shadow: 0 4px 16px rgba(30, 64, 175, 0.3);
  transition: all 0.3s ease-in-out;
}
.cta-button:hover {
  background: linear-gradient(135deg, #1e40af, #1e3a8a);
  box-shadow: 0 6px 24px rgba(30, 64, 175, 0.5);
  transform: translateY(-2px);
}

/* Accesibilitate: reduce motion */
@media (prefers-reduced-motion: reduce){
  .service-item{ transform: none !important; }
  .service-item:hover{ transform: translateY(-4px) !important; }
}
