/* Forest Gold Architecture Studio - Custom Styles */

:root {
  --primary-color: #2E7D32;
  --primary-dark: #1B5E20;
  --primary-light: #4CAF50;
  --secondary-color: #FFC107;
  --secondary-dark: #FFA000;
  --secondary-light: #FFD54F;
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #212529;
  --shadow: rgba(46, 125, 50, 0.15);
  --shadow-hover: rgba(46, 125, 50, 0.25);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
.display-2, .display-3, .display-4, .display-5 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}

/* Navbar Styles */
.navbar {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
  padding: 1rem 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  z-index: 1030;
}

.navbar-light {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
}

.navbar.bg-white {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
  font-size: 1.75rem;
  color: var(--text-light) !important;
  font-weight: 700;
  letter-spacing: 1px;
  transition: var(--transition);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.navbar-light .navbar-brand {
  color: var(--primary-dark) !important;
  text-shadow: none;
}

.navbar-brand:hover {
  transform: scale(1.05);
  color: var(--secondary-color) !important;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 500;
  padding: 0.5rem 1.2rem !important;
  margin: 0 0.25rem;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.navbar-light .navbar-nav .nav-link {
  color: var(--text-dark) !important;
  text-shadow: none;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background-color: rgba(255, 193, 7, 0.2) !important;
  color: var(--secondary-color) !important;
  transform: translateY(-2px);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  background-color: rgba(46, 125, 50, 0.1) !important;
  color: var(--primary-color) !important;
}

.navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Buttons */
.btn {
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-lg {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%) !important;
  color: var(--text-dark) !important;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
  padding: 0.8rem 2rem;
}

.btn-lg:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(255, 193, 7, 0.4);
  color: var(--text-dark) !important;
}

.btn-outline-success {
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  background: transparent;
}

.btn-outline-success:hover {
  background: var(--primary-color) !important;
  color: var(--text-light) !important;
  border-color: var(--primary-color) !important;
}

.btn-sm {
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
}

.filter-btn {
  background: var(--bg-light) !important;
  color: var(--text-dark) !important;
  border: 2px solid transparent !important;
  margin: 0.25rem;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color) !important;
  color: var(--text-light) !important;
  border-color: var(--primary-color) !important;
}

/* Carousel */
.carousel {
  position: relative;
  min-height: 100vh;
}

.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
}

.carousel-item {
  height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
}

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.85) 0%, rgba(27, 94, 32, 0.75) 100%);
  z-index: 1;
}

.carousel-item img {
  object-fit: cover;
  height: 100vh;
  width: 100%;
}

.carousel-caption {
  z-index: 2;
  left: 10%;
  right: 10%;
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
}

.carousel-caption .display-2 {
  color: var(--text-light) !important;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 1s ease-out;
}

.carousel-caption .lead,
.carousel-caption .fs-3 {
  color: var(--secondary-light) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1.2s ease-out;
  max-width: 700px;
}

.carousel-indicators {
  z-index: 3;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--secondary-color) !important;
  opacity: 0.5;
  transition: var(--transition);
}

.carousel-indicators button.active {
  opacity: 1;
  transform: scale(1.3);
}

.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 193, 7, 0.3);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: var(--transition);
  z-index: 3;
}

.carousel-control-prev {
  left: 30px;
}

.carousel-control-next {
  right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  background-color: rgba(255, 193, 7, 0.5);
}

/* Cards */
.card {
  border: none;
  border-radius: 15px;
  transition: var(--transition);
  overflow: hidden;
  background: white;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px var(--shadow-hover) !important;
}

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-img-top {
  transform: scale(1.1);
}

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-text {
  color: #666;
  line-height: 1.8;
}

.value-card {
  background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
  border-left: 4px solid var(--primary-color);
  padding: 2rem;
  height: 100%;
}

.value-card:hover {
  border-left-color: var(--secondary-color);
  background: white;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
}

.portfolio-overlay {
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.95) 0%, rgba(255, 193, 7, 0.9) 100%);
  opacity: 0;
  transition: var(--transition);
  padding: 2rem;
  color: var(--text-light) !important;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

/* Badge */
.badge {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%) !important;
  color: var(--text-dark) !important;
  font-weight: 600;
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Icons */
.bi {
  color: var(--primary-color);
  transition: var(--transition);
}

.card:hover .bi {
  color: var(--secondary-color);
  transform: scale(1.2) rotate(5deg);
}

/* Sections */
section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.py-5 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

.section-block {
  background: var(--bg-light);
  padding: 4rem 0;
  margin: 3rem 0;
  border-radius: 20px;
}

/* Images */
.img-fluid {
  border-radius: 15px;
  transition: var(--transition);
}

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

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(46, 125, 50, 0.175) !important;
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(46, 125, 50, 0.075) !important;
}

.object-fit-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Hero About */
.hero-about {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--text-light) !important;
  padding: 8rem 0 6rem;
  position: relative;
}

.hero-about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.hero-about * {
  position: relative;
  z-index: 1;
}

.hero-about .display-2,
.hero-about .lead {
  color: var(--text-light) !important;
}

/* Story Section */
.story-section {
  background: linear-gradient(to bottom, white 0%, var(--bg-light) 100%);
  position: relative;
}

/* Organic Shapes */
.organic-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  z-index: 0;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--primary-color);
  top: 10%;
  left: -100px;
  animation: float 6s ease-in-out infinite;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: var(--secondary-color);
  bottom: 10%;
  right: -80px;
  animation: float 8s ease-in-out infinite reverse;
}

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

/* Timeline */
.timeline-section {
  position: relative;
  padding: 5rem 0;
}

.timeline-item {
  position: relative;
  padding: 2rem;
  border-left: 3px solid var(--primary-color);
  margin-left: 2rem;
  margin-bottom: 3rem;
  background: white;
  border-radius: 10px;
  transition: var(--transition);
}

.timeline-item:hover {
  box-shadow: 0 10px 30px var(--shadow);
  transform: translateX(10px);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 30px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--secondary-color);
  border: 3px solid white;
  box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-year {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.timeline-content {
  color: var(--text-dark);
}

/* Team Member Cards */
.team-member {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow);
  transition: var(--transition);
  position: relative;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px var(--shadow-hover);
}

.team-photo-wrapper {
  position: relative;
  overflow: hidden;
  height: 350px;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.team-member:hover .team-photo {
  transform: scale(1.1);
}

.team-info {
  padding: 2rem;
  text-align: center;
}

.team-info h4 {
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.team-role {
  color: var(--secondary-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Diagonal Cuts */
.diagonal-cut-1,
.diagonal-cut-2,
.diagonal-cut-3,
.diagonal-cut-4 {
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}

/* Blueprint Background */
.blueprint-bg {
  background-color: #1a4d6d;
  background-image: 
    linear-gradient(rgba(255, 255, 255, .05) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 2px, transparent 2px),
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
  position: relative;
}

.blueprint-line {
  border-top: 2px dashed rgba(255, 193, 7, 0.3);
  margin: 2rem 0;
}

.blueprint-circle {
  width: 100px;
  height: 100px;
  border: 2px dashed rgba(255, 193, 7, 0.3);
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Forms */
.form-control,
.form-select {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: var(--transition);
  background-color: white;
  color: var(--text-dark) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.15) !important;
  background-color: white;
}

.form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-check-input {
  border: 2px solid var(--primary-color);
  width: 1.25rem;
  height: 1.25rem;
}

.form-check-input:checked {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.form-check-label {
  color: var(--text-dark);
  margin-left: 0.5rem;
}

.invalid-feedback {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.needs-validation .form-control:invalid {
  border-color: #dc3545;
}

.needs-validation .form-control:valid {
  border-color: var(--primary-color);
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  color: var(--text-light) !important;
  padding: 2rem;
  border-radius: 15px;
  border-left: 5px solid var(--secondary-color);
  margin: 2rem 0;
}

.highlight-box * {
  color: var(--text-light) !important;
}

/* Privacy Hero */
.privacy-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--secondary-dark) 100%);
  padding: 6rem 0 4rem;
  color: var(--text-light) !important;
}

.privacy-hero * {
  color: var(--text-light) !important;
}

.privacy-content {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px var(--shadow);
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}

.last-updated {
  color: #666;
  font-style: italic;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 10px;
  margin-bottom: 2rem;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0d3d1f 100%);
  color: var(--text-light) !important;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
}

footer * {
  color: var(--text-light) !important;
}

footer h5 {
  color: var(--secondary-color) !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

footer .list-unstyled li {
  margin-bottom: 0.75rem;
}

footer a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

footer a:hover {
  color: var(--secondary-color) !important;
  transform: translateX(5px);
}

footer .bi {
  color: var(--secondary-color) !important;
  font-size: 1.5rem;
  transition: var(--transition);
}

footer .bi:hover {
  transform: scale(1.2) rotate(10deg);
  color: var(--text-light) !important;
}

/* Stats/Numbers */
.display-3 {
  color: var(--primary-color) !important;
  font-weight: 800;
}

/* Hover Effects */
.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-5px);
}

/* Ratio for responsive videos/maps */
.ratio {
  position: relative;
  width: 100%;
}

.ratio::before {
  display: block;
  padding-top: var(--bs-aspect-ratio);
  content: "";
}

.ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ratio-21x9 {
  --bs-aspect-ratio: 42.857143%;
}

/* Rounded Utilities */
.rounded-3 {
  border-radius: 15px !important;
}

.rounded-4 {
  border-radius: 20px !important;
}

/* Background Colors */
.bg-light {
  background-color: var(--bg-light) !important;
}

.bg-dark {
  background-color: var(--bg-dark) !important;
}

.bg-white {
  background-color: white !important;
}

.text-white {
  color: white !important;
}

.text-dark {
  color: var(--text-dark) !important;
}

.text-muted {
  color: #6c757d !important;
}

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

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

.fade-in {
  animation: fadeIn 1s ease-out;
}

.fade-in-up {
  animation: fadeInUp 1s ease-out;
}

/* Scroll Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.active {
  opacity: 1;
  transform: translateY(0);
}

/* Sticky Elements */
.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1020;
}

/* Spacing Utilities */
.min-vh-50 {
  min-height: 50vh;
}

/* Portfolio Grid */
.portfolio-item {
  margin-bottom: 2rem;
  transition: var(--transition);
}

.portfolio-item:hover {
  transform: translateY(-5px);
}

/* Values Grid */
.values-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(46, 125, 50, 0.98);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
  }
  
  .navbar-light .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e0e0e0;
  }
  
  .carousel-caption {
    left: 5%;
    right: 5%;
  }
  
  .carousel-caption .display-2 {
    font-size: 2rem;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
  }
  
  .carousel-control-prev {
    left: 10px;
  }
  
  .carousel-control-next {
    right: 10px;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .hero-about {
    padding: 5rem 0 3rem;
  }
  
  .display-2 {
    font-size: 2.5rem;
  }
  
  .display-3 {
    font-size: 2rem;
  }
  
  .display-4 {
    font-size: 1.75rem;
  }
}

@media (max-width: 767.98px) {
  .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .carousel-item {
    height: 70vh;
  }
  
  .carousel-item img {
    height: 70vh;
  }
  
  .btn-lg {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .team-photo-wrapper {
    height: 280px;
  }
  
  .privacy-content {
    padding: 2rem 1.5rem;
  }
  
  .timeline-item {
    margin-left: 1rem;
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .carousel-caption .display-2 {
    font-size: 1.75rem;
  }
  
  .carousel-caption .lead {
    font-size: 1rem;
  }
  
  .display-2 {
    font-size: 2rem;
  }
  
  .display-3 {
    font-size: 1.75rem;
  }
  
  .display-4 {
    font-size: 1.5rem;
  }
  
  .btn-lg.px-5 {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
  
  .shape-1,
  .shape-2 {
    display: none;
  }
  
  footer .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .carousel-control-prev,
  .carousel-control-next,
  .carousel-indicators,
  footer,
  .btn {
    display: none !important;
  }
  
  body {
    background: white;
  }
  
  section {
    page-break-inside: avoid;
  }
}

/* Accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Selection Color */
::selection {
  background: var(--secondary-color);
  color: var(--text-dark);
}

::-moz-selection {
  background: var(--secondary-color);
  color: var(--text-dark);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 5px solid var(--bg-light);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-secondary {
  background-color: var(--secondary-color) !important;
}

.border-primary {
  border-color: var(--primary-color) !important;
}

.border-secondary {
  border-color: var(--secondary-color) !important;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Box Decoration */
.decorative-box {
  position: relative;
  padding: 2rem;
}

.decorative-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  border-top: 3px solid var(--secondary-color);
  border-left: 3px solid var(--secondary-color);
}

.decorative-box::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 50px;
  border-bottom: 3px solid var(--primary-color);
  border-right: 3px solid var(--primary-color);
}