:root {
  --bg: #0a0a0a;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.65);
  --active-underline: rgba(255, 255, 255, 0.4);
}

* { margin:0; padding:0; box-sizing:border-box; max-width:100%; }

html { scroll-behavior: smooth; }

body {
  background: radial-gradient(circle at center, #1a1a1a 0%, #0f0f0f 40%, #0a0a0a 100%);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  z-index: 100;
  flex-shrink: 0;
}
.logo {
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
nav { display: flex; gap: 2.5rem; }
nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  position: relative;
  padding-bottom: .5rem;
}
nav a::after {
  content: '';
  position: absolute;
  left:0; bottom:0;
  width:0; height:2px;
  background: var(--active-underline);
  transition: width .3s ease;
}
nav a:hover::after,
nav a.active::after { width:100%; }
nav a.active { font-weight:500; }

.about-hero-wrapper { flex-shrink: 0; }

.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 5% 2rem;
  align-items: center;
  flex-shrink: 0;
}
.about-img {
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.about-text {
  display: flex;
  flex-direction: column;
}
.about-text h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
}
.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.about-text p:last-of-type { margin-bottom: 1.8rem; }

.feedback-review-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  gap: 2rem;
}
.feedback {
  width: 50%;
  flex-shrink: 0;
}
.feedback-item {
  margin-bottom: 1.2rem;
  position: relative;
}
.feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
  position: relative;
  height: 1.4rem;
  width: 100%;
}
.feedback-label {
  font-weight: 500;
  color: var(--text);
  font-size: 1rem;
}
.feedback-percent {
  font-weight: 500;
  color: var(--text);
  font-size: 0.85rem;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
}
.feedback-bar-container { position: relative; width: 100%; }
.feedback-bar {
  width: 100%;
  height: 5px;
  background: #333;
  border-radius: 3px;
  overflow: hidden;
}
.feedback-fill {
  height: 100%;
  background: var(--text);
  border-radius: 3px;
  transition: width 0.6s ease;
}

.review-cta {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0.5rem 0;
}
.review-icon {
  width: 100px;
  height: 100px;
  filter: brightness(0) invert(1) opacity(0.6) hue-rotate(180deg) saturate(0.5);
  margin-bottom: 0.75rem;
}
.review-cta-text {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.review-cta-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}
.review-cta-link:hover { color: #ccc; }

.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal {
  background: rgba(255, 255, 255, 0.035);
  padding: 2.5rem;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  position: relative;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
}
.modal h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.modal .close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}
.modal .close:hover { color: var(--text); }

#stage1 h2 { display: none; }
#stage1 label {
  text-align: center;
  font-size: 1.1rem;
  margin: 1rem 0 0.5rem;
  display: block;
}
#stage1 input[type="text"] {
  width: 100%;
  padding: 0.75rem;
  background: #222;
  border: 1px solid #444;
  color: var(--text);
  border-radius: 6px;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  outline: none;
}
#stage1 input[type="text"]:focus { border-color: #666; }
#stage1 button {
  width: 100%;
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}
#stage1 button:hover { background: #ddd; }
.error-msg {
  color: #ff6b6b;
  font-size: 0.9rem;
  text-align: center;
  margin: 0.5rem 0 0;
  min-height: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.error-msg.show { opacity: 1; }

#stage2 p {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  color: var(--text);
  margin: 0 0 1.5rem;
}
#stage2 .client-name {
  all: unset !important;
  font-style: italic !important;
  color: var(--text-muted) !important;
  font-weight: normal !important;
  cursor: default !important;
}

.rating-slider {
  margin: 1rem 0;
  position: relative;
  height: 50px;
}
.rating-slider label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.rating-value {
  font-weight: 600;
  color: var(--text);
  min-width: 40px;
  text-align: right;
}
.rating-bar-container {
  position: absolute;
  top: 32px;
  left: 0;
  width: 100%;
  height: 5px;
  z-index: 1;
}
.rating-bar {
  width: 100%;
  height: 5px;
  background: #333;
  border-radius: 3px;
  overflow: hidden;
}
.rating-fill {
  height: 100%;
  background: var(--text);
  border-radius: 3px;
  transition: width 0.3s ease;
}
.rating-range {
  position: absolute;
  top: 32px;
  left: 0;
  width: 100%;
  height: 10px;
  background: transparent;
  outline: none;
  -webkit-appearance: none;
  z-index: 2;
  cursor: pointer;
}
.rating-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--text);
  border-radius: 50%;
  cursor: pointer;
  margin-top: -4px;
}
.rating-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--text);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.comment-field {
  margin: 1.8rem 0 1rem;
  width: 100%;
}
.comment-field label {
  display: block;
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}
#reviewComment {
  width: 100%;
  padding: 0.9rem 1rem;
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  resize: vertical;
  transition: border 0.3s ease;
}
#reviewComment:focus {
  outline: none;
  border-color: #666;
  box-shadow: 0 0 0 2px rgba(100,100,100,0.2);
}
#reviewComment::placeholder { color: #888; }

#submitReview {
  width: 100%;
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 1rem;
}
#submitReview:hover { background: #ddd; }

.success-msg {
  color: #6bcf7f;
  font-size: 0.95rem;
  text-align: center;
  margin: 0.75rem 0 0;
  min-height: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.success-msg.show { opacity: 1; }

.page-footer {
  margin-top: auto;
  padding: 1.5rem 5%;
  font-size: 0.9rem;
  color: #888;
  text-align: right;
}

header,
.about-hero-wrapper {
  opacity: 0;
  transform: translateY(30px);
}
header.animate-in,
.about-hero-wrapper.animate-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1s cubic-bezier(0.25, 0.8, 0.25, 1),
              transform 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.animate-in-left  { opacity: 0; transform: translateX(-80px) translateY(20px); }
.animate-in-right { opacity: 0; transform: translateX(80px) translateY(20px); }
.animate-in-left.animate-in,
.animate-in-right.animate-in {
  opacity: 1;
  transform: translateX(0) translateY(0);
  transition: opacity 1.2s cubic-bezier(0.25,0.8,0.25,1),
              transform 1.2s cubic-bezier(0.25,0.8,0.25,1);
}

.page-footer { opacity: 0; }
.page-footer.animate-in {
  opacity: 1;
  transition: opacity 1.4s ease;
}

.cursor-light {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
background: radial-gradient(circle,
    rgba(255,255,255,0.14) 0%,
    rgba(255,255,255,0.10) 25%,
    rgba(255,255,255,0.06) 50%,
    rgba(255,255,255,0.02) 75%,
    transparent 90%
  );
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  mix-blend-mode: soft-light;
}

body:hover .cursor-light { 
  opacity: 1; 
}