/* ═══════════════════════════════════════════════
   ISLOM SHAHOBIDDINOV · LUXURY PORTFOLIO
   style.css
═══════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --black:      #080a0f;
  --bg:         #0c0e15;
  --bg2:        #10131c;
  --bg3:        #161a26;
  --border:     rgba(255,255,255,0.06);
  --border2:    rgba(255,255,255,0.10);

  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --gold-dim:   rgba(201,168,76,0.12);
  --gold-glow:  rgba(201,168,76,0.25);

  --text:       #f0ece4;
  --text2:      #8a8a9a;
  --text3:      #5a5a70;

  --vue:        #42b883;
  --react:      #61dafb;
  --purple:     #9f7aea;

  --radius-sm:  8px;
  --radius:     16px;
  --radius-lg:  24px;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --font-mono:  'Fira Code', monospace;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  background: var(--black);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  cursor: none;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: none; border: none; background: none; font: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* ══════════════════════════════════
   CUSTOM CURSOR
══════════════════════════════════ */
.cursor-dot {
  position: fixed; z-index: 9999; pointer-events: none;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, opacity 0.2s;
}
.cursor-ring {
  position: fixed; z-index: 9998; pointer-events: none;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.5);
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
              border-color 0.35s, transform 0.1s;
}
body:has(a:hover) .cursor-dot,
body:has(button:hover) .cursor-dot { width: 10px; height: 10px; }
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring { width: 48px; height: 48px; border-color: var(--gold); }

/* ══════════════════════════════════
   NOISE TEXTURE
══════════════════════════════════ */
.noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' 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");
}

/* ══════════════════════════════════
   HEADER
══════════════════════════════════ */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 0 48px;
  height: 72px;
  display: flex; align-items: center;
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
#header.scrolled {
  background: rgba(8,10,15,0.9);
  backdrop-filter: blur(24px) saturate(1.5);
  border-color: var(--border);
}
.header-inner {
  width: 100%; max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 40px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 14px; }
.logo-initials {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 16px; font-weight: 700;
  color: var(--black); letter-spacing: 0.5px;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.2; }
.logo-role { font-size: 11px; color: var(--text2); font-weight: 400; }

/* Nav links */
.nav-links {
  display: flex; gap: 32px; margin-left: auto;
}
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--text2);
  transition: color 0.2s; letter-spacing: 0.3px;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Header right */
.header-right { display: flex; align-items: center; gap: 24px; }

/* Language switcher */
.lang-switcher {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 50px;
  border: 1px solid var(--border2);
  background: rgba(255,255,255,0.03);
}
.lang-btn {
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
  color: var(--text3); padding: 2px 4px; border-radius: 4px;
  transition: color 0.2s;
}
.lang-btn.active { color: var(--gold); }
.lang-btn:hover { color: var(--text); }
.lang-divider { color: var(--text3); font-size: 10px; }

/* Hire btn */
.hire-btn {
  padding: 9px 22px; border-radius: 50px;
  border: 1px solid var(--gold);
  font-size: 13px; font-weight: 600; color: var(--gold);
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
  letter-spacing: 0.3px;
}
.hire-btn:hover {
  background: var(--gold); color: var(--black);
  box-shadow: 0 0 24px var(--gold-glow);
}

/* Burger */
.burger { display: none; flex-direction: column; gap: 6px; padding: 4px; margin-left: auto; }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--text); border-radius: 2px; transition: 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed; inset: 0; z-index: 490;
  background: rgba(8,10,15,0.97);
  backdrop-filter: blur(24px);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 40px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 28px; font-weight: 300; font-family: var(--font-serif); color: var(--text); letter-spacing: 1px; }
.mobile-nav a:hover { color: var(--gold); }
.mobile-lang { display: flex; gap: 16px; margin-top: 16px; }
.mobile-lang .lang-btn { font-size: 14px; padding: 6px 12px; border: 1px solid var(--border2); border-radius: 6px; color: var(--text2); }
.mobile-lang .lang-btn.active { color: var(--gold); border-color: var(--gold); }

/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 120px 48px 100px;
  position: relative; overflow: hidden;
  text-align: center;
}

/* Big background text */
.hero-bg-text {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif);
  font-size: clamp(120px, 20vw, 260px);
  font-weight: 700; letter-spacing: -4px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201,168,76,0.06);
  white-space: nowrap; pointer-events: none;
  user-select: none;
  animation: bgDrift 12s ease-in-out infinite alternate;
}
@keyframes bgDrift {
  from { transform: translate(-50%, -50%) scale(1); }
  to   { transform: translate(-50%, -52%) scale(1.03); }
}

/* Gradient orbs */
.hero::before {
  content: '';
  position: absolute; top: -30%; right: -10%;
  width: 60vw; height: 60vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.05) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: -20%; left: -10%;
  width: 40vw; height: 40vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(159,122,234,0.05) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; max-width: 800px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 32px;
}
.dot-gold {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  animation: goldPulse 2.5s ease-in-out infinite;
}
@keyframes goldPulse {
  0%,100% { box-shadow: 0 0 0 0 var(--gold-glow); }
  50%      { box-shadow: 0 0 0 8px transparent; }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(64px, 10vw, 130px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -2px;
  margin-bottom: 32px;
  color: var(--text);
}
.hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.hero-desc {
  font-size: 16px; color: var(--text2);
  line-height: 1.8; max-width: 560px; margin: 0 auto 48px;
  font-weight: 300;
}

.hero-meta {
  display: inline-flex; align-items: center; gap: 32px;
  padding: 20px 40px; border-radius: 50px;
  border: 1px solid var(--border2);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(12px);
}
.hero-meta-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.meta-num {
  font-family: var(--font-serif); font-size: 28px; font-weight: 600;
  color: var(--gold); line-height: 1;
}
.meta-label { font-size: 11px; color: var(--text2); letter-spacing: 0.5px; white-space: nowrap; }
.hero-divider { width: 1px; height: 36px; background: var(--border2); }

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  z-index: 2;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}
.scroll-hint span {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--text3); writing-mode: horizontal-tb;
}

/* ══════════════════════════════════
   PROJECTS SECTION
══════════════════════════════════ */
.projects-section {
  padding: 120px 48px;
  position: relative; z-index: 2;
  background: var(--bg);
}
.projects-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0.3;
}

/* Section header */
.section-header { text-align: center; margin-bottom: 64px; }
.section-eyebrow {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-bottom: 20px;
  font-size: 11px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold);
}
.gold-line {
  display: block; width: 48px; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}
.gold-line:last-child { background: linear-gradient(to left, transparent, var(--gold)); }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 300; color: var(--text);
  letter-spacing: -1px;
}

/* Filter tabs */
.filter-tabs {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-bottom: 72px; flex-wrap: wrap;
}
.filter-btn {
  padding: 9px 22px; border-radius: 50px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.3px;
  color: var(--text2);
  border: 1px solid var(--border);
  background: transparent;
  transition: all 0.25s var(--ease-out);
}
.filter-btn:hover { border-color: var(--border2); color: var(--text); }
.filter-btn.active {
  background: var(--gold-dim);
  border-color: rgba(201,168,76,0.4);
  color: var(--gold);
}

/* ══ Projects Grid ══ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1280px; margin: 0 auto;
}

/* Project Card */
.project-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg2);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.project-card:hover {
  border-color: rgba(201,168,76,0.25);
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,168,76,0.1);
}
.project-card.hidden { display: none; }

/* Card number */
.card-num {
  position: absolute; top: 20px; left: 22px; z-index: 3;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  color: var(--gold); letter-spacing: 1px;
  opacity: 0.7;
}

/* Card image / placeholder */
.card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg3);
}
.card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,
    hsl(var(--hue), 40%, 10%) 0%,
    hsl(var(--hue), 30%, 7%) 100%
  );
  color: hsl(var(--hue), 70%, 65%);
  transition: transform 0.6s var(--ease-out);
}
.project-card:hover .card-img-placeholder { transform: scale(1.05); }

/* Card real image */
.card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.6s var(--ease-out), filter 0.4s var(--ease-out);
  filter: saturate(0.9) brightness(0.92);
}
.project-card:hover .card-img {
  transform: scale(1.06);
  filter: saturate(1.05) brightness(1);
}

/* Overlay */
.card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--bg2) 100%);
}

/* Card links (shown on hover) */
.card-links {
  position: absolute; top: 16px; right: 16px;
  display: flex; gap: 8px;
  opacity: 0; transform: translateY(-8px);
  transition: opacity 0.3s, transform 0.3s;
}
.project-card:hover .card-links { opacity: 1; transform: translateY(0); }
.card-link-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(8,10,15,0.85);
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text2);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.card-link-btn:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }

/* Card body */
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 12px; }

/* Tags */
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 3px 10px; border-radius: 50px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.3px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text2);
  font-family: var(--font-mono);
  transition: all 0.2s;
}
.tag:hover { border-color: var(--border2); color: var(--text); }
.tag-primary { background: rgba(66,184,131,0.1); border-color: rgba(66,184,131,0.25); color: var(--vue); }
.tag-react   { background: rgba(97,218,251,0.1); border-color: rgba(97,218,251,0.25); color: var(--react); }

/* Card title */
.card-title {
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 500;
  color: var(--text); letter-spacing: -0.3px;
  line-height: 1.25;
}

/* Card description */
.card-desc {
  font-size: 13px; color: var(--text2); line-height: 1.75;
  flex: 1;
}

/* Card footer */
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.card-company { font-size: 12px; color: var(--text3); font-family: var(--font-mono); }
.card-type {
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
  padding: 3px 10px; border-radius: 50px;
  background: var(--gold-dim); color: var(--gold);
  border: 1px solid rgba(201,168,76,0.2);
}

/* ══════════════════════════════════
   CONTACT STRIP
══════════════════════════════════ */
.contact-strip {
  padding: 100px 48px;
  position: relative; z-index: 2;
  background: var(--bg2);
  overflow: hidden;
}
.contact-strip::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(201,168,76,0.05) 0%, transparent 70%);
}
.contact-strip::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0.25;
}
.contact-strip-inner {
  max-width: 700px; margin: 0 auto;
  text-align: center; position: relative; z-index: 2;
}
.contact-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 20px; display: block;
}
.contact-heading {
  font-family: var(--font-serif);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 300; color: var(--text);
  letter-spacing: -1px; margin-bottom: 16px;
}
.contact-sub { font-size: 16px; color: var(--text2); margin-bottom: 48px; font-weight: 300; }
.contact-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* Gold button */
.btn-gold {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 36px; border-radius: 50px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--black); font-weight: 600; font-size: 14px;
  letter-spacing: 0.3px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.btn-gold:hover {
  box-shadow: 0 8px 40px var(--gold-glow);
  transform: translateY(-2px);
}
.btn-gold svg { transition: transform 0.3s; }
.btn-gold:hover svg { transform: translateX(4px); }

/* Ghost button */
.btn-ghost {
  display: inline-flex; align-items: center;
  padding: 14px 36px; border-radius: 50px;
  border: 1px solid var(--border2);
  color: var(--text2); font-size: 14px; font-weight: 500;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.footer {
  padding: 28px 48px;
  border-top: 1px solid var(--border);
  background: var(--black);
  position: relative; z-index: 2;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center;
  gap: 24px;
}
.footer-name {
  font-family: var(--font-serif); font-size: 16px;
  font-weight: 500; color: var(--text); letter-spacing: 0.3px;
}
.footer-copy { font-size: 12px; color: var(--text3); margin-left: 8px; }
.footer-links {
  display: flex; gap: 24px; margin-left: auto;
}
.footer-links a { font-size: 12px; color: var(--text3); transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }

/* ══════════════════════════════════
   REVEAL ANIMATIONS
══════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Staggered cards */
.project-card:nth-child(1) { transition-delay: 0.0s; }
.project-card:nth-child(2) { transition-delay: 0.1s; }
.project-card:nth-child(3) { transition-delay: 0.2s; }
.project-card:nth-child(4) { transition-delay: 0.0s; }
.project-card:nth-child(5) { transition-delay: 0.1s; }
.project-card:nth-child(6) { transition-delay: 0.2s; }

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 1100px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  #header { padding: 0 24px; }
  .nav-links, .header-right { display: none; }
  .burger { display: flex; }

  .hero { padding: 100px 24px 80px; }
  .hero-meta { flex-wrap: wrap; gap: 20px; padding: 16px 24px; }

  .projects-section { padding: 80px 24px; }
  .contact-strip { padding: 72px 24px; }
  .footer { padding: 24px; }
  .footer-inner { flex-wrap: wrap; }
  .footer-links { margin-left: 0; }
}

@media (max-width: 640px) {
  .projects-grid { grid-template-columns: 1fr; }
  .hero-bg-text { font-size: 80px; }
  .hero-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-radius: 16px; }
  .hero-divider { display: none; }
}
