/* =====================================================
   CHAINFUSION GLOBAL FOUNDATION (CLEAN + RESPONSIVE)
===================================================== */

/* RESET */
*,
*::before,
*::after {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;
}

html {
   scroll-behavior: smooth;
}

body {
   font-family: 'Poppins', system-ui, -apple-system, sans-serif;
   background: #0f0f0f;
   color: #ffffff;
   line-height: 1.6;
   text-rendering: optimizeLegibility;
}

html, body {
   width: 100%;
   overflow-x: hidden;
}


/* ROOT COLORS */
:root {
   --cf-bg-main: #0f0f0f;
   --cf-bg-secondary: #141414;
   --cf-gold: #c9a227;
   --cf-gold-light: #e2b84b;
   --cf-text: #ffffff;
   --cf-text-muted: #bfbfbf;
   --cf-border: rgba(255, 255, 255, 0.08);
}
/* Z-INDEX LAYERING */
:root {
   --z-base: 1;
   --z-overlay: 10;
   --z-navbar: 100;
   --z-dropdown: 200;
   --z-floating: 500;
   --z-modal: 1000;
   --z-preloader: 9999;
}

/* GLOBAL ELEMENTS */
img {
   max-width: 100%;
   height: auto;
   display: block;
}

a {
   text-decoration: none;
   color: inherit;
}

ul {
   list-style: none;
}

/* CONTAINER */
.container {
   width: 100%;
   max-width: 1200px;
   margin: 0 auto;
   padding: 0 20px;
}

/* TYPOGRAPHY */
h1 {
   font-size: clamp(28px, 5vw, 52px);
   line-height: 1.2;
}

h2 {
   font-size: clamp(22px, 3vw, 42px);
   line-height: 1.25;
}

p {
   font-size: clamp(14px, 1.4vw, 18px);
   line-height: 1.7;
}

/* BUTTON SYSTEM */
.btn-primary,
.btn-outline {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   padding: 14px 30px;
   border-radius: 6px;
   font-weight: 600;
   transition: all .35s ease;
   white-space: nowrap;
}

/* Primary */
.btn-primary {
   background: linear-gradient(90deg, var(--cf-gold), var(--cf-gold-light));
   color: #000;
}

.btn-primary:hover {
   transform: translateY(-3px);
   box-shadow: 0 8px 20px rgba(201, 162, 39, 0.35);
}

/* Outline */
.btn-outline {
   border: 1px solid var(--cf-gold);
   color: var(--cf-gold-light);
}

.btn-outline:hover {
   background: linear-gradient(90deg, var(--cf-gold), var(--cf-gold-light));
   color: #000;
}

/* Button Group */
.btn-group {
   display: flex;
   gap: 20px;
   flex-wrap: wrap;
}

/* GLASS EFFECT */
.glass {
   background: rgba(255, 255, 255, 0.05);
   backdrop-filter: blur(10px);
   border: 1px solid var(--cf-border);
   box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
   overflow: hidden;
}

/* ANIMATIONS */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale {
   opacity: 0;
   transition: .8s;
   will-change: transform, opacity;
}

.reveal-up {
   transform: translateY(60px);
}

.reveal-left {
   transform: translateX(-60px);
}

.reveal-right {
   transform: translateX(60px);
}

.reveal-scale {
   transform: scale(.9);
}

.reveal-active {
   opacity: 1;
   transform: none;
}

/* stagger */
.reveal-delay-1 {
   transition-delay: 0.15s;
}

.reveal-delay-2 {
   transition-delay: 0.3s;
}

.reveal-delay-3 {
   transition-delay: 0.45s;
}

.reveal-delay-4 {
   transition-delay: 0.6s;
}

/* =====================================================
   MOBILE OPTIMIZATION 
===================================================== */

@media (max-width: 600px) {

   .container {
      padding: 0 16px;
   }

   /* Buttons stack */
   .btn-group {
      flex-direction: column;
      align-items: stretch;
      gap: 12px;
   }

   .btn-primary,
   .btn-outline {
      width: 100%;
      padding: 14px;
   }

   /* Disable heavy animations on mobile */
   .reveal-up,
   .reveal-left,
   .reveal-right,
   .reveal-scale {
      transform: none;
      opacity: 1;
      transition: none;
   }
}

/* =====================================================
   PRELOADER 
===================================================== */

#preloader {
   position: fixed;
   inset: 0;
   width: 100%;
   height: 100vh;
   background: #0f0f0f;
   display: flex;
   justify-content: center;
   align-items: center;
   z-index: var(--z-preloader);
   perspective: 1000px;
   overflow: hidden;
   transition: opacity 0.4s ease, visibility 0.4s ease;
}

#preloader.hide {
   opacity: 0;
   visibility: hidden;
   pointer-events: none;
}

/* cube */
.loader-cube {
   width: 90px;
   height: 90px;
   position: relative;
   transform-style: preserve-3d;
   animation: cubeRotate 4s linear infinite;
   will-change: transform;
}

/* faces */
.loader-cube .face {
   position: absolute;
   width: 100%;
   height: 100%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 18px;
   font-weight: 600;
   color: #0f0f0f;
   background: linear-gradient(135deg, #c9a227, #e2b84b);
   border: 1px solid rgba(255, 255, 255, 0.15);
   box-shadow:
      0 0 15px rgba(201, 162, 39, 0.5),
      inset 0 0 10px rgba(255, 255, 255, 0.2);
   backface-visibility: hidden;
}

/* cube positions */
.front {
   transform: rotateY(0deg) translateZ(45px);
}

.back {
   transform: rotateY(180deg) translateZ(45px);
}

.left {
   transform: rotateY(-90deg) translateZ(45px);
}

.right {
   transform: rotateY(90deg) translateZ(45px);
}

.top {
   transform: rotateX(90deg) translateZ(45px);
}

.bottom {
   transform: rotateX(-90deg) translateZ(45px);
}

/* animation */
@keyframes cubeRotate {
   from {
      transform: rotateX(0deg) rotateY(0deg);
   }

   to {
      transform: rotateX(360deg) rotateY(360deg);
   }
}

/* =====================================================
   MOBILE OPTIMIZATION 
===================================================== */

@media (max-width: 600px) {

   #preloader {
      perspective: 800px;
   }

   .loader-cube {
      width: 70px;
      height: 70px;
      animation-duration: 6s;
      /* smoother mobile */
   }

   /* depth auto adjust via % */
   .front {
      transform: rotateY(0deg) translateZ(35px);
   }

   .back {
      transform: rotateY(180deg) translateZ(35px);
   }

   .left {
      transform: rotateY(-90deg) translateZ(35px);
   }

   .right {
      transform: rotateY(90deg) translateZ(35px);
   }

   .top {
      transform: rotateX(90deg) translateZ(35px);
   }

   .bottom {
      transform: rotateX(-90deg) translateZ(35px);
   }

   .loader-cube .face {
      font-size: 14px;
   }
}

/* =====================================================
   NAVBAR (CLEAN + RESPONSIVE FINAL)
===================================================== */

.navbar {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   z-index: var(--z-navbar);
   padding: 16px 0;
   transition: all 0.35s ease;
   background: transparent;
}

.navbar.scrolled {
   background: rgba(15, 15, 15, 0.95);
   backdrop-filter: blur(10px);
   box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* container */
.nav-container {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 20px;
}

/* logo */
.logo img {
   height: 48px;
   display: block;
}

/* menu wrapper */
.nav-menu {
   display: flex;
   align-items: center;
}

/* menu list */
.nav-menu ul {
   display: flex;
   gap: 30px;
}

/* links */
.nav-menu a {
   font-weight: 500;
   position: relative;
   transition: 0.3s;
}

/* active */
.nav-menu a.active {
   color: var(--cf-gold-light);
}

/* underline */
.nav-menu a::after {
   content: "";
   position: absolute;
   left: 0;
   bottom: -4px;
   width: 0;
   height: 2px;
   background: var(--cf-gold-light);
   transition: 0.3s;
}

.nav-menu a:hover::after {
   width: 100%;
}

/* CTA */
.nav-cta {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   padding: 10px 26px;
   font-size: 13px;
   font-weight: 600;
   border-radius: 40px;
   color: #000;
   background: linear-gradient(90deg, var(--cf-gold), var(--cf-gold-light));
   animation: ctaPulse 2.4s infinite;
   white-space: nowrap;
}

/* glow animation */
@keyframes ctaPulse {
   0% {
      box-shadow: 0 0 0 rgba(201, 162, 39, 0.4);
   }

   50% {
      box-shadow:
         0 0 18px rgba(201, 162, 39, 0.5),
         0 0 40px rgba(201, 162, 39, 0.25);
   }

   100% {
      box-shadow: 0 0 0 rgba(201, 162, 39, 0.4);
   }
}

/* toggle */
.nav-toggle {
   display: none;
   flex-direction: column;
   gap: 6px;
   background: none;
   border: none;
   cursor: pointer;
   z-index: calc(var(--z-dropdown) + 10);
}

.nav-toggle span {
   width: 26px;
   height: 2px;
   background: #fff;
   transition: 0.3s;
}

/* toggle active state */


@media (max-width: 992px) {

   .nav-container {
      padding: 0 16px;
   }

   .nav-toggle {
      display: flex;
      position: relative;
      z-index: calc(var(--z-dropdown) + 10);
   }

   .nav-menu {
      position: fixed;
      top: 0;
      left: -100%;
      width: 70%;
      max-width: 280px;              
      height: 100vh;

      background: linear-gradient(
      135deg,
      #0f0f0f 0%,
      #141414 50%,
      rgba(58, 45, 2, 0.67) 100%
   );
   border-right: 1px solid rgba(226, 184, 75, 0.25);
   box-shadow: 10px 0 40px rgba(201, 162, 39, 0.15);
      padding: 100px 20px;

      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;

      transition: left 0.35s ease;
      z-index: var(--z-dropdown);

      overflow-y: auto;        
   }
.nav-menu::before {
   content: "";
   position: absolute;
   inset: 0;

   background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
   background-size: 5px 5px;

   opacity: 0.6;
   pointer-events: none;
}
   .nav-menu.active {
      left: 0;
   }

   .nav-menu ul {
      display: flex;
      flex-direction: column;
      gap: 24px;
      width: 100%;
      text-align: center;
   }

   .nav-menu li {
      width: 100%;
   }

   .nav-menu a {
      display: block;
      width: 100%;
      padding: 12px 0;
      font-size: 20px;           
   }


   .nav-cta {
      margin-top: 20px;
      width: 100%;
      justify-content: center;
   }

   /* underline effect */
   .nav-menu a::after {
      content: "";
      position: absolute;
      left: 50%;
      bottom: -6px;
      transform: translateX(-50%);
      width: 0;
      height: 2px;
      background: #e2b84b;
      box-shadow: 0 0 8px rgba(226, 184, 75, 0.5);
      transition: width 0.3s ease;
   }

   .nav-menu a:hover::after,
   .nav-menu a.active::after {
      width: 20%;
   }

   /* hide desktop button wrapper */
   .nav-btn {
      display: none;
   }
}

/* =====================================================
   HERO SECTION (FINAL CLEAN VERSION)
===================================================== */


.home-hero {
   position: relative;
   min-height: 100vh;
   display: flex;
   align-items: center;
   overflow: hidden;
   padding-top: 100px;
   /* navbar fix */
}

/* overlay */
.home-hero::before {
   content: "";
   position: absolute;
   inset: 0;
   background: linear-gradient(rgba(10, 10, 15, 0.85), rgba(10, 10, 15, 0.9));
   z-index: var(--z-base);
}

/* grid layout */
.hero-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   align-items: center;
   gap: 40px;
   position: relative;
   isolation: isolate;
   z-index: calc(var(--z-overlay) + 1);
}

/* content */
.hero-content {
   max-width: 620px;
}

/* title */
.hero-title {
   font-size: clamp(32px, 5vw, 64px);
   font-weight: 700;
   line-height: 1.2;
   margin-bottom: 20px;
}

/* highlight */
.hero-highlight {
   background: linear-gradient(90deg, #c9a227, #e2b84b, #fff, #e2b84b, #c9a227);
   background-size: 300%;
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   animation: goldShift 5s linear infinite;
}

/* desc */
.hero-desc {
   font-size: clamp(14px, 1.2vw, 18px);
   color: #bfbfbf;
   margin-bottom: 28px;
   line-height: 1.7;
}

/* buttons */
.hero-buttons {
   display: flex;
   gap: 16px;
   flex-wrap: wrap;
}

/* visual */
.hero-visual {
   display: flex;
   justify-content: center;
}

.hero-visual img {
   width: 100%;
   max-width: 520px;
   transform: rotate(-6deg);
   filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.6));
   animation: mockupFloat 6s ease-in-out infinite;
}

/* particles */
#tsparticles {
   position: absolute;
   inset: 0;
   z-index: var(--z-overlay);
   pointer-events: none;
}

/* animation */
@keyframes mockupFloat {
   0% {
      transform: translateY(0) rotate(-6deg);
   }

   50% {
      transform: translateY(-18px) rotate(-6deg);
   }

   100% {
      transform: translateY(0) rotate(-6deg);
   }
}

@keyframes goldShift {
   0% {
      background-position: 0%;
   }

   100% {
      background-position: 300%;
   }
}

/* =====================================================
   MOBILE (≤600px PERFECT 360)
===================================================== */

@media (max-width: 600px) {

   .hero-grid {
      grid-template-columns: 1fr;
      text-align: center;
      gap: 30px;
   }

   .hero-content {
      margin: auto;
   }

   .hero-title {
      font-size: 30px;
   }

   .hero-desc {
      font-size: 14px;
   }

   .hero-buttons {
      flex-direction: column;
      align-items: stretch;
      gap: 12px;
   }

   .hero-buttons .btn-primary,
   .hero-buttons .btn-outline {
      width: 100%;
   }

   .hero-visual {
      margin-top: 30px;
   }

   .hero-visual img {
      transform: none;
      max-width: 100%;
   }
}

/* =====================================================
   WHO SECTION (CLEAN + RESPONSIVE FINAL)
===================================================== */

.who-section {
   padding: 100px 20px;
}

/* grid */
.who-grid {
   display: grid;
   grid-template-columns: minmax(300px, 420px) 1fr;
   gap: 60px;
   align-items: center;
}

/* ======================
   STATS
====================== */
.who-stats {
   position: relative;
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 16px;
   z-index: calc(var(--z-base) + 1);
}

/* card */
.who-card {
   text-align: center;
   padding: 20px 14px;
   border-radius: 14px;
   background: rgba(255, 255, 255, 0.05);
   backdrop-filter: blur(10px);
   border: 1px solid rgba(255, 255, 255, 0.08);
   transition: all .3s ease;
}

.who-card h3 {
   font-size: 24px;
   color: var(--cf-gold-light);
   margin-bottom: 4px;
}

.who-card p {
   font-size: 13px;
   color: #bfbfbf;
}

.who-card:hover {
   transform: translateY(-4px);
   border-color: var(--cf-gold);
   box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* ======================
   CONTENT
====================== */
.who-content h2 {
   font-size: clamp(28px, 3vw, 42px);
   margin-bottom: 14px;
}

.who-content span {
   background: linear-gradient(90deg, var(--cf-gold), var(--cf-gold-light));
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
}

.who-top {
   margin-bottom: 6px;
}

.who-text {
   font-size: 14px;
   line-height: 1.7;
   color: #bfbfbf;
   margin-bottom: 24px;
}

/* button */
.who-btn {
   display: inline-block;
   padding: 12px 24px;
   border: 1px solid var(--cf-gold);
   border-radius: 6px;
   color: var(--cf-gold-light);
   transition: .3s;
}

.who-btn:hover {
   background: linear-gradient(90deg, var(--cf-gold), var(--cf-gold-light));
   color: #000;
}

/* ======================
   ORBIT SYSTEM (DESKTOP ONLY)
====================== */
.orbit-system {
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   width: 300px;
   height: 300px;
   pointer-events: none;
    z-index: var(--z-base);
}

.orbit {
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   border: 1px dashed rgba(201, 162, 39, 0.15);
   border-radius: 50%;
   animation: orbitSpin linear infinite;
}

.orbit-1 {
   width: 120px;
   height: 120px;
   animation-duration: 10s;
}

.orbit-2 {
   width: 200px;
   height: 200px;
   animation-duration: 16s;
}

.orbit-3 {
   width: 280px;
   height: 280px;
   animation-duration: 22s;
}

.node {
   position: absolute;
   top: -6px;
   left: 50%;
   width: 8px;
   height: 8px;
   background: var(--cf-gold);
   border-radius: 50%;
   box-shadow: 0 0 10px rgba(201, 162, 39, 0.8);
}

@keyframes orbitSpin {
   from {
      transform: translate(-50%, -50%) rotate(0deg);
   }

   to {
      transform: translate(-50%, -50%) rotate(360deg);
   }
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 992px) {

   .who-grid {
      grid-template-columns: 1fr;
      gap: 40px;
      text-align: center;
   }

   .who-content {
      order: 1;
   }

   .who-stats {
      order: 2;
      justify-content: center;
      max-width: 400px;
      margin: auto;
   }
}

/* =====================================================
   MOBILE (360px PERFECT)
===================================================== */

@media (max-width: 600px) {

   /* stats layout */
   .who-stats {
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      position: relative;
   }

   /* small cards */
   .who-card {
      padding: 10px 6px;
   }

   .who-card h3 {
      font-size: 15px;
   }

   .who-card p {
      font-size: 10px;
      line-height: 1.2;
   }

   /* ===== ORBIT FIX ===== */
   .orbit-system {
      width: 180px;
      height: 180px;
      opacity: 0.5;
   }

   .orbit-1 {
      width: 70px;
      height: 70px;
   }

   .orbit-2 {
      width: 120px;
      height: 120px;
   }

   .orbit-3 {
      width: 170px;
      height: 170px;
   }

   /* reduce glow */
   .node {
      width: 5px;
      height: 5px;
      box-shadow: 0 0 6px rgba(201, 162, 39, 0.6);
   }
}

/* =====================================================
   STATEMENT SECTION (CLEAN + RESPONSIVE)
===================================================== */

.statement-section {
   padding: 90px 20px;
   text-align: center;
   position: relative;
   background: var(--cf-bg-secondary);
   overflow: hidden;
}

/* text */
.statement-text {
   font-size: clamp(30px, 4vw, 54px);
   line-height: 1.3;
   max-width: 900px;
   margin: auto;
   font-weight: 600;
   position: relative;
   z-index: calc(var(--z-base) + 1);
}

/* quotes */
.statement-text::before,
.statement-text::after {
   position: absolute;
   font-size: 80px;
   color: rgba(201, 162, 39, 0.2);
   font-weight: 600;
   pointer-events: none;
}

.statement-text::before {
   content: "“";
   left: -30px;
   top: -10px;
}

.statement-text::after {
   content: "”";
   right: -30px;
   bottom: -10px;
}

/* highlight */
.statement-text span {
   background: linear-gradient(90deg, var(--cf-gold), var(--cf-gold-light));
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
}

/* =====================================================
   SUPPORT SECTION
===================================================== */

.support-section {
   text-align: center;
   max-width: 800px;
   margin: auto;
   padding: 80px 20px;
}

.support-top {
   color: var(--cf-gold-light);
   font-size: 14px;
   margin-bottom: 6px;
}

.support-title {
   font-size: clamp(26px, 3vw, 42px);
   margin-bottom: 8px;
}

.support-title span {
   background: linear-gradient(90deg, var(--cf-gold), var(--cf-gold-light));
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
}

.support-text {
   color: #bfbfbf;
   font-size: 16px;
   line-height: 1.6;
}

/* =====================================================
   MOBILE (≤600px → 360 SAFE)
===================================================== */

@media (max-width: 600px) {

   .statement-section {
      padding: 70px 16px;
   }

   .statement-text {
      font-size: 26px;
   }

   /* FIX quotes overflow */
   .statement-text::before {
      left: -10px;
      font-size: 50px;
   }

   .statement-text::after {
      right: -10px;
      font-size: 50px;
   }

   .support-section {
      padding: 60px 16px;
   }

   .support-text {
      font-size: 14px;
   }
}

/* =====================================================
   EXPERTISE SECTION (FINAL CLEAN)
===================================================== */

.expertise-section {
   padding: 0 20px 80px;
   position: relative;
   overflow: hidden;
}

/* subtle glow */
.expertise-section::before {
   content: "";
   position: absolute;
   top: -200px;
   left: 50%;
   transform: translateX(-50%);
   width: 600px;
   height: 600px;
   background: radial-gradient(circle, rgba(201, 162, 39, 0.08), transparent 70%);
   pointer-events: none;
   z-index: var(--z-base);
}

/* grid */
.expertise-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 24px;
   position: relative;
   z-index: calc(var(--z-base) + 1);
}

/* card */
.expertise-card {
   padding: 26px 22px;
   border-radius: 14px;
   background: rgba(255, 255, 255, 0.04);
   border: 1px solid rgba(255, 255, 255, 0.08);
   backdrop-filter: blur(10px);
   text-align: center;
   transition: .3s ease;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: flex-start;
   height: 100%;
}

/* icon */
.expertise-card img {
   width: 36px;
   margin-bottom: 14px;
   filter: brightness(0) invert(1);
}

/* title */
.expertise-card h3 {
   font-size: 16px;
   font-weight: 500;
   margin-bottom: 6px;
}

/* description */
.expertise-card p {
   font-size: 13px;
   line-height: 1.6;
   color: #bfbfbf;
}

/* hover */
.expertise-card:hover h3 {
   color: var(--cf-text-muted);
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 992px) {
   .expertise-grid {
      grid-template-columns: repeat(2, 1fr);
   }
}

/* =====================================================
   MOBILE (360px PERFECT)
===================================================== */

@media (max-width: 600px) {

   .expertise-section {
      padding: 0 16px 70px;
   }

   /* glow reduce */
   .expertise-section::before {
      width: 300px;
      height: 300px;
      top: -100px;
      opacity: 0.5;
   }

   .expertise-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 14px;
   }

   .expertise-card {
      padding: 18px 12px;
   }

   .expertise-card img {
      width: 26px;
   }

   .expertise-card h3 {
      font-size: 13px;
   }

   .expertise-card p {
      font-size: 11px;
      line-height: 1.4;
   }
}

/* =====================================================
   SERVICES SECTION (FINAL CLEAN)
===================================================== */


.services-header {
   text-align: center;
   margin-bottom: 60px;
}

.services-header::after {
   content: "";
   width: 60px;
   height: 3px;
   background: #e2b84b;
   display: block;
   margin: 18px auto 0;
   border-radius: 2px;
}

.services-top {
   font-size: 13px;
   letter-spacing: 2px;
   color: #888;
   margin-bottom: 10px;
}

/* MAIN TITLE */
.services-title {
   font-size: clamp(32px, 4vw, 52px);
   font-weight: 700;
   color: #ffffff;
   line-height: 1.3;
}

/* GOLD HIGHLIGHT */
.services-title span {
   background: linear-gradient(90deg, var(--cf-gold), var(--cf-gold-light));
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
}

.services-section {
   padding: 80px 0;
   position: relative;
   overflow: hidden;
}

/* overlay gradient */
.services-section::before {
   content: "";
   position: absolute;
   inset: 0;
   background: linear-gradient(90deg,
         rgba(0, 0, 0, .65),
         rgba(0, 0, 0, .35),
         rgba(0, 0, 0, .45));
   z-index: 1;
}

/* layout */
.services-layout {
   position: relative;
   z-index: calc(var(--z-base) + 1);
   display: grid;
   grid-template-columns: 340px 1fr;
   gap: 50px;
   align-items: flex-start;
}

/* ================= LEFT ================= */

.services-left {
   position: sticky;
   top: 110px;
   padding: 22px;
   border-radius: 12px;
   border: 1px solid rgba(255, 255, 255, 0.05);
}

/* category */
.service-category {
   margin-bottom: 16px;
}

.category-title {
   font-size: 16px;
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 12px 14px;
   cursor: pointer;
   transition: .3s;
}

.category-title.active {
   color: var(--cf-gold-light);
}

.category-title.active::before {
   content: "";
   position: absolute;
   left: 0;
   top: 0;
   width: 3px;
   height: 100%;
   background: var(--cf-gold);
}

.category-arrow {
   font-size: 12px;
   opacity: .6;
}

.category-title.active .category-arrow {
   transform: rotate(180deg);
}

/* list */
.service-list {
   max-height: 0;
   overflow: hidden;
   transition: .3s;
   padding-left: 10px;
}

.service-list.open {
   max-height: 400px;
}

.service-list li {
   padding: 6px 0;
   font-size: 13px;
   color: #bfbfbf;
   cursor: pointer;
}

.service-list li:hover {
   color: var(--cf-gold-light);
   padding-left: 4px;
}

/* ================= RIGHT ================= */

.services-right {
   position: relative;
   border-radius: 14px;
   overflow: hidden;
   min-height: 420px;
}

/* image */
.service-bg {
   width: 100%;
   height: 100%;
   object-fit: cover;
   filter: brightness(.75);
   animation: floatDevice 6s ease-in-out infinite;
}

@keyframes floatDevice {
   0% {
      transform: translateY(0);
   }

   50% {
      transform: translateY(-10px);
   }

   100% {
      transform: translateY(0);
   }
}

/* overlay */
.service-overlay {
   position: absolute;
   bottom: 40px;
   left: 20px;
   right: 20px;
   max-width: 420px;
   padding: 18px;
   background: rgba(0, 0, 0, .5);
   backdrop-filter: blur(6px);
   border-radius: 10px;
}

/* text */
.service-overlay h3 {
   font-size: 22px;
   margin-bottom: 10px;
}

.service-overlay p {
   font-size: 13px;
   margin-bottom: 20px;
   color: #d0d0d0;
}

.service-btn {
   font-size: 12px;
   padding: 10px 22px;
   border: 1px solid var(--cf-gold);
   border-radius: 6px;
   color: var(--cf-gold-light);
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 992px) {

   .services-layout {
      grid-template-columns: 1fr;
      gap: 40px;
   }

   .services-left {
      position: relative;
      top: auto;
   }
}

/* =====================================================
   MOBILE (360px PERFECT)
===================================================== */

@media (max-width: 600px) {

   .services-section {
      padding: 70px 16px;
   }

   .services-layout {
      gap: 30px;
   }

   /* LEFT panel full width */
   .services-left {
      padding: 16px;
   }

   /* RIGHT image smaller */
   .services-right {
      min-height: 280px;
   }

   /* overlay full width */
   .service-overlay {
      position: relative;
      bottom: auto;
      left: auto;
      right: auto;
      margin-top: -60px;
      width: 100%;
      max-width: 100%;
   }

   .service-overlay h3 {
      font-size: 18px;
   }

   .service-overlay p {
      font-size: 12px;
   }

   /* disable heavy animation */
   .service-bg {
      animation: none;
   }
}

/* =====================================================
   WHY SECTION 
===================================================== */

.why-section {
   padding: 100px 20px;
}

/* header */
.why-header {
   text-align: center;
   margin-bottom: 60px;
}

.why-header h2 {
   font-size: clamp(28px, 3vw, 42px);
}

.why-header span {
   background: linear-gradient(90deg, var(--cf-gold), var(--cf-gold-light));
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
}

.why-line {
   width: 70px;
   height: 2px;
   background: var(--cf-gold-light);
   margin: 18px auto 0;
}

/* grid */
.why-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 50px;
   align-items: center;
}

/* ================= LEFT ================= */

.why-left {
   display: flex;
   justify-content: center;
}

.why-wheel {
   width: 100%;
   max-width: 420px;
   aspect-ratio: 1/1;
   background: url("../assets/img/project-data.png") center/contain no-repeat;
   transition: .4s ease;
   filter: drop-shadow(0 25px 50px rgba(0, 0, 0, .7));
}

/* hover */
.why-wheel:hover {
   background: url("../assets/img/project-data-hover.png") center/contain no-repeat;
   transform: scale(1.04) rotate(3deg);
}

/* ================= RIGHT ================= */

.why-right {
   display: flex;
   flex-direction: column;
   gap: 30px;
}

.why-item h3 {
   font-size: 17px;
   margin-bottom: 6px;
   position: relative;
}

.why-item h3::after {
   content: "";
   position: absolute;
   left: 0;
   bottom: -4px;
   width: 0;
   height: 2px;
   background: var(--cf-gold-light);
   transition: .3s;
}

.why-item:hover h3::after {
   width: 50px;
}

/* desc */
.why-desc {
   display: flex;
   gap: 10px;
   align-items: flex-start;
}

/* icon */
.why-icon {
   width: 30px;
   margin-top: 4px;
   transition: .3s;
   filter: brightness(0) saturate(100%) invert(76%) sepia(43%) saturate(548%) hue-rotate(7deg) brightness(94%) contrast(88%);
}


.why-item:hover .why-icon {
   transform: translateX(4px) scale(1.05);
}

/* text */
.why-desc p {
   font-size: 14px;
   color: #bfbfbf;
   line-height: 1.6;
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 992px) {

   .why-grid {
      grid-template-columns: 1fr;
      gap: 40px;
      text-align: center;
   }

   .why-right {
      max-width: 600px;
      margin: auto;
   }

   .why-desc {
      justify-content: center;
      text-align: left;
   }

   .why-wheel {
      max-width: 320px;
      animation: floatWheel 6s ease-in-out infinite;
   }
}

/* =====================================================
   MOBILE (360px PERFECT)
===================================================== */

@media (max-width: 600px) {

   .why-section {
      padding: 80px 16px;
   }

   .why-header {
      margin-bottom: 40px;
   }

   .why-grid {
      gap: 30px;
   }

   /* image smaller */
   .why-wheel {
      max-width: 260px;
      animation: none;
      /* performance */
   }

   /* stack desc */
   .why-desc {
      gap: 8px;
   }

   .why-icon {
      width: 24px;
   }

   .why-desc p {
      font-size: 13px;
   }
}

/* animation */
@keyframes floatWheel {
   0% {
      transform: translateY(0);
   }

   50% {
      transform: translateY(-10px);
   }

   100% {
      transform: translateY(0);
   }
}

/* =====================================================
   PROCESS SECTION (FINAL CLEAN)
===================================================== */

.process-section {
   padding: 80px 20px;
   position: relative;
   overflow: hidden;

   background:
      radial-gradient(circle at 20% 30%, rgba(226, 184, 75, 0.04), transparent 35%),
      radial-gradient(circle at 80% 80%, rgba(201, 162, 39, 0.03), transparent 35%);
}

/* grid bg */
.process-section::before {
   content: "";
   position: absolute;
   inset: 0;
   background-image:
      linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
   background-size: 70px 70px;
   pointer-events: none;
}

/* header */
.process-header {
   text-align: center;
   max-width: 700px;
   margin: 0 auto;
}

.process-header h2 {
   font-size: clamp(28px, 3vw, 42px);
}

.process-header span {
   background: linear-gradient(90deg, var(--cf-gold), var(--cf-gold-light));
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
}

.process-line {
   width: 70px;
   height: 2px;
   background: var(--cf-gold-light);
   margin: 10px auto 0;
}

.process-header p {
   font-size: 15px;
   color: #bfbfbf;
}

/* ===============================
   DESKTOP HORIZONTAL
=============================== */

.process-horizontal {
   display: flex;
   justify-content: space-between;
   align-items: flex-start;
   gap: 30px;
   margin-top: 60px;
   position: relative;
}

/* connector */
.process-horizontal::before {
   content: "";
   position: absolute;
   top: 70px;
   left: 0;
   width: 100%;
   height: 2px;
   background: var(--cf-gold);
   opacity: .7;
}

/* box */
.process-box {
   width: 180px;
   padding: 26px 20px;
   border-radius: 12px;
   text-align: center;
   background: rgba(255, 255, 255, 0.04);
   border: 1px solid rgba(255, 255, 255, 0.08);
   position: relative;
   margin-top: 60px;
   transition: .3s;
}

/* zigzag */
.process-box:nth-child(even) {
   margin-top: 120px;
}

/* number */
.step-num {
   position: absolute;
   top: -28px;
   left: 50%;
   transform: translateX(-50%);
   width: 50px;
   height: 50px;
   border-radius: 50%;
   border: 2px solid var(--cf-gold);
   display: flex;
   align-items: center;
   justify-content: center;
   background: var(--cf-bg-main);
   color: var(--cf-gold-light);
   font-weight: 600;
}

/* text */
.process-box h3 {
   font-size: 16px;
   margin-bottom: 8px;
}

.process-box p {
   font-size: 13px;
   color: #bfbfbf;
   line-height: 1.6;
}

/* hover */
.process-box:hover {
   transform: translateY(-6px);
   border-color: var(--cf-gold);
}

.process-box:hover .step-num {
   background: var(--cf-gold);
   color: #000;
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1100px) {

   .process-horizontal {
      flex-wrap: wrap;
      justify-content: center;
   }

   .process-horizontal::before {
      display: none;
   }

   .process-box {
      width: 240px;
      margin-top: 0 !important;
   }
}

/* =====================================================
   MOBILE (360px PERFECT → VERTICAL TIMELINE)
===================================================== */

@media (max-width: 600px) {

   .process-section {
      padding: 70px 16px;
   }

   .process-horizontal {
      flex-direction: column;
      gap: 30px;
      align-items: center;
   }

   /* vertical line */
   .process-horizontal::before {
      display: block;
      width: 2px;
      height: 100%;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
   }

   .process-box {
      width: 100%;
      max-width: 360px;
      margin-top: 0 !important;
   }

   /* step circle align center line */
   .step-num {
      left: 50%;
      transform: translate(-50%, -50%);
      top: 0;
   }

   .process-box h3 {
      font-size: 15px;
   }

   .process-box p {
      font-size: 12px;
   }
}

/*====================== TECH STACK =============*/

/* header */
.cf-tech-header {
   max-width: 600px;
   margin-bottom: 60px;
}

.cf-tech-subtitle {
   font-size: clamp(11px, 2vw, 13px);
   letter-spacing: 1px;
   color: #aaa;
   text-transform: uppercase;
   margin-bottom: 10px;
}

.cf-tech-title {
   font-size: clamp(28px, 5vw, 48px);
   /* 🔥 FIX */
   font-weight: 700;
   color: #fff;
   margin-bottom: 15px;
}

.cf-tech-title span {
   color: #e2b84b;
}

.cf-tech-desc {
   font-size: clamp(14px, 2.2vw, 16px);
   color: #bbb;
   line-height: 1.6;
}

/* section */
.cf-techstack {
   background: #0f0f0f;
   padding: 120px 8%;
   position: relative;
}

/* glow */
.cf-techstack::before {
   content: "";
   position: absolute;
   width: 600px;
   height: 600px;
   background: radial-gradient(circle, rgba(201, 162, 39, 0.18), transparent 70%);
   top: 100px;
   left: 20%;
   pointer-events: none;
   filter: blur(120px);
}

.cf-tech-content {
   display: flex;
   align-items: stretch;
}

/* layout */
.cf-tech-wrapper {
   display: flex;
   gap: 80px;
   align-items: stretch;
}

/* left */
.cf-tech-left {
   display: flex;
   gap: 40px;
   height: 100%;
}

/* numbers */
.cf-tech-numbers {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: space-between;
   font-size: 34px;
   font-weight: 700;
   color: #aaa;
}

.cf-tech-numbers .line {
   width: 2px;
   height: 180px;
   background: #333;
   margin: 10px 0;
}

/* tabs */
.cf-tech-tabs {
   list-style: none;
   scrollbar-width: none;
}

.cf-tech-tabs::-webkit-scrollbar {
   display: none;
}


.cf-tech-tabs li {
   padding: 14px 32px;
   margin-bottom: 14px;
   cursor: pointer;
   border-radius: 10px;
   font-size: 15px;
   letter-spacing: 1px;
   color: #fff;
   transition: all 0.35s ease;
   position: relative;
   overflow: hidden;
}

.cf-tech-tabs li:hover {
   background: rgba(201, 162, 39, 0.08);
   transform: translateX(4px);
}

.cf-tech-tabs li.active {
   font-weight: 600;
   color: #fff;
   border-radius: 12px;

   background: linear-gradient(90deg,
         rgba(201, 162, 39, 0.9) 0%,
         rgba(201, 162, 39, 0.5) 35%,
         rgba(201, 162, 39, 0.2) 60%,
         rgba(201, 162, 39, 0.05) 80%,
         transparent 100%);
}

.cf-tech-tabs li::before {
   content: "";
   position: absolute;
   left: 0;
   bottom: 0;
   width: 0%;
   height: 2px;
   background: #e2b84b;
   transition: 0.35s;
}

.cf-tech-tabs li:hover::before {
   width: 100%;
}

/* grid */
.tech-grid {
   display: none;
   grid-template-columns: repeat(4, 120px);
   gap: 12px;
   align-content: start;
   opacity: 0;
   transform: translateY(10px);
   transition: 0.4s ease;
}

.tech-grid.active {
   display: grid;
   opacity: 1;
   transform: translateY(0);
}

/* card */
.tech-box {
   width: 120px;
   height: 100px;
   background: #141414;
   border-radius: 12px;
   border: 1px solid rgba(255, 255, 255, 0.05);
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   gap: 4px;
}

/* icon */
.tech-icon {
   filter: brightness(0) saturate(100%) invert(75%) contrast(90%);
   font-size: 42px;

   transition: transform .3s ease;
}

.tech-box:hover .tech-icon {
   filter: none;
   transform: scale(1.2);
}

.tech-box p {
   font-size: 12px;
   color: #bbb;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width:1024px) {

   .cf-tech-wrapper {
      gap: 50px;
   }

   .tech-grid {
      grid-template-columns: repeat(3, 120px);
   }

   .cf-tech-numbers span {
      font-size: 28px;
   }
}

@media (max-width:768px) {

   .cf-tech-header {
      margin-bottom: 40px;
      /* 🔥 spacing fix */
   }

   .cf-tech-wrapper {
      flex-direction: column;
      gap: 40px;
   }

   .cf-tech-numbers {
      display: none;
   }

   .cf-tech-content {
      display: flex;
      justify-content: center;
      overflow-x: auto;
   }

   /* tabs scroll */
   .cf-tech-tabs {
      display: flex;
      gap: 10px;
      overflow-x: auto;
      padding-bottom: 10px;
      -webkit-overflow-scrolling: touch;
   }

   .cf-tech-tabs li {
      white-space: nowrap;
      margin-bottom: 0;
   }

   .tech-grid {
      grid-template-columns: repeat(2, 120px);
      justify-content: center;
   }
}


@media (max-width:480px) {

   .cf-tech-tabs {
      display: flex;
      gap: 12px;
      overflow-x: auto;
      padding: 10px 6px 14px;
      -webkit-overflow-scrolling: touch;
   }

   .cf-tech-tabs li {
      flex: 0 0 auto;
      /* 🔥 IMPORTANT */
      padding: 12px 20px;
      font-size: 13px;
      white-space: nowrap;
   }

   /* fix gradient cut */
   .cf-tech-tabs li.active {
      border-radius: 10px;
   }
}


/* =====================================================
   TRUST SECTION 
===================================================== */

.cf-trust {
   text-align: center;
   padding: 100px 8%;
   background: #0f0f0f;
   color: #fff;
}

.cf-trust h2 {
   font-size: 42px;
   margin-bottom: 10px;
}

.cf-trust span {
   color: #e2b84b;
}

.cf-trust p {
   color: #aaa;
   margin-bottom: 50px;
}

/* slider */
.logo-slider {
   overflow: hidden;
   width: 100%;
}

.logo-track {
   display: flex;
   gap: 60px;
   width: max-content;
   animation: scrollLogo 25s linear infinite;
}

.logo-track img {
   height: 40px;
   filter: grayscale(100%) brightness(0.7);
   opacity: .7;
   transition: .3s;
}

.logo-track img:hover {
   filter: grayscale(0%);
   opacity: 1;
   transform: scale(1.05);
}

@keyframes scrollLogo {
   0% {
      transform: translateX(0);
   }

   100% {
      transform: translateX(-50%);
   }
}

/* =====================================================
   CTA SECTION (SAFE + SAME DESIGN)
===================================================== */

.cta-premium {
   position: relative;
   padding: 100px 20px;
   background: #000000;
   overflow: hidden;
}

.cta-premium::before {
   content: "";
   position: absolute;
   inset: 0;
   background-image:
      linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
   background-size: 40px 40px;
   z-index: var(--z-base);
}

/* container */
.cta-container {
   max-width: 1200px;
   margin: auto;
   display: flex;
   justify-content: space-between;
   align-items: center;
   flex-wrap: wrap;
   gap: 40px;
   position: relative;
   z-index: calc(var(--z-base) + 1);
   backdrop-filter: blur(10px);
}

/* light */
.cta-light {
   position: absolute;
   width: 400px;
   height: 400px;
   background: radial-gradient(circle, rgba(226, 184, 75, 0.25), transparent 70%);
   top: 0;
   left: 0;
   pointer-events: none;
   transition: 0.1s;
   z-index: var(--z-base);
}

/* text */
.cta-text {
   max-width: 650px;
}

/* heading */
.cta-heading {
   font-size: 42px;
   color: #fff;
   line-height: 1.3;
   display: flex;
   flex-direction: column;
   height: 120px;
   justify-content: center;
}

.static-text {
   font-weight: 600;
}

/* typing */
.typing-line {
   color: #e2b84b;
   display: flex;
   align-items: center;
   min-height: 60px;
}

.cursor {
   width: 2px;
   height: 1em;
   background: #e2b84b;
   margin-left: 6px;
   animation: blink 1s infinite, glow 1.5s infinite alternate;
}

@keyframes blink {
   50% {
      opacity: 0;
   }
}

@keyframes glow {
   from {
      box-shadow: 0 0 5px #e2b84b;
   }

   to {
      box-shadow: 0 0 15px #e2b84b;
   }
}

/* desc */
.cta-desc {
   color: #aaa;
   margin-top: 15px;
}

/* button */
.cta-btn {
   padding: 14px 28px;
   border: 1px solid #e2b84b;
   color: #e2b84b;
   position: relative;
   overflow: hidden;
   transition: 0.3s;
}

.cta-btn::before {
   content: "";
   position: absolute;
   width: 0%;
   height: 100%;
   background: linear-gradient(90deg, #c9a227, #e2b84b);
   top: 0;
   left: 0;
   transition: 0.4s;
   z-index: -1;
}

.cta-btn:hover::before {
   width: 100%;
}

.cta-btn:hover {
   color: #000;
}

/* =====================================================
   MOBILE FIX (NO DESIGN CHANGE)
===================================================== */

@media (max-width: 768px) {

   .cf-trust {
      padding: 80px 16px;
   }

   /* slider smoother */
   .logo-track {
      gap: 40px;
      animation-duration: 30s;
   }

   /* CTA stack */
   .cta-container {
      flex-direction: column;
      text-align: center;
   }

   .cta-heading {
      font-size: 30px;
      height: auto;
   }

   .typing-line {
      justify-content: center;
   }
}

@media (max-width: 480px) {

   .logo-track {
      gap: 30px;
   }

   .cta-btn {
      width: 100%;
      text-align: center;
   }
}

/* =====================================================
   PORTFOLIO 
===================================================== */

.cf-portfolio {
   padding: 40px 0;
   background: #0f0f0f;
}

/* header */
.portfolio-header {
   text-align: center;
   margin-bottom: 70px;
}

.portfolio-header p {
   font-size: 13px;
   letter-spacing: 2px;
   color: #e2b84b;
   margin-bottom: 12px;
   text-transform: uppercase;
}

.portfolio-header h2 {
   font-size: 42px;
   font-weight: 600;
   color: #ffffff;
   line-height: 1.3;
}

.portfolio-header h2 span {
   color: #e2b84b;
}

.portfolio-header::after {
   content: "";
   width: 60px;
   height: 3px;
   background: #e2b84b;
   display: block;
   margin: 18px auto 0;
   border-radius: 2px;
}

/* slider */
.portfolio-slider {
   width: 100%;
   padding: 20px 0;
}

/* slide (IMPORTANT FIX: max-width added, design same) */
.cf-portfolio .swiper-slide {
   display: flex;
   justify-content: center;
   align-items: center;
   width: min(850px, 100%);
   max-width: 100%;
   opacity: .5;
   transform: scale(.88);
   transition: transform .8s ease, opacity .8s ease;
}

/* image */
.cf-portfolio .swiper-slide img {
   width: 80%;
   max-width: 100%;
   border-radius: 20px;
   transition: .5s;
}

/* active */
.cf-portfolio .swiper-slide-active {
   opacity: 1;
   transform: scale(1);
}

.cf-portfolio .swiper-slide-active img {
   box-shadow: 25px 40px rgba(0, 0, 0, 0.064),
      0 8px 20px rgba(0, 0, 0, 0);
}

/* pagination */
.swiper-pagination {
   margin-top: 40px;
   position: relative;
}

.swiper-pagination-bullet {
   width: 10px;
   height: 10px;
   background: #666;
   opacity: 1;
}

.swiper-pagination-bullet-active {
   background: #e2b84b;
   transform: scale(1.3);
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width:1024px) {

   .cf-portfolio .swiper-slide img {
      width: 750px;
      max-width: 100%;
   }

   .portfolio-slider {
      padding: 50px 0;
   }
}

/* =====================================================
   MOBILE (DESIGN SAME, SAFE)
===================================================== */

@media (max-width:768px) {

   .cf-portfolio {
      padding: 90px 0;
   }

   .portfolio-slider {
      padding: 30px 0;
   }

   /* FIX: use same selector to avoid conflict */
   .cf-portfolio .swiper-slide {
      opacity: .6;
      transform: scale(.92);
   }

   .cf-portfolio .swiper-slide-active {
      opacity: 1;
      transform: scale(1);
   }

   .cf-portfolio .swiper-slide img {
      width: 92%;
      border-radius: 14px;
   }

   .cf-portfolio .swiper-slide-active img {
      box-shadow: 0 20px 40px rgba(0, 0, 0, .55);
   }
}

/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width:480px) {

   .cf-portfolio .swiper-slide img {
      width: 94%;
      border-radius: 12px;
   }

   .portfolio-slider {
      padding: 20px 0;
   }
}















/* ================= PREMIUM FOOTER ================= */

.premium-footer {
   background: #0b0b0b;
   color: #ccc;
   border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* container */
.footer-container {
   max-width: 1200px;
   margin: auto;
   padding: 40px 20px;
}

/* ================= TOP ================= */

.footer-top {
   display: flex;
   align-items: center;
   justify-content: space-between;
   flex-wrap: wrap;
   gap: 20px;
}

/* logo */
.footer-logo img {
   height: 50px;
   filter: grayscale(100%) brightness(1.2);
   opacity: 0.8;
   transition: 0.3s;
}

.footer-logo img:hover {
   filter: none;
   opacity: 1;
}

/* nav */
.footer-nav {
   display: flex;
   gap: 30px;
   list-style: none;
   padding: 0;
   margin: 0;
}

.footer-nav a {
   text-decoration: none;
   color: #ddd;
   font-size: 16px;
   position: relative;
   transition: 0.3s;
}

.footer-nav a:hover {
   color: #e2b84b;
}

/* underline effect */
.footer-nav a::after {
   content: "";
   position: absolute;
   left: 0;
   bottom: -4px;
   width: 0;
   height: 2px;
   background: #e2b84b;
   transition: 0.3s;
}

.footer-nav a:hover::after {
   width: 100%;
}

/* social */
.footer-social {
   display: flex;
   gap: 18px;
}

.footer-social a {
   color: #777;
   font-size: 18px;
   transition: 0.3s;
}

.footer-social a:hover {
   color: #e2b84b;
   transform: translateY(-3px);
   text-shadow: 0 0 8px rgba(226, 184, 75, 0.5);
}

/* divider */
.footer-divider {
   border: none;
   border-top: 1px solid rgba(255, 255, 255, 0.08);
   margin: 20px 0;
}

/* ================= CONTACT ================= */

.footer-contact {
   text-align: center;
   padding: 20px 0;
}

.footer-contact h2 {
   font-size: 28px;
   margin-bottom: 15px;
   color: #fff;
   position: relative;
}

.footer-contact h2::after {
   content: "";
   width: 60px;
   height: 2px;
   background: #e2b84b;
   display: block;
   margin: 10px auto 0;
}

.footer-contact p {
   font-size: 18px;
   color: #bbb;
}

.footer-contact span {
   margin: 0 10px;
}

/* ================= BOTTOM ================= */

.footer-bottom {
   display: flex;
   align-items: center;
   justify-content: space-between;
   flex-wrap: wrap;
   gap: 20px;
}

/* policy */
.footer-policy {
   display: flex;
   gap: 25px;
   list-style: none;
   padding: 0;
   margin: 0;
}

.footer-policy a {
   text-decoration: none;
   color: #aaa;
   font-size: 14px;
   transition: 0.3s;
}

.footer-policy a:hover {
   color: #e2b84b;
}

/* copyright */
.copyright {
   font-size: 14px;
   color: #777;
}

/* ================= MOBILE ================= */

@media(max-width:768px) {

   .footer-container {
      padding: 30px 16px;
   }

   .footer-top {
      flex-direction: column;
      gap: 25px;
      text-align: center;
   }

   .footer-nav {
      flex-wrap: wrap;
      justify-content: center;
      gap: 18px;
   }

   .footer-social {
      gap: 14px;
   }

   .footer-bottom {
      flex-direction: column;
      gap: 20px;
      text-align: center;
   }

   .footer-policy {
      flex-wrap: wrap;
      justify-content: center;
   }

   .footer-contact h2 {
      font-size: 22px;
   }

   .footer-contact p {
      font-size: 16px;
   }
}

/* ================= SMALL MOBILE (360px PERFECT) ================= */

@media(max-width:480px) {

   .footer-container {
      padding: 25px 14px;
   }

   .footer-nav {
      gap: 14px;
   }

   .footer-nav a {
      font-size: 14px;
   }

   .footer-social a {
      font-size: 16px;
   }

   .footer-contact h2 {
      font-size: 20px;
   }

   .footer-contact p {
      font-size: 14px;
   }

   .footer-policy {
      gap: 15px;
   }

   .copyright {
      font-size: 13px;
   }
}

/* ================= SCROLL TOP ================= */

.cf-scroll-top {
   position: fixed;
   right: 20px;
   bottom: 20px;
   width: 38px;
   height: 38px;
   z-index: var(--z-floating);
}

/* button */
#scrollTopBtn {
   position: relative;
   width: 38px;
   height: 38px;
   border: none;
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;

   background: rgba(255, 255, 255, 0.05);
   backdrop-filter: blur(4px);
   border: 1px solid rgba(255, 255, 255, 0.08);
   border-radius: 50%;

   opacity: 0;
   visibility: hidden;
   transition: 0.3s;
}

/* show */
#scrollTopBtn.show {
   opacity: 1;
   visibility: visible;
}

/* hover */
#scrollTopBtn:hover {
   transform: translateY(-4px) scale(1.05);
   box-shadow: 0 0 12px rgba(226, 184, 75, 0.4);
}

/* arrow */
#scrollTopBtn span {
   font-size: 12px;
   color: #e2b84b;
   position: absolute;
}

/* progress ring */
.progress-ring {
   position: absolute;
   top: 0;
   left: 0;
   transform: rotate(-90deg);
}

.progress-ring-circle {
   fill: none;
   stroke: #e2b84b;
   stroke-width: 1.6;
   stroke-linecap: round;
   stroke-dasharray: 88;
   stroke-dashoffset: 88;
   transition: stroke-dashoffset 0.2s linear;
   filter: drop-shadow(0 0 4px rgba(226, 184, 75, 0.6));
}