@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;700&family=Playfair+Display:ital,wght@0,400;0,600;0,800;1,400&display=swap');

:root {
   --bg-dark: #0a0a0c;
   --bg-card: #141417;
   --accent-gold: #e5b05c;
   --accent-glow: rgba(229, 176, 92, 0.15);
   --text-main: #f5f5f5;
   --text-muted: #a0a0a5;
   --nav-height: 90px;
   --border-line: rgba(255, 255, 255, 0.06);
   --transition-smooth: cubic-bezier(0.65, 0, 0.05, 1);
}

* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

html {
   scroll-behavior: smooth;
}

body {
   font-family: 'Manrope', sans-serif;
   background-color: var(--bg-dark);
   color: var(--text-main);
   overflow-x: hidden;
   cursor: none;
}

h1,
h2,
h3,
h4,
.editorial-font {
   font-family: 'Playfair Display', serif;
}

a {
   text-decoration: none;
   color: inherit;
}

ul {
   list-style: none;
}

/* Custom Cursor */
.cursor-dot {
   position: fixed;
   top: 0;
   left: 0;
   width: 8px;
   height: 8px;
   background: var(--accent-gold);
   border-radius: 50%;
   transform: translate(-50%, -50%);
   z-index: 10000;
   pointer-events: none;
}

.cursor-outline {
   position: fixed;
   top: 0;
   left: 0;
   width: 40px;
   height: 40px;
   border: 1px solid rgba(229, 176, 92, 0.5);
   border-radius: 50%;
   transform: translate(-50%, -50%);
   z-index: 9999;
   pointer-events: none;
   transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-hover .cursor-outline {
   width: 70px;
   height: 70px;
   background: var(--accent-glow);
   border-color: transparent;
}

/* Background Glow */
.ambient-glow {
   position: fixed;
   top: -20%;
   left: -10%;
   width: 50vw;
   height: 50vw;
   background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
   z-index: -1;
   pointer-events: none;
   filter: blur(100px);
}

/* ================= PROPER NAVBAR ================= */
.site-header {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: var(--nav-height);
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 0 5%;
   z-index: 2000;
   background: rgba(10, 10, 12, 0.85);
   backdrop-filter: blur(20px);
   -webkit-backdrop-filter: blur(20px);
   border-bottom: 1px solid var(--border-line);
   transition: transform 0.4s var(--transition-smooth), height 0.4s;
}

.site-header.scrolled {
   height: 75px;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.site-header.hidden {
   transform: translateY(-100%);
}

.brand-logo img {
   height: 50px;
   filter: invert(1);
}

/* Desktop Nav */
.nav-desktop {
   display: flex;
   gap: 40px;
   align-items: center;
}

.nav-desktop a {
   font-size: 14px;
   font-weight: 500;
   letter-spacing: 1px;
   text-transform: uppercase;
   position: relative;
   padding: 10px 0;
   color: var(--text-main);
   transition: 0.3s;
}

.nav-desktop a::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   width: 0%;
   height: 1px;
   background: var(--accent-gold);
   transition: width 0.4s var(--transition-smooth);
}

.nav-desktop a:hover {
   color: var(--accent-gold);
}

.nav-desktop a:hover::after {
   width: 100%;
}

.btn-primary {
   padding: 14px 32px;
   background: transparent;
   border: 1px solid var(--accent-gold);
   color: var(--accent-gold);
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 1px;
   font-size: 12px;
   border-radius: 2px;
   position: relative;
   overflow: hidden;
   transition: 0.4s;
   cursor: pointer;
}

/* Proper Mobile Menu (Off-Canvas) */
.nav-toggle {
   display: none;
   flex-direction: column;
   justify-content: space-between;
   width: 35px;
   height: 22px;
   background: transparent;
   border: none;
   cursor: pointer;
   z-index: 2002;
}

.nav-toggle span {
   display: block;
   width: 100%;
   height: 2px;
   background: var(--text-main);
   transition: 0.4s var(--transition-smooth);
}

.nav-mobile-overlay {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100vh;
   background: rgba(0, 0, 0, 0.7);
   backdrop-filter: blur(5px);
   z-index: 2000;
   opacity: 0;
   visibility: hidden;
   transition: 0.4s ease;
}

.nav-mobile-panel {
   position: fixed;
   top: 0;
   right: -400px;
   width: 100%;
   max-width: 400px;
   height: 100vh;
   background: var(--bg-card);
   border-left: 1px solid var(--border-line);
   z-index: 2001;
   padding: 120px 50px 50px;
   display: flex;
   flex-direction: column;
   gap: 30px;
   transition: right 0.6s var(--transition-smooth);
   box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
}

/* Active Mobile States */
.mobile-menu-active .nav-mobile-overlay {
   opacity: 1;
   visibility: visible;
}

.mobile-menu-active .nav-mobile-panel {
   right: 0;
}

.mobile-menu-active .nav-toggle span:nth-child(1) {
   transform: translateY(10px) rotate(45deg);
   background: var(--accent-gold);
}

.mobile-menu-active .nav-toggle span:nth-child(2) {
   opacity: 0;
}

.mobile-menu-active .nav-toggle span:nth-child(3) {
   transform: translateY(-10px) rotate(-45deg);
   background: var(--accent-gold);
}

.nav-mobile-panel a {
   font-family: 'Playfair Display', serif;
   font-size: 2.5rem;
   color: var(--text-main);
   border-bottom: 1px solid var(--border-line);
   padding-bottom: 15px;
   opacity: 0;
   transform: translateX(20px);
   transition: 0.4s;
}

.mobile-menu-active .nav-mobile-panel a {
   opacity: 1;
   transform: translateX(0);
}

.mobile-menu-active .nav-mobile-panel a:nth-child(1) {
   transition-delay: 0.2s;
}

.mobile-menu-active .nav-mobile-panel a:nth-child(2) {
   transition-delay: 0.3s;
}

.mobile-menu-active .nav-mobile-panel a:nth-child(3) {
   transition-delay: 0.4s;
}

.mobile-menu-active .nav-mobile-panel a:nth-child(4) {
   transition-delay: 0.5s;
}

@media (max-width: 1024px) {
   .nav-desktop {
      display: none;
   }

   .nav-toggle {
      display: flex;
   }
}

/* ================= SECTIONS ================= */
section {
   padding: 140px 5%;
   position: relative;
}

.section-title {
   font-size: clamp(3rem, 5vw, 5rem);
   line-height: 1.1;
   margin-bottom: 25px;
   color: var(--text-main);
}

.text-accent {
   color: var(--accent-gold);
   font-style: italic;
}

.reveal {
   opacity: 0;
   transform: translateY(40px);
   transition: 1s var(--transition-smooth);
}

.reveal.active {
   opacity: 1;
   transform: translateY(0);
}

/* Hero */
.hero {
   height: 100vh;
   display: flex;
   align-items: center;
   justify-content: center;
   text-align: center;
   overflow: hidden;
   padding-top: var(--nav-height);
}

.hero-content {
   max-width: 1100px;
   z-index: 2;
   position: relative;
}

.hero h1 {
   font-size: clamp(3.5rem, 7vw, 7.5rem);
   line-height: 1;
   margin-bottom: 30px;
   letter-spacing: -1px;
}

.hero p {
   font-size: 1.25rem;
   color: var(--text-muted);
   max-width: 600px;
   margin: 0 auto 50px;
   font-weight: 300;
}

/* Marquee */
.marquee-wrap {
   border-top: 1px solid var(--border-line);
   border-bottom: 1px solid var(--border-line);
   padding: 30px 0;
   overflow: hidden;
   background: rgba(20, 20, 23, 0.5);
}

.marquee {
   display: flex;
   white-space: nowrap;
   animation: scrollX 25s linear infinite;
}

.marquee span {
   font-size: 1.5rem;
   font-family: 'Playfair Display';
   padding: 0 40px;
   color: var(--text-muted);
   text-transform: uppercase;
   letter-spacing: 2px;
}

@keyframes scrollX {
   from {
      transform: translateX(0);
   }

   to {
      transform: translateX(-50%);
   }
}

/* Services Layout */
.services-container {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
   gap: 30px;
   margin-top: 60px;
}

.service-card {
   background: var(--bg-card);
   border: 1px solid var(--border-line);
   padding: 50px 40px;
   border-radius: 4px;
   transition: 0.4s var(--transition-smooth);
   position: relative;
   overflow: hidden;
}

.service-card:hover {
   transform: translateY(-10px);
   border-color: var(--accent-gold);
   background: #1a1a1f;
}

.service-card h3 {
   font-size: 2rem;
   margin-bottom: 20px;
   color: var(--text-main);
}

.service-card p {
   color: var(--text-muted);
   line-height: 1.7;
   font-size: 1.05rem;
}

.service-icon {
   font-size: 3rem;
   color: var(--accent-gold);
   margin-bottom: 30px;
}

/* Calculator UI */
.calculator-box {
   background: var(--bg-card);
   border: 1px solid var(--border-line);
   padding: 60px;
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 80px;
   align-items: center;
   border-radius: 4px;
}

.slider-container {
   margin-bottom: 35px;
}

.slider-container label {
   display: flex;
   justify-content: space-between;
   font-size: 1.1rem;
   margin-bottom: 15px;
   color: var(--text-main);
}

.slider-container input[type="range"] {
   width: 100%;
   -webkit-appearance: none;
   height: 2px;
   background: var(--border-line);
   outline: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
   -webkit-appearance: none;
   width: 20px;
   height: 20px;
   background: var(--accent-gold);
   border-radius: 50%;
   cursor: pointer;
}

.result-panel {
   text-align: center;
   padding: 50px;
   border: 1px dashed var(--accent-gold);
   background: rgba(229, 176, 92, 0.02);
}

.result-panel h4 {
   font-family: 'Manrope';
   font-size: 1rem;
   text-transform: uppercase;
   letter-spacing: 2px;
   color: var(--text-muted);
   margin-bottom: 15px;
}

.result-panel .amount {
   font-family: 'Playfair Display';
   font-size: 5rem;
   color: var(--accent-gold);
   line-height: 1;
}

/* Dashboard Analytics */
.dashboard-grid {
   display: grid;
   grid-template-columns: 1fr 2fr;
   gap: 40px;
   margin-top: 60px;
}

.stat-block {
   background: var(--bg-card);
   padding: 40px;
   border: 1px solid var(--border-line);
   text-align: center;
   border-radius: 4px;
}

.stat-block .number {
   font-size: 4rem;
   font-family: 'Playfair Display';
   color: var(--text-main);
}

.stat-block .label {
   color: var(--accent-gold);
   font-size: 0.9rem;
   text-transform: uppercase;
   letter-spacing: 1px;
   margin-top: 10px;
}

.chart-container {
   background: var(--bg-card);
   border: 1px solid var(--border-line);
   padding: 40px;
   display: flex;
   align-items: flex-end;
   gap: 2%;
   height: 100%;
   min-height: 300px;
   border-radius: 4px;
}

.chart-bar {
   flex: 1;
   background: var(--accent-gold);
   opacity: 0.8;
   transform-origin: bottom;
   transform: scaleY(0);
   transition: transform 1.5s var(--transition-smooth);
}

/* Content Forms & Legal */
.page-hero {
   padding: 220px 5% 100px;
   text-align: center;
   border-bottom: 1px solid var(--border-line);
   background: var(--bg-card);
}

.contact-wrapper {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 80px;
   max-width: 1200px;
   margin: 0 auto;
}

.form-control {
   width: 100%;
   background: transparent;
   border: none;
   border-bottom: 1px solid var(--border-line);
   padding: 20px 0;
   color: var(--text-main);
   font-size: 1.1rem;
   margin-bottom: 30px;
   font-family: 'Manrope';
   outline: none;
   transition: 0.3s;
}

.form-control:focus {
   border-bottom-color: var(--accent-gold);
}

select.form-control {
   color: var(--text-muted);
   background: var(--bg-dark);
}

.hq-info h3 {
   font-size: 2.5rem;
   color: var(--accent-gold);
   margin-bottom: 40px;
}

.hq-info div {
   margin-bottom: 30px;
}

.hq-info h5 {
   font-size: 1rem;
   color: var(--text-muted);
   text-transform: uppercase;
   letter-spacing: 1px;
   margin-bottom: 5px;
}

.hq-info p {
   font-size: 1.2rem;
   color: var(--text-main);
}

.legal-body {
   max-width: 900px;
   margin: 0 auto;
   line-height: 1.8;
   color: var(--text-muted);
   font-size: 1.1rem;
}

.legal-body h2 {
   color: var(--text-main);
   margin: 50px 0 20px;
   font-size: 2rem;
   font-family: 'Playfair Display';
}

/* Live Chat Widget */
.chat-widget {
   position: fixed;
   bottom: 40px;
   right: 40px;
   z-index: 1999;
}

.chat-button {
   width: 60px;
   height: 60px;
   border-radius: 50%;
   background: var(--accent-gold);
   border: none;
   cursor: pointer;
   box-shadow: 0 10px 20px rgba(229, 176, 92, 0.3);
   display: flex;
   align-items: center;
   justify-content: center;
   transition: 0.3s;
}

.chat-button:hover {
   transform: scale(1.05);
}

.chat-window {
   position: absolute;
   bottom: 80px;
   right: 0;
   width: 340px;
   background: var(--bg-card);
   border: 1px solid var(--border-line);
   padding: 30px;
   border-radius: 4px;
   display: none;
   box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.chat-window.open {
   display: block;
   animation: fadeInUp 0.4s var(--transition-smooth);
}

/* ================= FOOTER ================= */
.site-footer {
   background: var(--bg-card);
   border-top: 1px solid var(--border-line);
   padding: 100px 5% 40px;
   margin-top: 100px;
}

.footer-container {
   display: grid;
   grid-template-columns: 2fr 1fr 1fr 1fr;
   gap: 60px;
   margin-bottom: 80px;
   max-width: 1400px;
   margin-inline: auto;
}

.footer-brand img {
   height: 50px;
   margin-bottom: 25px;
   filter: invert(1);
}

.footer-brand p {
   color: var(--text-muted);
   max-width: 350px;
   font-size: 1.05rem;
   line-height: 1.6;
}

.footer-nav h4 {
   font-family: 'Playfair Display';
   font-size: 1.3rem;
   margin-bottom: 25px;
   color: var(--text-main);
}

.footer-nav ul li {
   margin-bottom: 15px;
}

.footer-nav ul li a {
   color: var(--text-muted);
   transition: 0.3s;
   font-size: 1rem;
}

.footer-nav ul li a:hover {
   color: var(--accent-gold);
   margin-left: 5px;
}

.footer-bottom {
   border-top: 1px solid var(--border-line);
   padding-top: 30px;
   display: flex;
   justify-content: space-between;
   color: var(--text-muted);
   font-size: 0.9rem;
   max-width: 1400px;
   margin-inline: auto;
}

@media (max-width: 1024px) {
   .calculator-box {
      grid-template-columns: 1fr;
      gap: 40px;
   }

   .dashboard-grid {
      grid-template-columns: 1fr;
   }

   .contact-wrapper {
      grid-template-columns: 1fr;
   }
}

@media (max-width: 768px) {
   .footer-container {
      grid-template-columns: 1fr 1fr;
   }

   .section-title {
      font-size: 2.5rem;
   }

   section {
      padding: 100px 5%;
   }
}

@media (max-width: 480px) {
   .footer-container {
      grid-template-columns: 1fr;
   }

   .footer-bottom {
      flex-direction: column;
      gap: 15px;
      text-align: center;
   }
}

@keyframes fadeInUp {
   from {
      opacity: 0;
      transform: translateY(20px);
   }

   to {
      opacity: 1;
      transform: translateY(0);
   }
}