/* Custom CSS for RIAMDELAN */

:root {
  --obsidian: #0b1215;
  --gold: #b8860b;
  --white: #ffffff;
  --light-gray: #f9fafb;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--obsidian);
  background-color: var(--white);
}

/* Smooth fade in for page load */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeIn 0.6s ease-out;
}

/* Hero section text animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#home h1 {
  animation: slideDown 0.8s ease-out;
}

#home p {
  animation: slideDown 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

/* Smooth hover transitions for cards */
.rounded-3xl {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rounded-3xl:hover {
  box-shadow: 0 20px 40px rgba(11, 18, 21, 0.15);
}

/* Gold accent utilities */
.text-gold {
  color: var(--gold);
}

.bg-gold {
  background-color: var(--gold);
}

.border-gold {
  border-color: var(--gold);
}

/* Obsidian utilities */
.text-obsidian {
  color: var(--obsidian);
}

.bg-obsidian {
  background-color: var(--obsidian);
}

.border-obsidian {
  border-color: var(--obsidian);
}

/* Enhanced focus styles for accessibility */
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Navigation glass effect enhancement */
nav {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

/* Responsive typography */
@media (max-width: 768px) {
  h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
  }

  h2 {
    font-size: clamp(1.875rem, 4vw, 3rem);
  }
}

/* High contrast enhancements */
.high-contrast {
  color: var(--obsidian);
  background: var(--white);
}

/* Premium spacing */
section {
  padding: clamp(2rem, 5vw, 4rem) 1rem;
}

/* Gradient enhancements */
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, #f9fafb, #ffffff);
}

/* Smooth scroll snap for better mobile UX */
html {
  scroll-behavior: smooth;
}

/* Button hover effects */
button,
a.inline-block {
  position: relative;
  overflow: hidden;
}

button::before,
a.inline-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(184, 134, 11, 0.1);
  transition: left 0.3s ease;
}

button:hover::before,
a.inline-block:hover::before {
  left: 100%;
}

/* Accessibility - Remove animation for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Image lazy loading effect */
img {
  transition: filter 0.3s ease;
}

img:hover {
  filter: brightness(1.05);
}

/* Refined card shadows */
.shadow-lg {
  box-shadow: 0 10px 25px rgba(11, 18, 21, 0.08);
}

.shadow-2xl {
  box-shadow: 0 20px 40px rgba(11, 18, 21, 0.12);
}
