/* GGM Decor LLC - Modern Stylesheet */
:root {
  --primary: #0f172a;
  --secondary: #1e293b;
  --accent: #f97316;
  --accent-light: #fb923c;
  --gold: #eab308;
  --emerald: #10b981;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-600: #64748b;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --gradient-primary: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  --gradient-accent: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  --gradient-gold: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --nav-height-desktop: 80px;
  --nav-height-mobile: 64px;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  padding-top: var(--nav-height-desktop);
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.3);
  box-shadow: var(--shadow-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: var(--shadow-xl);
}

.navbar-brand {
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.navbar-nav .nav-link {
  color: var(--gray-800) !important;
  font-weight: 600;
  margin: 0 15px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

.navbar-nav .nav-link:hover {
  color: var(--accent) !important;
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(249, 115, 22, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(234, 179, 8, 0.05) 0%, transparent 50%);
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.9;
  line-height: 1.6;
  font-weight: 400;
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

/* Enhanced Button Responsiveness */
.btn {
  font-weight: 600;
  border-radius: 50px;
  border: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-accent);
  padding: 12px 24px;
  font-size: 1rem;
  box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
  padding: 10px 20px;
  font-size: 0.95rem;
}

/* Mobile-first responsive button sizes */
@media (max-width: 768px) {
  .btn {
    width: 100%; /* Full width on mobile */
    padding: 14px 20px !important;
    font-size: 1rem !important;
    margin-bottom: 8px;
    border-radius: 12px !important;
  }
  
  .btn-primary {
    padding: 16px 24px !important;
    font-size: 1.1rem !important;
  }
  
  .btn-outline-primary {
    padding: 14px 20px !important;
    font-size: 1rem !important;
  }
  
  /* Specific fix for hero section buttons on mobile */
  .hero .btn {
    width: auto;
    min-width: 161px;
    display: inline-block;
    margin: 8px 4px;
  }
  
  /* Button groups stack vertically on mobile */
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-group .btn {
    border-radius: 12px !important;
    margin-bottom: 8px;
  }
}

/* Medium screens */
@media (min-width: 769px) and (max-width: 1024px) {
  .btn {
    padding: 14px 28px;
    font-size: 1.05rem;
  }
  
  .btn-primary {
    padding: 16px 32px;
  }
}

/* Large screens */
@media (min-width: 1025px) {
  .btn-primary {
    padding: 16px 40px;
    font-size: 1.1rem;
  }
  
  .btn-outline-primary {
    padding: 12px 24px;
  }
}

/* Specific fixes for common button containers */
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .hero-buttons .btn {
    min-width: 250px;
    max-width: 100%;
  }
}

/* Ensure form buttons are responsive */
.contact-form .btn {
  width: 100%;
}

/* Fix for modal buttons on mobile */
.modal-footer .btn {
  width: auto;
  min-width: 120px;
}

@media (max-width: 768px) {
  .modal-footer {
    flex-direction: column;
    gap: 12px;
  }
  
  .modal-footer .btn {
    width: 100%;
    margin: 0;
  }
}

/* Social icons responsiveness */
@media (max-width: 768px) {
  .social-icons a {
    width: 44px;
    height: 44px;
    line-height: 44px;
    margin-right: 8px;
    border-radius: 12px;
  }
}

/* Back to top button mobile fix */
@media (max-width: 768px) {
  .back-to-top {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    border-radius: 12px;
  }
}

/* Additional utility classes for button sizing */
.btn-sm {
  padding: 8px 16px !important;
  font-size: 0.875rem !important;
}

.btn-lg {
  padding: 16px 32px !important;
  font-size: 1.125rem !important;
}

@media (max-width: 768px) {
  .btn-sm {
    padding: 10px 16px !important;
    font-size: 0.9rem !important;
  }
  
  .btn-lg {
    padding: 18px 24px !important;
    font-size: 1.1rem !important;
  }
}

/* Prevent text wrapping on buttons */
.btn {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .btn {
    white-space: normal;
    line-height: 1.4;
  }
}
/* Sections */
.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 80px;
}

.section-title h2 {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-title p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Cards */
.service-card, .project-card {
  background: var(--white);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
  color: var(--text-dark);
}

.service-card h3,
.service-card h4,
.service-card h5,
.project-card h3,
.project-card h4,
.project-card h5 {
  color: var(--text-dark);
  margin-bottom: 16px;
}

.service-card p,
.project-card p {
  color: var(--text-light);
  line-height: 1.6;
}

.service-card::before, .project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before, .project-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover, .project-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-xl), 0 0 40px rgba(0,0,0,0.1);
  border-color: var(--accent);
}

.service-card .icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-accent);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--white);
  font-size: 1.8rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card .icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-gold);
  border-radius: 22px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .icon::after {
  opacity: 1;
}

.service-card:hover .icon {
  transform: rotate(5deg) scale(1.1);
}

/* Stats Counter */
.stats {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(249, 115, 22, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(234, 179, 8, 0.1) 0%, transparent 50%);
}

.stat-item {
  text-align: center;
  margin-bottom: 30px;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 1.2rem;
  margin-top: 12px;
  opacity: 0.9;
  font-weight: 500;
}

/* Gallery */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 30px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.15);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(249, 115, 22, 0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(2px);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

/* Contact Form */
.contact-form {
  background: var(--white);
  padding: 50px;
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
}

.form-control {
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--gray-50);
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
  background: var(--white);
  transform: translateY(-1px);
}

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

.form-control {
  color: var(--text-dark);
}

.form-control::placeholder {
  color: var(--text-light);
}

/* Footer */
.footer {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 80px 0 30px;
  position: relative;
  /* overflow: hidden; */
}

.footer::before {
  content: '';
  /* position: absolute; */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(249, 115, 22, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(234, 179, 8, 0.05) 0%, transparent 50%);
}

.footer h5 {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  font-weight: 700;
  font-size: 1.3rem;
}

.footer a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--gold);
}

.social-icons a {
  display: inline-block;
  width: 48px;
  height: 48px;
  background: var(--gradient-accent);
  color: var(--white);
  text-align: center;
  line-height: 48px;
  border-radius: 16px;
  margin-right: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.social-icons a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-gold);
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icons a:hover::before {
  left: 0;
}

.social-icons a:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: var(--shadow-xl);
}

.social-icons a i {
  position: relative;
  z-index: 1;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: var(--gradient-accent);
  color: var(--white);
  border: none;
  border-radius: 16px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.back-to-top:hover {
  background: var(--gradient-gold);
  transform: translateY(-4px) scale(1.1);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(249, 115, 22, 0.3);
}

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

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

/* Modern Enhancements */
.bg-light {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%) !important;
}

/* Glassmorphism Effect */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Modern Badges */
.badge {
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.badge.bg-primary {
  background: var(--gradient-accent) !important;
}

.badge.bg-success {
  background: var(--gradient-gold) !important;
}

/* Enhanced Buttons */
.btn-outline-primary {
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  border-radius: 50px;
  padding: 12px 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-outline-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.btn-outline-primary:hover::before {
  left: 0;
}

.btn-outline-primary:hover {
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-primary.active {
  background: var(--gradient-accent);
  color: white;
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

/* Enhanced Accordion */
.accordion-button {
  background: var(--white);
  border: none;
  border-radius: 16px !important;
  padding: 20px 24px;
  font-weight: 600;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-button:not(.collapsed) {
  background: var(--gradient-accent);
  color: white;
  box-shadow: var(--shadow-md);
}

.accordion-button:focus {
  box-shadow: var(--shadow-md), 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.accordion-item {
  border: none;
  margin-bottom: 16px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-body {
  padding: 24px;
  background: var(--gray-50);
  color: var(--text-dark);
}

/* Enhanced Dropdown */
.dropdown-menu {
  border: none;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  padding: 12px;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95);
}

.dropdown-item {
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-item:hover {
  background: var(--gradient-accent);
  color: white;
  transform: translateX(4px);
}

/* Modern Alert */
.alert {
  border: none;
  border-radius: 16px;
  padding: 20px 24px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
}

.alert-info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 197, 253, 0.1) 100%);
  color: var(--blue);
  border-left: 4px solid var(--blue);
}

/* Enhanced Modal */
.modal-content {
  border: none;
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(20px);
}

.modal-header {
  border-bottom: 1px solid var(--gray-200);
  padding: 24px 32px 20px;
}

.modal-body {
  padding: 24px 32px;
}

.modal-footer {
  border-top: 1px solid var(--gray-200);
  padding: 20px 32px 24px;
}

/* Responsive */
@media (max-width: 768px) {
  body { padding-top: var(--nav-height-mobile); }
  .hero {
    min-height: 80vh;
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 2.4rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    margin-bottom: 50px;
  }
  
  .section-title h2 {
    font-size: 2.2rem;
  }
  
  .stat-number {
    font-size: 2.8rem;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
  
  .service-card, .project-card {
    padding: 30px 20px;
  }
  
  .navbar-nav .nav-link {
    margin: 5px 0;
  }
  
  .btn-group {
    flex-direction: column;
    gap: 8px;
  }
  
  .btn-group .btn {
    border-radius: 50px !important;
  }
}

/* Prevent layout shifts for media by enforcing aspect-ratio */
.carousel-item img,
.gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

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

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

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-accent);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-gold);
}

/* Loading Animation */
.loading {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading.loaded {
  opacity: 1;
  transform: translateY(0);
}

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

.float {
  animation: float 3s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Gradient Text Animation */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-text {
  background: linear-gradient(45deg, var(--accent), var(--gold), var(--blue), var(--purple));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

/* Modern Card Hover Effects */
.hover-lift {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

/* Gradient Borders */
.gradient-border {
  position: relative;
  background: var(--white);
  border-radius: 20px;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  background: var(--gradient-accent);
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask-composite: xor;
}

/* Text Reveal Animation */
.text-reveal {
  overflow: hidden;
}

.text-reveal span {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-reveal.loaded span {
  transform: translateY(0);
}

/* Modern Focus States */
.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

/* Enhanced List Styles */
ul.modern-list {
  list-style: none;
  padding: 0;
}

ul.modern-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}

ul.modern-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--gradient-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

/* Global Text Color Fixes */
body {
  color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
}

p {
  color: var(--text-light);
}

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

.section h2, .section h3, .section h4, .section h5 {
  color: var(--text-dark);
}

.section p {
  color: var(--text-light);
}

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

.card-title {
  color: var(--text-dark);
}

.card-text {
  color: var(--text-light);
}

ul li, ol li {
  color: var(--text-light);
}

table {
  color: var(--text-dark);
}

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

.badge {
  color: var(--white);
}

.btn {
  color: var(--white);
}

.btn-outline-primary {
  color: var(--accent);
}

.btn-outline-primary:hover {
  color: var(--white);
}

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

.dropdown-item {
  color: var(--text-dark);
}

.footer {
  color: var(--white);
}

.footer p, .footer li {
  color: rgba(255, 255, 255, 0.8);
}

.bg-light {
  color: var(--text-dark);
}

.bg-dark {
  color: var(--white);
}

.bg-primary {
  color: var(--white);
}

.bg-secondary {
  color: var(--white);
}

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

.hero h1, .hero p {
  color: var(--white);
}

.stats {
  color: var(--white);
}

.stats p {
  color: rgba(255, 255, 255, 0.9);
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--primary);
  color: var(--white);
  padding: 8px 16px;
  z-index: 9999;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 16px;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Lightbox accessibility */
.lightbox-close {
  background: none;
  border: none;
  padding: 8px 12px;
  color: white;
  font-size: 30px;
  cursor: pointer;
  position: absolute;
  top: -40px;
  right: 0;
  z-index: 10000;
}