/* Hazrata Ali - Portfolio Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --yellow: #F5C518;
  --yellow-hover: #E0B40D;
  --green: #10B981;
  --green-hover: #EF4444; /* Hover button must be red, active must be zoom out */
  --black: #000000;
  --white: #FFFFFF;
  --gray-light: #F9FAFB;
  --gray-med: #E5E7EB;
  --gray-dark: #1F2937;
}

body {
  background-color: var(--white);
  color: var(--black);
  font-family: 'Outfit', 'Poppins', sans-serif;
  overflow-x: hidden;
}

/* Desktop nav link hover underline */
.nav-link {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--yellow);
  transition: width 0.25s ease;
}
.nav-link:hover { color: var(--yellow); }
.nav-link:hover::after { width: 100%; }

/* Hide scrollbar on mobile section nav strip */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--white);
}
::-webkit-scrollbar-thumb {
  background: var(--black);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--yellow);
}

/* Three.js Canvas Background styling */
#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* Custom animations and frames */
.border-frame {
  position: relative;
  background-color: var(--white);
  border: 3px solid var(--black);
  box-shadow: 8px 8px 0px var(--yellow);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.border-frame:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0px var(--black);
}

/* Zoom out active effect on button press */
.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--black);
  background-color: var(--green);
  color: var(--white);
  border-radius: 0.5rem;
  box-shadow: 4px 4px 0px var(--black);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-premium:hover {
  background-color: var(--green-hover); /* Red as per requirements */
  color: var(--white);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--black);
}

.btn-premium:active {
  transform: scale(0.92); /* Zoom out effect */
  box-shadow: 2px 2px 0px var(--black);
}

/* Secondary Button with similar active behavior */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--black);
  background-color: var(--white);
  color: var(--black);
  border-radius: 0.5rem;
  box-shadow: 4px 4px 0px var(--yellow);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: var(--yellow);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--black);
}

.btn-secondary:active {
  transform: scale(0.92); /* Zoom out */
  box-shadow: 2px 2px 0px var(--black);
}

/* Float animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-float-slow {
  animation: float 6s ease-in-out infinite;
}

.animate-float-fast {
  animation: float 3s ease-in-out infinite;
}

/* Scroll reveal animations */
.reveal-on-scroll {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-active {
  opacity: 1 !important;
  transform: translate(0) !important;
}

/* Opacity transition for profile image */
.profile-image-container {
  position: relative;
  transition: opacity 0.5s ease, transform 0.5s ease;
  opacity: 0.4; /* Starts with low opacity */
}

.profile-image-container:hover {
  opacity: 1; /* Fully visible on hover */
  transform: scale(1.02);
}

/* Custom interactive background decorative shapes */
.bg-shape-dots {
  background-image: radial-gradient(var(--gray-med) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
}

/* Floating WhatsApp button pulse */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.whatsapp-pulse {
  animation: pulse-ring 2s infinite;
}

/* Glowing Accent Border */
.yellow-gradient-border {
  background: linear-gradient(var(--white), var(--white)) padding-box,
              linear-gradient(135deg, var(--yellow), var(--green)) border-box;
  border: 4px solid transparent;
}

/* Profile Photo Shake Click Animation */
.profile-click-active {
  animation: photo-shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
  border-color: var(--green-hover) !important; /* Turns red */
  box-shadow: 12px 12px 0px var(--green-hover) !important;
}

@keyframes photo-shake {
  10%, 90% { transform: scale(1.03) rotate(-2deg); }
  30%, 70% { transform: scale(0.97) rotate(2deg); }
  45%, 55% { transform: scale(1.02) rotate(-1deg); }
}

/* Typewriter cursor blinking animation */
@keyframes blink-cursor {
  50% { opacity: 0; }
}

.typewriter-cursor {
  animation: blink-cursor 0.75s step-end infinite;
}

/* Fullscreen loading animation keyframes */
@keyframes loading {
  0% { left: -50%; width: 30%; }
  50% { left: 30%; width: 40%; }
  100% { left: 100%; width: 30%; }
}

/* Custom cursor styling (Desktop only) */
@media (min-width: 768px) {
  body {
    cursor: none;
  }
  a, button, input, textarea, select, [role="button"], .cursor-pointer {
    cursor: none;
  }
  #custom-cursor-dot {
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.08s ease-out;
  }
  #custom-cursor-ring {
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out, width 0.2s, height 0.2s, background-color 0.2s;
  }
}

/* Section Title Reveal (Split text mask animation) */
.reveal-title {
  overflow: hidden;
}
.reveal-title span {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}
.reveal-title.reveal-active span {
  transform: translateY(0);
}

/* Dark mode custom shadow variant overrides for neo-brutalist grids */
.dark .border-frame {
  background-color: var(--gray-dark);
  border-color: var(--white);
  box-shadow: 8px 8px 0px var(--white);
}
.dark .border-frame:hover {
  box-shadow: 12px 12px 0px var(--yellow);
}

.dark .btn-premium {
  border-color: var(--white);
  box-shadow: 4px 4px 0px var(--white);
}
.dark .btn-premium:hover {
  box-shadow: 6px 6px 0px var(--yellow);
}

.dark .btn-secondary {
  border-color: var(--white);
  background-color: var(--gray-dark);
  color: var(--white);
  box-shadow: 4px 4px 0px var(--yellow);
}
.dark .btn-secondary:hover {
  background-color: var(--yellow);
  color: var(--black);
  box-shadow: 6px 6px 0px var(--white);
}

.dark .border-2 {
  border-color: var(--white) !important;
}

.dark header {
  background-color: rgba(9, 9, 11, 0.9) !important;
}


/* ================================================
   PROFESSIONAL CORNER WIDGET SYSTEM
   4 uniquely animated corners
   ================================================ */

/* Base widget — fixed position, pointer-events off, desktop only */
.corner-widget {
  position: fixed;
  z-index: 40;
  pointer-events: none;
  display: none;           /* hidden on mobile */
}
@media (min-width: 1024px) {
  .corner-widget { display: block; }
}

/* ---- SHARED: L-shaped Bracket ---- */
.corner-bracket {
  position: absolute;
  width: 22px;
  height: 22px;
}
.corner-bracket.tl {
  top: 0; left: 0;
  border-top: 2px solid #000;
  border-left: 2px solid #000;
}
.corner-bracket.tr {
  top: 0; right: 0;
  border-top: 2px solid #000;
  border-right: 2px solid #000;
}
.corner-bracket.bl {
  bottom: 0; left: 0;
  border-bottom: 2px solid #000;
  border-left: 2px solid #000;
}
.corner-bracket.br {
  bottom: 0; right: 0;
  border-bottom: 2px solid #000;
  border-right: 2px solid #000;
}
.dark .corner-bracket { border-color: rgba(255,255,255,0.7) !important; }

/* ---- SHARED: HUD text label ---- */
.corner-label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 26px;
}
.corner-label.right   { flex-direction: row-reverse; }
.corner-label.bottom  { margin-top: 0; margin-bottom: 28px; }
.corner-label.right.bottom { flex-direction: row-reverse; }

.hud-text {
  font-family: 'Outfit', monospace;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #666;
}
.dark .hud-text { color: #aaa; }

.hud-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #10B981;
  animation: hud-dot-blink 1.4s ease-in-out infinite;
}
.hud-dot.gold  { background: #F5C518; animation-delay: 0.3s; }
.hud-dot.red   { background: #EF4444; }
.hud-dot.pulse { animation: hud-dot-blink 0.9s ease-in-out infinite; }

@keyframes hud-dot-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.25; transform: scale(0.5); }
}


/* ================================================
   TOP-LEFT — HUD / Scanning Line
   ================================================ */
.corner-tl {
  top: 20px; left: 20px;
  width: 110px;
}

/* Animated horizontal scan line */
.hud-scan-line {
  position: absolute;
  top: 8px; left: 24px;
  width: 80px; height: 1.5px;
  background: #F5C518;
  transform-origin: left;
  animation: hud-scan 2.4s ease-in-out infinite;
}
@keyframes hud-scan {
  0%   { transform: scaleX(0); opacity: 0; }
  20%  { transform: scaleX(1); opacity: 1; }
  80%  { transform: scaleX(1); opacity: 0.7; }
  100% { transform: scaleX(0); opacity: 0; }
}

/* Tiny animating bars (audio visualizer style) */
.hud-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  margin-top: 4px;
  margin-left: 2px;
  height: 14px;
}
.hud-bar {
  width: 4px;
  background: #F5C518;
  border-radius: 1px;
  animation: hud-bar-bounce 0.8s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}
.dark .hud-bar { background: #F5C518; }
@keyframes hud-bar-bounce {
  from { height: 4px; }
  to   { height: 12px; }
}


/* ================================================
   TOP-RIGHT — Radar / Orbit Ring
   ================================================ */
.corner-tr {
  top: 20px; right: 20px;
  width: 90px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(245,197,24,0.35);
  top: 6px; right: 6px;
  animation: radar-expand 2.8s ease-out infinite;
}
.radar-ring.r1 { width: 28px; height: 28px; animation-delay: 0s; }
.radar-ring.r2 { width: 28px; height: 28px; animation-delay: 1.4s; }

@keyframes radar-expand {
  0%   { transform: scale(0.5); opacity: 0.8; }
  80%  { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Central radar blip dot */
.radar-blip {
  position: absolute;
  top: 16px; right: 16px;
  width: 8px; height: 8px;
  background: #F5C518;
  border-radius: 50%;
  box-shadow: 0 0 6px 2px rgba(245,197,24,0.6);
  animation: radar-blip-pulse 1.4s ease-in-out infinite;
}
@keyframes radar-blip-pulse {
  0%, 100% { box-shadow: 0 0 6px 2px rgba(245,197,24,0.6); }
  50%       { box-shadow: 0 0 14px 5px rgba(245,197,24,0.2); }
}

.corner-tr .corner-label {
  margin-top: 44px;
}


/* ================================================
   BOTTOM-LEFT — Scroll Progress Arc
   ================================================ */
.corner-bl {
  bottom: 20px; left: 20px;
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.scroll-arc {
  width: 56px; height: 56px;
  position: relative;
}
.arc-transition {
  transition: stroke-dashoffset 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Number overlay in the center of the arc */
.arc-center-text {
  position: absolute;
  bottom: 36px; left: 14px;
  display: flex;
  align-items: baseline;
  gap: 1px;
}
.scroll-pct-num {
  font-family: 'Outfit', monospace;
  font-size: 11px;
  font-weight: 800;
  color: #F5C518;
  line-height: 1;
}
.scroll-pct-sym {
  font-family: 'Outfit', monospace;
  font-size: 7px;
  font-weight: 700;
  color: #999;
}

.corner-bl .corner-label.bottom {
  margin-top: 2px;
}


/* ================================================
   BOTTOM-RIGHT — Neon Diamond Pulse
   ================================================ */
.corner-br {
  bottom: 20px; right: 20px;
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.diamond-container {
  position: relative;
  width: 36px; height: 36px;
  margin-bottom: 2px;
  margin-right: 4px;
}

.diamond {
  position: absolute;
  transform-origin: center;
  transform: rotate(45deg);
  border-radius: 2px;
}

.d-outer {
  width: 32px; height: 32px;
  top: 2px; left: 2px;
  border: 1.5px solid rgba(245,197,24,0.35);
  animation: diamond-spin 7s linear infinite;
}
.d-inner {
  width: 20px; height: 20px;
  top: 8px; left: 8px;
  border: 1.5px solid rgba(239,68,68,0.5);
  animation: diamond-spin 4s linear infinite reverse;
}
.d-core {
  width: 8px; height: 8px;
  top: 14px; left: 14px;
  background: #F5C518;
  box-shadow: 0 0 8px 3px rgba(245,197,24,0.5);
  animation: diamond-core-pulse 1.6s ease-in-out infinite;
  border: none;
}

@keyframes diamond-spin {
  from { transform: rotate(45deg); }
  to   { transform: rotate(405deg); }
}
@keyframes diamond-core-pulse {
  0%, 100% { box-shadow: 0 0 8px 3px rgba(245,197,24,0.5); transform: rotate(45deg) scale(1); }
  50%       { box-shadow: 0 0 16px 7px rgba(245,197,24,0.2); transform: rotate(45deg) scale(0.7); }
}

.corner-br .corner-label.right.bottom {
  margin-bottom: 0;
  margin-top: 0;
}



