*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background: #0a0f1e;
  background-image: linear-gradient(
    to bottom,
    rgba(30, 58, 110, 0.8) 0%,
    rgba(10, 15, 40, 0.95) 40%,
    rgba(8, 12, 30, 1) 60%
  );
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: 100% 60%;
  font-family: 'Fira Code', Tahoma, Geneva, Verdana, sans-serif;
  color: #e5e7eb;
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 1.5rem 1.5rem;
  gap: 1rem;
}

header h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: bold;
  text-align: center;
  font-family: 'Playfair Display', Georgia, serif;
  margin: 0;
}

header a {
  font-size: 1rem;
  color: #93c5fd;
  text-decoration: none;
  letter-spacing: 0.05em;
  padding: 0.4rem 1.2rem;
  border: 1px solid rgba(147, 197, 253, 0.3);
  border-radius: 999px;
  transition: all 0.25s ease;
}

header a:hover {
  color: #fff;
  background: rgba(147, 197, 253, 0.15);
  border-color: rgba(147, 197, 253, 0.7);
}

main {
  width: 100%;
  max-width: 1100px;
  padding: 2rem 1.5rem 4rem;
}

.sobre-mim {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "foto quem"
    "foto visao"
    "skills habitos"
    "frase frase";
  gap: 1.25rem;
  width: 100%;
}

.sobre-mim > div {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.sobre-mim .b:hover {
  zoom: 5px;
  background-image: url(../assets/images/sobremim.jpeg) !important;
  background-color: transparent !important;
  border-color: rgba(55, 120, 200, 0.3);
}

.sobre-mim .b { grid-area: foto; }
.sobre-mim .a { grid-area: quem; }
.sobre-mim .e { grid-area: visao; }
.sobre-mim .c { grid-area: skills; }
.sobre-mim .d { grid-area: habitos; }

.sobre-mim .frase {
  grid-area: frase;
}

.sobre-mim .b {
  background-image: url(../assets/images/sobremim.jpeg);
  background-size: cover;
  background-position: center top;
  min-height: 340px;
  border: 1px solid rgba(55, 120, 200, 0.3);
  position: relative;
  overflow: hidden;
  padding: 0;
}

.sobre-mim .b::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
  border-radius: 16px;
}

.sobre-mim .b h1 {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 1;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.sobre-mim h1 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #93c5fd;
  text-transform: uppercase;
  margin: 0;
}

.sobre-mim p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: #cbd5e1;
  margin: 0;
}

.sobre-mim ul {
  font-size: 0.9rem;
  line-height: 1.9;
  color: #cbd5e1;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sobre-mim ul li::before {
  content: '→ ';
  color: #3b82f6;
  font-weight: bold;
}

.frase {
  grid-column: 1 / -1;
  text-align: center;
  border-color: rgba(55, 120, 200, 0.3) !important;
  padding: 2.5rem !important;
}

.frase h1 {
  font-size: 1rem !important;
  margin-bottom: 0.75rem;
}

.frase p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1rem, 2.5vw, 1.3rem) !important;
  font-style: italic;
  color: #e2e8f0 !important;
  max-width: 700px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .sobre-mim {
    grid-template-columns: 1fr;
    grid-template-areas:
      "foto"
      "quem"
      "visao"
      "skills"
      "habitos"
      "frase";
  }

  .sobre-mim .b {
    min-height: 260px;
  }

  .frase {
    grid-column: 1 / -1;
  }
}