/* ======================================================
   🔧 MASTER VISUAL CONTROL PANEL
   Safe to edit – no logic inside
   ====================================================== */

/* ================= GLOBAL LAYERS ================= */
/* Higher number = closer to viewer */

:root{
  --layer-bull: 1;
  --layer-rays: 2;
  --layer-hand: 4;
  --layer-content: 6;
  --layer-icons: 7;
}

/* ================= BULL CONTROL (TILT ENABLED) ================= */

.bull-bg{
  z-index: var(--layer-bull);

  /* POSITION */
  background-position: 4% 120%;
  background-size: 52% auto;

  /* VISIBILITY */
  opacity: 0.22;

  /* MATTE BLACK LOOK */
  filter:
    grayscale(1)
    brightness(0.45)
    contrast(1.1);

  /* 🔄 TILT CONTROL */
  transform: rotate(-10deg);        /* 👈 CHANGE DEGREE HERE */
  transform-origin: left bottom;    /* natural pivot */
}

/* ================= RAYS CONTROL ================= */

.rays{
  z-index: var(--layer-rays);

  /* INTENSITY */
  opacity: 0.35;

  /* SOFTNESS */
  filter: blur(6px);

  /* SPEED */
  animation-duration: 90s;
}

/* ================= HAND IMAGE CONTROL ================= */

.image-frame img{
  z-index: var(--layer-hand);
  position: relative;

  /* SIZE */
  width: 135%;
  max-width: 800px;

  /* POSITION */
  transform:
    translateX(-120px)
    translateY(-150px)
    scale(1.3);

  /* LOOK */
  filter: none;
}

/* ================= TEXT PANEL CONTROL ================= */

.hero-left{
  z-index: var(--layer-content);

  /* POSITION */
  transform:
    translateX(30px)
    translateY(-310px);
}

/* ================= SOCIAL ICONS CONTROL ================= */

.socials{
  z-index: var(--layer-icons);

  /* POSITION */
  right: 8.5%;
  bottom: 72%;

  /* GAP */
  gap: 14px;
}

/* ================= REMOVE ALL SHADOWS & BORDERS ================= */

*{
  box-shadow: none !important;
  outline: none !important;
}

img{
  border: none !important;
  box-shadow: none !important;
}

/* ================= QUICK PRESETS ================= */

/* 🔲 Matte Black Mode (enable if needed) */
/*
.bull-bg{
  filter: grayscale(1) brightness(0.35);
}
.rays{
  opacity: 0.25;
}
*/

/* 🚫 Debug Mode (show everything strong) */
/*
.bull-bg{ opacity: 0.5; }
.rays{ opacity: 0.6; }
*/
/* ======================================================
   🌟 CINEMATIC MULTI-LAYER RAYS (FINAL & STABLE)
   Origin: Top-Right
   Start aligned with hand candles
   ====================================================== */

/* ---------------- BASE RAYS ---------------- */

.rays{
  position:absolute;
  inset:-60%;
  pointer-events:none;

  /* 🎯 RAY ORIGIN (TOP-RIGHT) */
  transform-origin: 88% 12%;

  /* 🎯 START ALIGNMENT (HAND CANDLES) */
  transform: rotate(-42deg);

  background: conic-gradient(
    rgba(0,0,0,.9),
    rgba(214,177,90,.28),
    rgba(0,0,0,.9)
  );

  opacity: .32;
  animation: spin 48s linear infinite;

  z-index: var(--layer-rays);
}

/* ---------------- SOFT RAYS ---------------- */

.rays.soft{
  opacity: .18;
  filter: blur(2px);
  animation: spinReverse 72s linear infinite;
}

/* ---------------- DEPTH RAYS ---------------- */

.rays.deep-1{
  opacity: .24;
  filter: blur(1px);
  animation: spin 110s linear infinite;
}
.rays.deep-2{
  opacity: .18;
  filter: blur(2px);
  animation: spinReverse 160s linear infinite;
}

.rays.deep-3{
  opacity: .14;
  filter: blur(4px);
  animation: spin 220s linear infinite;
}

.rays.deep-4{
  opacity: .10;
  filter: blur(6px);
  animation: spinReverse 300s linear infinite;
}

.rays.deep-5{
  opacity: .07;
  filter: blur(9px);
  animation: spin 420s linear infinite;
}


/* ---------------- ANIMATIONS ---------------- */

@keyframes spin{
  to{ transform: rotate(360deg); }
}

@keyframes spinReverse{
  to{ transform: rotate(-360deg); }
}


/* ======================================================
   🔗 NAV ACTIVE UNDERLINE (PREMIUM)
   ====================================================== */

nav a{
  position: relative;
}

/* Active link underline */
nav a.active::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;

  width: 100%;
  height: 1px;

  background: linear-gradient(
    to right,
    transparent,
    var(--gold),
    transparent
  );

  opacity: 0.9;
}

/* Keep hover clean (no underline jump) */
nav a:hover::after{
  content: none;
}
/* ======================================================
   🔒 GLOBAL LAYER LOCK (ALL PAGES)
   Rays, Bull, Socials = SAME EVERYWHERE
   ====================================================== */

/* Rays – locked */
.rays{
  z-index: var(--layer-rays);
}

/* Bull – locked */
.bull-bg{
  z-index: var(--layer-bull);
}

/* Social icons – locked */
.socials{
  z-index: var(--layer-icons);
}
/* ======================================================
   ✋ HAND IMAGE – COLOR vs GREY MODE
   ====================================================== */

/* HOME PAGE – HAND IN FULL COLOR */
.page-home .image-frame img{
  filter: none;            /* keep original color */
  opacity: 1;
}

/* INNER PAGES – HAND GREY / MATTE (LIKE BULL) */
.page-inner .image-frame img{
  filter:
    grayscale(1)
  brightness(0.45)
  contrast(1.1);

  opacity: 0.55;           /* subtle background feel */
}
/* ======================================================
   ✋ HAND – INNER PAGES (SIZE & POSITION CONTROL)
   ====================================================== */

.page-inner .hand-bg{
  position:absolute;
  inset:0;

  /* IMAGE */
  background-image: url("../Assets/Image2_Homepage.png");
  background-repeat: no-repeat;

  /* 🔧 POSITION (X Y) */
  background-position: 92%  -4%;
  /* ↑ X: left → right (0% to 100%)
     ↑ Y: top → bottom (0% to 100%) */

  /* 🔧 SIZE */
  background-size: 50% auto;

  /* VISUAL STYLE */
  filter:
    grayscale(1)
    brightness(0.55)
    contrast(1.05);

  opacity: 0.55;

  /* LAYER */
  z-index: calc(var(--layer-hand) - 1);

  pointer-events: none;
}
 

/* ======================================================
   📦 TEXT BOX / PANEL CONTROL (ALL INNER PAGES)
   ====================================================== */

.about-panel{
  /* WIDTH */
  max-width: 660px;

  /* POSITION */
  margin-left: 2%;
  margin-top: -640px;

  /* TEXT ALIGN */
  text-align: left;

  /* SPACING */
  padding: 0;

  z-index: var(--layer-content);
}

/* TITLE SIZE */
.about-panel .page-title{
  font-size: 3rem;
}

/* PARAGRAPH SIZE */
.about-panel p{
  font-size: 1.05rem;
  line-height: 1.6;
}
 
/* ======================================================
   🖼️ ZIG-ZAG VERTICAL GALLERY (OLD STYLE RESTORED)
   ====================================================== */

/* Disable hero behavior for gallery */
body.gallery-page section.hero{
  display: block !important;
  min-height: auto !important;
  overflow: visible !important;
  padding-top: 140px;
  padding-bottom: 160px;
}

/* Gallery wrapper */
.gallery{
  max-width: 1200px;
  margin: 120px auto 0;
  display: flex;
  flex-direction: column;
  gap: 140px;
  position: relative;
  z-index: var(--layer-content);
}

/* Each row */
.gallery-row{
  display: flex;
  align-items: center;
  gap: 80px;
}

/* Reverse layout */
.gallery-row.reverse{
  flex-direction: row-reverse;
}

/* Image */
.gallery-image{
  flex: 1;
}
.gallery-image img{
  width: 100%;
  border-radius: 16px;
}

/* Text */
.gallery-text{
  flex: 1;
  max-width: 520px;
}
.gallery-text h3{
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.gallery-text p{
  line-height: 1.6;
  color: #cfcfcf;
}

/* Mobile */
@media(max-width: 900px){
  .gallery-row,
  .gallery-row.reverse{
    flex-direction: column;
  }
  .gallery{
    gap: 80px;
  }
}
/* ======================================================
   🖼️ GALLERY – SCROLL & POSITION FIX (CRITICAL)
   ====================================================== */

/* Completely neutralize hero behavior on gallery page */
body.gallery-page section.hero{
  display: block !important;
  min-height: auto !important;
  height: auto !important;
  overflow: visible !important;
  align-items: unset !important;
  padding-top: 120px;
  padding-bottom: 160px;
}

/* Ensure gallery is normal flow */
body.gallery-page .gallery{
  position: relative;
  margin-top: 80px;
}

/* Prevent upward pull */
body.gallery-page .gallery-row{
  position: relative;
  top: 0 !important;
}
/* ======================================================
   🎛️ ZIG-ZAG GALLERY – SIZE & POSITION CONTROLS
   ====================================================== */

/* Overall gallery width */
.gallery{
  max-width: 1200px;   /* 🔧 change: 1100px / 1300px */
  margin-left: auto;
  margin-right: auto;
}

/* Space between rows (vertical spacing) */
.gallery{
  gap: 120px;          /* 🔧 change: 80px / 160px */
}

/* Row layout */
.gallery-row{
  gap: 80px;           /* 🔧 space between image & text */
}

/* Image sizing */
.gallery-image{
  flex: 1;
}
.gallery-image img{
  width: 100%;
  max-width: 520px;    /* 🔧 image max size */
}

/* Text block sizing */
.gallery-text{
  flex: 1;
  max-width: 520px;    /* 🔧 text width */
}

/* Push text slightly down (optional) */
.gallery-text{
  margin-top: 12px;    /* 🔧 vertical alignment */
}
/* ======================================================
   🔍 GALLERY LIGHTBOX – OLD VERSION FEEL
   ====================================================== */

.gallery-lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;

  z-index: 9999;
}

.gallery-lightbox.active{
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox img{
  max-width: 92%;
  max-height: 92%;
  border-radius: 12px;
}

.gallery-close{
  position: absolute;
  top: 28px;
  right: 36px;
  font-size: 34px;
  color: #fff;
  cursor: pointer;
}
/* ======================================================
   ✨ GALLERY IMAGE HOVER (SUBTLE & PREMIUM)
   ====================================================== */

.gallery-image img{
  transition:
    transform .45s ease,
    box-shadow .45s ease;
  cursor: zoom-in;
}

/* Hover effect */
.gallery-image img:hover{
  transform: scale(1.035);
  box-shadow:
    0 10px 28px rgba(0,0,0,.45);
}
.gallery-image img{
  width: 100%;
  border-radius: 18px;

  /* REAL BORDER */
  border: 1.5px solid #caa24d;   /* warm gold */

  /* INNER GOLD STROKE */
  box-shadow:
    inset 0 0 0 1px rgba(255, 230, 160, 0.55);

  background: transparent;
  padding: 0;

  transition:
    transform .4s ease,
    box-shadow .4s ease,
    border-color .4s ease;
}

/* Hover – premium emphasis */
.gallery-image img:hover{
  border-color: #ffd77a;

  box-shadow:
    inset 0 0 0 1px rgba(255, 235, 180, 0.85),
    0 12px 28px rgba(0,0,0,.45);

  transform: scale(1.03);
}

/* ================= HOME PAGE H2 SIZE ================= */

.hero-left h2{
  font-size: 2.2rem;   /* 🔧 change this */
  line-height: 1.4;
}
 
/* ================= PAGE TITLE UNDERLINE (FORCED) ================= */

.page-title{
  position: relative;
  display: inline-block;
}

.page-title.underline-dynamic::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;

  width: 100%;
  height: 5px;

  background: var(--gold);

  z-index: 2;
}
/* ================= FEATURES PAGE TEXT POSITION ================= */

.features-panel{
  margin-top: -360px !important;
  margin-left: 35px !important;
}
 
/* ACCESS FORM */
.access-wrap {
  margin-top: 30px;
  max-width: 420px;
}

.access-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.field {
  position: relative;
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 14px 14px;
  color: #fff;
  font-size: 14px;
  border-radius: 6px;
  outline: none;
}

.field textarea {
  resize: none;
}

.field label {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  pointer-events: none;
  transition: 0.25s ease;
  background: #000;
  padding: 0 6px;
}

.field input:focus + label,
.field input:valid + label,
.field textarea:focus + label,
.field textarea:valid + label {
  top: -8px;
  font-size: 10px;
  color: var(--gold);
}

/* BUTTON */
.access-btn-main {
  margin-top: 10px;
  padding: 14px;
  border: none;
  background: var(--gold);
  color: #000;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.page-title {
  position: relative;
  display: inline-block;
}

.page-title.underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold),
    transparent
  );
}
.access-note {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
  max-width: 420px;
}
/* ─────────────────────────────────────────
   ACCESS PAGE — POSITION CONTROLS
   ───────────────────────────────────────── */

.access-page {
  /* Whole panel control */
  --access-panel-x: 00px;   /* + right | - left */
  --access-panel-y: 160px;   /* + down  | - up  */

  /* Title control */
  --access-title-x: -40px;
  --access-title-y: 500px;

  /* Text / paragraph control */
  --access-text-x: -40px;
  --access-text-y: 490px;

  /* Form control */
  --access-form-x: -80px;
  --access-form-y: -350px;
}
/* PANEL */
.access-page .about-panel {
  transform: translate(
    var(--access-panel-x),
    var(--access-panel-y)
  );
}

/* TITLE */
.access-page .page-title {
  transform: translate(
    var(--access-title-x),
    var(--access-title-y)
  );
}

/* TEXT / NOTE */
.access-page .access-note {
  transform: translate(
    var(--access-text-x),
    var(--access-text-y)
  );
}

/* FORM */
.access-page .access-wrap {
  transform: translate(
    var(--access-form-x),
    var(--access-form-y)
  );
}
/* =====================================================
   ACCESS PAGE — SERIOUSNESS MICRO POLISH
   ===================================================== */

.access-page .access-note {
  letter-spacing: 0.02em;
}

.access-page .access-note::after {
  content: "Access is reviewed manually. No timelines.";
  display: block;
  margin-top: 12px;

  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: rgba(214,177,90,.65);
}
/* =====================================================
   ACCESS PAGE — FORM ENTRANCE
   ===================================================== */

.access-page .access-wrap {
  animation: accessFormIn 0.9s ease-out forwards;
  opacity: 0;
}

@keyframes accessFormIn {
  to {
    opacity: 1;
    transform:
      translate(
        var(--access-form-x),
        var(--access-form-y)
      );
  }
}
