/* Modern UI Enhancements - Latest Trending Design */

:root {
  --primary-color: #2414fd;
  --secondary-color: #d81919;
  --dark-color: #040f28;
  --light-color: #f8fafa;
  --text-dark: #333333;
  --text-light: #666666;
  --border-radius: 16px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
  --glass-effect: rgba(255, 255, 255, 0.05);
  --glass-blur: 10px;
}

/* General Styling */
* {
  transition: var(--transition);
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  letter-spacing: -0.5px;
}

/* Navbar Improvements - Glassmorphism Effect */
.navbar {
  background: rgba(4, 15, 40, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(253, 190, 51, 0.15);
  box-shadow: 0 8px 32px rgba(253, 93, 20, 0.1);
  padding: 0.75rem 0 !important;
}

.navbar-brand h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0 !important;
}

.navbar .nav-link {
  color: rgba(51, 54, 253, 0.9) !important;
  font-weight: 600;
  position: relative;
  padding: 0.6rem 1.2rem !important;
  margin: 0 0.3rem;
  border-radius: 10px;
  transition: all 0.35s ease;
  letter-spacing: 0.3px;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: white !important;
  background: rgba(253, 93, 20, 0.2);
  backdrop-filter: blur(15px);
  box-shadow:
    0 8px 16px rgba(253, 93, 20, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--secondary-color),
    var(--primary-color)
  );
  transition: width 0.3s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 100%;
}

.navbar .dropdown-menu {
  background: rgba(4, 15, 40, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(253, 190, 51, 0.2);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  padding: 0.75rem 0;
}

.navbar .dropdown-item {
  color: rgba(253, 190, 51, 0.9);
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  margin: 0.35rem 0.5rem;
  transition: all 0.35s ease;
  position: relative;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item.active {
  background: rgba(253, 93, 20, 0.2);
  backdrop-filter: blur(15px);
  color: white;
  box-shadow:
    0 6px 12px rgba(253, 93, 20, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Carousel Improvements */
.carousel {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.carousel-caption {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.2) 100%
  );
  padding: 3rem !important;
}

.carousel-caption h1 {
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
}

/* Button Improvements - Modern Design */
.btn {
  font-weight: 600;
  padding: 0.8rem 2.2rem;
  border-radius: 12px;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transition: left 0.35s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff7c42 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(253, 93, 20, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff7c42 0%, var(--secondary-color) 100%);
  box-shadow: 0 12px 28px rgba(253, 93, 20, 0.4);
  transform: translateY(-3px);
  color: white;
}

/* Section Styling */
section {
  padding: 4rem 2rem;
}

/* About Section */
.about-section h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about-section .text-primary {
  color: var(--secondary-color);
  font-weight: 700;
}

.about-section p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* Portfolio Cards - Modern with Glass Effect */
.portfolio-box {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
  border: 1px solid rgba(253, 190, 51, 0.1);
}

.portfolio-box:hover {
  box-shadow: 0 16px 48px rgba(253, 93, 20, 0.2);
  transform: translateY(-12px);
  border-color: rgba(253, 190, 51, 0.3);
}

.portfolio-img {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-box:hover .portfolio-img img {
  transform: scale(1.08);
}

.portfolio-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.portfolio-box:hover .portfolio-btn {
  opacity: 1;
}

.portfolio-btn:hover {
  box-shadow: 0 6px 20px rgba(253, 93, 20, 0.3);
  transform: translate(-50%, -50%) scale(1.1);
}

.portfolio-title {
  padding: 1.5rem;
  background: white;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  text-align: center;
}

.portfolio-title span {
  font-weight: 600;
  color: var(--text-dark);
}

.portfolio-box:hover .portfolio-title {
  background: linear-gradient(135deg, #fff4e6 0%, #ffe8cc 100%);
}

/* Feature Icons - Enhanced */
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(253, 93, 20, 0.1),
    rgba(253, 190, 51, 0.1)
  );
  color: var(--primary-color);
  margin-right: 1rem;
  transition: all 0.35s ease;
  border: 1px solid rgba(253, 190, 51, 0.2);
}

.feature-item:hover .feature-icon {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 8px 20px rgba(253, 93, 20, 0.25);
  border-color: var(--secondary-color);
}

/* Footer Improvements - Modern Style */
.footer {
  background: linear-gradient(135deg, var(--dark-color) 0%, #0d1b2a 100%);
  padding: 4rem 2rem !important;
  border-top: 1px solid rgba(253, 190, 51, 0.15);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 20% 50%,
    rgba(253, 93, 20, 0.05) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.footer h4 {
  color: white;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--secondary-color);
  display: inline-block;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer a:hover {
  color: var(--secondary-color);
  padding-left: 0.5rem;
}

.footer .btn {
  margin: 0.25rem;
}

.footer-shape {
  border-radius: 8px;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  box-shadow: 0 4px 15px rgba(253, 93, 20, 0.3);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: linear-gradient(135deg, #e54a0e 0%, #f0a628 100%);
  box-shadow: 0 6px 20px rgba(253, 93, 20, 0.4);
  transform: translateY(-3px);
}

/* Forms - Modern Trendy Style */
.form-control {
  border-radius: 12px;
  border: 1.5px solid #e8e8e8;
  padding: 12px 16px;
  transition: all 0.35s ease;
  font-size: 0.95rem;
  background: #fafbfc;
}

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow:
    0 0 0 4px rgba(253, 190, 51, 0.15),
    0 4px 12px rgba(253, 93, 20, 0.1);
  background: #ffffff;
  transform: translateY(-2px);
}

.form-select {
  border-radius: 12px;
  border: 1.5px solid #e8e8e8;
  padding: 10px 16px;
  transition: all 0.35s ease;
  background-color: #fafbfc;
}

.form-select:focus {
  border-color: var(--secondary-color);
  box-shadow:
    0 0 0 4px rgba(253, 190, 51, 0.15),
    0 4px 12px rgba(253, 93, 20, 0.1);
}

/* Text Improvements */
.text-primary {
  color: var(--secondary-color) !important;
}

.text-body {
  color: var(--text-dark) !important;
}

/* Spacing */
.py-6 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

.px-5 {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-caption h1 {
    font-size: 1.5rem;
  }

  .portfolio-img {
    height: 200px;
  }

  section {
    padding: 2rem 1rem;
  }

  .navbar-brand h1 {
    font-size: 1rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #e54a0e 0%, #f0a628 100%);
}
/* Hero/Banner Sections - Enhanced */
.hero-section,
.banner {
  background: linear-gradient(
    135deg,
    #1a1a2e 0%,
    var(--dark-color) 50%,
    var(--primary-color) 100%
  );
  color: white;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="rgba(255,255,255,0.03)"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>')
    repeat;
  opacity: 0.1;
  z-index: 0;
}

.hero-section > * {
  position: relative;
  z-index: 1;
}

/* Cards with Modern Styling - Glassmorphism */
.card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.95);
}

.card:hover {
  box-shadow: 0 16px 48px rgba(253, 93, 20, 0.18);
  transform: translateY(-10px);
  border-color: rgba(253, 190, 51, 0.2);
}

.card-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff7c42 100%);
  border: none;
  color: white;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.card-body {
  padding: 2rem;
}

/* Buttons - Modern Style */
.btn {
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  padding: 10px 24px;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #0066cc 0%, #00a4ff 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #e54a0e 0%, #f0a628 100%);
  box-shadow: 0 8px 25px rgba(253, 93, 20, 0.4);
  transform: translateY(-2px);
  color: white;
}

.btn-secondary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: linear-gradient(135deg, #5568d3 0%, #6a3e8e 100%);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  transform: translateY(-2px);
  color: white;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  background: rgba(253, 190, 51, 0.1);
}

.btn-link {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-link:hover {
  color: var(--secondary-color) !important;
  transform: translateX(4px);
}

/* Forms */
.form-control {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  padding: 12px 16px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(253, 190, 51, 0.15);
  transform: translateY(-1px);
}

.form-select {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  padding: 10px 16px;
  transition: all 0.3s ease;
}

.form-select:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(253, 190, 51, 0.15);
}

/* Section Backgrounds */
.bg-gradient-light {
  background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
}

.bg-gradient-dark {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  color: white;
}

/* Text Utilities */
.text-gradient {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-underline-animated {
  position: relative;
  text-decoration: none;
  color: var(--primary-color);
}

.text-underline-animated::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
}

.text-underline-animated:hover::after {
  width: 100%;
}

/* Badges - Modern Style */
.badge {
  border-radius: 25px;
  padding: 8px 14px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.badge-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff7c42 100%);
  color: white;
}

.badge-success {
  background: linear-gradient(135deg, #00b894 0%, #1abc9c 100%);
  color: white;
}

/* Alerts - Modern Design */
.alert {
  border-radius: 12px;
  border: none;
  border-left: 5px solid;
  padding: 18px 22px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.alert-info {
  background: linear-gradient(
    135deg,
    rgba(253, 93, 20, 0.08),
    rgba(253, 190, 51, 0.05)
  );
  border-left-color: var(--primary-color);
  color: var(--primary-color);
}

.alert-success {
  background: linear-gradient(
    135deg,
    rgba(0, 184, 148, 0.08),
    rgba(26, 188, 156, 0.05)
  );
  border-left-color: #00b894;
  color: #00b894;
}

.alert-warning {
  background: linear-gradient(
    135deg,
    rgba(255, 193, 7, 0.08),
    rgba(255, 152, 0, 0.05)
  );
  border-left-color: #ffc107;
  color: #ff9800;
}

.alert-danger {
  background: linear-gradient(
    135deg,
    rgba(244, 67, 54, 0.08),
    rgba(244, 67, 54, 0.05)
  );
  border-left-color: #f44336;
  color: #f44336;
}

/* Modals - Modern Glass Effect */
.modal-content {
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.98);
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff7c42 100%);
  color: white;
  border: none;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.modal-header .btn-close {
  filter: brightness(0) invert(1);
}

/* Tables - Enhanced Modern Style */
.table {
  border-radius: 12px;
  overflow: hidden;
}

.table thead {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff7c42 100%);
  color: white;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.table tbody tr {
  transition: all 0.3s ease;
}

.table tbody tr:hover {
  background: linear-gradient(90deg, rgba(253, 93, 20, 0.05), transparent);
  box-shadow: inset 4px 0 0 var(--primary-color);
}

.table th {
  border: none;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  padding: 16px 14px;
}

.table td {
  border-color: #f5f5f5;
  padding: 14px;
  vertical-align: middle;
}

/* Links with modern underline */
a {
  text-decoration: none;
  transition: all 0.3s ease;
}

a:not(.btn):not(.nav-link) {
  color: var(--primary-color);
}

a:not(.btn):not(.nav-link):hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section,
  .banner {
    padding: 60px 0;
  }

  .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .form-control,
  .form-select {
    font-size: 16px; /* Prevent zoom on iOS */
  }

  .card-body {
    padding: 1.5rem;
  }
}

/* MODERN TRENDING EFFECTS - 2026 DESIGN TRENDS */

/* Glassmorphism on Sections */
.glass-section {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius);
  padding: 2rem;
}

/* Neumorphism Style Elements */
.neumorphic {
  background: linear-gradient(145deg, #f0f0f0, #ffffff);
  box-shadow:
    8px 8px 16px rgba(0, 0, 0, 0.08),
    -8px -8px 16px rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 20px;
}

.neumorphic:hover {
  box-shadow:
    4px 4px 8px rgba(0, 0, 0, 0.1),
    -4px -4px 8px rgba(255, 255, 255, 0.8);
}

/* Micro-interactions - Scale Animation */
.scale-hover {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scale-hover:hover {
  transform: scale(1.05);
}

/* Floating Animation */
@keyframes floating {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float-animation {
  animation: floating 3s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(253, 93, 20, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(253, 93, 20, 0);
  }
}

.pulse-glow {
  animation: pulse-glow 2s infinite;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Smooth Hover Transition - Text Color */
.color-transition-hover {
  transition: color 0.35s ease;
}

.color-transition-hover:hover {
  color: var(--primary-color);
}

/* Border Gradient Effect */
.border-gradient {
  position: relative;
  background: white;
  border-radius: 12px;
}

.border-gradient::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: intersect;
  pointer-events: none;
}

/* Smooth Shadow Elevation */
.elevation-1 {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.elevation-2 {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.elevation-3 {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.elevation-4 {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Hover Elevation Effect */
.elevation-hover:hover {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
  transition: all 0.35s ease;
}

/* Smooth Underline Animation */
.underline-animated {
  position: relative;
  text-decoration: none;
  color: inherit;
}

.underline-animated::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  transition: width 0.35s ease;
  border-radius: 2px;
}

.underline-animated:hover::after {
  width: 100%;
}

/* Focus Ring - Modern Style */
.focus-ring:focus {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(253, 190, 51, 0.1),
    0 0 0 8px rgba(253, 93, 20, 0.05);
}

/* Swipe Animation */
@keyframes swipe {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.swipe-in {
  animation: swipe 0.6s ease-out;
}

/* Bounce Animation */
@keyframes bounce-light {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.bounce-light:hover {
  animation: bounce-light 0.6s ease-in-out;
}

/* Smooth Link Hover Effect */
a.smooth-link {
  position: relative;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.35s ease;
}

a.smooth-link:hover {
  color: var(--secondary-color);
}

/* Success State */
.success-check {
  color: #4caf50;
  animation: fadeInUp 0.5s ease-out;
}

/* ============================================ */
/* RESPONSIVE IMAGES - Auto Adjust & Sizing   */
/* ============================================ */

/* Base Image Styles - All Images Responsive */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Images in Containers */
.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Image Containers - Ensures proper scaling */
figure {
  margin: 0;
  padding: 0;
}

figure img {
  width: 100%;
  height: auto;
  display: block;
}

/* Product Images - Smaller size with responsiveness */
.product-img,
.product-image {
  max-width: 85%;
  height: auto;
  margin: 0 auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.product-img:hover,
.product-image:hover {
  transform: scale(0.98);
}

/* Gallery Images - Responsive Grid */
.gallery-img,
.gallery-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.gallery-img:hover,
.gallery-image:hover {
  transform: scale(0.97);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Thumbnail Images */
.thumbnail-img,
.thumb-img {
  width: 100%;
  height: auto;
  max-width: 80%;
  margin: 0 auto;
  display: block;
  border-radius: 6px;
}

/* Hero/Banner Images - Full Width Responsive */
.hero-img,
.banner-img,
.hero-image,
.banner-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Card Images - Reduced Size */
.card-img,
.card-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

/* Avatar & Profile Images - Smaller */
.avatar,
.profile-img,
.profile-image,
.user-avatar {
  width: 100%;
  height: auto;
  max-width: 120px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  margin: 0 auto;
}

/* Logo Images - Smaller */
.logo,
.logo-img,
.brand-logo {
  width: 100%;
  height: auto;
  max-width: 150px;
  display: block;
  object-fit: contain;
  margin: 0 auto;
}

/* Icon Images - Very Small */
.icon-img,
.icon-image {
  width: 100%;
  height: auto;
  max-width: 60px;
  display: block;
}

/* Background Images - Responsive Cover */
.img-bg-cover {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Images in Containers with Padding */
.image-container img,
.img-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* Lazy Loaded Images */
img[loading="lazy"] {
  background-color: #f5f5f5;
}

/* Picture Element - Responsive */
picture {
  display: block;
}

picture img {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive Image with Border */
.bordered-img {
  width: 100%;
  height: auto;
  max-width: 85%;
  border: 2px solid rgba(253, 93, 20, 0.2);
  border-radius: 8px;
  padding: 8px;
  box-sizing: border-box;
  display: block;
  margin: 0 auto;
}

/* Responsive Image with Shadow */
.shadow-img {
  width: 100%;
  height: auto;
  max-width: 85%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

/* Centered Images */
.image-center {
  width: 100%;
  height: auto;
  max-width: 85%;
  display: block;
  margin: 0 auto;
}

/* Full Width Images - With max constraints */
.image-full {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

/* Responsive Tables with Images */
table img {
  width: 100%;
  height: auto;
  max-width: 80px;
  display: block;
}

/* Images in Lists */
li img,
.list-item img {
  width: 100%;
  height: auto;
  max-width: 90%;
  display: block;
  margin: 0.5rem auto;
}

/* Responsive Images in Articles */
article img {
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 1.5rem 0;
  border-radius: 8px;
  display: block;
}

/* Small Images - Fixed Small Size */
.img-sm {
  width: 100%;
  height: auto;
  max-width: 60px;
}

/* Medium Images - Balanced Size */
.img-md {
  width: 100%;
  height: auto;
  max-width: 200px;
  display: block;
  margin: 0 auto;
}

/* Large Images - Full Width */
.img-lg {
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* Extra Large Images - Full Width with Container */
.img-xl {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

/* Tablet Responsive (768px and below) */
@media (max-width: 768px) {
  .product-img,
  .product-image {
    max-width: 90%;
  }

  .card-img,
  .card-image {
    max-height: 200px;
  }

  .avatar,
  .profile-img,
  .profile-image,
  .user-avatar {
    max-width: 100px;
  }

  .logo,
  .logo-img,
  .brand-logo {
    max-width: 120px;
  }

  .bordered-img,
  .shadow-img,
  .image-center {
    max-width: 95%;
  }

  img {
    max-width: 95%;
  }
}

/* Mobile Responsive (480px and below) */
@media (max-width: 480px) {
  .product-img,
  .product-image {
    max-width: 100%;
  }

  .card-img,
  .card-image {
    max-height: 180px;
  }

  .avatar,
  .profile-img,
  .profile-image,
  .user-avatar {
    max-width: 80px;
  }

  .logo,
  .logo-img,
  .brand-logo {
    max-width: 100px;
  }

  .bordered-img,
  .shadow-img,
  .image-center {
    max-width: 100%;
  }

  table img {
    max-width: 60px;
  }

  img {
    max-width: 100%;
  }
}

/* ============================================ */
/* SERVICE ITEM GRID LAYOUT - 4 COLUMNS       */
/* ============================================ */

.service-item {
  height: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  border-radius: 8px;
}

.service-item:hover {
  box-shadow: 0 8px 24px rgba(253, 93, 20, 0.12);
  transform: translateY(-5px);
}

.service-item .position-relative {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #ffffff;
}

.service-item img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
  transition: transform 0.3s ease;
}

.service-item:hover img {
  transform: scale(1.05);
}

.service-item .px-4 {
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
}

.service-item .pb-4 {
  padding-bottom: 1.5rem !important;
}

.service-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #333;
  margin-top: 1rem;
}

.service-item p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* Grid Layout - Desktop (4 columns) */
@media (min-width: 1200px) {
  .row > .col-lg-3 {
    flex: 0 0 calc(25% - 1rem);
    max-width: calc(25% - 1rem);
  }
}

/* Tablet Layout - 2 columns */
@media (max-width: 991px) and (min-width: 768px) {
  .row > .col-md-6 {
    flex: 0 0 calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
  }

  .service-item .position-relative {
    height: 180px;
  }

  .service-item h4 {
    font-size: 0.9rem;
  }

  .service-item p {
    font-size: 0.8rem;
  }
}

/* Small devices - 2 columns */
@media (max-width: 767px) {
  .row > .col-sm-6 {
    flex: 0 0 calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
  }

  .service-item .position-relative {
    height: 160px;
  }

  .service-item h4 {
    font-size: 0.85rem;
  }

  .service-item p {
    font-size: 0.75rem;
  }

  .service-item .px-4 {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .service-item .pb-4 {
    padding-bottom: 1rem !important;
  }
}

/* Mobile - 1 column */
@media (max-width: 575px) {
  .row > .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .service-item .position-relative {
    height: 140px;
  }

  .service-item h4 {
    font-size: 0.8rem;
  }

  .service-item p {
    font-size: 0.7rem;
  }
}

/* ============================================ */
/* DOWNLOAD BUTTON - ADJUSTED FOR GRID        */
/* ============================================ */

.service-item .position-absolute.top-0.end-0 {
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(253, 93, 20, 0.2);
}

.service-item .position-absolute.top-0.end-0:hover {
  background: linear-gradient(135deg, #e54a0e 0%, #f0a628 100%) !important;
  box-shadow: 0 6px 18px rgba(253, 93, 20, 0.35);
  transform: scale(1.1);
}

.service-item .btn-sm {
  padding: 0.6rem 0.65rem !important;
  font-size: 0.8rem;
  border-radius: 8px;
}

.service-item .btn-sm i {
  font-size: 0.85rem;
}

/* Desktop - Download button size */
@media (min-width: 1200px) {
  .service-item .btn-sm {
    padding: 0.65rem 0.7rem !important;
    font-size: 0.85rem;
  }

  .service-item .btn-sm i {
    font-size: 0.9rem;
  }
}

/* Tablet - Download button size */
@media (max-width: 991px) and (min-width: 768px) {
  .service-item .btn-sm {
    padding: 0.6rem 0.65rem !important;
    font-size: 0.75rem;
  }

  .service-item .btn-sm i {
    font-size: 0.8rem;
  }

  .service-item .m-2 {
    margin: 0.5rem !important;
  }
}

/* Small devices - Download button size */
@media (max-width: 767px) {
  .service-item .btn-sm {
    padding: 0.55rem 0.6rem !important;
    font-size: 0.7rem;
  }

  .service-item .btn-sm i {
    font-size: 0.75rem;
  }

  .service-item .m-2 {
    margin: 0.4rem !important;
  }
}

/* Mobile - Download button size */
@media (max-width: 575px) {
  .service-item .btn-sm {
    padding: 0.5rem 0.55rem !important;
    font-size: 0.65rem;
  }

  .service-item .btn-sm i {
    font-size: 0.7rem;
  }

  .service-item .m-2 {
    margin: 0.3rem !important;
  }
}
