/*
 * Durior - Custom Styles
 * Steel blue aesthetic with geometric precision
 */

:root {
  --durior-blue: #4A90A4;
  --durior-blue-dark: #3A7A94;
  --durior-blue-light: #6BB0C4;
  --durior-blue-glow: rgba(74, 144, 164, 0.3);

  /* Ruby on Rails colors */
  --rails-red: #CC0000;
  --rails-red-dark: #A30000;
  --rails-red-light: #E53935;
  --rails-red-glow: rgba(204, 0, 0, 0.3);
}

/* Heading font */
.font-display {
  font-family: 'Syne', system-ui, sans-serif;
}

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

/* Custom selection color */
::selection {
  background: var(--durior-blue);
  color: #1a1a1a;
}

/* Geometric grid background pattern */
.geo-grid {
  background-image:
    linear-gradient(rgba(74, 144, 164, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 144, 164, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Fade in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px var(--durior-blue-glow); }
  50% { box-shadow: 0 0 40px var(--durior-blue-glow), 0 0 60px var(--durior-blue-glow); }
}

/* Animation classes */
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.6s ease-out forwards;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}

.animate-pulse-glow {
  animation: pulse-glow 4s ease-in-out infinite;
  will-change: box-shadow;
}

/* Animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

/* Initial state for animated elements */
.animate-on-load {
  opacity: 0;
}

/* Service card hover effect */
.service-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(74, 144, 164, 0.1);
}

.service-card:hover {
  border-color: var(--durior-blue);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--durior-blue-glow);
}

/* Rails-themed service card */
.service-card-rails {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(204, 0, 0, 0.2);
  background: linear-gradient(135deg, rgba(204, 0, 0, 0.05) 0%, transparent 50%);
}

.service-card-rails:hover {
  border-color: var(--rails-red);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--rails-red-glow);
}

/* Rails text gradient */
.text-gradient-rails {
  background: linear-gradient(135deg, var(--rails-red-light), var(--rails-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Accent line */
.accent-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--durior-blue), var(--durior-blue-light));
}

/* Text gradient */
.text-gradient {
  background: linear-gradient(135deg, var(--durior-blue-light), var(--durior-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Button styles */
.btn-primary {
  background: var(--durior-blue);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--durior-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--durior-blue-glow);
}

.btn-outline {
  border: 1px solid var(--durior-blue);
  color: var(--durior-blue);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--durior-blue);
  color: #1a1a1a;
}

/* Decorative corner squares */
.corner-decoration::before,
.corner-decoration::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid var(--durior-blue);
  opacity: 0.5;
}

.corner-decoration::before {
  top: -4px;
  left: -4px;
  border-right: none;
  border-bottom: none;
}

.corner-decoration::after {
  bottom: -4px;
  right: -4px;
  border-left: none;
  border-top: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #111;
}

::-webkit-scrollbar-thumb {
  background: var(--durior-blue-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--durior-blue);
}

/* Year counter styling */
.year-display {
  font-size: clamp(4rem, 15vw, 10rem);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--durior-blue);
  opacity: 0.3;
}

/* Noise texture overlay - disabled for dark mode compatibility */
.noise-overlay {
  display: none;
}
