/*
  Stefan Krcelic — Personal Site
  main.css
*/

/* ========== RESET & VARIABLES ========== */

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

:root {
  --bg: #f7f5f2;
  --ink: #111110;
  --muted: #6b6860;
  --border: #e0ddd8;
  --accent: #ff4d00;
  --accent-hover: #e04000;
  --green: #1a7a4a;
  --green-bg: #edf7f1;
  --yellow: #f5c800;
  --card: #ffffff;
  --pill-bg: #efefed;
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

/* ========== NAV ========== */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

/* Mobile nav toggle button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.25s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(3px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(3px, -5px);
}

.nav-cta {
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 4px;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: #333;
}

/* ========== HERO ========== */

.hero-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.hero {
  padding: 100px 40px 80px;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-bg);
  border: 1px solid #b8e0cb;
  border-radius: 6px;
  padding: 5px 14px 5px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--muted);
}

.hero h1 .highlight {
  position: relative;
  display: inline-block;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--yellow);
  z-index: -1;
  border-radius: 2px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-social-proof {
  margin-top: 36px;
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.stars {
  color: var(--yellow);
  letter-spacing: -2px;
}

/* ========== BUTTONS ========== */

.btn-primary {
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 5px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 5px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--ink);
}

/* ========== HERO CARD ========== */

.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.07);
  position: relative;
}

.hero-card::before {
  content: 'STEFAN.exe';
  position: absolute;
  top: -10px;
  left: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 4px;
}

.product-avatar-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  margin-bottom: 16px;
  border: 2px solid var(--border);
  display: block;
}

.product-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.product-version {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.spec-row:last-of-type {
  border-bottom: none;
}

.spec-label {
  color: var(--muted);
}

.spec-value {
  font-weight: 600;
  color: var(--ink);
}

.spec-value.green {
  color: var(--green);
}

.spec-value.accent {
  color: var(--accent);
}

.add-to-team {
  margin-top: 20px;
  width: 100%;
  background: var(--accent);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 12px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  display: block;
  text-align: center;
}

.add-to-team:hover {
  background: var(--accent-hover);
}

.wishlist-btn {
  margin-top: 8px;
  width: 100%;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid var(--border);
  cursor: pointer;
  display: block;
  text-align: center;
  transition: all 0.2s;
}

.wishlist-btn:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ========== LOGOS ========== */

.logos-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 40px;
  text-align: center;
}

.logos-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.logos-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.5;
}

/* ========== SECTION HEADINGS (shared) ========== */

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-heading {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 56px;
}

/* ========== FEATURES ========== */

.features {
  padding: 100px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ========== EXPERIENCE TIMELINE ========== */

.experience {
  background: var(--ink);
  color: #fff;
  padding: 100px 40px;
}

.experience-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.experience .section-eyebrow {
  color: var(--yellow);
}

.experience .section-heading {
  color: #fff;
}

.experience .section-sub {
  color: #888;
}

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

.timeline-card {
  background: #1a1a18;
  border: 1px solid #2a2a28;
  border-radius: 6px;
  padding: 24px 28px;
  position: relative;
  transition: border-color 0.2s;
}

.timeline-card:hover {
  border-color: #444;
}

.timeline-card.current {
  border-color: var(--accent);
}

.current-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
}

.tc-period {
  font-size: 0.72rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.tc-role {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.tc-company {
  font-size: 0.82rem;
  color: #666;
  margin-bottom: 12px;
}

.tc-desc {
  font-size: 0.82rem;
  color: #888;
  line-height: 1.7;
}

/* ========== SKILLS ========== */

.skills-section {
  padding: 100px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.skills-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.skill-category {
  margin-bottom: 28px;
}

.skill-category-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  background: var(--pill-bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  transition: all 0.15s;
}

.pill:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.pill.accent {
  background: rgba(255, 77, 0, 0.08);
  border-color: rgba(255, 77, 0, 0.2);
  color: var(--accent);
}

/* ========== SPECS PANEL ========== */

.specs-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.specs-panel-header {
  background: var(--pill-bg);
  padding: 16px 24px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.specs-table {
  padding: 8px 0;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 24px;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border);
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-item-label {
  color: var(--muted);
}

.spec-item-val {
  font-weight: 600;
}

/* ========== TESTIMONIALS ========== */

.testimonials {
  background: var(--pill-bg);
  padding: 100px 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.testimonials-inner {
  max-width: 1100px;
  margin: 0 auto;
}

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

.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.review-stars {
  color: var(--yellow);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.review-text {
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.reviewer {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

/* ========== MAP ========== */

.map-section {
  padding: 100px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.map-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
}

.map-embed {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  height: 380px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.map-info h3 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.map-info p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.location-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.loc-photo-wrap {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.loc-photo {
  width: 100%;
  height: auto;
  display: block;
}

.loc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.loc-icon {
  font-size: 1rem;
}

.loc-val {
  font-weight: 600;
  color: var(--ink);
}

/* ========== PRICING / CTA ========== */

.pricing {
  background: var(--ink);
  padding: 100px 40px;
  text-align: center;
  color: #fff;
}

.pricing-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
}

.pricing h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.pricing p {
  font-size: 1rem;
  color: #888;
  max-width: 440px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.plan-card {
  background: #1a1a18;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 40px;
  max-width: 380px;
  margin: 0 auto 24px;
  position: relative;
  overflow: hidden;
}

.plan-card::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: 20px;
  right: -28px;
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 40px;
  transform: rotate(45deg);
}

.plan-name {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 12px;
}

.plan-price {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 4px;
}

.plan-price span {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
}

.plan-note {
  font-size: 0.78rem;
  color: #555;
  margin-bottom: 28px;
}

.plan-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

.plan-features li {
  font-size: 0.85rem;
  color: #aaa;
  padding: 7px 0;
  border-bottom: 1px solid #222;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features li::before {
  content: '\2713';
  color: var(--green);
  font-weight: 700;
}

.plan-cta {
  width: 100%;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  display: block;
  text-align: center;
}

.plan-cta:hover {
  background: var(--accent-hover);
}

.pricing-disclaimer {
  font-size: 0.72rem;
  color: #444;
  margin-top: 16px;
}

/* ========== FOOTER ========== */

footer {
  border-top: 1px solid var(--border);
  padding: 28px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg);
}

.footer-links {
  display: flex;
  gap: 24px;
}

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

/* ========== ANIMATIONS ========== */

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

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
  nav {
    padding: 0 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(247, 245, 242, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 16px 20px;
    gap: 12px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 60px 24px 40px;
  }

  .features {
    padding: 60px 24px;
  }

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

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

  .experience {
    padding: 60px 24px;
  }

  .skills-section {
    padding: 60px 24px;
  }

  .skills-container {
    grid-template-columns: 1fr;
  }

  .testimonials {
    padding: 60px 24px;
  }

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

  .map-section {
    padding: 60px 24px;
  }

  .map-container {
    grid-template-columns: 1fr;
  }

  .pricing {
    padding: 60px 24px;
  }

  footer {
    padding: 24px 20px;
  }
}
