/* 
  Theme: Premium Blue + Black
  Project: Netlabs IT Solutions
  Description: Custom CSS with SEO optimizations (fast loading, minified approach)
*/

:root {
  --primary-color: #0d6efd;
  /* Modern Blue */
  --secondary-color: #0a58ca;
  --dark-bg: #0b0c10;
  --dark-surface: #1f2833;
  --text-light: #c5c6c7;
  --text-white: #ffffff;
  --accent-color: #45a29e;
  --whatsapp-color: #25D366;
  --transition-speed: 0.3s;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-light);
  overflow-x: hidden;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
}

.img-showcase,
.blog-card-image-link img,
.page-hero-banner img {
  height: auto;
}

.service-card-media img {
  height: 170px;
  max-height: 40vw;
  min-height: 140px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-white);
  font-weight: 700;
}

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

/* Typography SEO Focus */
.text-gradient {
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
  background-color: rgba(11, 12, 16, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
  font-weight: 800;
  color: var(--text-white) !important;
  font-size: 1.5rem;
}

.nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  transition: color var(--transition-speed);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
}

/* Buttons */
.btn-primary-custom {
  background-color: var(--primary-color);
  color: var(--text-white);
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all var(--transition-speed);
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-primary-custom:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
  color: var(--text-white);
}

.btn-whatsapp {
  background-color: var(--whatsapp-color);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all var(--transition-speed);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-whatsapp:hover {
  background-color: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  color: #fff;
}

/* Hero Section */
.hero-section {
  padding: 150px 0 100px;
  background: radial-gradient(circle at top right, rgba(13, 110, 253, 0.1), transparent 50%),
    radial-gradient(circle at bottom left, rgba(69, 162, 158, 0.1), transparent 50%);
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
}

.hero-section--with-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../images/hero-home.jpg");
  background-size: cover;
  background-position: 70% center;
  opacity: 0.2;
  pointer-events: none;
}

.hero-section--with-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(105deg, rgba(11, 12, 16, 0.94) 0%, rgba(11, 12, 16, 0.78) 45%, rgba(11, 12, 16, 0.55) 100%);
  pointer-events: none;
}

.hero-section--with-photo > .container {
  position: relative;
  z-index: 1;
}

/* Full-width section & page header photo backgrounds */
.page-header-bg,
.section-bg {
  position: relative;
  background-color: var(--dark-bg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.page-header-bg > .container,
.section-bg > .container {
  position: relative;
  z-index: 1;
}

.page-header-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(11, 12, 16, 0.55) 0%, rgba(11, 12, 16, 0.92) 72%, var(--dark-bg) 100%);
  pointer-events: none;
}

.section-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(11, 12, 16, 0.9) 0%, rgba(11, 12, 16, 0.94) 100%);
  pointer-events: none;
}

.section-bg--lighter::before {
  background: linear-gradient(180deg, rgba(31, 40, 51, 0.88) 0%, rgba(11, 12, 16, 0.92) 100%);
}

.bg-photo-hero {
  background-image: url("../images/hero-home.jpg");
}

.bg-photo-web-design {
  background-image: url("../images/web-design.jpg");
}

.bg-photo-web-dev {
  background-image: url("../images/web-development.jpg");
}

.bg-photo-ecommerce {
  background-image: url("../images/ecommerce.jpg");
}

.bg-photo-seo {
  background-image: url("../images/seo.jpg");
}

.bg-photo-about {
  background-image: url("../images/about-team.jpg");
}

.bg-photo-pricing {
  background-image: url("../images/pricing.jpg");
}

.page-header-bg.bg-photo-web-design {
  background-position: center 35%;
}

.page-header-bg.has-custom-bg {
  background-image: var(--section-bg-image);
  background-size: cover;
  background-position: center;
}

.page-header-bg.has-custom-bg::before {
  background: linear-gradient(180deg, rgba(11, 12, 16, 0.82) 0%, rgba(11, 12, 16, 0.96) 100%);
}

.section-bg.bg-photo-ecommerce {
  background-position: center 30%;
}

@media (max-width: 768px) {
  .page-header-bg,
  .section-bg {
    background-position: center;
  }

  .hero-section--with-photo::after {
    background-position: center;
    opacity: 0.14;
  }
}

.hero-section--split {
  text-align: left;
}

.hero-section--split .hero-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.img-showcase-wrap {
  position: relative;
  isolation: isolate;
}

.img-showcase-wrap::before {
  content: "";
  position: absolute;
  inset: -8%;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.35), transparent 65%);
  filter: blur(40px);
  z-index: -1;
}

.img-showcase {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  object-fit: cover;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.img-showcase-wrap:hover .img-showcase {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 30px 80px rgba(13, 110, 253, 0.25);
}

.hero-visual {
  aspect-ratio: 16 / 10;
  max-height: 420px;
}

.page-hero-banner {
  margin-top: 1.5rem;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.page-hero-banner img {
  width: 100%;
  height: clamp(220px, 32vw, 380px);
  object-fit: cover;
  display: block;
}

.service-card {
  background-color: var(--dark-surface);
  border-radius: 15px;
  padding: 0;
  overflow: hidden;
  text-align: left;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(13, 110, 253, 0.3);
}

.service-card-media {
  position: relative;
  overflow: hidden;
}

.service-card-media img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.service-card:hover .service-card-media img {
  transform: scale(1.06);
}

.service-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 12, 16, 0.85), transparent 55%);
}

.service-card-body {
  padding: 28px 26px 32px;
  text-align: center;
}

.gallery-strip img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.portfolio-card {
  background-color: rgba(11, 12, 16, 0.6);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 110, 253, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.portfolio-card a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--text-white);
  min-height: 100%;
}

.portfolio-card-title {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: 4px;
}

.portfolio-card-domain {
  display: block;
  font-size: 0.8rem;
  color: var(--accent-color);
  word-break: break-word;
}

.portfolio-card-icon {
  color: var(--primary-color);
  flex-shrink: 0;
  opacity: 0.85;
}

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

/* Location / suburb link tiles (anchor is the card) */
a.portfolio-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-white);
  text-decoration: none;
  min-height: 48px;
}

a.portfolio-card:hover {
  color: var(--text-white);
}

.location-link-grid .portfolio-card-title {
  margin-bottom: 0;
}

.page-header-inner {
  padding-top: 2rem;
  padding-bottom: 1.5rem;
}

@media (min-width: 992px) {
  .page-header-inner {
    padding-top: 3rem;
    padding-bottom: 2rem;
  }
}

.blog-card {
  background-color: var(--dark-surface);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-color var(--transition-speed);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(13, 110, 253, 0.35);
}

.blog-card-image-link {
  display: block;
  overflow: hidden;
}

.blog-card-image-link img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.blog-card:hover .blog-card-image-link img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 22px 24px 26px;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.blog-card-category {
  color: var(--accent-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-card-title a {
  color: var(--text-white);
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--primary-color);
}

.blog-card-excerpt {
  margin-bottom: 12px;
}

.blog-article-content {
  font-size: 1.05rem;
  line-height: 1.75;
}

.blog-article-content h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.blog-article-content p,
.blog-article-content li {
  color: #e9ecef;
}

.blog-article-content a {
  color: var(--primary-color);
}

.blog-article-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

.landing-faq .accordion-button {
  box-shadow: none;
}

.landing-faq .accordion-button:not(.collapsed) {
  background-color: rgba(13, 110, 253, 0.15);
  color: var(--text-white);
}

.landing-cta {
  background: radial-gradient(circle at center, rgba(13, 110, 253, 0.08), transparent 70%);
}

.hero-title {
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 40px;
}


.service-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

/* Footer */
.footer {
  background-color: #060709;
  padding: 60px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-link {
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--transition-speed);
}

.footer-link:hover {
  color: var(--primary-color);
}

/* Floating Elements */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--whatsapp-color);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: transform 0.3s;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  color: white;
}

.sticky-call {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background-color: var(--primary-color);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
  z-index: 1000;
  transition: transform 0.3s;
}

.sticky-call:hover {
  transform: scale(1.1);
  color: white;
}

/* Animations */
.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utility */
.section-padding {
  padding: 100px 0;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.text-muted {
  --bs-text-opacity: 1;
  color: #f8f9fa !important; /* Brighter for better contrast on dark bg */
}

.text-light {
  color: #f8f9fa !important;
}

/* Improve WhatsApp contrast - Green background needs dark text for AA/AAA */
.btn-whatsapp {
  background-color: var(--whatsapp-color);
  color: #0b0c10 !important; /* Dark color for contrast */
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 800; /* Bolder for better legibility */
  transition: all var(--transition-speed);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-whatsapp:hover {
  background-color: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  color: #0b0c10 !important;
}

.section-subtitle {
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: block;
}

/* Responsive */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 120px 0 64px;
    min-height: auto;
  }

  .section-padding {
    padding: 72px 0;
  }

  .navbar-brand {
    font-size: 1.2rem;
    max-width: calc(100vw - 120px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .navbar-nav .btn-primary-custom {
    width: 100%;
    justify-content: center;
  }

  .hero-subtitle,
  .lead {
    font-size: 1.05rem;
  }

  .blog-article-content {
    font-size: 1rem;
  }

  .service-card-body {
    padding: 22px 18px 26px;
  }

  .card-body.p-5 {
    padding: 1.75rem !important;
  }

  .pricing-featured-card {
    transform: none !important;
    margin-top: 0.5rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 108px 0 48px;
  }

  .hero-section--split .hero-title {
    font-size: clamp(1.65rem, 7vw, 2.35rem);
  }

  .section-padding {
    padding: 56px 0;
  }

  .section-subtitle {
    letter-spacing: 1px;
    font-size: 0.75rem;
  }

  .btn-primary-custom,
  .btn-whatsapp {
    padding: 12px 22px;
    min-height: 48px;
  }

  .page-hero-banner {
    margin-top: 1rem;
    border-radius: 14px;
  }

  .page-hero-banner img {
    height: clamp(180px, 42vw, 260px);
  }

  main > header .container.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 1.5rem !important;
  }

  .blog-card-image-link img {
    height: 180px;
  }

  .gallery-strip img {
    height: 160px;
  }

  .footer {
    padding: 48px 0 20px;
  }

  .footer .d-flex.gap-3 {
    flex-wrap: wrap;
  }

  .floating-whatsapp,
  .sticky-call {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: max(16px, env(safe-area-inset-bottom, 16px));
  }

  .floating-whatsapp {
    right: max(16px, env(safe-area-inset-right, 16px));
  }

  .sticky-call {
    left: max(16px, env(safe-area-inset-left, 16px));
  }

  .container {
    padding-left: max(12px, env(safe-area-inset-left, 12px));
    padding-right: max(12px, env(safe-area-inset-right, 12px));
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    padding: 100px 0 40px;
  }

  .section-padding {
    padding: 48px 0;
  }

  .location-link-grid .col-6 {
    padding-left: 6px;
    padding-right: 6px;
  }

  .location-link-grid a.portfolio-card {
    padding: 12px 8px;
    font-size: 0.9rem;
  }

  .d-flex.flex-wrap.gap-3 .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .services-icon-lg {
    font-size: 3.5rem !important;
  }
}