@font-face {
  font-family: "Jersey";
  src: url("/statics/fonts/Jersey15-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Core identity */
  --bg-main: #0a0a0a;
  --bg-card: #0f0f0f;

  --red-glow: #ff0033;
  --cold-accent: #8ab4f8;

  --text-main: #e6e6e6;
  --text-muted: #b0b0b0;
  --border-soft: #1c1c1c;
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Helvetica Neue",
    Arial,
    sans-serif;
  animation: fadeInPage 0.35s ease;
}

/* Typography */
p {
  color: var(--text-muted);
}

/* Headings */
h1,
h2,
h3 {
  color: var(--text-main);
}

h1,
h2,
h3,
.navbar-brand {
  font-family: "Jersey", sans-serif;
  letter-spacing: 0.15em;
}

h1 {
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255, 0, 51, 0.4);
}

.navbar-brand {
  font-size: 1.2rem;
  text-shadow: 0 0 10px rgba(255, 0, 51, 0.35);
}

/* Cards */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-soft);
}

/* Primary Action (RED) */
.btn-primary {
  background: linear-gradient(180deg, #ff3355, #cc0028);
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.btn-primary:hover {
  background-color: #ff0033;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 16px rgba(255, 0, 51, 0.35);
}

/* Secondary Action (COLD) */
.btn-outline-secondary {
  color: var(--cold-accent);
  border-color: var(--cold-accent);
}

.btn-outline-secondary:hover {
  background-color: var(--cold-accent);
  color: #020617;
}

/* Links */
a {
  color: var(--cold-accent);
}

a:hover {
  color: #a7c7ff;
}

/* Logo / Special Glow */
.glow-red {
  box-shadow: 0 0 30px rgba(255, 0, 51, 0.55);
}

/* NAVBAR */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1020;
}

.navbar-sigil {
  background: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(6px);
}

/* Brand text */
.navbar-sigil .navbar-brand {
  color: var(--red-glow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.navbar-sigil .navbar-brand:hover {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(255, 0, 51, 0.55);
}

/* Links */
.navbar-sigil .nav-link {
  color: var(--text-muted);
  font-weight: 500;
}

.navbar-sigil .nav-link:hover {
  color: var(--cold-accent);
}

/* "Active" link styling (add .active in HTML, or do it via JS later) */
.navbar-sigil .nav-link.active {
  color: var(--red-glow);
  text-shadow: 0 0 10px rgba(255, 0, 51, 0.45);
}

/* Toggler button glow */
.navbar-sigil .navbar-toggler {
  border-color: rgba(255, 0, 51, 0.35);
}

.navbar-sigil .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 0, 51, 0.25);
}

/* FOOTER */
.footer-sigil {
  background: rgba(10, 10, 10, 0.96);
  border-top: 1px solid var(--border-soft);
  color: var(--text-muted);
}

.footer-sigil p {
  margin: 0;
}

/* ABOUT PAGE WRAPPER */
.about-page {
  max-width: 900px;
  margin: 0 auto;
}

/* Page title */
.about-page h1 {
  font-family: "Jersey", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  text-shadow: 0 0 14px rgba(255, 0, 51, 0.45);
}

/* Section headings */
.about-page h3 {
  font-family: "Jersey", sans-serif;
  letter-spacing: 0.14em;
  margin-top: 3rem;
  color: var(--text-main);
}

/* Paragraphs */
.about-page p {
  line-height: 1.7;
  color: var(--text-muted);
}

/* Highlight name */
.about-page strong {
  color: var(--red-glow);
}

.about-page a {
  color: var(--cold-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.about-page a:hover {
  border-bottom-color: var(--cold-accent);
}

/* Skill group labels */
.skill-group-label {
  font-family: "Jersey", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-align: center;
}

/* Center skill strips within skill groups */
.skill-group .skills-strip {
  justify-content: center;
}

/* List group reset for dark theme */
.list-group-item {
  background-color: transparent;
  color: var(--text-muted);
  border: none;
  padding-left: 0;
}

/* Add subtle divider */
.list-group-item:not(:last-child) {
  border-bottom: 1px solid var(--border-soft);
}

/* Emphasis inside list */
.list-group-item strong {
  color: var(--text-main);
}

/* Red divider glyph */
.divider-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 3rem 0;
  color: var(--red-glow);
  font-family: "Jersey", sans-serif;
  letter-spacing: 0.4em;
  font-size: 1.2rem;
  text-shadow: 0 0 12px rgba(255, 0, 51, 0.45);
}

.divider-glyph::before,
.divider-glyph::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to var(--dir, right),
    transparent,
    rgba(255, 0, 51, 0.6)
  );
  margin: 0 1rem;
}

.divider-glyph::after {
  --dir: left;
}

/* PROJECTS PAGE */
.projects-page h1 {
  font-family: "Jersey", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(255, 0, 51, 0.45);
}

/* Card base */
.projects-page .card {
  background: radial-gradient(
    120% 120% at 50% 0%,
    rgba(255, 0, 51, 0.08),
    rgba(10, 10, 10, 0.98)
  );
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  overflow: hidden;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

/* Card hover: lift + red glow */
.projects-page .card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 0, 51, 0.35);
  box-shadow: 0 0 22px rgba(255, 0, 51, 0.2);
}

/* Card content */
.projects-page .card-title {
  font-family: "Jersey", sans-serif;
  letter-spacing: 0.1em;
  color: var(--text-main);
}

.projects-page .card-text {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Badges/tags if you use them */
.projects-page .badge {
  background-color: rgba(255, 0, 51, 0.14);
  color: var(--text-main);
  border: 1px solid rgba(255, 0, 51, 0.25);
}

/* Links inside cards */
.projects-page a {
  color: var(--cold-accent);
  text-decoration: none;
}

.projects-page a:hover {
  color: #a7c7ff;
  text-shadow: 0 0 10px rgba(138, 180, 248, 0.25);
}

/* Buttons in cards */
.projects-page .btn-primary {
  box-shadow: 0 0 0 rgba(255, 0, 51, 0);
}

.projects-page .btn-primary:hover {
  box-shadow: 0 0 18px rgba(255, 0, 51, 0.35);
}

/* Tagline/meta text in project cards (Bootstrap .text-muted override) */
.projects-page .text-muted {
  color: #909090 !important;
}

/* Accent outline button (replaces Bootstrap success) */
.btn-outline-accent {
  color: var(--cold-accent);
  border-color: var(--cold-accent);
}

.btn-outline-accent:hover {
  background-color: var(--cold-accent);
  color: #020617;
  box-shadow: 0 0 16px rgba(138, 180, 248, 0.35);
}

.project-card .small {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.project-card::after {
  content: "△";
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-family: "Jersey", sans-serif;
  color: rgba(255, 0, 51, 0.4);
  text-shadow: 0 0 10px rgba(255, 0, 51, 0.35);
}

.project-card {
  position: relative;
}

.text-muted {
  color: var(--text-muted);
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInPage {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   SKELETON LOADER
   ============================================= */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-card) 25%,
    #1e1e1e 50%,
    var(--bg-card) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
}

.skeleton-text {
  height: 1em;
  margin-bottom: 0.6em;
  width: 100%;
}

.skeleton-text-short {
  width: 60%;
}

.skeleton-card {
  height: 200px;
  border-radius: 14px;
}

/* =============================================
   TYPING CURSOR
   ============================================= */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--red-glow);
  margin-left: 4px;
  animation: blink 0.8s step-end infinite;
  vertical-align: text-bottom;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    rgba(255, 0, 51, 0.08),
    transparent
  );
  pointer-events: none;
}

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

.hero-title {
  font-family: "Jersey", sans-serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(255, 0, 51, 0.5);
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

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

/* =============================================
   SKILLS STRIP (homepage)
   ============================================= */
.skills-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  background: rgba(255, 0, 51, 0.08);
  border: 1px solid rgba(255, 0, 51, 0.18);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 500;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.skill-badge:hover {
  background: rgba(255, 0, 51, 0.16);
  border-color: rgba(255, 0, 51, 0.35);
}

/* =============================================
   FEATURED PROJECTS (homepage)
   ============================================= */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.featured-card {
  display: flex;
  flex-direction: column;
  background: radial-gradient(
    120% 120% at 50% 0%,
    rgba(255, 0, 51, 0.06),
    rgba(10, 10, 10, 0.98)
  );
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 1.5rem;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.featured-card .card-body {
  flex: 1;
}

.featured-card .card-footer {
  margin-top: auto;
}

.featured-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 0, 51, 0.35);
  box-shadow: 0 0 22px rgba(255, 0, 51, 0.18);
}

.featured-card h3 {
  font-family: "Jersey", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.2rem;
}

.featured-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* About page projects: force 3-column row */
.about-page .featured-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 850px) {
  .about-page .featured-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-page h1 {
  font-family: "Jersey", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(255, 0, 51, 0.45);
}

.contact-page .lead {
  color: var(--text-muted);
}

.social-btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  background: var(--bg-card);
  transition: all 0.2s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 0, 51, 0.35);
  color: #fff;
}

.social-btn.github:hover {
  border-color: #6e40c9;
  box-shadow: 0 0 14px rgba(110, 64, 201, 0.25);
}

.social-btn.twitter:hover {
  border-color: #1d9bf0;
  box-shadow: 0 0 14px rgba(29, 155, 240, 0.25);
}

.social-btn.youtube:hover {
  border-color: #ff0033;
  box-shadow: 0 0 14px rgba(255, 0, 51, 0.25);
}

/* =============================================
   CUSTOM CAROUSEL CONTROLS
   ============================================= */
.carousel-control-custom {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
  transition:
    opacity 0.2s,
    background 0.2s;
}

.carousel-control-custom:hover {
  opacity: 1;
  background: rgba(255, 0, 51, 0.2) !important;
  border-color: rgba(255, 0, 51, 0.35) !important;
}

.carousel-control-custom .carousel-control-prev-icon,
.carousel-control-custom .carousel-control-next-icon {
  filter: brightness(0) invert(1);
}

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 0, 51, 0.15);
  border: 1px solid rgba(255, 0, 51, 0.3);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    background 0.2s;
  z-index: 1050;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: rgba(255, 0, 51, 0.3);
  box-shadow: 0 0 14px rgba(255, 0, 51, 0.3);
}

/* =============================================
   FOOTER SOCIAL LINKS
   ============================================= */
.footer-sigil .footer-social {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 0.6rem;
}

.footer-sigil .footer-social a {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-sigil .footer-social a:hover {
  color: var(--cold-accent);
}

/* =============================================
   GLOW TEXT UTILITY
   ============================================= */
.glow-text {
  text-shadow: 0 0 12px rgba(255, 0, 51, 0.4);
}

/* =============================================
   SCROLL PROGRESS BAR
   ============================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--red-glow), #ff6688);
  z-index: 1030;
  transition: width 0.05s linear;
}

/* =============================================
   RESPONSIVE TWEAKS
   ============================================= */
@media (max-width: 576px) {
  .hero-section {
    min-height: 70vh;
  }

  .social-btn-group {
    flex-direction: column;
    align-items: center;
  }

  .social-btn {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

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

