/* ================================================================
   Team Bullin — Global Stylesheet
   Dark theme · Yellow accent · JetBrains Mono headings · Inter body
   ================================================================ */

/* ── Custom Properties ─────────────────────────────────────────── */
:root {
  --bg:            #1a1a1a;
  --bg-elevated:   #222222;
  --bg-card:       #262626;
  --accent:        #fdd05c;
  --accent-hover:  #fce07a;
  --teal:          #26aba0;
  --teal-dim:      rgba(38, 171, 160, 0.12);
  --text:          #f0f0f0;
  --text-muted:    #a0a0a0;
  --border:        rgba(255, 255, 255, 0.08);
  --border-accent: rgba(253, 208, 92, 0.25);
  --mono:          "JetBrains Mono", Consolas, Monaco, monospace;
  --sans:          "Inter", system-ui, -apple-system, sans-serif;
  --radius:        12px;
  --radius-sm:     6px;
  --shadow:        0 4px 32px rgba(0, 0, 0, 0.5);
  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width:     1100px;
  --section-pad:   100px;
}

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

/* ── Base ──────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-hover); }

ul { list-style: none; }

/* ── Skip Link ─────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--accent);
  color: #1a1a1a;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus { top: 10px; }

/* ── Typography ────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--mono);
  color: var(--accent);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 2rem;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.75;
}
p:last-child { margin-bottom: 0; }

/* ── Layout Helpers ────────────────────────────────────────────── */
.wrapper {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 2rem;
}

.wrapper--wide {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 2rem;
}

.center      { text-align: center; }
.mt-10       { margin-top: 10px; }
.mt-20       { margin-top: 20px; }
.mt-30       { margin-top: 30px; }
.mt-40       { margin-top: 40px; }
.ml-10       { margin-left: 10px; }
.ml-20       { margin-left: 20px; }
.ml-auto     { margin-left: auto; }
.mr-10       { margin-right: 10px; }
.mr-20       { margin-right: 20px; }
.display-flex{ display: flex; }

/* ── Prose (Markdown content) ──────────────────────────────────── */
.prose p { color: var(--text); }
.prose ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.prose ul li {
  list-style: disc;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.prose ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.prose ol li {
  list-style: decimal;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.prose strong { color: var(--accent); font-weight: 600; }
.prose em     { color: var(--text-muted); font-style: italic; }
.prose a      { color: var(--accent); text-decoration: underline; }
.prose h3     { margin-top: 1.5rem; }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border: 1.5px solid var(--accent);
  border-radius: 50px;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--sans);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:hover {
  background: var(--accent);
  color: #1a1a1a;
  transform: translateY(-1px);
}
.btn span { color: inherit; }

.btn--primary {
  background: var(--accent);
  color: #1a1a1a;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: #1a1a1a;
}
.btn--yellow { border-color: var(--accent); color: var(--accent); }
.btn--yellow:hover { background: var(--accent); color: #1a1a1a; }

.btn__loader {
  width: 1em;
  height: 1em;
  border: 2px solid transparent;
  border-top-color: #1a1a1a;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.btn__done { color: #4ade80; font-weight: bold; }

/* ── Section label ─────────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

/* ── Typing Cursor ─────────────────────────────────────────────── */
.typing-cursor::after {
  content: "_";
  animation: blink 1.3s step-start infinite;
  color: var(--accent);
}

/* ─────────────────────────────────────────────────────────────── */
/*  HEADER / NAVIGATION                                             */
/* ─────────────────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

header .logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

header img {
  height: 50px;
  filter: invert(1);
  transition: opacity var(--transition);
}
header img:hover { opacity: 0.75; }

header nav { display: flex; align-items: center; }

header ul,
header nav ul {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

header li a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
header li a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.lang-switch {
  font-size: 1rem;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.lang-switch:hover {
  border-color: var(--border-accent);
  color: var(--text);
  background: transparent;
}

#js-burger-menu {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  text-decoration: none;
}

/* ── Footer ────────────────────────────────────────────────────── */
footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
}

footer .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

footer .copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

footer nav ul {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

footer li a {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}
footer li a:hover { color: var(--accent); }

/* ── Sections ──────────────────────────────────────────────────── */
section {
  padding: var(--section-pad) 0;
}
section + section {
  border-top: 1px solid var(--border);
}

/* ─────────────────────────────────────────────────────────────── */
/*  INTRO / HERO                                                     */
/* ─────────────────────────────────────────────────────────────── */
#teambullin {
  background: var(--bg);
  padding-top: 110px;
  padding-bottom: 110px;
}

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

#teambullin h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

#teambullin p {
  font-size: 1.05rem;
  color: #c0c0c0;
  max-width: 520px;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-accent);
}
.hero-image-wrapper img {
  width: 100%;
  object-fit: cover;
}

.show-xs { display: none; }

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

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition);
}
.team-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}

.team-card__header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.team-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-accent);
  flex-shrink: 0;
}

.team-card__name {
  font-size: 1.15rem;
  color: var(--accent);
  font-family: var(--mono);
  margin-bottom: 0.2rem;
}

.team-card__role {
  font-size: 0.8rem;
  color: var(--teal);
  font-family: var(--mono);
  font-weight: 600;
}

.team-card__bio {
  font-size: 0.95rem;
  color: #bebebe;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.skill-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(253, 208, 92, 0.08);
  color: var(--accent);
  border: 1px solid rgba(253, 208, 92, 0.18);
}

/* Legacy .skill class */
.skill {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(253, 208, 92, 0.08);
  color: var(--accent);
  border: 1px solid rgba(253, 208, 92, 0.18);
  display: inline-block;
  margin: 0.2rem;
}

/* ─────────────────────────────────────────────────────────────── */
/*  SERVICE                                                          */
/* ─────────────────────────────────────────────────────────────── */
#service { background: var(--bg); }

#service .service-intro {
  max-width: 680px;
  font-size: 1.05rem;
  color: #c0c0c0;
  margin-bottom: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition), transform var(--transition);
}
.service-card:hover {
  border-color: rgba(38, 171, 160, 0.4);
  transform: translateY(-2px);
}

.service-card__icon {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.service-card__title {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.service-card__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.service-callout {
  background: var(--teal-dim);
  border: 1px solid rgba(38, 171, 160, 0.25);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 2.5rem;
}
.service-callout p {
  font-size: 0.95rem;
  color: #c0e8e6;
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────── */
/*  PROJECTS / WORK  (Tabs + Panel)                                 */
/* ─────────────────────────────────────────────────────────────── */
#work {
  background: var(--bg-elevated);
}

#work .section-header {
  text-align: center;
  margin-bottom: 0;
}

.project-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.project-tab {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 1.2rem;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.04em;
}
.project-tab:hover {
  border-color: var(--border-accent);
  color: var(--accent);
}
.project-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1a1a;
}

/* Project panels */
.project-panel { display: none; }
.project-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
  animation: fadeIn 0.35s ease;
}

/* Gallery */
.project-gallery__preview {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.project-gallery__preview img {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
}

.project-gallery__thumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.project-gallery__thumbs img {
  width: 56px;
  height: 42px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid var(--border);
  opacity: 0.55;
  transition: opacity var(--transition), border-color var(--transition);
}
.project-gallery__thumbs img:hover,
.project-gallery__thumbs img.active {
  border-color: var(--accent);
  opacity: 1;
}

/* Project info */
.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  background: var(--teal-dim);
  border: 1px solid rgba(38, 171, 160, 0.25);
  border-radius: 50px;
  padding: 0.22rem 0.75rem;
  margin-bottom: 1rem;
}

.project-info h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.project-info .prose p {
  font-size: 0.975rem;
  color: #bdbdbd;
  line-height: 1.75;
}
.project-info .prose ul li { color: #bdbdbd; }

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.25rem 0 1.5rem;
}
.tech-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(38, 171, 160, 0.08);
  color: var(--teal);
  border: 1px solid rgba(38, 171, 160, 0.2);
}

/* ─────────────────────────────────────────────────────────────── */
/*  CONTACT                                                          */
/* ─────────────────────────────────────────────────────────────── */
#contact { background: var(--bg); }

#contact .wrapper { max-width: 680px; }

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  margin-top: 1.25rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

input[type="text"],
input[type="email"] {
  height: 46px;
  width: 100%;
  font-size: 0.95rem;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 0.875rem;
  outline: none;
  transition: border-color var(--transition);
  box-sizing: border-box;
}
input[type="text"]:focus,
input[type="email"]:focus { border-color: var(--accent); }
input::placeholder { color: #444; }

textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  width: 100%;
  padding: 0.75rem 0.875rem;
  outline: none;
  resize: vertical;
  transition: border-color var(--transition);
}
textarea:focus { border-color: var(--accent); }
textarea::placeholder { color: #444; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--accent);
  cursor: pointer;
}
.checkbox-row label {
  margin: 0;
  font-size: 0.875rem;
  text-transform: none;
  color: var(--text-muted);
  cursor: pointer;
  letter-spacing: 0;
}
.checkbox-row label a { text-decoration: underline; }

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.error {
  font-size: 0.78rem;
  color: #f87171;
  margin-top: 0.3rem;
}

.message {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.5;
  animation: fadeIn 0.4s ease;
  margin-top: 1rem;
}
.success {
  background: rgba(74, 222, 128, 0.08);
  color: #86efac;
  border: 1px solid rgba(74, 222, 128, 0.2);
}
.failure {
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ─────────────────────────────────────────────────────────────── */
/*  LEGAL PAGES                                                      */
/* ─────────────────────────────────────────────────────────────── */
.legal-content {
  max-width: 780px;
  margin-inline: auto;
  padding: 70px 2rem 100px;
}
.legal-content h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.legal-content h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.legal-content h3 {
  font-size: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  color: #adadad;
  line-height: 1.75;
}
.legal-content ul,
.legal-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.legal-content li  { margin-bottom: 0.4rem; }
.legal-content a   { text-decoration: underline; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: #333; }

/* ── Utility ───────────────────────────────────────────────────── */
.hide  { display: none !important; }
.show  { display: block !important; }
.color-green { color: var(--teal); }
.bg-green    { background: var(--teal); }

/* ── Animations ────────────────────────────────────────────────── */
@keyframes blink {
  50% { opacity: 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────────────────────── */
/*  RESPONSIVE                                                       */
/* ─────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-pad: 70px; }

  #teambullin .intro-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  #teambullin .hero-image-wrapper { display: none; }
  .show-xs { display: block !important; }
  .show-xs img { width: 100%; border-radius: var(--radius); }

  .team-grid {
    grid-template-columns: 1fr;
  }
  .project-panel.active {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root { --section-pad: 50px; }

  header { padding: 0 1rem; }

  header nav {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
  }
  header nav.show { display: flex; }
  header nav ul {
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
  }
  header li a {
    display: block;
    padding: 0.65rem 1rem;
    color: var(--text);
  }

  #js-burger-menu { display: block; }

  footer .wrapper {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  footer nav ul { justify-content: center; }

  .project-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .project-tabs::-webkit-scrollbar { display: none; }
  .project-tab { flex-shrink: 0; }

  .btn { margin: 4px 0; }
}
