/*
  Company UI glue styles
  - Loader: adapted from the provided PhotoFolio template in this workspace
  - Section heading/subheading: adapted from PhotoFolio's .section-header
  - Shared light-mode site styling
*/

:root {
  --company-font-default: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --company-font-primary: "Inter", sans-serif;
  --company-font-secondary: "Cardo", sans-serif;

  --company-color-default: #fafafa;
  --company-color-primary: #0678be;
  --company-color-secondary: #064771;

  /* Premium-ish shadows */
  --company-shadow-sm: 0 8px 22px rgba(0, 0, 0, 0.10);
  --company-shadow-md: 0 14px 40px rgba(0, 0, 0, 0.16);

  /* Premium sizing tokens */
  --company-radius-lg: 18px;
  --company-radius-md: 14px;
  --company-radius-sm: 12px;
  --company-ring: 0 0 0 0.22rem rgba(6, 120, 190, 0.22);

  /* Subtle background gradients */
  --company-glow-1: rgba(6, 120, 190, 0.22);
  --company-glow-2: rgba(6, 71, 113, 0.16);
}

/* Base typography polish (keep Moderna layout; just refine feel) */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--company-font-default);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#main {
  position: relative;
}

/* Section spacing rhythm (avoid overriding breadcrumbs + page header spacing) */
#main > section:not(.breadcrumbs):not(.company-page-header) {
  padding: clamp(52px, 5vw, 88px) 0;
}

/* Make common media look premium */
img.img-fluid {
  border-radius: var(--company-radius-lg);
}

iframe {
  border-radius: var(--company-radius-lg);
}

/* Breadcrumbs: premium glass + better typography */
.breadcrumbs {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.breadcrumbs h2 {
  font-family: var(--company-font-secondary);
  letter-spacing: -0.02em;
}

/* Premium card surfaces in light mode too */
.card,
.services .icon-box,
.team .member,
.portfolio-details .portfolio-info,
.blog .entry,
.blog .sidebar,
.info-box {
  border-radius: var(--company-radius-lg);
  box-shadow: var(--company-shadow-sm);
}

/* Premium hover lift for common cards */
.card,
.services .icon-box,
.blog .entry,
.portfolio .portfolio-item,
.portfolio-details .portfolio-info,
.info-box {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card:hover,
.services .icon-box:hover,
.blog .entry:hover,
.portfolio .portfolio-item:hover,
.portfolio-details .portfolio-info:hover,
.info-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--company-shadow-md);
}

/* Modernize info-box icon */
.info-box i {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(39, 167, 118, 0.12);
  border: 1px solid rgba(39, 167, 118, 0.22);
}

/* Forms */
.php-email-form button[type="submit"] {
  background: linear-gradient(135deg, rgba(39, 167, 118, 1), rgba(50, 207, 147, 0.92));
  border: 1px solid rgba(39, 167, 118, 0.35);
  box-shadow: var(--company-shadow-sm);
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 700;
}

/* Premium primary buttons in Moderna (hero + pricing + blog read more) */
.btn-get-started,
.get-started-btn,
.blog .entry .read-more a {
  border-radius: 999px !important;
  padding: 12px 26px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em;
  border: 1px solid rgba(39, 167, 118, 0.35);
  background: linear-gradient(135deg, rgba(39, 167, 118, 1), rgba(50, 207, 147, 0.92));
  box-shadow: var(--company-shadow-sm);
  transition: transform 220ms ease, filter 220ms ease, box-shadow 220ms ease;
}

/* Also upgrade Bootstrap primary buttons on the SITE (admin does not load this CSS) */
.btn.btn-primary {
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: 1px solid rgba(39, 167, 118, 0.35);
  background: linear-gradient(135deg, rgba(39, 167, 118, 1), rgba(50, 207, 147, 0.92));
  box-shadow: var(--company-shadow-sm);
  transition: transform 220ms ease, filter 220ms ease, box-shadow 220ms ease;
}

.btn.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: var(--company-shadow-md);
}

.btn-get-started:hover,
.get-started-btn:hover,
.blog .entry .read-more a:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: var(--company-shadow-md);
}

.php-email-form button[type="submit"]:hover {
  filter: brightness(1.04);
}

/* PhotoFolio-like section header (heading + subheading) */
.company-section-header {
  padding-bottom: 40px;
}

.company-section-header h2 {
  font-size: 14px;
  font-weight: 500;
  padding: 0;
  line-height: 1px;
  margin: 0 0 12px 0;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
  font-family: var(--company-font-primary);
}

.company-section-header h2::after {
  content: "";
  width: 120px;
  height: 1px;
  display: inline-block;
  background: #5bd9a9;
  margin: 4px 10px;
}

.company-section-header p {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  font-family: var(--company-font-secondary);
  color: #111;
}

/* Optional page header (PhotoFolio vibe) */
.company-page-header {
  padding: 120px 0 60px 0;
  min-height: 30vh;
  position: relative;
}

/* Premium page header background (works both modes) */
.company-page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px circle at 18% 20%, var(--company-glow-1), transparent 45%),
    radial-gradient(700px circle at 80% 10%, var(--company-glow-2), transparent 45%);
  opacity: 0.85;
  pointer-events: none;
}

.company-page-header .container {
  position: relative;
}

.company-page-header h2 {
  font-size: 56px;
  font-weight: 500;
  color: #111;
  font-family: var(--company-font-secondary);
}

@media (max-width: 768px) {
  .company-page-header h2 {
    font-size: 36px;
  }
}

.company-page-header p {
  color: rgba(0, 0, 0, 0.7);
}

/* PhotoFolio preloader */
#preloader {
  display: flex;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 99999;
}

#preloader:before,
#preloader:after {
  content: "";
  background-color: var(--company-color-secondary);
  position: absolute;
  inset: 0;
  width: 50%;
  height: 100%;
  transition: all 0.3s ease 0s;
  z-index: -1;
}

#preloader:after {
  left: auto;
  right: 0;
}

#preloader .line {
  position: relative;
  overflow: hidden;
  margin: auto;
  width: 1px;
  height: 280px;
  transition: all 0.8s ease 0s;
}

#preloader .line:before {
  content: "";
  position: absolute;
  background-color: #fff;
  left: 0;
  top: 50%;
  width: 1px;
  height: 0%;
  transform: translateY(-50%);
  animation: company-lineincrease 1000ms ease-in-out 0s forwards;
}

#preloader .line:after {
  content: "";
  position: absolute;
  background-color: #999;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  transform: translateY(-100%);
  animation: company-linemove 1200ms linear 0s infinite;
  animation-delay: 2000ms;
}

#preloader.loaded .line {
  opacity: 0;
  height: 100% !important;
}

#preloader.loaded .line:after {
  opacity: 0;
}

#preloader.loaded:before,
#preloader.loaded:after {
  animation: company-preloaderfinish 300ms ease-in-out 500ms forwards;
}

@keyframes company-lineincrease {
  0% { height: 0%; }
  100% { height: 100%; }
}

@keyframes company-linemove {
  0% { transform: translateY(200%); }
  100% { transform: translateY(-100%); }
}

@keyframes company-preloaderfinish {
  0% { width: 50%; }
  100% { width: 0%; }
}

/* Futuristic service cards (custom, used on Services) */
.company-service-card {
  display: block;
  height: 100%;
  text-decoration: none;
  border-radius: 18px;
  padding: 18px 18px 16px 18px;
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.01));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  color: inherit;
}

.company-service-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(600px circle at var(--x, 40%) var(--y, 20%), rgba(39, 167, 118, 0.28), transparent 40%);
  opacity: 0.9;
  pointer-events: none;
}

.company-service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 217, 169, 0.35);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.company-service-card__top {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.company-service-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(39, 167, 118, 0.16);
  border: 1px solid rgba(39, 167, 118, 0.28);
  color: #0b3d2a;
}

.company-service-card__icon i {
  font-size: 20px;
  line-height: 1;
}

.company-service-card__title {
  font-family: var(--company-font-primary);
  font-weight: 700;
  font-size: 18px;
  margin: 0;
  color: #111;
}

.company-service-card__tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  color: rgba(0, 0, 0, 0.7);
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.7);
}

.company-service-card__desc {
  position: relative;
  margin: 0;
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.55;
}

.company-service-card__cta {
  position: relative;
  margin-top: 14px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.8);
}

/* ======= Hero polish (Moderna hero, premium glass container) ======= */
#hero {
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px circle at 20% 10%, rgba(39, 167, 118, 0.18), transparent 48%),
    radial-gradient(700px circle at 85% 20%, rgba(91, 217, 169, 0.12), transparent 52%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

#hero .carousel-container {
  position: relative;
  padding: 28px 26px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: var(--company-shadow-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#hero h2 {
  font-family: var(--company-font-secondary);
  letter-spacing: -0.02em;
  font-size: clamp(32px, 4.2vw, 54px);
}

#hero p {
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
  opacity: 0.92;
}

/* ======= Blog + portfolio visuals ======= */
.blog .entry {
  overflow: hidden;
}

/* Pagination: premium pills */
.pagination {
  gap: 8px;
}

.pagination .page-link {
  border-radius: 999px !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  padding: 8px 14px;
  font-weight: 700;
}

.pagination .page-link:hover {
  transform: translateY(-1px);
}

.blog .entry .entry-img img {
  border-radius: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog .entry .entry-title {
  font-family: var(--company-font-secondary);
  letter-spacing: -0.01em;
}

.blog .sidebar {
  overflow: hidden;
}

.blog .sidebar .sidebar-title {
  font-family: var(--company-font-primary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 12px;
}

.blog .sidebar .recent-posts img {
  border-radius: 12px;
}

/* Portfolio filter pills */
.portfolio #portfolio-flters li {
  border-radius: 999px;
  padding: 8px 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.portfolio #portfolio-flters li:hover {
  transform: translateY(-1px);
}

/* Portfolio cards: rounded images + nicer overlay */
.portfolio .portfolio-item {
  border-radius: var(--company-radius-lg);
  overflow: hidden;
}

.portfolio .portfolio-item img {
  border-radius: 0;
}

/* Portfolio details slider images */
.portfolio-details .portfolio-details-slider img {
  border-radius: var(--company-radius-lg);
}

/* ======= Team: make cards feel premium ======= */
.team .member {
  overflow: hidden;
  border-radius: var(--company-radius-lg);
}

.team .member .member-img {
  border-radius: 0;
  overflow: hidden;
}

.team .member .member-info h4 {
  font-family: var(--company-font-secondary);
  letter-spacing: -0.01em;
}

/* ======= Pricing: cleaner boxes ======= */
.pricing .box {
  border-radius: var(--company-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
