/* =============================================
   HAMSTIN SOLUTIONS LTD — style.css
   Aesthetic: Refined Dark Industrial
   ============================================= */

/* --- VARIABLES & RESET --- */
:root {
  --bg:         #0d0e0f;
  --bg-alt:     #111315;
  --bg-card:    #161819;
  --border:     rgba(255,255,255,0.07);
  --gold:       #c9a84c;
  --gold-light: #e8c66a;
  --gold-dim:   rgba(201,168,76,0.15);
  --text:       #e8e4da;
  --text-muted: #8a8680;
  --text-faint: #4a4845;
  --white:      #ffffff;
  --accent-r:   #b03a2e;

  --font-display: 'Bebas Neue', sans-serif;
  --font-cond:    'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  --nav-h: 72px;
  --radius: 4px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

img, svg { display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* --- TYPOGRAPHY HELPERS --- */
.section-label {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.05;
  color: var(--white);
  letter-spacing: 0.02em;
}

/* =============================================
   NAVBAR
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(13, 14, 15, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--gold);
  color: #0d0e0f;
  font-family: var(--font-display);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--white);
  line-height: 1;
}

.logo-text em {
  display: block;
  font-style: normal;
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--gold) !important;
  color: #0d0e0f !important;
  padding: 9px 22px;
  letter-spacing: 0.1em;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--gold-light) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

/* =============================================
   HERO
   ============================================= */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 50%, black 30%, transparent 100%);
}

.hero-glow {
  position: absolute;
  top: 20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 6s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  padding-top: var(--nav-h);
}

.hero-eyebrow {
  font-family: var(--font-cond);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(4rem, 11vw, 9rem);
  line-height: 0.95;
  color: var(--white);
  letter-spacing: 0.01em;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(30px);
}

.accent-line {
  color: var(--gold);
  -webkit-text-stroke: 0px;
  position: relative;
  display: inline-block;
}

.accent-line::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 44px;
  line-height: 1.75;
  opacity: 0;
  transform: translateY(20px);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}

/* Animate "reveal" class elements */
.reveal { animation: reveal-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.reveal:nth-child(1) { animation-delay: 0.1s; }
.reveal:nth-child(2) { animation-delay: 0.25s; }
.reveal:nth-child(3) { animation-delay: 0.4s; }
.reveal:nth-child(4) { animation-delay: 0.55s; }

@keyframes reveal-up {
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  position: absolute;
  right: 60px;
  bottom: 80px;
  z-index: 1;
  text-align: center;
  border: 1px solid var(--border);
  padding: 20px 24px;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(8px);
}

.hero-badge span {
  font-family: var(--font-cond);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: block;
}

.hero-badge strong {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
}

.scroll-indicator {
  position: absolute;
  left: 40px;
  bottom: 60px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.45;
}

.scroll-indicator span {
  font-family: var(--font-cond);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* --- BUTTONS --- */
.btn-primary {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--gold);
  color: #0d0e0f;
  padding: 14px 36px;
  display: inline-block;
  transition: background var(--transition), transform var(--transition);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }

.btn-ghost {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  padding: 13px 36px;
  display: inline-block;
  border: 1px solid var(--border);
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}

.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* =============================================
   TICKER
   ============================================= */
.ticker-wrap {
  background: var(--gold);
  overflow: hidden;
  padding: 12px 0;
  position: relative;
}

.ticker-wrap::before, .ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
}

.ticker-wrap::before { left: 0; background: linear-gradient(90deg, var(--gold), transparent); }
.ticker-wrap::after  { right: 0; background: linear-gradient(-90deg, var(--gold), transparent); }

.ticker {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 35s linear infinite;
}

.ticker span {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #0d0e0f;
  padding: 0 24px;
}

.ticker .sep {
  color: rgba(13,14,15,0.4);
  padding: 0 4px;
  font-size: 0.5rem;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =============================================
   ABOUT
   ============================================= */
#about {
  padding: 120px 0;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}

#about::before {
  content: 'HAMSTIN';
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 18vw;
  color: rgba(255,255,255,0.018);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.about-deco-block {
  width: 48px;
  height: 4px;
  background: var(--gold);
  margin-top: 28px;
}

.about-lead {
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 20px;
  border-left: 3px solid var(--gold);
  padding-left: 20px;
}

.about-body {
  font-size: 0.975rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.stat-row {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
}

.stat span {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* =============================================
   SERVICES
   ============================================= */
#services {
  padding: 120px 0;
  background: var(--bg);
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.service-card {
  background: var(--bg-card);
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
  transition: background var(--transition), transform var(--transition);
  border: 1px solid var(--border);
  cursor: default;
}

.service-card::before {
  content: attr(data-index);
  position: absolute;
  top: 20px; right: 24px;
  font-family: var(--font-display);
  font-size: 4rem;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  transition: color var(--transition);
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover { background: #1a1c1e; transform: translateY(-4px); }
.service-card:hover::after { width: 100%; }
.service-card:hover::before { color: rgba(201,168,76,0.06); }

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--gold);
  margin-bottom: 24px;
}

.service-card h3 {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =============================================
   WHY US
   ============================================= */
#why-us {
  padding: 120px 0;
  background: var(--bg-alt);
}

.why-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.why-intro {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 24px;
  line-height: 1.75;
  max-width: 360px;
}

.pillars {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pillar {
  display: flex;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  position: relative;
}

.pillar:first-child { border-top: 1px solid var(--border); }

.pillar:hover .pillar-num { color: var(--gold); }

.pillar-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--text-faint);
  line-height: 1;
  flex-shrink: 0;
  transition: color var(--transition);
  width: 60px;
}

.pillar-body h4 {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
  padding-top: 6px;
}

.pillar-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =============================================
   CONTACT
   ============================================= */
#contact {
  padding: 120px 0;
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

.contact-intro {
  font-size: 0.975rem;
  color: var(--text-muted);
  margin-top: 24px;
  line-height: 1.75;
  margin-bottom: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}

.contact-item-icon svg { width: 18px; height: 18px; }

/* FORM */
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 13px 16px;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8680' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  cursor: pointer;
}

.form-group select option { background: var(--bg-card); }

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: #181a1b;
}

.form-group textarea { resize: vertical; min-height: 130px; }

.btn-submit {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--gold);
  color: #0d0e0f;
  border: none;
  padding: 16px 40px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  align-self: flex-start;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn-submit:hover:not(:disabled) { background: var(--gold-light); transform: translateY(-2px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-status {
  padding: 14px 18px;
  font-family: var(--font-cond);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  border: 1px solid;
}

.form-status.success {
  border-color: #2e7d4f;
  background: rgba(46,125,79,0.1);
  color: #5cb88a;
}

.form-status.error {
  border-color: var(--accent-r);
  background: rgba(176,58,46,0.1);
  color: #e07060;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: #080909;
  border-top: 1px solid var(--border);
  padding: 72px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 64px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-faint);
  margin-top: 20px;
  max-width: 320px;
  line-height: 1.7;
}

.footer-links h5 {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-faint);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-faint);
  font-family: var(--font-cond);
  letter-spacing: 0.06em;
}

.footer-tagline {
  letter-spacing: 0.18em !important;
  color: rgba(201,168,76,0.4) !important;
  text-transform: uppercase;
}

/* =============================================
   SCROLL REVEAL
   ============================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid,
  .why-inner,
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .about-deco-block { margin-bottom: 0; }
  .why-intro { max-width: 100%; }
  .hero-badge { display: none; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(13,14,15,0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    gap: 0;
    padding: 24px 0;
    transform: translateY(-120%);
    transition: transform var(--transition);
    z-index: 99;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { transform: translateY(0); }

  .nav-links li { width: 100%; text-align: center; }

  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 1rem;
  }

  .nav-cta { margin: 12px 24px 0; display: block; text-align: center; }

  .services-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 36px; }

  .footer-bottom { flex-direction: column; text-align: center; }

  .hero-headline { font-size: clamp(3rem, 15vw, 6rem); }

  .scroll-indicator { display: none; }

  .stat-row { gap: 28px; }

  .container { padding: 0 20px; }

  .section-title { font-size: clamp(2rem, 8vw, 3rem); }
}

@media (max-width: 480px) {
  #hero { min-height: 100svh; }
  .hero-sub .br-hide { display: none; }
  .btn-primary, .btn-ghost { padding: 12px 24px; font-size: 0.82rem; }
}
