/* iFlair Web Technologies - .NET Development Website Styles */

/* CSS Variables */
:root {
  --primary-color: #0066cc;
  --secondary-color: #4a90e2;
  --accent-color: #ffc107;
  --success-color: #28a745;
  --info-color: #17a2b8;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --purple-color: #6f42c1;
  --dark-color: #343a40;
  --light-color: #f8f9fa;
  --white: #ffffff;
  --text-dark: #212529;
  --text-muted: #6c757d;
  --border-color: #dee2e6;

  /* Fonts */
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;

  /* Spacing */
  --section-padding: 5rem 0;
  --container-max-width: 1200px;

  /* Border Radius */
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;

  /* Shadows */
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);

  /* Transitions */
  --transition: all 0.3s ease;
}

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
  padding-top: 70px;
}

/* Image Fallbacks and Placeholders */
img {
  max-width: 100%;
  height: auto;
}

/* Logo placeholder styles */
.navbar-brand img,
.footer img[alt*="logo"] {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 8px;
  padding: 8px 16px;
  color: white;
  font-weight: 600;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 40px;
}

.navbar-brand img::before,
.footer img[alt*="logo"]::before {
  content: "iFlair";
  color: white;
}

/* Hero image placeholders */
img[alt*="hero"],
img[alt*="Hero"] {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  font-weight: 600;
  min-height: 300px;
  text-align: center;
}

img[alt*="hero"]::before,
img[alt*="Hero"]::before {
  content: "🚀 " attr(alt);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Service image placeholders */
img[alt*="Development"],
img[alt*="API"],
img[alt*="HRMS"],
img[alt*=".NET"],
img[alt*="Enterprise"],
img[alt*="ASP.NET"],
img[alt*="API"] {
  background: linear-gradient(135deg, var(--primary-color), var(--info-color));
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: 600;
  min-height: 250px;
  text-align: center;
  width: 100%;
  padding: 20px;
  object-fit: contain;
}

/* Portfolio image placeholders */
img[alt*="portfolio"],
img[alt*="Portfolio"],
img[src*="portfolio/"] {
  background: linear-gradient(135deg, var(--success-color), var(--info-color));
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 600;
  min-height: 250px;
  text-align: center;
  padding: 20px;
  object-fit: contain;
}

img[alt*="portfolio"]::before,
img[alt*="Portfolio"]::before,
img[src*="portfolio/"]::before {
  content: "📊 " attr(alt);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Blog image placeholders */
img[alt*="blog"],
img[alt*="Blog"],
img[src*="blog/"] {
  background: linear-gradient(
    135deg,
    var(--warning-color),
    var(--danger-color)
  );
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 600;
  min-height: 200px;
  text-align: center;
}

img[alt*="blog"]::before,
img[alt*="Blog"]::before,
img[src*="blog/"]::before {
  content: "📝 " attr(alt);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Generic image error handling */
img[alt]:not([src]),
img[src=""]:not([alt=""]) {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: 2px dashed #dee2e6;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
  min-height: 200px;
  text-align: center;
}

img[alt]:not([src])::before,
img[src=""]:not([alt=""])::before {
  content: "🖼️ " attr(alt);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.display-4 {
  font-weight: 800;
  line-height: 1.2;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
}

/* Custom Utility Classes */
.min-vh-75 {
  min-height: 75vh;
}

.bg-gradient-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
}

.text-purple {
  color: var(--purple-color) !important;
}

.bg-purple {
  background-color: var(--purple-color) !important;
}
.custom-bg-purple {
  background-color: rgba(111, 66, 193, 0.1) !important;
}

.btn-outline-purple {
  border-color: var(--purple-color);
  color: var(--purple-color);
}

.btn-outline-purple:hover {
  background-color: var(--purple-color);
  border-color: var(--purple-color);
  color: var(--white);
}

/* Navigation Styles */
.navbar {
  padding: 1rem 0;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.navbar-brand img {
  transition: var(--transition);
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
}

/* .navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  background-color: rgba(0, 102, 204, 0.1);
} */

/* Dropdown Styles */
.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-top: 0.5rem;
}

.dropdown-item {
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.dropdown-item:hover {
  background-color: rgba(0, 102, 204, 0.1);
  color: var(--primary-color);
}

/* Hero Section */
.hero-section {
  padding: 8rem 0 6rem;
  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 xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  pointer-events: none;
}

.floating-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Technology Cards */
.tech-card {
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--primary-color);
}

.tech-card i {
  transition: var(--transition);
}

.tech-card:hover i {
  transform: scale(1.1);
}

/* Service Cards */
.service-card {
  transition: var(--transition);
  border: 1px solid var(--border-color);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.service-icon {
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

/* Feature Icons */
.feature-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Buttons */
.btn {
  font-weight: 600;
  border-radius: var(--border-radius);
  padding: 0.75rem 1.5rem;
  transition: var(--transition);
  text-decoration: none;
  border-width: 2px;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Card Styles */
.card {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

/* Section Styles */
section {
  padding: 5rem 0;
}

.bg-light {
  background-color: #f8f9fa !important;
}

/* Footer Styles */
footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

footer .social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer ul li a:hover {
  color: var(--accent-color) !important;
  padding-left: 5px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 991px) {
  #services .col-lg-4 .sticky-top {
    text-align: center;
  }
}
@media (max-width: 768px) {
  .hero-section {
    padding: 6rem 0 4rem;
    text-align: center;
  }
  .hero-section .hero-section-content {
    /* margin-bottom: 40px; */
  }
  .hero-section .hero-section-content .button-group {
    align-items: center;
    justify-content: center;
  }
  .display-4 {
    font-size: 2.5rem;
  }

  .floating-badge {
    position: static;
    display: inline-block;
    margin-top: 1rem;
  }

  section {
    padding: 3rem 0;
  }

  .tech-card {
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 5rem 0 3rem;
  }

  .display-4 {
    font-size: 2rem;
  }

  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .service-card,
  .tech-card {
    margin-bottom: 1.5rem;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-color);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.border-gradient {
  border: 2px solid;
  border-image: linear-gradient(
      135deg,
      var(--primary-color),
      var(--secondary-color)
    )
    1;
}

/* Focus States for Accessibility */
.btn:focus,
.nav-link:focus,
.dropdown-item:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .navbar,
  footer,
  .btn,
  .floating-badge {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    page-break-after: avoid;
  }
}

/* Reduce horizontal scrollbar thickness for Prism code blocks */
pre[class*="language-"]::-webkit-scrollbar {
    height: 8px; /* adjust thickness */
}

pre[class*="language-"] {
    scrollbar-width: thin; /* for Firefox */
}


.nav-link.activated {
  color: var(--primary-color) !important;
  background-color: rgba(0, 102, 204, 0.1);
}

.dropdown-item.activated {
  color: var(--bs-dropdown-link-active-color);
  text-decoration: none;
  background-color: var(--bs-dropdown-link-active-bg);
}