/* styles.css — Dubai Ultra Luxury (safe version) */

/* -------------------------
GLOBAL
--------------------------*/
* { margin:0; padding:0; box-sizing:border-box; font-family: 'Poppins', sans-serif; }
html,body { height:100%; }
body { background:#000; color:#fff; overflow-x:hidden; }

/* page spacing */
.section { padding:100px 6%; }
body, * {
  cursor: none;
}
/* -------------------------
HEADER / BRAND
--------------------------*/
/* ===== HEADER + LOGO FIX ===== */
/* Freeze logo on top while scrolling */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 25px 60px;
  display: flex;
  justify-content: center;
  z-index: 999999; /* Above cursor, particles, everything */
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.15); 
  border-bottom: 1px solid rgba(212, 175, 55, 0.25); /* subtle gold line */
  transition: 0.3s ease;
}

/* Shrink logo slightly on scroll for premium feel */
header.scrolled {
  padding: 12px 60px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(20px);
}


.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 1;        /* make visible by default */
  transform: none;   /* remove offset so it shows immediately */
}


/* LOGO CIRCLE */
.logo-box {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #000;                   /* black circular badge */
  border: 2px solid #D4AF37;          /* gold outline */
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 12px rgba(212,175,55,0.5);
  flex-shrink: 0;
}


/* "PS" TEXT */
.logo-box h1 {
  margin: 0;
  opacity: 1 !important;
  font-size: 28px;
  font-weight: 700;
  transform: none !important;
  color: #D4AF37;                     /* pure gold */
  letter-spacing: 1px;
}

/* BRAND TEXT */
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

/* SMALL TOP TEXT */
.brand-text .sub {
  font-size: 14px;
  color: #C9A53E;                     /* lighter gold */
  letter-spacing: 3px;
}

/* BIG MAIN TEXT */
.brand-text .main {
  font-size: 22px;
  font-weight: 700;
  color: #D4AF37;
  letter-spacing: 2px;
}


/* -------------------------
HERO
--------------------------*/
/* AWWWWARDS Ultra Luxury Hero */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6%;
  text-align: center;
  overflow: hidden;
}

.hero-title {
  display: flex;
  flex-wrap: wrap; /* words stay inline, wrap if needed */
  gap: 0.5rem;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

.hero-title span {
  background: linear-gradient(90deg, #D4AF37, #C9A53E);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  /* opacity: 1 !important;
  transform: translateY(0) !important; */
}

.hero-sub {
  max-width: 700px;
  margin: 20px auto 0;
  color: #cfcfcf;
  font-size: 1.2rem;
  z-index: 3;
}

.hero-cta {
  position: relative;
  z-index: 60 !important;
  margin-top: 2rem;
  display: flex;      /* arrange buttons horizontally */
  justify-content: center; /* center them */
  gap: 1rem; 
}


/* Canvas particle layer */
#goldCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

/* Vignette + grain */
.hero::after,
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1 !important;
}




/* LUXURY HERO BUTTONS (AWWWARDS STYLE) */
.btn {
  position: relative;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* GOLD BUTTON */
.btn.primary {
  background: linear-gradient(90deg, #D4AF37, #C9A53E);
  color: #000;
  box-shadow: 0 0 15px rgba(212,175,55,0.4);
}

.btn.primary:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 0 25px rgba(212,175,55,0.6);
}

/* TRANSPARENT LUX BUTTON */
.btn.secondary {
  background: rgba(255, 215, 115, 0.08); /* soft gold tint */
  border: 1.5px solid rgba(212,175,55,0.85); /* stronger gold border */
  color: #FFD773 !important; /* brighter gold text */
  backdrop-filter: blur(10px);
  box-shadow: 0 0 12px rgba(212,175,55,0.25);
}

.btn.secondary:hover {
  background: rgba(212,175,55,0.2);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 0 25px rgba(212,175,55,0.55);
}


/* GOLD LIGHT SWEEP EFFECT */
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.5) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: 0.6s ease;
}

.btn:hover::before {
  left: 120%;
}

.btn, .btn * {
  mix-blend-mode: normal !important;
  z-index: 999999;
  position: relative;
}

/* HERO CONTENT MUST BE ABOVE ALL LAYERS */
.hero-content {
  position: relative;
  z-index: 999999  !important;   /* bring ENTIRE hero content above overlays */
}

/* FINAL HERO BUTTON FIX */
.hero-cta .btn.primary {
  background: linear-gradient(90deg, #FFD773, #D4AF37) !important;
  color: #000 !important;
  border: none !important;
}

.hero-cta .btn.secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1.5px solid #D4AF37 !important;
  color: #FFD773 !important;
}

/* === BUTTON VISIBILITY FIX === */
.cursor-lux {
  mix-blend-mode: normal !important;
  background: #ffffff !important;
  opacity: 0;
}

.btn, .hero-cta, .hero-content {
  position: relative !important;
  z-index: 5000 !important;
}
#goldCanvas,
.hero::before,
.hero::after {
  z-index: 1 !important;
  opacity: 0.15 !important;
}

/* FIX particle visibility */
.particles {
  z-index: 999997 !important;
  opacity: 1 !important;
}
.cursor-lux, .cursor-ripple, .particles {
  position: fixed;
  pointer-events: none;
  z-index: 999999;
  opacity: 1;
}


/* HERO BUTTONS FIX */
.hero-cta .btn {
  opacity: 1 !important;
  color: #000 !important;
  background: linear-gradient(90deg, #FFD773, #D4AF37) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  z-index: 9999 !important;
}

/* When cursor overlaps button, do not invert it */
.btn:hover ~ .cursor-lux,
.btn:focus ~ .cursor-lux {
  mix-blend-mode: normal !important;
}

/* BOOST VISIBILITY */
.btn.primary {
  background: linear-gradient(90deg, #FFD773, #D4AF37);
  color: #000;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.2);
}

.btn.secondary {
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(212,175,55,0.6) !important;
}


/* -------------------------
PROJECTS
--------------------------*/
.section-title { font-size:2rem; margin-bottom:28px; background:linear-gradient(90deg,#D4AF37,#C9A53E); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; color:transparent; }
.project-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:24px; }
.project-card { background:#0e0e0e; border:1px solid #1f1f1f; border-radius:14px; padding:12px; transition:transform .35s ease, box-shadow .35s ease; position: relative; z-index: 10;}
.project-card img { width:100%; height:220px; object-fit:cover; border-radius:10px; display:block; }
.project-card .meta { margin-top:12px; }
.project-card h4 { color:#D4AF37; margin:0; font-size:1.15rem; }
.project-card p { color:#ccc; margin:6px 0 0; font-size:0.95rem; }
.project-card:hover { transform:translateY(-8px); box-shadow:0 18px 40px rgba(0,0,0,0.6); border-color:#D4AF37; }

/* -------------------------
CONTACT FORM
--------------------------*/
.contact-form { max-width:520px; margin:0 auto; display:flex; flex-direction:column; gap:14px; }
.field-group { display:flex; flex-direction:column; }
label { color:#cfcfcf; margin-bottom:6px; font-size:0.9rem; }
input, select { padding:12px; border-radius:8px; border:1px solid #262626; background:#0b0b0b; color:#fff; font-size:1rem; }
input:focus, select:focus { outline:none; border-color:#D4AF37; box-shadow:0 0 0 4px rgba(212,175,55,0.06); }

/* -------------------------
FOOTER
--------------------------*/
footer { text-align:center; padding:40px 6%; background:#080808; color:#bdbdbd; }

/* -------------------------
ANIMATION HELPERS (do NOT hide by default)
We intentionally do NOT set opacity:0 here.
GSAP will animate FROM opacity:0 -> 1, but if GSAP fails, elements remain visible.
--------------------------*/
.fade-up { opacity: 1; transform: none; } /* keep visible */



/* mask reveal */
.mask-reveal { overflow:hidden; display:inline-block; }
.mask-reveal span {
  display: inline-block;
  transform: translateY(100%);  /* start hidden below */
  background: linear-gradient(90deg, #D4AF37, #C9A53E);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
}


/* shimmer */
.shimmer { background:linear-gradient(90deg,#D4AF37,#C9A53E,#D4AF37); -webkit-background-clip:text; background-clip:text; color:transparent; background-size:200%; animation:shimmerMove 4s linear infinite; }
@keyframes shimmerMove { from { background-position:0%; } to { background-position:200%; } }


/* Custom Cursor */
/* MAIN LUXURY CURSOR */
/* MAIN LUXURY CURSOR */
.cursor-lux {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  mix-blend-mode: normal !important;; 
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 999999;
  transition: width 0.2s ease, height 0.2s ease;
}

/* HOVER GROW (bigger on fonts too) */
.cursor-lux.active {
  width: 40px;
  height: 40px;
}

/* RIPPLE EFFECT */
.cursor-ripple {
  position: fixed;
  width: 12px;
  height: 12px;
  border: 2px solid #D4AF37;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 999998;
}

/* PARTICLE CONTAINER */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 999997;
}

/* GOLD PARTICLES */
.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFD773, #D4AF37);
  opacity: 0.9;
  filter: blur(1px);
}


button, .project-card {
  transition: transform 0.3s ease;
  will-change: transform;
}


/* Mobile Hero Adjustments */
@media (max-width: 768px) {
  .hero {
    height: auto;              /* Let hero shrink if content is smaller */
    min-height: 80vh;          /* Still occupy most of the screen */
    display: flex;
    flex-direction: column;
    justify-content: center;    /* Center content vertically */
    align-items: center;        /* Center horizontally */
    text-align: center;
    padding: 40px 20px;         /* Reduce top/bottom padding */
  }

  .hero-title {
    font-size: 3.5rem;         /* Keep title bold and big */
    line-height: 1.1;
    margin-bottom: 1rem;       /* Keep space for subtitle */
  }

  .hero-sub {
    font-size: 1rem;
    max-width: 90%;
    margin: 0 auto 1.5rem auto;
  }

  .hero-cta .btn {
    font-size: 1.15rem;         /* Bigger text for buttons */
    padding: 14px 36px;         /* Slightly bigger button */
    margin-top: 1rem;
    border-radius: 50px;        /* Premium feel */
    background: linear-gradient(90deg, #FFD773, #D4AF37);
    color: #000;
    box-shadow: 0 8px 20px rgba(212,175,55,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .hero-cta .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 28px rgba(212,175,55,0.6);
  }

  /* Reduce extra gap before next section */
  .section {
    padding-top: 60px;          /* Less top padding */
    padding-bottom: 80px;       /* Moderate bottom padding */
  }
}

/* Extra small phones */
@media (max-width: 480px) {
  .hero-title {
    font-size: 3rem;
    line-height: 1.15;
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .hero-cta .btn {
    font-size: 1rem;
    padding: 12px 28px;
  }
}
@media (max-width: 768px) {
  .cursor-lux,
  .cursor-ripple {
    display: none !important;
  }
  @media (max-width: 768px) {

    .project-grid {
      display: flex;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      gap: 16px;
      padding: 0 20px;
    }
  
    .project-card {
      min-width: 80%;
      flex: 0 0 auto;
      scroll-snap-align: start;
      border-radius: 20px;
    }
  
    /* Hide scrollbar for a cleaner look */
    .project-grid::-webkit-scrollbar {
      display: none;
    }
  }
}


