/* 1. Font Face & Variables */
@font-face {
  font-family: 'Caros';
  src: url('src/Demo_Fonts/Fontspring-DEMO-caros-bold.otf') format('opentype');
  font-weight: bold;
}

:root {
  /* Light Theme (Default) */
  --bg-color: #f8f9fa;
  --surface-color: #ffffff;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --accent-primary: #0d6efd;
  --accent-hover: #0a58ca;
  --border-color: #dee2e6;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

[data-theme='dark'] {
  /* Dark Theme */
  --bg-color: #1a202c;
  --surface-color: #2d3748;
  --text-primary: #e2e8f0;
  --text-secondary: #a0aec0;
  --accent-primary: #38bdf8;
  --accent-hover: #0ea5e9;
  --border-color: #4a5568;
  --shadow-color: rgba(0, 0, 0, 0.4);
}

/* 2. Global Styles & Typography */
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.caros-font {
  font-family: 'Caros', sans-serif;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--text-primary);
}

p {
  font-size: 1rem;
  line-height: 1.6;
}

/* 3. Components */
.navbar {
  background-color: color-mix(in srgb, var(--surface-color) 80%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

.theme-toggle-btn {
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  background-color: transparent;
}
.theme-toggle-btn:hover {
  background-color: var(--surface-color);
}

.jumbotron {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.dynamic-text-heading {
  font-size: 1.75rem;
  font-weight: 700;
}
.dynamic-text-heading span {
  color: var(--accent-primary);
  position: relative;
}
.dynamic-text-heading span::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 80%;
  background-color: var(--accent-primary);
  right: -0.5rem;
  top: 10%;
  animation: blink 0.7s infinite;
}
.dynamic-text-heading span.stop-blinking::after {
  animation: none;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

.card,
.project-item {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: all 0.2s ease-out;
}

.card:hover,
.project-item:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px var(--shadow-color);
}

.tech-icons img {
  margin: 0 0.5rem;
  opacity: 0.8;
}

footer#kontak {
  background-color: var(--surface-color);
}

.social-icon {
  margin: 0 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}
.social-icon:hover {
  color: var(--accent-primary);
}

/* 4. Animations & Interactivity */
.animated-item,
.animated-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animated-item.show,
.animated-card.show {
  opacity: 1;
  transform: translateY(0);
}

.animated-card:nth-child(2) {
  transition-delay: 0.1s;
}
.animated-card:nth-child(3) {
  transition-delay: 0.2s;
}

.illustration-card .card-img-top {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.illustration-card .card-body {
  text-align: center;
  font-size: 0.9rem;
}

.filters .filter-btn {
  margin: 0 0.5rem;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.filters .filter-btn.active {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background-color: color-mix(in srgb, var(--accent-primary) 15%, transparent);
}

.animated-card.hide {
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.4s ease;
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  /* We need to re-add these since they are on a wrapping div */
  border: none;
}

a:hover ~ #blob,
.btn:hover ~ #blob,
.card:hover ~ #blob {
  width: 64px;
  height: 64px;
}
