/*
Theme Name: Major Code
Theme URI: https://www.majorcode.rs
Author: Major Code
Author URI: https://www.majorcode.rs
Description: Custom lightweight portfolio theme for Major Code web and mobile application presentations.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: majorcode
*/

:root {
  --mc-bg: #070b16;
  --mc-bg-soft: #0d1324;
  --mc-bg-card: rgba(255, 255, 255, 0.075);
  --mc-bg-card-strong: rgba(255, 255, 255, 0.11);
  --mc-text: #f7fbff;
  --mc-muted: #aab7cf;
  --mc-line: rgba(255, 255, 255, 0.13);
  --mc-primary: #53d8ff;
  --mc-secondary: #8f7cff;
  --mc-accent: #42f5b0;
  --mc-warning: #ffd166;
  --mc-radius: 28px;
  --mc-radius-small: 18px;
  --mc-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --mc-max: 1180px;
  --mc-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--mc-text);
  background:
    radial-gradient(circle at top left, rgba(83, 216, 255, 0.25), transparent 34rem),
    radial-gradient(circle at top right, rgba(143, 124, 255, 0.23), transparent 32rem),
    linear-gradient(180deg, #070b16 0%, #0a1020 46%, #070b16 100%);
  font-family: var(--mc-font);
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.mc-shell {
  width: min(calc(100% - 32px), var(--mc-max));
  margin: 0 auto;
}

.mc-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7, 11, 22, 0.78);
  border-bottom: 1px solid var(--mc-line);
}

.mc-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mc-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.1rem;
}

.mc-brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #07101b;
  font-weight: 900;
  background: linear-gradient(135deg, var(--mc-primary), var(--mc-accent));
  box-shadow: 0 12px 34px rgba(83, 216, 255, 0.28);
}

.mc-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mc-menu li {
  margin: 0;
}

.mc-menu a,
.mc-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--mc-muted);
  font-weight: 700;
  font-size: 0.92rem;
  transition: 180ms ease;
}

.mc-menu a:hover,
.mc-menu .current-menu-item > a {
  color: var(--mc-text);
  background: rgba(255, 255, 255, 0.09);
}

.mc-header-cta {
  color: #06111d;
  background: linear-gradient(135deg, var(--mc-primary), var(--mc-accent));
  box-shadow: 0 16px 34px rgba(66, 245, 176, 0.18);
}

.mc-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--mc-line);
  list-style: none;
}

.mc-lang-switcher li,
.mc-lang-switcher li.lang-item {
  margin: 0;
  padding: 0;
  list-style: none;
  display: inline-flex;
}

.mc-lang-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--mc-muted);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: 180ms ease;
  white-space: nowrap;
}

.mc-lang-switcher a:hover {
  color: var(--mc-text);
  background: rgba(255, 255, 255, 0.09);
}

.mc-lang-switcher li.current-lang a,
.mc-lang-switcher span.current-lang {
  color: #06111d;
  background: linear-gradient(135deg, var(--mc-primary), var(--mc-accent));
}


.mc-main {

  min-height: 65vh;
}

.mc-page-content > *:first-child {
  margin-top: 0;
}

.mc-section {
  padding: 86px 0;
}

.mc-section--tight {
  padding: 54px 0;
}

.mc-hero {
  padding: 92px 0 74px;
}

.mc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 42px;
  align-items: center;
}

.mc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding: 8px 13px;
  border: 1px solid rgba(83, 216, 255, 0.26);
  border-radius: 999px;
  color: #bff2ff;
  background: rgba(83, 216, 255, 0.095);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mc-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--mc-accent);
  box-shadow: 0 0 18px rgba(66, 245, 176, 0.9);
}

.mc-hero h1,
.mc-page-hero h1 {
  margin: 0;
  font-size: clamp(2.55rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.085em;
}

.mc-gradient-text {
  background: linear-gradient(135deg, #ffffff, #bff2ff 38%, #c8c1ff 70%, #b8ffd9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mc-lead {
  margin: 24px 0 0;
  max-width: 760px;
  color: var(--mc-muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.mc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.mc-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: var(--mc-text);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  transition: 180ms ease;
}

.mc-button:hover,
.wp-block-button__link:hover {
  transform: translateY(-2px);
  border-color: rgba(83, 216, 255, 0.46);
  background: rgba(255, 255, 255, 0.13);
}

.mc-button--primary {
  color: #06111d;
  border: 0;
  background: linear-gradient(135deg, var(--mc-primary), var(--mc-accent));
  box-shadow: 0 18px 40px rgba(66, 245, 176, 0.18);
}

.mc-button--dark {
  color: #07101b;
  border: 0;
  background: #ffffff;
}

.mc-hero-panel,
.mc-card,
.mc-project-card,
.mc-feature-card,
.mc-stat-card,
.mc-contact-card {
  border: 1px solid var(--mc-line);
  border-radius: var(--mc-radius);
  background: linear-gradient(180deg, var(--mc-bg-card-strong), rgba(255, 255, 255, 0.045));
  box-shadow: var(--mc-shadow);
}

.mc-hero-panel {
  position: relative;
  overflow: hidden;
  padding: 28px;
}

.mc-hero-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(circle at 20% 0%, rgba(83, 216, 255, 0.32), transparent 34%), radial-gradient(circle at 100% 20%, rgba(143, 124, 255, 0.22), transparent 30%);
  pointer-events: none;
}

.mc-hero-panel > * {
  position: relative;
  z-index: 1;
}

.mc-window {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(7, 11, 22, 0.78);
}

.mc-window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mc-dot {
  width: 11px;
  height: 11px;
  border-radius: 99px;
  background: #ff5f57;
}

.mc-dot:nth-child(2) { background: #ffbd2e; }
.mc-dot:nth-child(3) { background: #28c840; }

.mc-code-preview {
  margin: 0;
  padding: 20px;
  color: #cfe7ff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  white-space: pre-wrap;
}

.mc-code-preview strong {
  color: var(--mc-accent);
}

.mc-panel-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.mc-mini-metric {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
}

.mc-mini-metric strong {
  display: block;
  font-size: 1.28rem;
  line-height: 1;
}

.mc-mini-metric span {
  display: block;
  margin-top: 7px;
  color: var(--mc-muted);
  font-size: 0.82rem;
}

.mc-section-head {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}

.mc-section-head--left {
  margin-left: 0;
  text-align: left;
}

.mc-section-head h2,
.mc-page-section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -0.065em;
}

.mc-section-head p,
.mc-page-section > p {
  margin: 16px 0 0;
  color: var(--mc-muted);
  font-size: 1.08rem;
}

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

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

.mc-card,
.mc-feature-card,
.mc-stat-card,
.mc-contact-card {
  padding: 26px;
}

.mc-card h3,
.mc-feature-card h3,
.mc-project-card h3,
.mc-contact-card h3 {
  margin: 0 0 10px;
  font-size: 1.32rem;
  letter-spacing: -0.025em;
}

.mc-card p,
.mc-feature-card p,
.mc-project-card p,
.mc-contact-card p {
  margin: 0;
  color: var(--mc-muted);
}

.mc-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 16px;
  color: #06111d;
  background: linear-gradient(135deg, var(--mc-primary), var(--mc-accent));
  font-weight: 900;
}

.mc-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mc-project-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.mc-project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, var(--project-glow, rgba(83, 216, 255, 0.22)), transparent 45%);
  pointer-events: none;
}

.mc-project-card > * {
  position: relative;
  z-index: 1;
}

.mc-project-tag {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #e8f7ff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  font-weight: 800;
}

.mc-project-card h3 {
  font-size: 1.75rem;
}

.mc-project-list {
  display: grid;
  gap: 9px;
  margin: 22px 0 26px;
  padding: 0;
  list-style: none;
  color: #dce8f7;
}

.mc-project-list li {
  display: flex;
  gap: 9px;
}

.mc-project-list li::before {
  content: "✓";
  color: var(--mc-accent);
  font-weight: 900;
}

.mc-project-card .mc-button {
  margin-top: auto;
}

.mc-tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mc-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #d9e8fb;
  background: rgba(255, 255, 255, 0.075);
  font-weight: 700;
  font-size: 0.9rem;
}

.mc-process {
  counter-reset: process;
  display: grid;
  gap: 16px;
}

.mc-process-step {
  counter-increment: process;
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--mc-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.065);
}

.mc-process-step::before {
  content: "0" counter(process);
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: #06111d;
  background: linear-gradient(135deg, var(--mc-primary), var(--mc-accent));
  font-weight: 900;
}

.mc-process-step h3,
.mc-process-step p {
  margin: 0;
}

.mc-process-step p {
  margin-top: 6px;
  color: var(--mc-muted);
}

.mc-cta-band {
  padding: 42px;
  border: 1px solid rgba(66, 245, 176, 0.25);
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(66, 245, 176, 0.24), transparent 34rem),
    linear-gradient(135deg, rgba(83, 216, 255, 0.16), rgba(143, 124, 255, 0.16));
  box-shadow: var(--mc-shadow);
}

.mc-cta-band h2 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.mc-cta-band p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--mc-muted);
  font-size: 1.08rem;
}

.mc-page-hero {
  padding: 72px 0 42px;
}

.mc-page-hero-card {
  padding: 42px;
  border: 1px solid var(--mc-line);
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(83, 216, 255, 0.14), rgba(143, 124, 255, 0.11));
}

.mc-page-section {
  padding: 42px 0;
}

.mc-rich-text {
  color: var(--mc-muted);
  font-size: 1.05rem;
}

.mc-rich-text strong {
  color: var(--mc-text);
}

.mc-list-check {
  display: grid;
  gap: 11px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.mc-list-check li {
  display: flex;
  gap: 10px;
  color: #dce8f7;
}

.mc-list-check li::before {
  content: "✓";
  color: var(--mc-accent);
  font-weight: 900;
}

.mc-site-footer {
  margin-top: 74px;
  border-top: 1px solid var(--mc-line);
  background: rgba(3, 6, 13, 0.5);
}

.mc-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 28px;
  padding: 48px 0;
}

.mc-footer-grid h2,
.mc-footer-grid h3,
.mc-footer-grid p {
  margin-top: 0;
}

.mc-footer-grid p,
.mc-footer-grid a {
  color: var(--mc-muted);
}

.mc-footer-links {
  display: grid;
  gap: 8px;
}

.mc-footer-bottom {
  padding: 20px 0;
  border-top: 1px solid var(--mc-line);
  color: var(--mc-muted);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .mc-header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .mc-menu {
    flex-wrap: wrap;
  }

  .mc-hero-grid,
  .mc-grid-2,
  .mc-grid-3,
  .mc-project-grid,
  .mc-footer-grid {
    grid-template-columns: 1fr;
  }

  .mc-project-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .mc-shell {
    width: min(calc(100% - 22px), var(--mc-max));
  }

  .mc-hero,
  .mc-section {
    padding: 52px 0;
  }

  .mc-page-hero-card,
  .mc-cta-band,
  .mc-hero-panel,
  .mc-card,
  .mc-feature-card,
  .mc-project-card,
  .mc-contact-card {
    padding: 22px;
    border-radius: 22px;
  }

  .mc-panel-metrics {
    grid-template-columns: 1fr;
  }

  .mc-process-step {
    grid-template-columns: 1fr;
  }
}
