
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif !important;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f0f0f0;
    min-height: 100vh;
    text-align: center;
}
main {
  position: relative;
}


.modeling-hero {
  padding: 180px 20px 100px;
  text-align: center;
  background: radial-gradient(circle at top left, #e3f2e9, #ecf3ef);
}

.modeling-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.modeling-hero p {
  font-size: 1.2rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
}

.floating-tool-btn {
  position: absolute;
  top: 120px;        /* TERAZ liczone od main */
  right: 20px;

  font-size: 28px;
  line-height: 1;
  text-decoration: none;

  background: none;
  border: none;
  padding: 4px;

  cursor: pointer;
  z-index: 10;
}


/* Hover – delikatny efekt */
.floating-tool-btn:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.35));
}

.floating-tool-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 120%;
  right: 0;

  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;

  white-space: nowrap;
  opacity: 0;
  pointer-events: none;

  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Pokaż opis */
.floating-tool-btn:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.modeling-projects {
  padding: 0px 20px;
}

.project {
  position: relative;              
  overflow: visible;               
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 50px;
  background: #ffffff;
  border-radius: 20px;
  padding: 45px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  align-items: center;
}


.model-wrapper {
  position: relative;           
}

.project model-viewer {
  width: 100%;
  height: 520px;
  border-radius: 16px;
  background-color: #e5e7eb;
  background-image:
    linear-gradient(#cbd5e1 1px, transparent 1px),
    linear-gradient(90deg, #cbd5e1 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid #d1d5db;
}

.model-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 50;                    
}

.model-controls button {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: none;
  background-color: rgba(255, 255, 255, 0.9);
  color: #1f2937;
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.model-controls button:hover {
  background-color: #ffffff;
  transform: scale(1.08);
}


.project-info h3 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #1f2937;
}

.project-info p {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.7;
}


/* MOBILE – TELEFONY */
@media (max-width: 768px) {
  .floating-tool-btn {
    top: 110px;
    right: 14px;
    font-size: 26px;
  }
}

/* TABLET / MAŁY LAPTOP */
@media (max-width: 900px) {
  

  .project {
    grid-template-columns: 1fr;
    padding: 35px;
  }

  .project model-viewer {
    height: 360px;
  }

  .modeling-hero h1 {
    font-size: 2.2rem;
  }
}
