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

html, body {
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
  position: relative;
}
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}

section { overflow-x: clip; max-width: 100vw; }
img, video, iframe, svg, canvas { max-width: 100%; }
body, p, h1, h2, h3, h4, h5, h6, div, span, a, li, td { word-wrap: break-word; overflow-wrap: break-word; }

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: #000; color: #fff; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; }
.red { color: #ef4444; }

.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; transition: background 0.3s, box-shadow 0.3s; background: transparent; }
.navbar.scrolled { background: rgba(0,0,0,0.92); backdrop-filter: blur(14px); box-shadow: 0 2px 30px rgba(0,0,0,0.5); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { width: 42px; height: 42px; object-fit: contain; }
.nav-brand span { font-weight: 700; font-size: 18px; color: #fff; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: #a1a1aa; font-size: 14px; font-weight: 500; transition: color 0.2s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: #ef4444; transition: width 0.3s; }
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; }
.nav-dropdown > a .dd-arrow { font-size: 10px; transition: transform 0.2s; }
.nav-dropdown:hover > a .dd-arrow { transform: rotate(180deg); }
.nav-dropdown-menu { position: absolute; top: calc(100% + 12px); left: -16px; min-width: 280px; background: #18181b; border: 1px solid #27272a; border-radius: 12px; padding: 16px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.2s; z-index: 200; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dd-category { color: #ef4444; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; padding: 4px 0; margin-top: 8px; }
.dd-category:first-child { margin-top: 0; }
.dd-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: #d4d4d8; font-size: 13px; font-weight: 500; transition: all 0.2s; }
.dd-item:hover { background: rgba(239,68,68,0.08); color: #fff; }
.dd-item i { font-size: 14px; color: #71717a; }
.dd-item:hover i { color: #f87171; }
.dd-item::after { display: none !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; transition: all 0.3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu { display: none; background: rgba(0,0,0,0.96); backdrop-filter: blur(14px); border-top: 1px solid rgba(185,28,28,0.3); padding: 0 24px 20px; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 14px 0; color: #d4d4d8; font-weight: 500; border-bottom: 1px solid rgba(39,39,42,0.5); transition: color 0.2s; }
.mobile-menu a:hover { color: #ef4444; }
.mobile-menu-label { color: #ef4444; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: 14px 0 4px; border-bottom: none; }
.mobile-menu a.mobile-sub { padding: 10px 0 10px 16px; font-size: 14px; color: #a1a1aa; }

.btn-primary-custom { padding: 16px 32px; border-radius: 12px; font-weight: 700; font-size: 16px; color: #fff; border: none; cursor: pointer; transition: all 0.3s; background: linear-gradient(135deg, #dc2626, #b91c1c); box-shadow: 0 8px 30px rgba(220,38,38,0.3); display: inline-block; }
.btn-primary-custom:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(220,38,38,0.4); }
.btn-secondary-custom { padding: 16px 32px; border-radius: 12px; font-weight: 700; font-size: 16px; color: #d4d4d8; background: transparent; border: 1px solid #3f3f46; cursor: pointer; transition: all 0.3s; display: inline-block; }
.btn-secondary-custom:hover { border-color: #b91c1c; color: #fff; transform: translateY(-2px); }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header .tag { color: #ef4444; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; }
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin-top: 10px; color: #fff; }
.section-header p { color: #71717a; margin-top: 14px; max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.6; }

.footer { background: #000; border-top: 1px solid rgba(39,39,42,0.5); padding: 50px 24px; }
.footer-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { width: 36px; height: 36px; object-fit: contain; }
.footer-brand span { font-weight: 700; color: #fff; }
.footer-desc { color: #71717a; font-size: 14px; line-height: 1.6; }
.footer h4 { color: #fff; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.footer-links a { display: block; color: #71717a; font-size: 14px; padding: 4px 0; transition: color 0.2s; }
.footer-links a:hover { color: #f87171; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: 8px; background: #18181b; border: 1px solid #27272a; display: flex; align-items: center; justify-content: center; color: #71717a; font-size: 18px; transition: all 0.2s; text-decoration: none; }
.footer-social a:hover { color: #f87171; border-color: rgba(185,28,28,0.5); }
.footer-bottom { max-width: 1100px; margin: 40px auto 0; padding-top: 30px; border-top: 1px solid rgba(39,39,42,0.5); text-align: center; color: #52525b; font-size: 13px; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
}

.testi-avatar.has-photo { position: relative; overflow: hidden; isolation: isolate; background: #18181b; }
.testi-avatar.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; -webkit-user-select: none; -webkit-touch-callout: none; pointer-events: none; }
.testi-avatar.has-photo::before {
  content: '';
  position: absolute;
  inset: -10%;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='120' viewBox='0 0 220 120'><g transform='rotate(-28 110 60)' fill='%23ffffff' fill-opacity='0.22' font-family='monospace' font-weight='700' font-size='13'><text x='0' y='20'>HACKERROOM.ID</text><text x='60' y='55'>HACKERROOM.ID</text><text x='-20' y='90'>HACKERROOM.ID</text><text x='80' y='115'>HACKERROOM.ID</text></g></svg>");
  background-size: 110px auto;
  background-repeat: repeat;
  mix-blend-mode: overlay;
}
.testi-avatar.has-photo::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: auto; background: transparent; }
.testi-avatar.img-loading img { opacity: 0.3; transition: opacity 0.2s; }

#preloader { position: fixed; inset: 0; z-index: 9999; background: #000; display: none; align-items: center; justify-content: center; flex-direction: column; transition: opacity 0.4s; }
#preloader .preloader-frame { position: relative; width: 140px; height: 140px; display: flex; align-items: center; justify-content: center; }
#preloader .preloader-corner { position: absolute; width: 28px; height: 28px; }
#preloader .preloader-corner.tl { top: 0; left: 0; border-top: 3px solid #ef4444; border-left: 3px solid #ef4444; border-radius: 8px 0 0 0; }
#preloader .preloader-corner.tr { top: 0; right: 0; border-top: 3px solid #ef4444; border-right: 3px solid #ef4444; border-radius: 0 8px 0 0; }
#preloader .preloader-corner.bl { bottom: 0; left: 0; border-bottom: 3px solid #ef4444; border-left: 3px solid #ef4444; border-radius: 0 0 0 8px; }
#preloader .preloader-corner.br { bottom: 0; right: 0; border-bottom: 3px solid #ef4444; border-right: 3px solid #ef4444; border-radius: 0 0 8px 0; }
#preloader .preloader-logo { width: 80px; height: 80px; object-fit: contain; }
#preloader .preloader-scan { position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, transparent, rgba(239,68,68,0.9), transparent); animation: plscan 2s ease-in-out infinite; }
#preloader .preloader-text { margin-top: 24px; font-family: 'Courier New', monospace; font-size: 13px; color: #52525b; letter-spacing: 1px; }
#preloader .preloader-dot { animation: pldot 1.5s infinite; }

@keyframes plscan { 0% { top: 0; opacity: 0.3; } 10% { opacity: 1; } 50% { top: calc(100% - 3px); opacity: 1; } 60% { opacity: 0.3; } 70% { opacity: 1; } 100% { top: 0; opacity: 0.3; } }
@keyframes pldot { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }
