body {
  margin:0;
  font-family:'Segoe UI', sans-serif;
  background-color:#1b1b1b;
  color:#eee;
}

/* HERO SECTION */
header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:60px;
  background-image:url('/assets/hero.png');
  background-size:cover;
  background-position:center;
  min-height:90vh;
  color:#fff;
  text-shadow:0 0 15px rgba(0,0,0,0.8);
}

header .text {
  max-width:50%;
  background:rgba(0,0,0,0.55);
  padding:30px;
  border-radius:10px;
}

/* --- mobile hero adjustments --- */
@media (max-width: 768px) {
  header {
    padding: 40px 20px;
    background-position: center top;
    background-size: cover;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 80vh;
  }

  header .text {
    max-width: 100%;
    background: rgba(0,0,0,0.65);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
  }

  h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 8px;
  }

  h2 {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  header p {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  header .text a {
    display: inline-block;
    margin-top: 10px;
    color: #f1d37e;
    font-weight: 500;
    text-decoration: none;
  }
}

/* --- logo styling --- */
header .logo {
  position: absolute;
  top: 25px;
  left: 25px;
  z-index: 5;
}

header .logo img {
  height: 48px;
  width: auto;
  /*filter: brightness(0) invert(1); /* îl face alb dacă e SVG negru */
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

header .logo img:hover {
  opacity: 1;
}

/* ajustează pentru mobile */
@media (max-width: 768px) {
  header .logo {
    top: 15px;
    left: 15px;
  }
  header .logo img {
    height: 38px;
  }
}

h1 {
  font-size:3rem;
  color:#f1d37e;
  margin-bottom:10px;
}

h2 {
  color:#8fd18a;
  margin-bottom:10px;
}

/* SECTIONS */
section {
  padding:80px 10%;
  position:relative;
}

section:not(:first-of-type)::before {
  content:'';
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:2px;
  background:linear-gradient(to right,#2a2a2a,#333,#2a2a2a);
}

/* SERVICES + TECH GRID */
.services, .tech {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:30px;
}

.card {
  background:#222;
  border-left:4px solid #f1d37e;
  padding:25px;
  border-radius:8px;
  box-shadow:0 0 10px rgba(0,0,0,0.3);
  transition:all 0.3s ease;
  width: calc(100% - 50px);
}

.card:hover {
  transform:translateY(-5px);
  box-shadow:0 0 25px rgba(241,211,126,0.25);
  border-color:#f9e38a;
}

/* TECH STACK BACKGROUND */
.tech {
  background:url('/assets/background.png');
  background-size:cover;
  background-position:center;
  background-blend-mode:overlay;
  background-color:#1b1b1b;
  padding-bottom:100px;
}

/* FOOTER */
footer {
  text-align:center;
  padding:40px;
  background:#111;
  color:#888;
  font-size:0.9rem;
}

a {
  color:#f1d37e;
  text-decoration:none;
}

#tech {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* împinge tot conținutul (grid + text) la dreapta */
  padding-right: 10%;   /* margine dreapta uniformă */
}

#tech h2 {
  align-self: flex-start; /* titlul rămâne la stânga */
}

#tech .services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-items: center;
  width: 80%;
  max-width: 800px;
  margin-top: 20px;
  margin-bottom: 25px;
}

#tech .more-note {
  align-self: flex-start; /* textul sub grilă, aliniat stânga */
  color: #a7b2b8;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 800px;
  opacity: 0.9;
}

#tech .more-note .accent {
  color: #f1d37e;
  font-weight: 600;
}

/* versiune responsive */
@media (max-width: 980px) {
  #tech {
    align-items: center;
    padding-right: 0;
  }
  #tech .services {
    grid-template-columns: 1fr;
    width: 100%;
  }
  #tech .card {
    width: 80%;
  }

  #tech .more-note {
    text-align: center;
    align-self: center;
    padding: 0 10px;
  }
}