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

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-100: #f7f7f7;
  --gray-200: #e8e8e8;
  --gray-400: #999999;
  --gray-600: #555555;
  --gray-800: #222222;
  --font: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --transition: 0.3s ease;
  --lift-transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 5%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}

nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav-logo img { height: 44px; }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--gray-600);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--black); }
.nav-links a.active {
  color: var(--black);
  font-weight: 700;
  border-bottom: 2px solid var(--black);
  padding-bottom: 2px;
}

.nav-cta {
  background: var(--black);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
}
.nav-cta:hover { background: var(--gray-800); color: var(--white) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--black); transition: var(--transition); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 5% 5rem;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-grid { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-title span { color: var(--gray-400); }

.hero-desc {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--black);
  color: var(--white);
  padding: 0.875rem 1.75rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
  letter-spacing: 0.01em;
}
.btn-primary:hover { background: var(--gray-800); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--black);
  padding: 0.875rem 1.75rem;
  border-radius: 4px;
  border: 1.5px solid var(--gray-200);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
}
.btn-secondary:hover { border-color: var(--black); transform: translateY(-1px); }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 1.5rem;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 22px 60px rgba(0,0,0,0.10);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0,0,0,0.04), rgba(0,0,0,0));
  pointer-events: none;
}

.hero-card-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding-bottom: 0.9rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--gray-200);
}

.hero-card-header span {
  color: var(--gray-400);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-card-header strong {
  color: var(--black);
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--black);
  color: var(--white);
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.stat-item {
  text-align: left;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.15rem;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.stat-num {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 2.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-star {
  color: #f5a400;
  font-size: 1.25rem;
  line-height: 1;
  transform: translateY(-0.25rem);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--gray-400);
  font-weight: 700;
  margin-top: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-card-note {
  position: relative;
  margin-top: 0.9rem;
  padding: 0.9rem 1rem;
  background: var(--black);
  border-radius: 10px;
  color: var(--white);
  font-weight: 500;
  letter-spacing: 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ── SECTION COMMON ── */
section { padding: 6rem 5%; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gray-600);
  max-width: 560px;
  line-height: 1.7;
}

/* ── ABOUT ── */
#about { background: var(--gray-100); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text .section-subtitle { margin-bottom: 2rem; }

.about-pillars { display: flex; flex-direction: column; gap: 1rem; }
.pillar {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: 8px;
}
.pillar-icon {
  width: 40px; height: 40px;
  background: var(--black);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.pillar-body h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.2rem; }
.pillar-body p { font-size: 0.825rem; color: var(--gray-600); line-height: 1.5; }

/* ── SERVICES ── */
#services { background: var(--white); }

.services-header { margin-bottom: 3rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 2rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  cursor: default;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}
.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.14);
}

.service-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ── PORTFOLIO ── */
#portfolio { background: var(--gray-100); }

.portfolio-header { margin-bottom: 3rem; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.portfolio-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--gray-200);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}
.portfolio-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.14);
}

.portfolio-cover {
  height: 200px;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.portfolio-cover-text {
  color: var(--white);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  opacity: 0.15;
  user-select: none;
}

.portfolio-cover-badge {
  position: absolute;
  bottom: 1rem; left: 1rem;
  background: var(--white);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
}

.portfolio-body { padding: 1.75rem; }
.portfolio-body h3 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.portfolio-category {
  font-size: 0.75rem;
  color: var(--gray-400);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.portfolio-body p {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.portfolio-stats { display: flex; gap: 1.5rem; }
.p-stat { display: flex; flex-direction: column; }
.p-stat-num { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.p-stat-label { font-size: 0.7rem; color: var(--gray-400); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }

/* ── REVIEWS ── */
#reviews { background: var(--white); }
.reviews-header { margin-bottom: 2.5rem; }

.reviews-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--black);
  border-radius: 12px;
  padding: 2rem 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.rs-item { text-align: center; padding: 0 2.5rem; }
.rs-link { text-decoration: none; transition: opacity 0.2s ease; }
.rs-link:hover { opacity: 0.75; }
.rs-num { font-size: 1.6rem; font-weight: 800; color: var(--white); letter-spacing: -0.03em; }
.rs-label { font-size: 0.7rem; color: #666; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-top: 0.2rem; }
.rs-divider { width: 1px; height: 40px; background: #222; flex-shrink: 0; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.review-card {
  padding: 1.75rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}
.review-card:hover { transform: translateY(-12px); box-shadow: 0 24px 48px rgba(0,0,0,0.14); }

.review-top { display: flex; align-items: flex-start; gap: 0.875rem; margin-bottom: 1rem; }

.review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.review-meta { flex: 1; }
.review-name { font-size: 0.9rem; font-weight: 700; }
.review-flag { font-size: 0.85rem; }
.review-stars { font-size: 0.8rem; color: #f59e0b; margin-top: 0.1rem; }
.review-stars span { color: var(--gray-600); font-size: 0.75rem; }

.review-time { font-size: 0.72rem; color: var(--gray-400); white-space: nowrap; flex-shrink: 0; }

.review-project {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.review-text { font-size: 0.875rem; color: var(--gray-600); line-height: 1.65; font-style: italic; }

/* ── TEAM ── */
#team { background: var(--white); }

.team-header { margin-bottom: 3rem; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.team-card {
  padding: 2rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}
.team-card:hover { transform: translateY(-12px); box-shadow: 0 24px 48px rgba(0,0,0,0.14); }

.team-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.team-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.team-role { font-size: 0.78rem; color: var(--gray-400); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.team-card p { font-size: 0.825rem; color: var(--gray-600); line-height: 1.6; }

/* ── CONTACT ── */
#contact { background: var(--black); color: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

#contact .section-tag { color: var(--gray-400); }
#contact .section-title { color: var(--white); }
#contact .section-subtitle { color: #aaaaaa; }

.contact-details { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; }
.contact-item-icon {
  width: 44px; height: 44px;
  border: 1.5px solid #333;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item-body {}
.contact-item-label { font-size: 0.7rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.contact-item-value { font-size: 0.95rem; color: var(--white); font-weight: 500; }
.contact-item-value a { color: var(--white); text-decoration: none; }
.contact-item-value a:hover { text-decoration: underline; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.78rem; color: #aaa; font-weight: 500; letter-spacing: 0.05em; }
.form-group input,
.form-group textarea {
  background: #1a1a1a;
  border: 1.5px solid #333;
  border-radius: 6px;
  padding: 0.875rem 1rem;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: #666; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #555; }

.btn-send {
  background: var(--white);
  color: var(--black);
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  align-self: flex-start;
  letter-spacing: 0.02em;
}
.btn-send:hover { background: var(--gray-200); transform: translateY(-1px); }

/* ── FOOTER ── */
footer {
  background: #050505;
  color: #555;
  padding: 2rem 5%;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo img { height: 28px; filter: invert(1); opacity: 0.6; }
.footer-copy { font-size: 0.8rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: #555; text-decoration: none; font-size: 0.8rem; transition: color var(--transition); }
.footer-links a:hover { color: #999; }

/* ── THEME TOGGLE BUTTON ── */
.theme-toggle {
  background: none;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--black);
  transition: var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--black); background: var(--gray-100); }
.icon-sun { display: none; }
.icon-moon { display: block; }

/* ── DARK THEME ── */
body.dark { background: #0a0a0a; color: #ffffff; }

body.dark .nav-logo img { filter: invert(1); }

body.dark nav {
  background: rgba(10,10,10,0.95);
  border-bottom-color: #1a1a1a;
}
body.dark .nav-links a { color: #888; }
body.dark .nav-links a:hover { color: #fff; }
body.dark .nav-links a.active { color: #fff; border-bottom-color: #fff; }
body.dark .nav-cta { background: #fff; color: #000 !important; }
body.dark .nav-cta:hover { background: #e8e8e8; }
body.dark .hamburger span { background: #fff; }
body.dark .theme-toggle { border-color: #333; color: #fff; }
body.dark .theme-toggle:hover { background: #1a1a1a; border-color: #555; }
body.dark .icon-sun { display: block; }
body.dark .icon-moon { display: none; }
body.dark .nav-links.open { background: #0a0a0a; border-bottom-color: #1a1a1a; }

body.dark #hero { background: #0a0a0a; }
body.dark .hero-badge { color: #666; }
body.dark .hero-title span { color: #555; }
body.dark .hero-desc { color: #888; }
body.dark .btn-secondary { border-color: #333; color: #fff; }
body.dark .btn-secondary:hover { border-color: #fff; }
body.dark .hero-card { background: #111; border-color: #2a2a2a; box-shadow: 0 22px 60px rgba(0,0,0,0.4); }
body.dark .hero-card-header { border-bottom-color: #2a2a2a; }
body.dark .hero-card-header span { color: #555; }
body.dark .hero-card-header strong { background: #fff; color: #000; }
body.dark .stat-item { background: #1a1a1a; border-color: #2a2a2a; }
body.dark .stat-num { color: #fff; }
body.dark .stat-label { color: #555; }
body.dark .hero-card-note { background: #fff; color: #000; }

body.dark #about { background: #111; }
body.dark .pillar { background: #1a1a1a; }
body.dark .section-subtitle { color: #888; }

body.dark #services { background: #0a0a0a; }
body.dark .service-card { background: #111; border-color: #2a2a2a; }
body.dark .service-card:hover { transform: translateY(-12px); box-shadow: 0 24px 48px rgba(255,255,255,0.08); }
body.dark .service-card p { color: #888; }

body.dark #portfolio { background: #111; }
body.dark .portfolio-card { background: #1a1a1a; border-color: #2a2a2a; }
body.dark .portfolio-card:hover { transform: translateY(-12px); box-shadow: 0 24px 48px rgba(255,255,255,0.08); }
body.dark .portfolio-category { color: #666; }
body.dark .portfolio-body p { color: #888; }
body.dark .p-stat-label { color: #666; }

body.dark #reviews { background: #0a0a0a; }
body.dark .reviews-stats { background: #111; border: 1.5px solid #2a2a2a; }
body.dark .rs-divider { background: #2a2a2a; }
body.dark .rs-label { color: #555; }
body.dark .review-card { background: #111; border-color: #2a2a2a; }
body.dark .review-card:hover { transform: translateY(-12px); box-shadow: 0 24px 48px rgba(255,255,255,0.08); }
body.dark .review-time { color: #555; }
body.dark .review-project { color: #666; }
body.dark .review-text { color: #888; }

body.dark #team { background: #0a0a0a; }
body.dark .team-card { background: #111; border-color: #2a2a2a; }
body.dark .team-card:hover { transform: translateY(-12px); box-shadow: 0 24px 48px rgba(255,255,255,0.08); }
body.dark .team-card p { color: #888; }

body.dark #contact iframe {
  filter: invert(1) hue-rotate(180deg);
  border-radius: 8px;
}

body.dark footer { background: #050505; }
body.dark .footer-logo img { filter: invert(0); opacity: 0.5; }

/* ── SCROLL TO TOP ── */
#scrollTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px; height: 44px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
#scrollTop.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
#scrollTop:hover { background: var(--gray-800); transform: translateY(-3px); }

body.dark #scrollTop { background: #fff; color: #000; }
body.dark #scrollTop:hover { background: #e8e8e8; }

/* ── SCROLL ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    padding: 2rem 5%;
    border-bottom: 1px solid var(--gray-200);
    gap: 1.5rem;
  }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
