/* ============================================
   FAIZ HUSSAIN PORTFOLIO - style.css
   Award-worthy design with glassmorphism
============================================ */

/* === CUSTOM PROPERTIES === */
:root {
  --ink: #0a0a0f;
  --ink-2: #0f0f18;
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --neon: #00f5a0;
  --gold: #f5c842;
  --plasma: #7B61FF;
  --red-accent: #ff4757;
  --muted: #6b7280;
  --white-10: rgba(255,255,255,0.1);
  --white-5: rgba(255,255,255,0.05);
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: #fff;
  font-family: 'Syne', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}
::selection { background: var(--neon); color: var(--ink); }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--neon); border-radius: 10px; }

/* === CUSTOM CURSOR === */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--neon);
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: difference;
}
.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0,245,160,0.3);
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: all 0.12s ease-out;
}
body:hover .cursor { opacity: 1; }

/* === NOISE OVERLAY === */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px;
}

/* === GLASS CARD === */
.glass-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.07);
  transition: border-color 0.3s, background 0.3s;
}
.glass-card:hover {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}

/* === GRADIENT TEXT === */
.gradient-text {
  background: linear-gradient(135deg, var(--neon) 0%, var(--plasma) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.outlined-text {
  -webkit-text-stroke: 2px rgba(255,255,255,0.3);
  color: transparent;
}

/* === NAVBAR === */
.nav-glass {
  background: rgba(10,10,15,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s;
}
.nav-glass.scrolled {
  background: rgba(10,10,15,0.95);
  border-color: rgba(0,245,160,0.1);
}
.cta-btn-sm {
  background: rgba(0,245,160,0.1);
  border: 1px solid rgba(0,245,160,0.3);
  color: var(--neon);
  transition: all 0.3s;
}
.cta-btn-sm:hover {
  background: var(--neon);
  color: var(--ink);
  border-color: var(--neon);
  box-shadow: 0 0 20px rgba(0,245,160,0.4);
}

/* === MOBILE MENU === */
.mobile-menu {
  background: rgba(10,10,15,0.97);
  backdrop-filter: blur(30px);
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.77,0,0.175,1);
  z-index: 40;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-nav-link {
  color: rgba(255,255,255,0.3);
  transition: color 0.3s, letter-spacing 0.3s;
  text-decoration: none;
}
.mobile-nav-link:hover {
  color: var(--neon);
  letter-spacing: 0.1em;
}
.hamburger-icon { display: flex; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger-icon span { display: block; width: 24px; height: 2px; background: white; transition: all 0.3s; border-radius: 2px; }
.hamburger-icon.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-icon.open span:nth-child(2) { opacity: 0; }
.hamburger-icon.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === HERO === */
.hero-title {
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.hero-subtitle { line-height: 1.7; }
.hero-badge {
  background: rgba(0,245,160,0.07);
  border: 1px solid rgba(0,245,160,0.2);
  backdrop-filter: blur(10px);
}
.cta-btn-primary {
  background: linear-gradient(135deg, var(--neon), #00c77a);
  color: var(--ink);
  border: none;
  box-shadow: 0 0 30px rgba(0,245,160,0.3), 0 10px 40px rgba(0,245,160,0.15);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.cta-btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 50px rgba(0,245,160,0.5), 0 15px 50px rgba(0,245,160,0.25);
}
.cta-btn-ghost {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.4s;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.cta-btn-ghost:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
}

/* Hero Background Orbs */
.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,245,160,0.08) 0%, transparent 70%);
  top: -200px; left: -200px;
  animation-delay: 0s;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(123,97,255,0.1) 0%, transparent 70%);
  top: 50%; right: -150px;
  animation-delay: -3s;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,200,66,0.06) 0%, transparent 70%);
  bottom: 0; left: 30%;
  animation-delay: -6s;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  33% { transform: translateY(-30px) scale(1.05); }
  66% { transform: translateY(20px) scale(0.97); }
}

/* Grid Overlay */
.grid-overlay {
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Stats */
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
}
.stat-number { color: var(--neon); }

/* Scroll Indicator */
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* === MARQUEE === */
.marquee-section { background: var(--ink); }
.marquee-track {
  animation: marquee 25s linear infinite;
  width: max-content;
}
.marquee-sep { color: var(--neon); opacity: 0.4; font-size: 1.2rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* === ABOUT === */
.avatar-container { position: relative; width: 320px; height: 320px; }
.avatar-box {
  width: 280px; height: 280px;
  border-radius: 40px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  margin: 20px auto;
}
.avatar-inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.avatar-glow-ring {
  position: absolute;
  inset: -15px;
  border-radius: 55px;
  background: conic-gradient(from 0deg, var(--neon), var(--plasma), var(--gold), var(--neon));
  opacity: 0.3;
  animation: spinRing 6s linear infinite;
  z-index: 0;
}
@keyframes spinRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.floating-card {
  animation: floatCard 4s ease-in-out infinite;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  z-index: 20;
}
.card-1 { top: -10px; right: -40px; animation-delay: 0s; }
.card-2 { bottom: 60px; right: -50px; animation-delay: -1.5s; }
.card-3 { bottom: 0; left: -30px; animation-delay: -3s; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

/* Social Chips */
.social-chip {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: all 0.3s;
}
.social-chip:hover {
  background: rgba(0,245,160,0.08);
  border-color: rgba(0,245,160,0.3);
  color: var(--neon);
  transform: translateY(-2px);
}

/* === SKILLS === */
.skills-bg-orb {
  position: absolute;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(123,97,255,0.06) 0%, transparent 60%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
  border-radius: 50%;
}
.skill-card { transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s; }
.skill-card:hover { transform: translateY(-8px) rotate(-1deg); }
.skill-icon { transition: transform 0.3s; }
.skill-card:hover .skill-icon { transform: scale(1.2) rotate(5deg); }
.skill-bar {
  height: 3px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon), var(--plasma));
  border-radius: 10px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.neon-card { border-color: rgba(0,245,160,0.2) !important; }
.soft-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.02);
  transition: all 0.3s;
}
.soft-tag:hover { border-color: rgba(123,97,255,0.4); color: var(--plasma); }

/* === PROJECTS === */
.project-card {
  transition: border-color 0.4s, transform 0.4s;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(0,245,160,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
}
.project-card:hover::before { opacity: 1; }
.project-card:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-4px); }
.project-bg-number {
  position: absolute;
  top: -20px; right: 20px;
  font-family: 'Clash Display', sans-serif;
  font-size: 10rem;
  font-weight: 800;
  color: rgba(255,255,255,0.02);
  user-select: none;
  line-height: 1;
  pointer-events: none;
}
.project-tag {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4);
  font-size: 0.65rem;
}
.tech-pill {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(0,245,160,0.07);
  border: 1px solid rgba(0,245,160,0.15);
  color: rgba(0,245,160,0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.project-link { text-decoration: none; }

/* Project Mock Screen */
.project-preview-box { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); }
.project-mock-screen { height: 220px; overflow: hidden; }
.mock-bar { background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.04); }
.mock-content { height: calc(100% - 32px); overflow: hidden; }

/* Mobile Mock */
.mobile-mock { position: relative; }
.mobile-screen {
  width: 200px; height: 380px;
  background: rgba(255,255,255,0.03);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 0 30px rgba(255,255,255,0.02);
}
.mobile-notch {
  width: 70px; height: 24px;
  background: var(--ink);
  border-radius: 0 0 16px 16px;
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  z-index: 10;
}

/* === SERVICES === */
.services-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,245,160,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.service-card {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s;
  position: relative;
}
.service-card:hover { transform: translateY(-6px); }
.service-icon {
  font-size: 2.5rem;
  display: block;
  transition: transform 0.4s;
}
.service-card:hover .service-icon { transform: scale(1.15) rotate(-5deg); }
.mini-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.35);
}

/* === FUN ZONE === */
.terminal-box { overflow: hidden; }
.terminal-header { background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.05); }
.terminal-body { min-height: 180px; }
.terminal-input {
  caret-color: var(--neon);
  width: 100%;
}
.terminal-input::placeholder { color: rgba(255,255,255,0.2); }

/* === WHY HIRE ME === */
.why-bg-orb {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(123,97,255,0.08) 0%, transparent 60%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none; border-radius: 50%;
}
.why-icon {
  width: 70px; height: 70px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  transition: all 0.4s;
}
.why-item:hover .why-icon {
  background: rgba(0,245,160,0.1);
  border-color: rgba(0,245,160,0.3);
  box-shadow: 0 0 20px rgba(0,245,160,0.2);
}

/* === CONTACT === */
.contact-bg-orb {
  position: absolute;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(0,245,160,0.05) 0%, transparent 60%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none; border-radius: 50%;
}
.form-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0,245,160,0.15), rgba(123,97,255,0.1), rgba(245,200,66,0.08));
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: 0;
}
.glass-card:focus-within .form-glow { opacity: 1; }
.form-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px 18px;
  color: white;
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  -webkit-appearance: none;
}
.form-input::placeholder { color: rgba(255,255,255,0.2); }
.form-input:focus {
  border-color: rgba(0,245,160,0.4);
  box-shadow: 0 0 0 3px rgba(0,245,160,0.08);
  background: rgba(255,255,255,0.06);
}
select.form-input option { background: #1a1a2e; color: white; }
.submit-btn {
  background: linear-gradient(135deg, var(--neon), #00c77a);
  color: var(--ink);
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}
.submit-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(0,245,160,0.4);
}
.submit-btn:hover::after { opacity: 1; }
.submit-btn:active { transform: scale(0.98); }
.direct-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.3s;
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.03);
}
.whatsapp-btn:hover { background: rgba(37,211,102,0.12); border-color: rgba(37,211,102,0.3); color: #25D366; }
.email-btn:hover { background: rgba(0,245,160,0.08); border-color: rgba(0,245,160,0.2); color: var(--neon); }
.call-btn:hover { background: rgba(123,97,255,0.1); border-color: rgba(123,97,255,0.3); color: var(--plasma); }

/* === FOOTER === */
.social-icon-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: all 0.3s;
}
.social-icon-btn:hover {
  background: rgba(0,245,160,0.1);
  border-color: rgba(0,245,160,0.3);
  color: var(--neon);
  transform: translateY(-3px);
}

/* === WA FLOAT === */
.wa-float {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  z-index: 9999;
  box-shadow: 0 8px 30px rgba(37,211,102,0.4);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  animation: waPulse 3s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.15) rotate(10deg); box-shadow: 0 12px 40px rgba(37,211,102,0.6); }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 8px 50px rgba(37,211,102,0.7), 0 0 0 12px rgba(37,211,102,0.1); }
}

/* === SECTION LABEL === */
.section-label { display: inline-block; }

/* === PARTICLE CANVAS === */
#particle-canvas { pointer-events: none; opacity: 0.6; }

/* === SCROLL ANIMATIONS === */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* === MEDIA QUERIES === */
@media (max-width: 768px) {
  .hero-title { font-size: clamp(3rem, 15vw, 5rem); }
  .card-1, .card-2, .card-3 { display: none; }
  .avatar-container { width: 240px; height: 240px; }
  .avatar-box { width: 200px; height: 200px; }
  .wa-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
  body { cursor: auto; }
  .cursor, .cursor-follower { display: none; }
}

@media (max-width: 480px) {
  .project-bg-number { font-size: 6rem; }
}

/* === HOVER EFFECTS ON LINKS === */
a:not(.cta-btn-primary):not(.cta-btn-ghost):not(.cta-btn-sm):not(.social-chip):not(.project-link):not(.direct-contact-btn):not(.social-icon-btn):not(.wa-float):not(.mobile-nav-link) {
  cursor: none;
}

/* === LOADING TRANSITION === */
.page-loader {
  position: fixed; inset: 0;
  background: var(--ink);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}
.page-loader.loaded { opacity: 0; visibility: hidden; }
.loader-text {
  font-family: 'Clash Display', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neon);
  animation: loaderPulse 0.8s ease-in-out infinite alternate;
}
@keyframes loaderPulse {
  from { opacity: 0.3; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* === MAGNETIC BUTTON EFFECT === */
.magnetic { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* === TOOLTIP === */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
}
[data-tooltip]:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
