/* =============================================
   MUXTORBEK.UZ — Asosiy stil fayli
   O'qituvchi portfolio sayti
   ============================================= */

/* ---------- CSS O'zgaruvchilar (Design Tokens) ---------- */
:root {
  --primary:       #1a3a5c;   /* To'q ko'k — asosiy rang  */
  --primary-light: #2456a4;   /* Ochroq ko'k             */
  --accent:        #e8a020;   /* Oltin — aktsent rang    */
  --accent-light:  #ffd166;   /* Och oltin               */
  --bg:            #f8f7f3;   /* Krema fon               */
  --bg-alt:        #eef1f7;   /* Muqobil fon             */
  --surface:       #ffffff;   /* Karta/panel fon         */
  --text:          #1c2333;   /* Asosiy matn             */
  --text-muted:    #5a6680;   /* Yordamchi matn          */
  --border:        #dde3ef;   /* Chegara chizig'i        */

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

  --shadow-sm:  0 2px 8px rgba(26,58,92,.07);
  --shadow-md:  0 6px 24px rgba(26,58,92,.12);
  --shadow-lg:  0 16px 48px rgba(26,58,92,.16);

  --transition: 0.3s ease;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Bo'lim umumiy uslublari ---------- */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(232,160,32,.12);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  line-height: 1.2;
}

.section-desc {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
}

/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(248,247,243,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.header.scrolled { box-shadow: var(--shadow-md); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  color: var(--primary);
}

.logo__icon {
  width: 38px; height: 38px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}

/* Nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}

.nav__link:hover {
  background: var(--bg-alt);
  color: var(--primary-light);
}

.nav__link--cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 18px;
}

.nav__link--cta:hover {
  background: var(--primary-light);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Hamburger — ochiq holati */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Fon shakllari */
.hero__bg-shapes { position: absolute; inset: 0; pointer-events: none; }

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.18;
}

.shape--1 {
  width: 480px; height: 480px;
  background: var(--primary-light);
  top: -100px; right: -120px;
}

.shape--2 {
  width: 320px; height: 320px;
  background: var(--accent);
  bottom: 0; left: -80px;
}

.shape--3 {
  width: 200px; height: 200px;
  background: var(--accent-light);
  top: 40%; right: 30%;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero — matn */
.hero__badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 62px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 22px;
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}

.hero__title em::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0.35;
  border-radius: 2px;
}

.hero__desc {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.75;
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero — rasm */
.hero__photo { position: relative; display: flex; justify-content: center; }

.photo-frame {
  width: 340px; height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-alt), var(--border));
  border: 3px solid var(--border);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.photo-frame__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Rasm topilmasa placeholder */
.photo-frame__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.photo-frame__placeholder svg { width: 80px; height: 80px; }

/* Agar haqiqiy rasm bo'lsa, placeholder yashiriladi */
.photo-frame__img:not([src="my-photo.jpg"]) + .photo-frame__placeholder,
.photo-frame__img[src] + .photo-frame__placeholder { display: none; }

/* Hero stat badge-lar */
.hero__stat {
  position: absolute;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: 1.5px solid var(--border);
}

.hero__stat strong { font-size: 18px; font-weight: 700; color: var(--primary); }
.hero__stat span   { font-size: 11px; color: var(--text-muted); white-space: nowrap; }

.hero__stat--1 { bottom: 40px; left: -20px; }
.hero__stat--2 { top: 30px; right: -20px; }

/* =============================================
   TUGMALAR
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(26,58,92,.25);
}

.btn--primary:hover {
  background: var(--primary-light);
  box-shadow: 0 6px 24px rgba(36,86,164,.35);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn--card {
  background: transparent;
  color: var(--primary-light);
  padding: 8px 0;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}

.btn--card:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.btn--news {
  color: var(--primary-light);
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 2px solid var(--accent);
}

.btn--news:hover { color: var(--accent); }

/* Blog kartochkasi — hali chop etilmagan maqola belgisi */
.news-card__soon {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  padding: 6px 14px;
  border-radius: 100px;
}

.btn--full { width: 100%; justify-content: center; }

/* =============================================
   LOYIHALARIM — Cards Grid
   ============================================= */
.projects { background: var(--bg-alt); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: var(--primary-light);
}

.card__icon { font-size: 32px; }

.card__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

.card__desc {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.65;
  flex: 1;
}

/* =============================================
   MEN HAQIMDA
   ============================================= */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: center;
}

.about__visual { display: flex; justify-content: center; }

.about__decor {
  width: 260px; height: 260px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.decor-ring {
  width: 260px; height: 260px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  position: absolute;
  opacity: 0.35;
  animation: spin 20s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.decor-dot {
  position: absolute;
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
}

.decor-dot--1 { top: 10px; left: 50%; transform: translateX(-50%); }
.decor-dot--2 { bottom: 10px; left: 50%; transform: translateX(-50%); }

.about__initials {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 900;
  position: absolute;
  color: var(--primary);
  opacity: 0.5;
  border-radius: 50%;
  user-select: none;
  letter-spacing: -4px;
}

img.about__initials {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.5;
  border-radius: 50%;
  user-select: none;
  letter-spacing: -4px;
}

img.about__initials:hover {
  opacity: 1;
}

.about__content { max-width: 560px; }

.about__text {
  color: var(--text-muted);
  font-size: 16.5px;
  line-height: 1.8;
  margin-bottom: 18px;
}

.about__text strong { color: var(--primary); font-weight: 600; }

.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tag {
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 100px;
}

/* =============================================
   ISH JOYLARIM
   ============================================= */
.workplaces { background: var(--bg-alt); }

.workplaces__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.workplace-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.workplace-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.workplace-card__num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.5;
  line-height: 1;
  flex-shrink: 0;
}

.workplace-card__name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.workplace-card__role {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.workplace-card__body { min-width: 0; overflow-wrap: anywhere; }

.workplace-card__icon {
  font-size: 28px;
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0.5;
}

/* =============================================
   YANGILIKLAR — News / Blog
   ============================================= */
.news { background: var(--bg); }

.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all var(--transition);
}

.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.news-card__date {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
}

.news-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

.news-card__desc {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.65;
  flex: 1;
}

/* =============================================
   BOG'LANISH — Contact
   ============================================= */
.contact { background: var(--bg-alt); }

.contact__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Form */
.contact__form-wrap {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-md);
}

.contact__form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 7px; }

.form-group label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(36,86,164,.12);
}

.form-success {
  display: none;
  color: #2d7a4a;
  font-size: 14px;
  font-weight: 500;
  background: #e8f5ee;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.form-error {
  display: none;
  color: #b3261e;
  font-size: 14px;
  font-weight: 500;
  background: #fbe9e7;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  text-align: center;
}

/* Aloqa ma'lumotlari */
.contact__info { padding-top: 12px; }

.contact__info-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 30px;
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact__item-icon {
  width: 44px; height: 44px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.contact__item-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.contact__item-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  transition: color var(--transition);
}

.contact__item-value:hover { color: var(--primary-light); }

.contact__social {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.social-btn {
  width: 44px; height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  transition: all var(--transition);
}

.social-btn svg { width: 20px; height: 20px; }

.social-btn:hover {
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(232,160,32,.35);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,.75);
  padding: 36px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.logo--light .logo__icon { background: rgba(255,255,255,.15); }
.logo--light .logo__text { color: #fff; }

.footer__copy { font-size: 14px; }

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.footer__nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}

.footer__nav a:hover { color: var(--accent-light); }

/* =============================================
   SCROLL ANIMATSIYALAR
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in--delay { transition-delay: 0.18s; }

/* =============================================
   RESPONSIVE — Mobil
   ============================================= */
@media (max-width: 1024px) {
  .cards-grid    { grid-template-columns: repeat(2, 1fr); }
  .news__grid    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Header mobil */
  .hamburger { display: flex; }

  .nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(248,247,243,.98);
    backdrop-filter: blur(16px);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    box-shadow: var(--shadow-md);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__list { flex-direction: column; align-items: stretch; gap: 6px; }
  .nav__link { padding: 12px 16px; }

  /* Hero */
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero__desc { margin: 0 auto 32px; }
  .hero__actions { justify-content: center; }

  .photo-frame { width: 260px; height: 320px; }
  .hero__stat--1 { left: 0; }
  .hero__stat--2 { right: 0; }

  /* Cards */
  .cards-grid { grid-template-columns: 1fr; }
  .news__grid  { grid-template-columns: 1fr; }

  /* About */
  .about__inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .about__visual { display: none; }
  .about__tags { justify-content: center; }

  /* Workplaces */
  .workplaces__grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact__inner { grid-template-columns: 1fr; gap: 36px; }
  .contact__form-wrap { padding: 28px 22px; }

  /* Footer */
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__nav { justify-content: center; }

  /* Section spacing */
  .section { padding: 70px 0; }
}

@media (max-width: 480px) {
  .hero { padding: 120px 0 60px; }
  .hero__title { font-size: 36px; }
  .hero__actions { flex-direction: column; width: 100%; }
  .btn { width: 100%; justify-content: center; }
}
