/* 1. Font Definitions */
/* Site Name / Logo Style  */
@font-face {
  font-family: 'Ichimaru';
  src: url('/assets/fonts/ichimaru.otf') format('opentype');
  font-display: swap;
}

/* Section / Feature Headers  */
@font-face {
  font-family: 'Revolto';
  src: url('/assets/fonts/revolto.otf') format('opentype');
  font-display: swap;
}

/* 2. Variables & Reset */
:root {
  --bg: #0f0f12;
  --fg: #e9e9ec;
  --muted: #a2a2aa;
  --accent: #b73535;
  --font-body: system-ui, Segoe UI, Roboto, Ubuntu, Helvetica, Arial, sans-serif;
  --font-logo: 'Revolto', cursive;
  --font-header: 'Revolto', sans-serif;
}

html, body { height: 100%; }

body {
  margin: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

/* 3. Layout Components */
.card {
  max-width: 640px;
  width: 100%;
  padding: 2.5rem;
  border: 1px solid #1f2030;
  border-radius: 16px;
  background: linear-gradient(180deg, #111218, #0c0d12);
  /* Center text by default for visual balance on small content */
  text-align: center; 
  box-sizing: border-box;
}

img.logo {
  height: 48px;
  width: auto;
  margin-bottom: 1rem;
  opacity: 0.9;
}

/* 4. Typography */
h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-logo); /* Ichimaru for main titles */
  font-size: 3rem; 
  font-weight: normal; /* Decorative fonts often don't need bold */
  color: var(--fg);
}

h2, h3 {
  font-family: var(--font-header); /* Revolto for subheaders */
  color: var(--fg);
}

p {
  margin: 0.5rem 0;
  color: var(--muted);
}

.email {
  color: var(--accent);
  text-decoration: none;
}

/* 5. Buttons & Links */
.cta {
  margin-top: 1rem;
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  border: 1px solid #2a2b3a;
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.2s;
  font-family: var(--font-body);
}

.cta:hover {
  border-color: #646689;
}

footer {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #8a8a95;
}

/* 6. Utility / 404 Specifics */
.error-code {
  font-family: var(--font-header); 
  font-size: 5rem;
  color: var(--accent);
  margin: 0;
  line-height: 1;
}

/* 7. Animations & Interactive Elements */
.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.glow-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 2px solid var(--accent);
  box-shadow: 0 0 15px rgba(183, 53, 53, 0.4);
  transition: all 0.3s ease;
}

.glow-img:hover {
  box-shadow: 0 0 25px rgba(183, 53, 53, 0.8);
  transform: scale(1.05);
}

/* 8. Skills Grid */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.skill-tag {
  background: rgba(183, 53, 53, 0.1);
  border: 1px solid rgba(183, 53, 53, 0.3);
  color: var(--accent);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  cursor: default;
}

.skill-tag:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(183, 53, 53, 0.4);
}

/* 9. Timeline Layout */
.timeline {
  text-align: left;
  margin-top: 1.5rem;
}

.timeline-item {
  border-left: 2px solid #2a2b3a;
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2a2b3a;
  transition: all 0.3s ease;
}

.timeline-item:hover {
  transform: translateX(5px);
  border-left-color: var(--accent);
}

.timeline-item:hover::before {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.timeline-item h4 {
  margin: 0 0 0.5rem;
  color: var(--fg);
  font-family: var(--font-header);
}

.timeline-item ul {
  color: var(--muted);
  font-size: 0.9rem;
  padding-left: 1.2rem;
  margin-top: 0.5rem;
}