/* ==========================================================================
   Obsidian White Theme - Business Consulting
   CSS Structure (~2000 lines equivalent concept mapped to strict parameters)
   ========================================================================== */

/* --- Variables --- */
:root {
  --black: #050505;
  --white: #ffffff;
  --grey-light: #f5f5f5;
  --grey: #888888;
  --grey-dark: #1a1a1a;

  --font-heading: "Syne", sans-serif;
  --font-body: "Inter", sans-serif;

  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.3s cubic-bezier(0.16, 1, 0.3, 1);

  --container-width: 1400px;
  --padding-section: 150px;
}

/* --- Reset & Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none; /* Custom cursor */
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.obsidian-theme {
  background: var(--white);
  color: var(--black);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.1;
}

.section-title {
  font-size: clamp(3rem, 6vw, 6rem);
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  margin-bottom: 1rem;
  display: block;
  color: var(--grey);
}

.center {
  text-align: center;
}

.mt-2 {
  margin-top: 1rem;
}
.mt-4 {
  margin-top: 2rem;
}
.mt-5 {
  margin-top: 4rem;
}

/* --- Custom Cursor --- */
.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--black);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  transition:
    width 0.2s,
    height 0.2s,
    background-color 0.2s;
}

/* Cursor Hover States applied via JS */
body.hovering .cursor-outline {
  width: 60px;
  height: 60px;
  background-color: rgba(0, 0, 0, 0.05);
  border-color: transparent;
}
body.dark-mode-cursor .cursor-dot {
  background-color: var(--white);
}
body.dark-mode-cursor .cursor-outline {
  border-color: rgba(255, 255, 255, 0.5);
}
body.dark-mode-cursor.hovering .cursor-outline {
  background-color: rgba(255, 255, 255, 0.1);
}

/* --- Layout Utilities --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 5%;
}

.section-padding {
  padding: var(--padding-section) 0;
}

.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.grid-4-col {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

.dark-section {
  background-color: var(--black);
  color: var(--white);
}

/* --- Preloader --- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: transform var(--transition-slow);
}
.preloader.hidden {
  transform: translateY(-100%);
}
.preloader-text {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.preloader-progress {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}
.preloader-progress::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--white);
  animation: load 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes load {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.btn-solid {
  background: var(--black);
  color: var(--white);
}
.btn-solid:hover {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--black);
}

.btn-text {
  background: transparent;
  color: var(--black);
  border-bottom: 1px solid var(--black);
  padding: 1rem 0.5rem;
}

/* --- Header (Universal) --- */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition:
    background var(--transition-fast),
    padding var(--transition-fast);
  /* By default on Obsidian White theme, header background needs to be dark for logo contrast or we handle logo wrapper */
  background: var(--black);
  color: var(--white);
}
.header.scrolled {
  padding: 1rem 0;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo img {
  height: 60px;
  filter: invert(1);
  /* Inverting logic inside JS if needed, but per request, keeping dark background to pop white logo */
}

.nav-menu {
  display: flex;
  gap: 3rem;
}

.nav-link {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--white);
  transition: width var(--transition-fast);
}
.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 30px;
}
.hamburger .bar {
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: all var(--transition-fast);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 150px;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.hero-title {
  font-size: clamp(4rem, 9vw, 10rem);
  line-height: 0.9;
  margin: 1.5rem 0;
}
.hero-desc {
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  color: var(--grey);
  max-width: 600px;
  margin-bottom: 3rem;
}
.hero-buttons {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.hero-3d-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 50vw;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.05;
}

/* --- Marquee --- */
.marquee-section {
  padding: 3rem 0;
  border-top: 1px solid var(--grey-light);
  border-bottom: 1px solid var(--grey-light);
  overflow: hidden;
  background: var(--white);
}
.marquee-track {
  display: flex;
  width: 200%;
  animation: marquee 20s linear infinite;
}
.marquee-content {
  display: flex;
  width: 50%;
  justify-content: space-around;
  align-items: center;
}
.marquee-content span {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
}
.marquee-content .dot {
  width: 8px;
  height: 8px;
  background: var(--black);
  border-radius: 50%;
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* --- Stats Grid --- */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}
.stat-item h3 {
  font-size: 4rem;
  display: inline-block;
}
.stat-item span {
  font-size: 2rem;
  font-family: var(--font-heading);
}
.stat-item p {
  color: var(--grey);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}
.service-card {
  padding: 3rem;
  background: var(--grey-light);
  transition:
    transform var(--transition-fast),
    background var(--transition-fast);
}
.service-card:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-10px);
}
.service-icon {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--grey);
}
.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.service-card p {
  color: var(--grey);
  margin-bottom: 2rem;
}
.service-link {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --- Industries --- */
.industry-list {
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.industry-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: padding var(--transition-fast);
}
.industry-item:hover {
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.02);
}
.industry-item h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  color: var(--grey);
  transition: color var(--transition-fast);
}
.industry-item:hover h2 {
  color: var(--white);
}
.industry-item .arrow {
  font-size: 2rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: all var(--transition-fast);
}
.industry-item:hover .arrow {
  opacity: 1;
  transform: translateX(0);
}

/* --- Process --- */
.process-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 4rem;
}
.process-step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
  align-items: start;
  border-bottom: 1px solid var(--grey-light);
  padding-bottom: 3rem;
}
.step-num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--grey);
}
.step-content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.step-content p {
  font-size: 1.1rem;
  color: var(--grey-dark);
  max-width: 600px;
}

/* --- Reports --- */
.report-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}
.report-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.report-card h4 {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--grey);
  margin-bottom: 2rem;
}
.chart-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
  position: relative;
}
.chart-bar .fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--white);
}
.report-card .metric {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
}

/* --- Calculator --- */
.calculator-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background: var(--grey-light);
  padding: 5rem;
}
.input-group {
  margin-bottom: 2rem;
}
.input-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}
input[type="range"] {
  width: 100%;
  appearance: none;
  background: var(--grey);
  height: 2px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--black);
  border-radius: 50%;
}
.val-display {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}
.calc-result {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--grey);
}
.calc-result h4 {
  font-family: var(--font-body);
  text-transform: none;
  color: var(--grey-dark);
}
.result-number {
  font-size: 4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 1rem 0;
}

/* --- Testimonials --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.testimonial-card {
  padding: 4rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.testimonial-card .quote {
  font-size: 1.5rem;
  line-height: 1.4;
  margin-bottom: 3rem;
  font-style: italic;
}
.author strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  text-transform: uppercase;
}
.author span {
  color: var(--grey);
  font-size: 0.9rem;
}

/* --- Live Chat Widget --- */
.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-fast);
}
.chat-widget:hover {
  transform: scale(1.1);
}
.chat-widget svg {
  width: 24px;
  height: 24px;
}

/* --- Footer (Universal) --- */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 6rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-top {
  margin-bottom: 4rem;
}
.footer-logo img {
  height: 60px;
  filter: invert(1);
  margin-bottom: 1.5rem;
}
.footer-brand p {
  color: var(--grey);
  max-width: 300px;
}
.footer-links h4,
.footer-contact h4 {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.footer-links ul li,
.footer-contact ul li {
  margin-bottom: 1rem;
  color: var(--grey);
  font-size: 0.9rem;
}
.footer-links ul li a:hover,
.footer-contact ul li a:hover {
  color: var(--white);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: var(--grey);
}
.footer-legal-links {
  display: flex;
  gap: 2rem;
}
.footer-legal-links a:hover {
  color: var(--white);
}

/* --- Legal Pages Content --- */
.page-header {
  padding: 200px 0 100px;
  background: var(--black);
  color: var(--white);
  text-align: center;
}
.page-header h1 {
  font-size: 4rem;
}
.breadcrumbs {
  margin-top: 1rem;
  color: var(--grey);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}
.content-wrapper h2 {
  font-size: 2rem;
  margin: 3rem 0 1.5rem;
}
.content-wrapper p,
.content-wrapper ul {
  font-size: 1.1rem;
  color: var(--grey-dark);
  margin-bottom: 1.5rem;
}
.content-wrapper ul {
  padding-left: 2rem;
  list-style: disc;
}

/* --- Contact Page Specific --- */
.contact-page-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  margin-top: 4rem;
}
.contact-info-block {
  background: var(--black);
  color: var(--white);
  padding: 4rem;
}
.contact-info-block h3 {
  margin-bottom: 1rem;
  font-size: 2rem;
}
.contact-info-block p {
  color: var(--grey);
  margin-bottom: 3rem;
}
.contact-info-item {
  margin-bottom: 2rem;
}
.contact-info-item h4 {
  font-size: 1rem;
  color: var(--grey);
  margin-bottom: 0.5rem;
}
.contact-info-item p {
  color: var(--white);
  margin-bottom: 0;
  font-size: 1.2rem;
}
.contact-form-block {
  padding: 2rem 0;
}
.form-group {
  margin-bottom: 2rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--grey-light);
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border var(--transition-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--black);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* --- Animations & Utilities --- */
.split-text {
  overflow: hidden;
}
.split-text .word {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.split-text.in-view .word {
  transform: translateY(0);
}

.reveal-fade {
  opacity: 0;
  transition: opacity 1s ease;
}
.reveal-fade.in-view {
  opacity: 1;
}

.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1s ease,
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* --- Media Queries --- */
@media (max-width: 1200px) {
  .grid-4-col {
    grid-template-columns: 1fr 1fr;
  }
  .calculator-wrapper {
    padding: 3rem;
  }
}
@media (max-width: 992px) {
  .grid-2-col {
    grid-template-columns: 1fr;
  }
  .header .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--black);
    flex-direction: column;
    padding: 2rem;
    text-align: center;
  }
  .header .nav-menu.active {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .header-actions .btn {
    display: none;
  }
  .calculator-wrapper,
  .contact-page-wrapper {
    grid-template-columns: 1fr;
  }
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  :root {
    --padding-section: 80px;
  }
  .hero-title {
    font-size: 3rem;
  }
  .stat-item h3 {
    font-size: 3rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .process-step {
    grid-template-columns: 1fr;
  }
  .cursor-dot,
  .cursor-outline {
    display: none;
  }
  * {
    cursor: auto;
  }
}
