/* ===== Design Me — Modern Theme ===== */
:root {
  --bg: #0a0a0f;
  --bg-soft: #12121a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f4f4f7;
  --muted: #9a9ab0;
  --accent: #8b5cf6;
  --accent-2: #ec4899;
  --accent-3: #38bdf8;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #38bdf8 100%);
  --grad-soft: linear-gradient(135deg, rgba(139,92,246,.18), rgba(236,72,153,.12));
  --radius: 20px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-name { font-family: "Sora", sans-serif; line-height: 1.15; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ===== Background orbs ===== */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; }
.orb-1 { width: 480px; height: 480px; background: var(--accent); top: -120px; left: -100px; animation: float 18s ease-in-out infinite; }
.orb-2 { width: 420px; height: 420px; background: var(--accent-2); top: 40%; right: -120px; animation: float 22s ease-in-out infinite reverse; }
.orb-3 { width: 380px; height: 380px; background: var(--accent-3); bottom: -120px; left: 30%; animation: float 26s ease-in-out infinite; }
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(40px,-30px) scale(1.1); }
}

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-logo { height: 34px; width: auto; }
.brand-name { font-size: 1.25rem; font-weight: 800; letter-spacing: -.5px; }
.brand-accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav { display: flex; gap: 28px; }
.nav a { color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s; position: relative; }
.nav a:hover { color: var(--text); }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--grad); transition: width .25s; border-radius: 2px; }
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.lang-btn { background: none; border: none; color: var(--muted); font-size: .8rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; cursor: pointer; transition: .2s; font-family: inherit; }
.lang-btn.active { background: var(--grad); color: #fff; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-family: "Sora", sans-serif; padding: 13px 26px; border-radius: 999px; cursor: pointer; border: none; transition: transform .2s, box-shadow .2s, background .2s; font-size: .95rem; }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(139,92,246,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(236,72,153,.45); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { padding: 160px 0 90px; text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.badge { display: inline-block; background: var(--grad-soft); border: 1px solid var(--border); color: var(--text); padding: 7px 16px; border-radius: 999px; font-size: .82rem; font-weight: 500; margin-bottom: 24px; }
.hero-title { font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -1.5px; }
.hero-title span { display: inline; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); max-width: 620px; margin: 22px auto 0; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }
.hero-stats { display: flex; gap: 50px; margin-top: 56px; flex-wrap: wrap; justify-content: center; }
.stat { display: flex; flex-direction: column; }
.stat b { font-family: "Sora"; font-size: 2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .9rem; }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow { display: inline-block; color: var(--accent); font-weight: 600; font-size: .85rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -1px; }
.section-desc { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ===== Services cards ===== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 24px; transition: transform .3s, border-color .3s, background .3s; position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0; background: var(--grad-soft); opacity: 0; transition: opacity .3s; }
.card:hover { transform: translateY(-8px); border-color: rgba(139,92,246,.5); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card-icon { font-size: 2.4rem; margin-bottom: 16px; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; }

/* ===== Portfolio ===== */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3;
  border: 1px solid var(--border); background: var(--bg-soft); display: block;
}
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .3s; }
.work:hover img { transform: scale(1.08); }
.work.no-img { background: var(--grad-soft); }
.work.no-img::after { content: "🖼 Rasm yuklanadi"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .9rem; }
.work-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px; background: linear-gradient(to top, rgba(0,0,0,.85), transparent 60%);
  opacity: 0; transform: translateY(12px); transition: .3s;
}
.work:hover .work-overlay { opacity: 1; transform: translateY(0); }
.work-tag { align-self: flex-start; background: var(--grad); color: #fff; font-size: .72rem; font-weight: 600; padding: 4px 11px; border-radius: 999px; margin-bottom: 8px; }
.work-overlay h4 { font-size: 1.05rem; }

/* ===== Process ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 22px; transition: transform .3s; }
.step:hover { transform: translateY(-6px); }
.step-num { font-family: "Sora"; font-size: 2.4rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 12px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .92rem; }

/* ===== Contact ===== */
.contact-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 46px; box-shadow: var(--shadow);
}
.contact-list { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.ci-icon { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border); border-radius: 12px; font-size: 1.2rem; }
.contact-list b { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.contact-list a { font-weight: 500; transition: color .2s; word-break: break-word; }
.contact-list a:hover { color: var(--accent); }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 7px; font-size: .85rem; color: var(--muted); font-weight: 500; }
.contact-form input, .contact-form select, .contact-form textarea {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 13px 15px;
  color: var(--text); font-family: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139,92,246,.18);
}
.contact-form option { background: var(--bg-soft); }
.form-note { font-size: .8rem; color: var(--muted); text-align: center; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); padding: 46px 0 30px; margin-top: 40px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.footer-brand p { color: var(--muted); font-size: .92rem; margin-top: 6px; }
.footer-social { display: flex; gap: 24px; }
.footer-social a { color: var(--muted); font-weight: 500; transition: color .2s; }
.footer-social a:hover { color: var(--accent); }
.footer-copy { color: var(--muted); font-size: .85rem; }
.footer-admin { color: var(--muted); opacity: .6; transition: color .2s, opacity .2s; }
.footer-admin:hover { color: var(--accent); opacity: 1; }

.portfolio-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; font-size: 1.05rem; }

/* ===== Floating Telegram ===== */
.float-tg {
  position: fixed; bottom: 24px; right: 24px; z-index: 90; width: 56px; height: 56px;
  display: grid; place-items: center; border-radius: 50%; color: #fff;
  background: linear-gradient(135deg, #2aabee, #229ed9); box-shadow: 0 10px 28px rgba(34,158,217,.5);
  transition: transform .25s; animation: pulse 2.5s infinite;
}
.float-tg:hover { transform: scale(1.1); }
@keyframes pulse { 0%,100% { box-shadow: 0 10px 28px rgba(34,158,217,.5); } 50% { box-shadow: 0 10px 38px rgba(34,158,217,.85); } }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-card { grid-template-columns: 1fr; padding: 32px; }
}
@media (max-width: 760px) {
  .nav {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(10,10,15,.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
    padding: 10px 22px; transform: translateY(-120%); transition: transform .35s; pointer-events: none;
  }
  .nav.open { transform: translateY(0); pointer-events: auto; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .burger { display: flex; }
  .header-actions .btn-sm { display: none; }
  .hero-stats { gap: 32px; }
  .hero { padding: 130px 0 70px; }
}
@media (max-width: 520px) {
  .cards, .steps, .portfolio-grid { grid-template-columns: 1fr; }
  .lang-switch .lang-btn { padding: 5px 9px; }
}
