/* Qoqnos cinematic dark theme — ui-ux-pro-max: Modern Dark Cinema + Glass */
:root {
  --bg-deep: #07080c;
  --bg-base: #0b0d14;
  --bg-elevated: #12151f;
  --surface: rgba(255, 255, 255, 0.05);
  --foreground: #f3f0e8;
  --foreground-muted: #b4bac6;
  --accent-gold: #d4a017;
  --accent-gold-soft: #f0d48a;
  --accent-cyan: #6ea8ff;
  --accent-glow: rgba(212, 160, 23, 0.22);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --easing: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 240ms;

  --background-color: #0b0d14;
  --default-color: #c9cfd8;
  --heading-color: #f6f1e6;
  --accent-color: #d4a017;
  --surface-color: #161922;
  --contrast-color: #0b0d14;

  --nav-color: #d5d8df;
  --nav-hover-color: #f0d48a;
  --nav-mobile-background-color: #0e1118;
  --nav-dropdown-background-color: #161922;
  --nav-dropdown-color: #d5d8df;
  --nav-dropdown-hover-color: #d4a017;

  color-scheme: dark;
}

.light-background,
.dark-background {
  --background-color: #0b0d14;
  --default-color: #c9cfd8;
  --heading-color: #f6f1e6;
  --accent-color: #d4a017;
  --surface-color: #161922;
  --contrast-color: #0b0d14;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(212, 160, 23, 0.12), transparent 55%),
    radial-gradient(900px 600px at 0% 20%, rgba(110, 168, 255, 0.08), transparent 50%),
    var(--bg-base);
  color: var(--default-color);
  overflow-x: hidden;
}

::selection {
  background: rgba(212, 160, 23, 0.35);
  color: #fff8e6;
}

:focus-visible {
  outline: 3px solid var(--accent-gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -40px;
  right: 16px;
  z-index: 10000;
  background: var(--accent-gold);
  color: #1a1406;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  z-index: 10001;
  transform-origin: right center;
  transform: scaleX(0);
  background: linear-gradient(270deg, var(--accent-gold), var(--accent-cyan));
  pointer-events: none;
}

.ambient-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-blobs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.14;
  animation: blob-drift 22s var(--easing) infinite alternate;
}

.ambient-blobs span:nth-child(1) {
  width: 420px;
  height: 420px;
  background: #d4a017;
  top: 8%;
  left: -8%;
}

.ambient-blobs span:nth-child(2) {
  width: 360px;
  height: 360px;
  background: #6ea8ff;
  bottom: 10%;
  right: -6%;
  animation-duration: 28s;
}

.main,
.footer {
  position: relative;
  z-index: 1;
}

.scroll-top,
#preloader {
  position: relative;
}

.header {
  --background-color: transparent;
  position: relative;
  z-index: 1100;
  overflow: visible;
  isolation: isolate;
}

.header .logo {
  gap: 10px;
}

.header .logo img {
  max-height: 42px;
  width: auto;
  margin-left: 8px;
  margin-right: 0;
  border-radius: 10px;
}

.header .logo h1,
.header .logo .sitename {
  font-size: clamp(0.95rem, 1.6vw, 1.25rem);
  color: var(--heading-color);
}

.scrolled .header::before {
  background: rgba(11, 13, 20, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  z-index: -1;
}

.page-header.section {
  z-index: 0;
  isolation: auto;
}

@media (min-width: 1200px) {
  .navmenu {
    overflow: visible;
  }

  .navmenu .dropdown {
    position: relative;
    z-index: 1200;
  }

  .navmenu .dropdown ul {
    z-index: 1300;
    background: #161922;
    border: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    inset-inline-start: 0;
    inset-inline-end: auto;
    left: auto;
    right: 0;
  }

  .navmenu .dropdown ul a {
    color: var(--foreground);
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul li:hover > a {
    color: var(--accent-gold-soft);
    background: rgba(212, 160, 23, 0.08);
  }
}

.navmenu a,
.navmenu a.active {
  color: var(--nav-color);
}

.hero {
  position: relative;
  padding-top: 140px;
  min-height: 92dvh;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 8, 12, 0.2), rgba(7, 8, 12, 0.72)),
    url("../img/generated/hero.webp?v=20260910") center/cover no-repeat;
  opacity: 0.28;
  transform: translateY(var(--hero-shift, 0px));
  will-change: transform;
  pointer-events: none;
}

.hero .hero-content h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.45;
  background: linear-gradient(180deg, #fff8e8 10%, #f0d48a 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .hero-content p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--foreground-muted);
  max-width: 38rem;
}

.hero .hero-cta .btn-primary,
.about .cta-section .btn-primary,
.submit-btn,
.primary-action,
.btn-outline-primary {
  background: linear-gradient(180deg, #e3b42a, #b88810);
  border: 0;
  color: #1a1406 !important;
  border-radius: 999px;
  padding: 12px 22px;
  min-height: 44px;
  font-weight: 600;
  box-shadow: 0 0 0 0 var(--accent-glow);
  transition: transform var(--duration) var(--easing), box-shadow var(--duration) var(--easing);
  cursor: pointer;
}

.hero .hero-cta .btn-primary:hover,
.about .cta-section .btn-primary:hover,
.submit-btn:hover,
.primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--accent-glow);
  color: #1a1406 !important;
}

.hero .hero-cta .btn-secondary,
.btn-outline,
.about .cta-section .btn-outline {
  border: 1px solid rgba(240, 212, 138, 0.45);
  color: var(--accent-gold-soft) !important;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 12px 22px;
  min-height: 44px;
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.hero .hero-stats {
  padding: 18px 8px;
  border-top: 1px solid var(--border);
}

.hero .hero-stats .stat-item .stat-number {
  color: var(--accent-gold-soft);
}

.hero .hero-image img,
.about .image-wrapper img,
.why-us .image-wrapper img,
.service-image {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.hero .hero-image .floating-card,
.about .image-wrapper .floating-card {
  background: rgba(16, 18, 26, 0.78);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  border-radius: 14px;
}

.section-title .subtitle {
  color: var(--accent-gold);
  letter-spacing: 0.08em;
}

.section-title h2,
.section-title p {
  color: var(--heading-color);
}

.section-title p {
  color: var(--foreground-muted);
}

.services .service-item,
.portfolio .service-item,
.feature-item,
.info-item,
.detail-item,
.form-wrapper,
.contact .info-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  transition: transform var(--duration) var(--easing), border-color var(--duration) var(--easing), box-shadow var(--duration) var(--easing);
}

.card {
  background: #1c2030 !important;
  border: 1px solid rgba(232, 220, 168, 0.16);
  border-radius: var(--radius);
  backdrop-filter: none;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  transition: transform var(--duration) var(--easing), border-color var(--duration) var(--easing), box-shadow var(--duration) var(--easing);
}

.services .service-item:hover,
.portfolio .service-item:hover,
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 160, 23, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(212, 160, 23, 0.12);
}

.services .service-item .service-icon,
.feature-item .icon-wrapper,
.info-icon,
.detail-icon {
  background: rgba(212, 160, 23, 0.12);
  color: var(--accent-gold);
  border-radius: 14px;
}

.services .service-item h3,
.card-title,
.card-title a {
  color: var(--heading-color) !important;
}

.services .service-item p,
.card-text,
.feature-content p {
  color: var(--foreground-muted);
}

.service-media {
  margin: -8px -8px 18px;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 9;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 420ms var(--easing);
}

.services .service-item:hover .service-media img {
  transform: scale(1.07);
}

.page-header.section {
  background:
    linear-gradient(180deg, rgba(7, 8, 12, 0.82), rgba(7, 8, 12, 0.94)),
    url("../img/generated/hero.webp?v=20260910") center/cover no-repeat;
  min-height: 220px;
  display: flex;
  align-items: end;
  padding-bottom: 48px;
}

body.aos-pending [data-aos] {
  opacity: 1;
  transform: none;
}

.page-header .card {
  background: #1c2030 !important;
}

.page-header h1,
.page-header .card-title {
  color: #f8f4ea !important;
}

.page-header .lead,
.page-header .card-body p,
.page-header .text-muted {
  color: #e2e6ee !important;
}

.page-header .lead {
  color: var(--foreground-muted);
}

.card,
.accordion,
.list-group-item {
  --bs-card-bg: #161922;
  --bs-card-color: #d7dbe3;
  --bs-card-cap-color: #f6f1e6;
  --bs-body-color: #d7dbe3;
  color: #d7dbe3;
}

.card-body,
.card-body p,
.card-body li,
.card-body .lead,
.blog-post-content p,
.blog-post-content li,
.blog-post-content .lead {
  color: #d7dbe3 !important;
  line-height: 1.9;
}

.card-title,
.card-body h1,
.card-body h2,
.card-body h3,
.card-body h4,
.card-body h5,
.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3 {
  color: #f6f1e6 !important;
}

.breadcrumb {
  --bs-breadcrumb-divider-color: #9aa1ad;
}

.breadcrumb-item,
.breadcrumb-item a,
.breadcrumb-item.active {
  color: #e4d7a8 !important;
}

.breadcrumb-item a:hover {
  color: #f0d48a !important;
}

.bg-light {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #d7dbe3 !important;
}

.bg-light p,
.bg-light .text-muted,
.bg-light strong {
  color: #c9cfd8 !important;
}

.badge.bg-secondary {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #e8ecf2 !important;
}

.card-header.bg-primary,
.card-header.bg-primary .card-title,
.card-header.bg-primary h3 {
  background: linear-gradient(180deg, #e3b42a, #b88810) !important;
  color: #1a1406 !important;
}

.blog .card {
  overflow: hidden;
  color: #d7dbe3;
}

.blog .card-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog .card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge.bg-primary {
  background: rgba(212, 160, 23, 0.16) !important;
  color: var(--accent-gold-soft) !important;
  border: 1px solid rgba(212, 160, 23, 0.28);
}

.text-muted {
  color: #9aa1ad !important;
}

.form-wrapper,
.php-email-form input,
.php-email-form textarea,
.form-group input,
.form-group textarea {
  background: rgba(8, 10, 16, 0.7) !important;
  color: var(--foreground) !important;
  border-color: var(--border) !important;
  border-radius: 12px;
}

.form-group label {
  color: var(--accent-gold-soft);
}

.footer {
  background: #07080c;
  border-top: 1px solid var(--border);
}

.footer a,
.footer p,
.footer span {
  color: var(--foreground-muted);
}

.footer h4,
.footer .sitename {
  color: var(--heading-color);
}

.scroll-top {
  background: var(--accent-gold);
  color: #1a1406;
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

#preloader {
  background: var(--bg-deep);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 480ms var(--easing), transform 480ms var(--easing);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: 120px;
  }

  .header .logo h1 {
    font-size: 0.92rem;
    max-width: 14rem;
  }

  .services .service-item,
  .card {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ambient-blobs span,
  .reveal,
  .service-media img,
  .hero::before {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .reveal {
    opacity: 1;
  }
}

@keyframes blob-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(40px, -30px, 0) scale(1.12);
  }
}
