/* === FONT === */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Uncial+Antiqua&display=swap');

/* === GLOBAL RESET === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: none;
  border: none;
  text-decoration: none;
  list-style-type: none;
}

/* === COLOR VARIABLES === */
:root {
  --color-bg: #0A0C14;
  --color-surface: #111827;
  --color-text: #D4AF37;
  --color-text-muted: #8A7F6E;
  --color-accent: #1E3A8A;
  --color-accent-highlight: #F5C842;
  --color-nav-bg: #080A10;
  --color-border: #2A2510;
}


/* === BASE === */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
}

section {
  scroll-margin-top: 5rem;
}


/* === NAVIGATION === */
header {
  background-color: var(--color-nav-bg);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 10;
}

header nav ul {
  align-items: center;
  display: flex;
  justify-content: space-around;
}

header nav a {
  display: block;
  font-family: 'Uncial Antiqua', serif;
  color: var(--color-text);
  font-size: clamp(0.9rem, 1.5vw, 2rem);
  padding: 0.75rem 0.5rem;
  letter-spacing: 0.1rem;
}

header nav a:hover {
  color: var(--color-accent-highlight);
}

/* === SHARED SECTION STYLES === */
#about,
#armory,
#contact {
  padding: 1rem;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
}

#about,
#armory {
  background-color: var(--color-bg);
}

.section-title {
  font-family: 'Uncial Antiqua', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  letter-spacing: 0.2rem;
}

#about p,
#armory .skill-description p,
#contact p {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

.skill-description p,
#about p {
  color: var(--color-text-muted);
}

#about img,
.skill-card img {
  display: block;
  max-width: 100%;
  margin: 0 auto 1rem auto;
}

/* === ABOUT SECTION === */
#about {
  margin-bottom: 1rem;
}

#about p {
  font-size: 1rem;
  width: 100%;
  max-width: 700px;
}

#about img {
  border-radius: 0.3rem;
  border: 2px solid var(--color-border);
  animation:
    fadeInUp 0.8s ease forwards,
    float 4s ease-in-out 0.8s infinite;
}

/* === ARMORY SECTION === */
.skill-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  align-items: center;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 1rem;
  width: 100%;
  max-width: 700px;
}

.skill-card img {
  max-height: 250px;
}

.skill-description strong {
  display: block;
  font-family: 'Uncial Antiqua', serif;
  letter-spacing: 0.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-accent-highlight);
}

/* === CONTACT SECTION === */
#contact {
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .5rem;
  position: relative;
  background-image: url('./assets/images/raven.webp');
  background-size: cover;
  background-position: center;
  min-height: 300px;
}

#contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 20, 0.85);
}

#contact>* {
  position: relative;
}

#contact p {
  margin-bottom: 1rem;
}

#contact em {
  color: var(--color-text-muted);
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.05rem;
}

.contact-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.contact-card a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--color-accent-highlight);
}

.contact-card a:hover {
  color: var(--color-text);
}

/* === MEDIA QUERIES === */
@media (min-width: 425px) and (max-width: 767px) {
  .skill-card {
    flex-direction: row;
  }

  #contact {
    background-image: url('./assets/images/raven-425px.webp');
    background-position: center;
  }
}

@media (min-width: 768px) {
  #armory {
    display: grid;
    grid-template-columns: repeat(2, 350px);
    gap: 1rem;
    justify-content: center;
  }

  .skill-card {
    margin: 0;
  }

  #contact {
    background-image: url('./assets/images/raven-425px.webp');
    background-size: auto;
    background-position: top center;
    background-repeat: no-repeat;
  }
}

@media(min-width: 768px) and (max-width: 1400px) {
  header nav ul {
    justify-content: center;
    gap: 5rem;
  }

  #armory .section-title {
    grid-column: 1 / -1;
  }

}

@media (min-width: 1401px) {
  header nav ul {
    justify-content: center;
    gap: 5rem;
  }

  #about {
    margin-top: 2rem;
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
  }

  #about h2 {
    display: none;
  }

  #about img {
    max-width: 500px;
  }

  #about p {
    max-width: 400px;
    line-height: 2;
    letter-spacing: 0.2rem;
  }

  #armory {
    grid-template-columns: repeat(3, 400px);
    gap: 1.5rem;
    padding: 4rem;
  }

  #armory .section-title {
    grid-column: 1 / -1;
  }

  #contact em {
    font-size: 1rem;
  }
}

.skill-card {
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.skill-card:hover {
  box-shadow: 0 0 10px var(--color-accent-highlight);
}

.skill-card {
  position: relative;
  overflow: hidden;
}

.skill-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 10%;
  height: 100%;
  background: linear-gradient(120deg, transparent, var(--color-accent-highlight), transparent);
  transform: skewX(-25deg);
  transition: all 0.5s;
}

.skill-card:hover::after {
  left: 125%;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-icon {
  transition: transform 0.3s ease;
}

.contact-icon:hover {
  transform: translateY(-5px) rotate(-5deg);
}

header nav a {
  position: relative;
  text-decoration: none;
}

header nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent-highlight);
  transition: width 0.3s ease;
}

header nav a:hover::after {
  width: 100%;
  box-shadow: 0 0 6px var(--color-accent-highlight),
    0 0 12px var(--color-accent-highlight);
}

@keyframes torchFlicker {
  0% {
    text-shadow: none;
    opacity: 1;
  }

  20% {
    text-shadow: 0 0 8px var(--color-accent-highlight);
    opacity: 0.8;
  }

  40% {
    text-shadow: 0 0 4px var(--color-accent-highlight);
    opacity: 1;
  }

  100% {
    text-shadow: 0 0 10px var(--color-accent-highlight);
    opacity: 1;
  }
}

nav a:hover {
  animation: torchFlicker 0.4s ease forwards;
}

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