/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* --- Site Header (vertical sidebar) --- */
body {
  display: flex;
  min-height: 100vh;
  margin: 0;
}

.site-header {
  background-color: #1a1a2e;
  color: #fff;
  width: 220px;
  min-width: 220px;
  min-height: 100vh;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.4);
  overflow-y: auto;
}

.header-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem 1.25rem;
  height: 100%;
  box-sizing: border-box;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 100vh;
}

main {
  flex: 1;
  min-width: 0;
}

/* Brand */
.site-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  font-size: 1.4rem;
  font-weight: 700;
  color: #e94560;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
}

/* Navigation */
.header-nav {
  width: 100%;
}

.header-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.header-nav a {
  display: block;
  padding: 0.4rem 0.85rem;
  color: #ccc;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.header-nav a:hover {
  background-color: #e94560;
  color: #fff;
}

/* Tech Badges */
.tech-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: auto;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-php {
  background-color: #7a86b8;
  color: #fff;
}

.badge-aspnet {
  background-color: #512bd4;
  color: #fff;
}

.badge-js {
  background-color: #f0db4f;
  color: #222;
}

.badge-games {
  background-color: #2d6a4f;
  color: #fff;
}

/* ==========================================================================
   Compound Interest Page
   ========================================================================== */

.ci-page {
  font-family: system-ui, -apple-system, sans-serif;
  color: #222;
}

.ci-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero */
.ci-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  color: #fff;
  padding: 4rem 0 3.5rem;
  text-align: center;
}

.ci-hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.ci-hero-sub {
  font-size: 1.2rem;
  color: #a8b2d8;
  margin: 0;
}

/* Sections */
.ci-section {
  padding: 3.5rem 0;
}

.ci-section-alt {
  background-color: #f4f6fb;
}

.ci-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: #1a1a2e;
}

/* Formula box */
.ci-formula-box {
  background: #1a1a2e;
  color: #fff;
  border-radius: 10px;
  padding: 1.75rem 2rem;
  margin-top: 1.5rem;
  display: inline-block;
  min-width: 320px;
}

.ci-formula-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a8b2d8;
  margin: 0 0 0.5rem;
}

.ci-formula {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  color: #f0db4f;
  margin: 0 0 1rem;
}

.ci-formula-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #cdd6f4;
}

/* Cards grid */
.ci-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.ci-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  border-top: 3px solid #e94560;
}

.ci-card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

.ci-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #1a1a2e;
}

.ci-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
  color: #444;
}

/* Two-column layout */
.ci-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 680px) {
  .ci-two-col {
    grid-template-columns: 1fr;
  }
}

.ci-list {
  padding-left: 1.2rem;
  line-height: 2;
}

/* Highlight box */
.ci-highlight-box {
  background: linear-gradient(135deg, #0f3460, #1a1a2e);
  color: #fff;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.ci-highlight-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a8b2d8;
  margin: 0 0 0.5rem;
}

.ci-big-number {
  font-size: 2.6rem;
  font-weight: 800;
  color: #f0db4f;
  margin: 0.5rem 0;
}

/* Calculator */
.ci-calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
  align-items: center;
}

@media (max-width: 680px) {
  .ci-calc {
    grid-template-columns: 1fr;
  }
}

.ci-calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ci-calc-inputs label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  gap: 0.3rem;
}

.ci-calc-inputs input,
.ci-calc-inputs select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
  color: #222;
}

.ci-calc-inputs input:focus,
.ci-calc-inputs select:focus {
  outline: 2px solid #e94560;
  border-color: transparent;
}

.ci-calc-result {
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  color: #fff;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
}

.ci-result-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a8b2d8;
  margin: 0 0 0.4rem;
}

.ci-result-amount {
  font-size: 2.8rem;
  font-weight: 800;
  color: #f0db4f;
  margin: 0 0 0.75rem;
}

.ci-result-detail {
  font-size: 0.85rem;
  color: #cdd6f4;
  margin: 0;
}

/* Ordered tips list */
.ci-ordered-list {
  padding-left: 1.4rem;
  line-height: 1;
}

.ci-ordered-list li {
  margin-bottom: 0.85rem;
  font-size: 0.97rem;
  line-height: 1.6;
}

/* Active nav link */
.header-nav a.nav-active {
  background-color: #e94560;
  color: #fff;
}

/* Footer */
.ci-footer {
  background-color: #1a1a2e;
  color: #a8b2d8;
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.85rem;
}

/* ==========================================================================
   Projects Page
   ========================================================================== */

.proj-page {
  font-family: system-ui, -apple-system, sans-serif;
  color: #222;
}

.proj-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero */
.proj-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  color: #fff;
  padding: 4rem 0 3.5rem;
  text-align: center;
}

.proj-hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.proj-hero-sub {
  font-size: 1.2rem;
  color: #a8b2d8;
  margin: 0;
}

/* Filter bar */
.proj-filter-bar {
  background: #fff;
  border-bottom: 1px solid #e0e4ef;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.proj-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.proj-filter-btn {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 2px solid #e0e4ef;
  background: transparent;
  color: #555;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.proj-filter-btn:hover {
  border-color: #e94560;
  color: #e94560;
}

.proj-filter-active {
  background: #e94560;
  border-color: #e94560;
  color: #fff;
}

/* Projects grid */
.proj-section {
  padding: 3rem 0 4rem;
}

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

.proj-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: #888;
}

/* Project card */
.proj-card {
  background: #fff;
  border: 1px solid #e0e4ef;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow 0.2s, transform 0.15s;
}

.proj-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.proj-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.proj-card-tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background-color: #1a1a2e;
  color: #fff;
}

.proj-card-tag-aspnet {
  background-color: #512bd4;
}

.proj-card-tag-js {
  background-color: #f0db4f;
  color: #222;
}

.proj-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: #1a1a2e;
}

.proj-card-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #555;
  margin: 0;
  flex: 1;
}

/* Tech stack pills */
.proj-card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.proj-card-tech span {
  font-size: 0.75rem;
  font-weight: 600;
  background: #f0f2fa;
  color: #444;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #e0e4ef;
}

/* Card links */
.proj-card-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.proj-btn {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}

.proj-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.proj-btn-primary {
  background-color: #e94560;
  color: #fff;
}

.proj-btn-secondary {
  border: 2px solid #e94560;
  color: #e94560;
  background: transparent;
}

@media (max-width: 680px) {
  .proj-hero-title { font-size: 2rem; }
  .proj-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Gaming Reviews Page
   ========================================================================== */

.review-page {
  font-family: system-ui, -apple-system, sans-serif;
  color: #222;
}

.review-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero */
.review-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  color: #fff;
  padding: 4rem 0 3.5rem;
  text-align: center;
}

.review-hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.review-hero-sub {
  font-size: 1.2rem;
  color: #a8b2d8;
  margin: 0;
}

/* Filter bar */
.review-filter-bar {
  background-color: #f4f6fb;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e0e4ef;
}

.review-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.review-filter-btn {
  padding: 0.5rem 1rem;
  border: 2px solid #e0e4ef;
  border-radius: 6px;
  background: #fff;
  color: #555;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.review-filter-btn:hover {
  border-color: #e94560;
  color: #e94560;
}

.review-filter-active {
  background: #e94560;
  border-color: #e94560;
  color: #fff;
}

/* Reviews grid */
.review-section {
  padding: 3rem 0 4rem;
}

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

.review-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: #888;
}

/* Review card */
.review-card {
  background: #fff;
  border: 1px solid #e0e4ef;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow 0.2s, transform 0.15s;
}

.review-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.5rem;
}

.review-card-genre {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background-color: #1a1a2e;
  color: #fff;
}

.review-card-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #e94560;
}

.review-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: #1a1a2e;
}

.review-card-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #555;
  margin: 0;
  flex: 1;
}

.review-card-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.review-card-platforms span {
  font-size: 0.75rem;
  font-weight: 600;
  background: #f0f2fa;
  color: #444;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #e0e4ef;
}

@media (max-width: 680px) {
  .review-hero-title { font-size: 2rem; }
  .review-grid { grid-template-columns: 1fr; }
  .review-filters { justify-content: center; }
}

/* ==========================================================================
   Contact Page
   ========================================================================== */

.contact-page {
  font-family: system-ui, -apple-system, sans-serif;
  color: #222;
}

.contact-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero */
.contact-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  color: #fff;
  padding: 4rem 0 3.5rem;
  text-align: center;
}

.contact-hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.contact-hero-sub {
  font-size: 1.2rem;
  color: #a8b2d8;
  margin: 0;
}

/* Contact section */
.contact-section {
  padding: 3.5rem 0;
}

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

@media (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

.contact-form-wrapper h2,
.contact-info-wrapper h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  color: #1a1a2e;
}

/* Form styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group textarea {
  padding: 0.7rem 0.9rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
  color: #222;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid #e94560;
  border-color: transparent;
}

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

.contact-btn {
  padding: 0.7rem 1.5rem;
  background-color: #e94560;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  align-self: flex-start;
}

.contact-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.contact-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-message {
  font-size: 0.9rem;
  margin: 0;
}

.form-message.success {
  color: #2d6a4f;
}

.form-message.error {
  color: #c1121f;
}

/* Contact info */
.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: #f4f6fb;
  border-radius: 8px;
  border-left: 4px solid #e94560;
}

.contact-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  line-height: 1.2;
}

.contact-info-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
  color: #1a1a2e;
}

.contact-info-item p {
  font-size: 0.9rem;
  margin: 0;
  color: #555;
}

.contact-info-item a {
  color: #e94560;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.contact-info-item a:hover {
  opacity: 0.8;
}

/* ==========================================================================
   About / Om Mig Page
   ========================================================================== */

.about-page {
  font-family: system-ui, -apple-system, sans-serif;
  color: #222;
}

.about-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero */
.about-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  color: #fff;
  padding: 4rem 0 3.5rem;
}

.about-hero .about-container {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.about-hero-avatar {
  position: relative;
  flex-shrink: 0;
}

.about-hero-avatar img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #e94560;
  display: block;
}

.about-hero-avatar-fallback {
  font-size: 5rem;
  line-height: 1;
  display: none;
}

/* Show fallback emoji when image fails to load */
.about-hero-avatar img[style*="display:none"] + .about-hero-avatar-fallback,
.about-hero-avatar img[style*="display: none"] + .about-hero-avatar-fallback {
  display: block;
}

.about-hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}

.about-hero-name {
  color: #e94560;
}

.about-hero-sub {
  font-size: 1.1rem;
  color: #a8b2d8;
  margin: 0 0 1.5rem;
}

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

/* Sections */
.about-section {
  padding: 3.5rem 0;
}

.about-section-alt {
  background-color: #f4f6fb;
}

.about-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: #1a1a2e;
}

.about-intro {
  color: #555;
  margin: 0 0 2rem;
  font-size: 1rem;
  max-width: 700px;
}

.about-section p {
  font-size: 0.97rem;
  line-height: 1.75;
  color: #444;
  margin: 0 0 1rem;
  max-width: 760px;
}

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

.skills-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: #888;
}

.about-skill-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  border-top: 3px solid #e94560;
}

.about-skill-icon {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

.about-skill-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: #1a1a2e;
}

.about-skill-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

/* Two-column layout (interests + facts) */
.about-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 680px) {
  .about-two-col { grid-template-columns: 1fr; }
}

.about-interest-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-interest-list li {
  font-size: 0.97rem;
  line-height: 1.5;
  color: #444;
}

/* Fact box */
.about-fact-box {
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  color: #fff;
  border-radius: 12px;
  padding: 2rem;
}

.about-fact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a8b2d8;
  margin: 0 0 1rem;
}

.about-facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.about-facts li {
  font-size: 0.92rem;
  color: #cdd6f4;
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}

.about-fact-key {
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  min-width: 130px;
}

/* Timeline */
.about-timeline {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 3px solid #e94560;
  padding-left: 1.75rem;
  margin-left: 1rem;
}

.about-timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.about-timeline-item::before {
  content: "";
  position: absolute;
  left: -2.35rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e94560;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #e94560;
}

.about-timeline-year {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e94560;
  margin-bottom: 0.3rem;
}

.about-timeline-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: #1a1a2e;
}

.about-timeline-content p {
  font-size: 0.92rem;
  color: #555;
  margin: 0;
  max-width: 640px;
}

/* CTA section */
.about-cta-section {
  background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
  color: #fff;
}

.about-cta-section h2 {
  color: #fff;
}

.about-cta-section p {
  color: #b0b8d0;
  max-width: 560px;
}

.about-cta-inner {
  text-align: center;
}

.about-cta-inner h2 {
  margin-bottom: 0.75rem;
}

.about-cta-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

@media (max-width: 680px) {
  .about-hero .about-container { flex-direction: column; text-align: center; }
  .about-hero-cta { justify-content: center; }
  .about-hero-title { font-size: 1.8rem; }
  .about-skills-grid { grid-template-columns: 1fr; }
}

.email-obfuscated {
  color: #e94560;
  cursor: pointer;
  text-decoration: underline;
  transition: opacity 0.2s;
}

.email-obfuscated:hover {
  opacity: 0.8;
}

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   Home Page
   ========================================================================== */

.home-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero */
.home-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  text-align: center;
}

.home-hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.home-hero-sub {
  font-size: 1.1rem;
  color: #b0b8d0;
  margin: 0 0 2rem;
}

.home-hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.home-btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}

.home-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.home-btn-primary {
  background-color: #e94560;
  color: #fff;
}

.home-btn-secondary {
  background-color: #2d6a4f;
  color: #fff;
}

.home-btn-outline {
  border: 2px solid #e94560;
  color: #e94560;
  background: transparent;
}

/* Sections */
.home-section {
  padding: 3.5rem 0;
}

.home-section-alt {
  background-color: #f5f6fa;
}

.home-section h2 {
  font-size: 1.7rem;
  margin: 0 0 0.5rem;
  color: #1a1a2e;
}

.home-intro-text,
.home-section-intro {
  color: #555;
  margin: 0 0 2rem;
  font-size: 1rem;
  max-width: 700px;
}

/* Topic overview grid */
.home-topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.home-topic-card {
  background: #fff;
  border: 1px solid #e0e4ef;
  border-radius: 10px;
  padding: 1.5rem 1.25rem;
  transition: box-shadow 0.2s;
}

.home-topic-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.09);
}

.home-topic-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.home-topic-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: #1a1a2e;
}

.home-topic-card p {
  font-size: 0.9rem;
  color: #555;
  margin: 0 0 1rem;
}

.home-topic-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e94560;
  text-decoration: none;
}

.home-topic-link:hover {
  text-decoration: underline;
}

/* Cards (projekter & spil) */
.home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.home-card {
  background: #fff;
  border: 1px solid #e0e4ef;
  border-radius: 10px;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: box-shadow 0.2s;
}

.home-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.09);
}

.home-card-placeholder {
  border-style: dashed;
  opacity: 0.75;
}

.home-card-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background-color: #1a1a2e;
  color: #fff;
  align-self: flex-start;
}

.home-card-tag-game {
  background-color: #2d6a4f;
}

.home-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #1a1a2e;
}

.home-card p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
  flex: 1;
}

.home-card-rating {
  font-size: 0.9rem;
}

.home-card-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e94560;
  text-decoration: none;
  margin-top: auto;
}

.home-card-link:hover {
  text-decoration: underline;
}

.home-see-all {
  text-align: center;
}

/* Blog list */
.home-blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.home-blog-item {
  background: #fff;
  border: 1px solid #e0e4ef;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}

.home-blog-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.4rem;
}

.home-blog-date {
  font-size: 0.82rem;
  color: #888;
}

.home-blog-category {
  font-size: 0.75rem;
  font-weight: 700;
  background: #e94560;
  color: #fff;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

.home-blog-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.home-blog-item h3 a {
  color: #1a1a2e;
  text-decoration: none;
}

.home-blog-item h3 a:hover {
  color: #e94560;
}

.home-blog-item p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

/* Featured section */
.home-featured {
  background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
  color: #fff;
}

.home-featured h2 {
  color: #fff;
  font-size: 1.6rem;
}

.home-featured p {
  color: #b0b8d0;
}

.home-featured-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.home-featured-text {
  flex: 1;
  min-width: 260px;
}

.home-featured-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e94560;
  margin-bottom: 0.75rem;
}

.home-featured-stat {
  text-align: center;
  flex-shrink: 0;
}

.home-stat-number {
  font-size: 4rem;
  font-weight: 900;
  color: #e94560;
  margin: 0;
  line-height: 1;
}

.home-stat-label {
  font-size: 0.9rem;
  color: #b0b8d0;
  margin: 0.5rem 0 0;
}

/* Nav active state */
.nav-active {
  background-color: #e94560 !important;
  color: #fff !important;
}

@media (max-width: 680px) {
  .home-hero-title { font-size: 1.7rem; }
  .home-featured-inner { flex-direction: column; text-align: center; }
  .home-stat-number { font-size: 3rem; }
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

