/* ==========================================================================
   SoftCode Enterprise Software House - Davies Theme Edition
   Inspired by Davies Minimalist Luxury Portfolio Template
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=JetBrains+Mono:wght@400;500;600&display=swap");

:root {
  --white: #ffffff;
  --black: #050508;
  --bg-dark: #07070a;
  --bg-surface: #0e0d14;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);

  /* Davies Accent Primary (Default: Neon Emerald Green #07C42C) */
  --primary: #07C42C;
  --primary-rgb: 7, 196, 44;

  --white-90: rgba(255, 255, 255, 0.90);
  --white-64: rgba(255, 255, 255, 0.64);
  --white-50: rgba(255, 255, 255, 0.50);
  --white-32: rgba(255, 255, 255, 0.32);
  --white-16: rgba(255, 255, 255, 0.12);
  --white-08: rgba(255, 255, 255, 0.06);

  --font-main: 'Figtree', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Color Presets (Davies 8-color engine) */
[data-color-primary="color-primary-1"] { --primary: #07C42C; --primary-rgb: 7, 196, 44; }
[data-color-primary="color-primary-2"] { --primary: #f8c736; --primary-rgb: 248, 199, 54; }
[data-color-primary="color-primary-3"] { --primary: #f5772e; --primary-rgb: 245, 119, 46; }
[data-color-primary="color-primary-4"] { --primary: #2ac6f8; --primary-rgb: 42, 198, 248; }
[data-color-primary="color-primary-5"] { --primary: #8dca37; --primary-rgb: 141, 202, 55; }
[data-color-primary="color-primary-6"] { --primary: #7c3aed; --primary-rgb: 124, 58, 237; }
[data-color-primary="color-primary-7"] { --primary: #f14444; --primary-rgb: 241, 68, 68; }
[data-color-primary="color-primary-8"] { --primary: #e14392; --primary-rgb: 225, 67, 146; }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--black);
  color: var(--white);
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: #050508;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Utilities & Typography */
.font-mono {
  font-family: var(--font-mono);
}

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

.bg-primary {
  background-color: var(--primary) !important;
}

.border-primary {
  border-color: var(--primary) !important;
}

.text-white-64 {
  color: var(--white-64);
}

.text-white-50 {
  color: var(--white-50);
}

.text-white-32 {
  color: var(--white-32);
}

.text-caption {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--font-mono);
}

.davies-container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 768px) {
  .davies-container {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* Cursor Glow */
.cursor-ambient-glow {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.12) 0%, rgba(var(--primary-rgb), 0) 70%);
  transform: translate(-50%, -50%);
  z-index: 999;
  mix-blend-mode: screen;
  transition: opacity 0.3s ease;
  opacity: 0;
}

body:hover .cursor-ambient-glow {
  opacity: 1;
}



/* Header */
.tf-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 90;
  background: rgba(5, 5, 8, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--white-08);
  transition: var(--transition-smooth);
}

.tf-header .header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-site {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

.brand-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(var(--primary-rgb), 0.35));
  transition: var(--transition-smooth);
}

.logo-site:hover .brand-logo-img {
  transform: scale(1.08);
  filter: drop-shadow(0 0 18px rgba(var(--primary-rgb), 0.6));
}

.nav-menu-main {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link-item {
  color: var(--white-64);
  text-decoration: none;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
  font-weight: 500;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link-item span {
  color: var(--primary);
  opacity: 0.7;
}

.nav-link-item:hover, .nav-link-item.active {
  color: var(--white);
}

.nav-link-item:hover span {
  opacity: 1;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-clock-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--white-64);
  letter-spacing: 0.12em;
}

.header-clock-box .badge-city {
  color: var(--primary);
  font-weight: 700;
}

/* Hero Section */
.section-hero-v1 {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
  overflow: hidden;
  background: #050508;
}

.section-hero-v1 .bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.section-hero-v1 .bg-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: contrast(1.15) brightness(0.9);
}

.section-hero-v1 .video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 30%, rgba(5, 5, 8, 0.85) 80%, #050508 100%);
  z-index: 2;
}

.section-hero-v1 .video-overlay-tint {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(5, 5, 8, 0.4) 0%, rgba(5, 5, 8, 0.95) 100%);
  z-index: 3;
}

.section-hero-v1 .content-wrap {
  position: relative;
  z-index: 10;
  width: 100%;
}

.tf-list-roles {
  list-style: none;
  margin-bottom: 24px;
}

.tf-list-roles li {
  font-size: 11px;
  letter-spacing: 0.22em;
  font-family: var(--font-mono);
  color: var(--white-64);
  font-weight: 600;
  margin-bottom: 6px;
  transition: var(--transition-smooth);
}

.tf-list-roles li:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.davies-large-heading {
  font-size: clamp(3.5rem, 9.5vw, 9.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
  user-select: none;
}

.cursor-underscore {
  display: inline-block;
  width: 0.55em;
  height: 0.16em;
  background-color: var(--primary);
  margin-left: 0.05em;
  vertical-align: baseline;
  box-shadow: 0 0 25px rgba(var(--primary-rgb), 0.8);
  animation: blink-underscore 1.2s infinite ease-in-out;
}

@keyframes blink-underscore {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(0.96); }
}

.available-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--white);
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-description {
  color: var(--white-64);
  font-size: 15px;
  line-height: 1.7;
  max-width: 440px;
  margin-top: 20px;
  margin-bottom: 30px;
}

/* Davies Pill Button */
.tf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-family: var(--font-mono);
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white-32);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.tf-btn:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--black);
  box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.4);
  transform: translateY(-2px);
}

.tf-btn-primary {
  background: var(--primary);
  color: var(--black);
  border-color: var(--primary);
}

.tf-btn-primary:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--black);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

/* Infinite Marquee Ticker */
.section-marquee {
  background: #07070b;
  border-top: 1px solid var(--white-08);
  border-bottom: 1px solid var(--white-08);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.marquee-inner {
  display: inline-flex;
  animation: marquee-scroll 28s linear infinite;
}

.marquee-content {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--white-64);
  padding-right: 32px;
}

.marquee-content .separator {
  color: var(--primary);
  font-weight: 700;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Section Header Style */
.section-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.section-desc {
  color: var(--white-64);
  font-size: 15px;
  max-width: 640px;
  line-height: 1.7;
}

/* Selected Works Cards */
.work-card {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--white-16);
  background: #0a0910;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.work-card:hover {
  border-color: rgba(var(--primary-rgb), 0.6);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(var(--primary-rgb), 0.15);
  transform: translateY(-4px);
}

.work-card-media {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #050508;
}

@media (min-width: 768px) {
  .work-card-media {
    height: 340px;
  }
}

.work-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.work-card-media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 9, 16, 0.95) 100%);
  pointer-events: none;
}

.work-card-content {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.work-card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}

.work-card-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--white);
}

.work-card-desc {
  color: var(--white-64);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.work-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--white-08);
  padding-top: 18px;
}

.btn-arrow-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white-08);
  border: 1px solid var(--white-16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition-smooth);
}

.work-card:hover .btn-arrow-icon {
  background: var(--primary);
  color: var(--black);
  border-color: var(--primary);
  transform: rotate(45deg);
}

/* Davies Accordion Items (Services & FAQs) */
.accordion-item-davies {
  border-bottom: 1px solid var(--white-16);
  padding: 24px 0;
  transition: var(--transition-smooth);
}

.accordion-item-davies:first-child {
  border-top: 1px solid var(--white-16);
}

.accordion-header-davies {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.accordion-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--white-32);
  width: 60px;
  transition: var(--transition-smooth);
}

.accordion-item-davies.active .accordion-num {
  color: var(--primary);
}

.accordion-title-text {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white-90);
  flex: 1;
  transition: var(--transition-smooth);
}

.accordion-item-davies.active .accordion-title-text {
  color: var(--white);
}

.accordion-icon-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--white-16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-64);
  transition: var(--transition-smooth);
}

.accordion-item-davies.active .accordion-icon-toggle {
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(45deg);
}

.accordion-body-davies {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding-left: 60px;
}

.accordion-item-davies.active .accordion-body-davies {
  max-height: 400px;
  padding-top: 16px;
  padding-bottom: 8px;
}

/* Metric Stats / Counters */
.counter-box {
  padding: 32px 24px;
  border: 1px solid var(--white-16);
  background: var(--bg-card);
  border-radius: 16px;
  transition: var(--transition-smooth);
}

.counter-box:hover {
  border-color: rgba(var(--primary-rgb), 0.5);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.counter-val {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-family: var(--font-mono);
  color: var(--primary);
  line-height: 1;
  margin-bottom: 10px;
}

.counter-lbl {
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-64);
}



/* Circular Go Top Button */
#goTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #090810;
  border: 1px solid var(--white-16);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 95;
  transition: var(--transition-smooth);
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

#goTop.visible {
  opacity: 1;
  visibility: visible;
}

#goTop:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-4px);
}

#goTop svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

#goTop circle {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.5;
  stroke-dasharray: 145;
  stroke-dashoffset: 145;
  transition: stroke-dashoffset 0.1s linear;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #050508;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 100px 32px 40px;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open {
  transform: translateY(0);
}

.mobile-nav-link {
  font-size: 28px;
  font-weight: 800;
  text-decoration: none;
  color: var(--white);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--white-08);
}

.mobile-nav-link span {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--primary);
}

/* Form Styles */
html, body, select, input, textarea, option {
  color-scheme: dark;
}

.davies-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--white-16);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--white);
  font-size: 14px;
  font-family: var(--font-main);
  outline: none;
  transition: var(--transition-smooth);
}

.davies-input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.2);
}

.davies-input::placeholder {
  color: var(--white-32);
}

/* Custom Select Dropdown (Davies Dark Theme) */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.davies-custom-select-trigger {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--white-16);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--white);
  font-size: 14px;
  font-family: var(--font-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: var(--transition-smooth);
}

.davies-custom-select-trigger:hover,
.custom-select-wrapper.open .davies-custom-select-trigger {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.25);
}

.custom-select-wrapper.open .chevron-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.davies-custom-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: #0d0c15;
  border: 1px solid var(--white-16);
  border-radius: 12px;
  overflow: hidden;
  z-index: 100;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9), 0 0 20px rgba(var(--primary-rgb), 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition-smooth);
  backdrop-filter: blur(20px);
}

.custom-select-wrapper.open .davies-custom-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-option {
  padding: 13px 18px;
  font-size: 13px;
  color: var(--white-90);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-smooth);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.custom-option:last-child {
  border-bottom: none;
}

.custom-option:hover {
  background: rgba(var(--primary-rgb), 0.14);
  color: var(--white);
  padding-left: 22px;
}

.custom-option.active {
  background: rgba(var(--primary-rgb), 0.2);
  color: var(--primary);
  font-weight: 600;
}

/* Fallback native select dark styles */
select.davies-input option {
  background-color: #0d0c15 !important;
  color: #ffffff !important;
  padding: 12px;
}

/* CSS Utilities for Production */
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1) !important; }
.border-white\/15 { border-color: rgba(255, 255, 255, 0.15) !important; }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2) !important; }
.border-primary\/40 { border-color: rgba(var(--primary-rgb), 0.4) !important; }

.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05) !important; }
.bg-white\/\[0\.02\] { background-color: rgba(255, 255, 255, 0.02) !important; }
.bg-black\/80 { background-color: rgba(0, 0, 0, 0.8) !important; }
.bg-primary\/20 { background-color: rgba(var(--primary-rgb), 0.2) !important; }

.text-\[9px\] { font-size: 9px !important; }
.z-\[999\] { z-index: 999 !important; }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }


