/* =========================================================
   MADINA QALANDAROVA — PORTFOLIO PERFECTED & FULL RESPONSIVE
   ========================================================= */

:root {
  --font-main: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-code: "Fira Code", monospace;

  /* Dark Theme Default Variables */
  --bg-primary: #060913;
  --bg-secondary: #0c1222;
  --bg-card: rgba(15, 23, 42, 0.7);
  --bg-card-hover: rgba(30, 41, 59, 0.9);

  --text-main: #94a3b8;
  --text-bold: #f8fafc;
  --text-muted: #64748b;

  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;

  --border-color: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(59, 130, 246, 0.5);

  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.25);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.5);

  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables (To'g'rilangan kontrast) */
[data-theme="light"],
.light-theme {
  --bg-primary: #f8fafc;
  --bg-secondary: #edf2f7;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;

  --text-main: #334155;
  --text-bold: #0f172a;
  --text-muted: #64748b;

  --border-color: rgba(0, 0, 0, 0.12);
  --border-hover: rgba(59, 130, 246, 0.6);

  --shadow-glow: 0 10px 30px rgba(59, 130, 246, 0.15);
  --shadow-card: 0 15px 35px -10px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition:
    background-color 0.4s ease,
    color 0.4s ease;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* Dynamic Background Glow */
.bg-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(59, 130, 246, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 70%,
      rgba(139, 92, 246, 0.12) 0%,
      transparent 40%
    );
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(6, 9, 19, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .navbar {
  background: rgba(248, 250, 252, 0.85);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-bold);
}
.logo-bracket {
  color: var(--accent-blue);
}
.logo-dot {
  color: var(--accent-purple);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent-blue);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-select-wrapper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.8rem;
  border-radius: 10px;
  backdrop-filter: blur(8px);
}

.lang-select {
  background: transparent;
  border: none;
  color: var(--text-bold);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  outline: none;
}

.lang-select option {
  background: var(--bg-primary);
  color: var(--text-bold);
}

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  color: var(--text-bold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: scale(1.05);
}

/* Theme Icon display rules */
[data-theme="dark"] .icon-sun {
  display: block;
  color: #f59e0b;
}
[data-theme="dark"] .icon-moon {
  display: none;
}
[data-theme="light"] .icon-sun {
  display: none;
}
[data-theme="light"] .icon-moon {
  display: block;
  color: #3b82f6;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background-color: var(--text-bold);
}

/* HERO SECTION LAYOUT */
.hero-section {
  min-height: 100vh;
  padding-top: 130px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 1-BLOK: Robot (Chap) va Code Visual (O'ng) */
.hero-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.hero-robot-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.robot-glow {
  position: absolute;
  width: 160px;
  height: 160px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.4) 0%,
    transparent 70%
  );
  filter: blur(25px);
  z-index: -1;
  transition: var(--transition);
}

.robot-img {
  width: 100%;
  max-width: 230px;
  height: auto;
  object-fit: contain;
  animation: robotFloat 4s ease-in-out infinite;
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.5s ease;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.35));
}

.hero-robot-wrapper:hover .robot-img {
  transform: scale(1.18) rotate(4deg) translateY(-12px);
  filter: drop-shadow(0 25px 35px rgba(59, 130, 246, 0.6));
}

.robot-shadow {
  width: 110px;
  height: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  filter: blur(4px);
  margin-top: 10px;
  animation: shadowPulse 4s ease-in-out infinite;
}

@keyframes robotFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

@keyframes shadowPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(0.7);
    opacity: 0.15;
  }
}

/* 2-BLOK: Hero Content + _> Symbol */
.hero-bottom-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.45rem 1.1rem;
  border-radius: 30px;
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
}

.hero-title {
  font-size: 3rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-bold);
}

.greeting {
  display: block;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-main);
}

.gradient-text {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  max-width: 650px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.pill {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-bold);
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: #fff;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-bold);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  border-color: var(--accent-blue);
}

/* Katta _> belgisi */
.hero-symbol-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 1.5rem;
}

.hero-symbol {
  font-family: var(--font-code);
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
  animation: symbolGlow 3s ease-in-out infinite alternate;
}

@keyframes symbolGlow {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  100% {
    transform: scale(1.08);
    filter: brightness(1.3);
  }
}

/* CODE VISUAL CARD */
.code-card-glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: var(--shadow-card);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-color);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red {
  background: #ff5f56;
}
.dot.yellow {
  background: #ffbd2e;
}
.dot.green {
  background: #27c93f;
}

.card-title {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-code);
}

.code-block {
  font-family: var(--font-code);
  font-size: 0.95rem;
  line-height: 1.6;
}

.k {
  color: #f472b6;
}
.v {
  color: #60a5fa;
}
.p {
  color: #38bdf8;
}
.s {
  color: #34d399;
}
.b {
  color: #fbbf24;
}

.scroll-down-btn {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 2rem;
}
/* CERTIFICATES SECTION STYLES */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  transition: var(--transition);
  text-decoration: none;
}

.cert-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-glow);
}

.cert-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.cert-badge-icon.purple {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
}

.cert-badge-icon.cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
}

.cert-details {
  flex-grow: 1;
}

.cert-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-bold);
  margin-bottom: 0.2rem;
}

.cert-issuer {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.cert-status-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.12);
  padding: 0.35rem 0.7rem;
  border-radius: 20px;
  flex-shrink: 0;
}
/* =========================================================
   EDUCATION TIMELINE SECTION
   ========================================================= */

.edu-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 850px;
  margin: 0 auto;
  position: relative;
}

.edu-card {
  display: flex;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  position: relative;
}

.edu-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-blue);
  box-shadow: 0 15px 30px -10px rgba(59, 130, 246, 0.2);
}

.edu-icon-box {
  width: 55px;
  height: 55px;
  border-radius: 16px;
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.edu-icon-box.cyan {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
}

.edu-content {
  flex-grow: 1;
}

.edu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.edu-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.edu-type-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.12);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

.edu-type-badge.cyan {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
}

.edu-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-bold);
  margin-bottom: 0.2rem;
}

.edu-place {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 0.8rem;
}

.edu-desc {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
}

/* Mobil qurilmalar uchun responsive */
@media (max-width: 600px) {
  .edu-card {
    flex-direction: column;
    padding: 1.5rem;
  }
}
/* STATS & SECTIONS */
.stats-section {
  padding: 2.5rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-bold);
}
.stat-label {
  font-size: 0.88rem;
  color: var(--text-main);
}

.section {
  padding: 5.5rem 0;
}
.bg-alt {
  background-color: var(--bg-secondary);
}

.section-header {
  margin-bottom: 3rem;
}
.section-badge {
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent-blue);
  letter-spacing: 1.5px;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-bold);
}

/* ABOUT & CONTACT */
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

.about-p,
.contact-desc {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 1.2rem;
}

.about-profile-card,
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: white;
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
}

.profile-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-bold);
}
.profile-role {
  font-size: 0.9rem;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.profile-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.profile-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.92rem;
  color: var(--text-main);
}
.profile-list li i {
  color: var(--accent-purple);
}

/* CONTACT LINKS (INSTA, TG, EMAIL...) */
.contact-links-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.1rem;
  border-radius: 14px;
  transition: var(--transition);
}

.contact-item:hover {
  border-color: var(--accent-blue);
  transform: translateX(6px);
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.contact-icon-box.tg {
  background: rgba(14, 165, 233, 0.15);
  color: #0ea5e9;
}
.contact-icon-box.insta {
  background: rgba(236, 72, 153, 0.15);
  color: #ec4899;
}
.contact-icon-box.gh {
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-bold);
}

.contact-item-text {
  display: flex;
  flex-direction: column;
}
.item-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}
.item-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-bold);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  color: var(--text-bold);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-message {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.form-message.success {
  color: var(--accent-green);
}
.form-message.error {
  color: #ef4444;
}

.btn-full {
  width: 100%;
}

/* FOOTER */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-logo {
  font-family: var(--font-code);
  font-weight: 800;
  color: var(--accent-blue);
  font-size: 1.2rem;
}


/* =========================================================
   📱 FULL RESPONSIVE MEDIA QUERIES (FULL MOBILE SUPPORT)
   ========================================================= */

/* Kod bloki har doim o'z konteyneridan chiqib ketmasligi uchun */
.code-block {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}

/* 1. Planshetlar va o'rta ekranlar uchun (max-width: 992px) */
@media (max-width: 992px) {
  .hero-top-grid,
  .hero-bottom-grid {
    grid-template-columns: 1fr;
  }
  .hero-symbol-wrapper {
    display: none; /* Mobilda symbol yig'iladi */
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 2. Mobil qurilmalar uchun (max-width: 768px) */
@media (max-width: 768px) {
  /* Navbar */
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 270px;
    height: calc(100vh - 80px);
    background: var(--bg-secondary);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    transition: var(--transition);
    border-left: 1px solid var(--border-color);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-container {
    height: 70px;
  }

  .nav-logo {
    font-size: 1.4rem;
  }

  .nav-controls {
    gap: 0.6rem;
  }

  .lang-select-wrapper {
    padding: 0.35rem 0.6rem;
  }

  /* Hero qismi */
  .hero-section {
    padding-top: 5.5rem;
    padding-bottom: 2.5rem;
  }

  .hero-bottom-grid {
    padding: 1.5rem;
    border-radius: 18px;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.9rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .greeting {
    font-size: 1.1rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .hero-pills {
    gap: 0.6rem;
  }

  .pill {
    font-size: 0.82rem;
    padding: 0.4rem 0.8rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.9rem;
  }

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

  .robot-img {
    max-width: 170px;
  }

  .code-card-glass {
    padding: 1.2rem;
  }

  .code-block {
    font-size: 0.82rem;
  }

  /* Statistika */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-card {
    padding: 1.2rem;
  }

  /* Sertifikat va Ta'lim kartalari */
  .certs-grid {
    grid-template-columns: 1fr;
  }

  .cert-card {
    padding: 1.2rem;
  }

  .edu-card {
    padding: 1.5rem;
  }

  /* Aloqa bo'limi */
  .contact-grid {
    gap: 2rem;
  }

  .contact-form-card {
    padding: 1.5rem;
  }

  .contact-item {
    padding: 0.9rem;
    gap: 0.9rem;
  }

  .item-val {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .footer-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* 3. O'ta kichik ekranlar uchun (max-width: 400px) */
@media (max-width: 400px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-symbol {
    font-size: 6rem;
  }

  .robot-img {
    max-width: 140px;
  }

  .code-block {
    font-size: 0.75rem;
  }

  .profile-avatar {
    width: 64px;
    height: 64px;
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 1.9rem;
  }
}