/* Compact Styles for Robert Seidl's Website */

/* Container utilities */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Grid - compact */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.g-col-12 { grid-column: span 12; }

@media (min-width: 768px) {
  .g-col-md-4 { grid-column: span 4; }
  .g-col-md-5 { grid-column: span 5; }
  .g-col-md-6 { grid-column: span 6; }
  .g-col-md-7 { grid-column: span 7; }
}

/* Button styles - compact */
.btn {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 0.25rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-sm {
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
}

.btn-outline-primary {
  background: transparent;
  border: 1px solid #00d4ff;
  color: #00d4ff;
}

.btn-outline-primary:hover {
  background: rgba(0, 212, 255, 0.1);
  text-decoration: none;
  color: #00d4ff;
}

/* Section styling - compact */
.section-title {
  color: #e6f1ff;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #00d4ff, #64ffda);
  margin-top: 0.4rem;
  border-radius: 2px;
}

/* Featured sections - compact padding */
.featured-section {
  padding: 2rem 1.5rem;
}

.featured-section .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

/* Connect section */
.connect-section {
  text-align: center;
  padding: 2rem 1rem;
}

.connect-section .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

/* Image hover effects */
img {
  transition: transform 0.3s ease;
}

.featured-image:hover img {
  transform: scale(1.02);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Link styling */
a:not(.btn):not(.nav-link):not(.navbar-brand) {
  color: #00d4ff;
  text-decoration: none;
}

a:not(.btn):not(.nav-link):not(.navbar-brand):hover {
  text-decoration: underline;
}

/* Blog listing - compact */
.quarto-listing .list {
  gap: 1rem;
}

.quarto-listing .quarto-grid-item .card-img-top {
  border-radius: 0.375rem 0.375rem 0 0;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Animation for page load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: fadeInUp 0.6s ease-out;
}

.expertise-card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.expertise-card:nth-child(1) { animation-delay: 0.1s; }
.expertise-card:nth-child(2) { animation-delay: 0.15s; }
.expertise-card:nth-child(3) { animation-delay: 0.2s; }

/* Focus styles for accessibility */
a:focus,
button:focus,
.btn:focus {
  outline: 2px solid #00d4ff;
  outline-offset: 2px;
}

/* Badge styles */
.hero-tags img {
  height: 22px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.hero-tags img:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Horizontal rules */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
  margin: 1.5rem 0;
}

/* Print styles */
@media print {
  .hero-section {
    background: white !important;
    color: black !important;
  }
  .navbar, .nav-footer {
    display: none !important;
  }
}
