:root {
      --bg: #0a0a0a;
      --bg-card: #141414;
      --border: #2a2a2a;
      --text: #f0f0f0;
      --text-muted: #888;
      --accent: #f5c518;
      --radius: 14px;
    }
    * { margin: 0; padding: 0; box-sizing: border-box; }
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      background: var(--bg); color: var(--text); line-height: 1.6;
      overflow-x: hidden;
    }
    a { color: inherit; text-decoration: none; }

    
    #loader {
      position: fixed; inset: 0; background: #000;
      display: flex; align-items: center; justify-content: center;
      z-index: 99999; transition: opacity 0.5s;
    }
    .loader-content { text-align: center; }
    .loader-icons { display: flex; gap: 12px; justify-content: center; margin-bottom: 24px; }
    .loader-icons span {
      width: 42px; height: 42px; border-radius: 50%;
      background: #1a1a1a; display: flex; align-items: center; justify-content: center;
      font-size: 0.85rem; color: #aaa; border: 1px solid #333;
    }
    .loader-content h1 {
      font-size: 1.6rem; font-weight: 600; margin-bottom: 20px;
      background: linear-gradient(90deg, #fff, #999); -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    .loader-bar {
      width: 160px; height: 3px; background: #222; border-radius: 2px;
      margin: 0 auto; overflow: hidden;
    }
    .loader-progress {
      height: 100%; width: 0; background: linear-gradient(90deg, #f5c518, #ff9f1c);
      animation: load 1.4s ease forwards;
    }
    @keyframes load { to { width: 100%; } }

    
    .navbar {
      position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
      display: flex; justify-content: space-between; align-items: center;
      padding: 14px 28px; background: rgba(10,10,10,0.85);
      backdrop-filter: blur(12px); border-bottom: 1px solid #1a1a1a;
    }
    .nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; }
    .nav-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid #333; }
    .lang-selector { position: relative; z-index: 10000; }
    #langBtn {
      background: #1a1a1a; border: 1px solid #333; color: #fff;
      padding: 8px 14px; border-radius: 8px; cursor: pointer; font-size: 0.85rem;
    }
    .lang-dropdown {
      position: absolute; top: 110%; right: 0;
      background: #1a1a1a; border: 1px solid #333; border-radius: 10px;
      min-width: 160px; display: none; z-index: 10001;
      max-height: 60vh; overflow-y: auto;
    }
    .lang-dropdown.show { display: block; }
    .lang-dropdown div {
      padding: 10px 14px; cursor: pointer; font-size: 0.85rem; color: #ccc;
    }
    .lang-dropdown div:hover { background: #222; color: #fff; }

    
    .hero {
      min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
      align-items: center; padding: 100px 48px 40px; gap: 24px;
      max-width: 1200px; margin: 0 auto;
    }
    .greeting { color: var(--text-muted); font-size: 1rem; margin-bottom: 8px; }
    .typewriter { font-size: 3rem; font-weight: 700; margin-bottom: 16px; min-height: 1.2em; }
    .cursor { color: var(--accent); animation: blink 0.8s infinite; }
    @keyframes blink { 50% { opacity: 0; } }
    .hero-desc { color: #999; max-width: 420px; margin-bottom: 28px; font-size: 0.95rem; }
    .hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
    .btn {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 0.9rem;
      border: none; cursor: pointer; transition: transform 0.2s, background 0.2s;
    }
    .btn:hover { transform: translateY(-2px); }
    .btn-tg { background: #2AABEE; color: #fff; }
    .btn-tg:hover { background: #229ED9; }
    .btn-tiktok { background: #1a1a1a; color: #fff; border: 1px solid #333; }
    .btn-tiktok:hover { background: #222; }

    .hero-right {
      display: flex; justify-content: center; align-items: center;
      height: 520px; min-height: 360px; cursor: crosshair;
    }
    #solarCanvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

    
    section { padding: 70px 48px; max-width: 1100px; margin: 0 auto; }
    h2 {
      font-size: 1.8rem; margin-bottom: 36px; position: relative;
      display: inline-block;
    }
    h2::after {
      content: ''; position: absolute; bottom: -8px; left: 0;
      width: 50px; height: 3px; background: var(--accent); border-radius: 2px;
    }

    
    .profile-grid {
      display: grid; grid-template-columns: 260px 1fr; gap: 28px;
    }
    .profile-card {
      background: var(--bg-card); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 28px; text-align: center;
    }
    .profile-card img {
      width: 100px; height: 100px; border-radius: 50%; object-fit: cover;
      border: 3px solid #333; margin-bottom: 14px;
    }
    .profile-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
    .profile-role {
      display: inline-block; background: #1a1a1a; border: 1px solid #333;
      padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; color: #aaa;
      margin-bottom: 18px;
    }
    .profile-info { text-align: left; font-size: 0.85rem; }
    .profile-info div {
      display: flex; justify-content: space-between; padding: 8px 0;
      border-bottom: 1px solid #1a1a1a; color: #888;
    }
    .profile-info strong { color: #ddd; }
    .skills-grid {
      display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    }
    .skill-card {
      background: var(--bg-card); border: 1px solid var(--border);
      border-radius: 12px; padding: 16px 18px; transition: border-color 0.2s, transform 0.2s;
    }
    .skill-card:hover { border-color: #444; transform: translateY(-2px); }
    .skill-card h4 { font-size: 0.95rem; margin-bottom: 2px; }
    .skill-card p { font-size: 0.75rem; color: var(--text-muted); }

    
    .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
    .about-text p { color: #aaa; margin-bottom: 14px; font-size: 0.95rem; }
    .about-stats { display: flex; gap: 12px; margin: 24px 0; flex-wrap: wrap; }
    .stat {
      background: var(--bg-card); border: 1px solid var(--border);
      border-radius: 12px; padding: 16px 20px; text-align: center; min-width: 90px;
    }
    .stat strong { display: block; font-size: 1.5rem; color: var(--accent); }
    .stat small { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.5px; }
    .about-quote {
      background: var(--bg-card); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 24px;
    }
    .about-quote p { font-style: italic; color: #bbb; margin-bottom: 12px; }
    .about-quote cite { color: var(--text-muted); font-size: 0.85rem; }

    
    .timeline { position: relative; max-width: 640px; margin: 0 auto; padding: 20px 0; }
    .timeline::before {
      content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
      width: 2px; background: #2a2a2a; transform: translateX(-50%);
    }
    .timeline-item {
      position: relative; width: 45%; margin-bottom: 36px;
      background: var(--bg-card); border: 1px solid var(--border);
      border-radius: 12px; padding: 18px 20px;
    }
    .timeline-item:nth-child(odd) { margin-right: auto; text-align: right; }
    .timeline-item:nth-child(even) { margin-left: auto; }
    .timeline-item .dot {
      position: absolute; top: 22px; width: 12px; height: 12px;
      background: var(--accent); border-radius: 50%;
      border: 2px solid var(--bg);
    }
    .timeline-item:nth-child(odd) .dot { right: -29%; }
    .timeline-item:nth-child(even) .dot { left: -29%; }
    .timeline-item .year { font-size: 0.7rem; color: var(--accent); letter-spacing: 0.5px; margin-bottom: 4px; }
    .timeline-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
    .timeline-item p { font-size: 0.8rem; color: #888; }

    
    .projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .project-card {
      background: var(--bg-card); border: 1px solid var(--border);
      border-radius: var(--radius); overflow: hidden; transition: transform 0.2s;
    }
    .project-card:hover { transform: translateY(-3px); }
    .project-banner {
      height: 120px; display: flex; flex-direction: column;
      align-items: center; justify-content: center; gap: 4px;
      font-weight: 700; font-size: 1.3rem; letter-spacing: 1px;
    }
    .project-banner span { font-size: 0.7rem; font-weight: 500; opacity: 0.7; letter-spacing: 2px; }
    .p1 { background: linear-gradient(135deg, #1a1a2e, #16213e); }
    .p2 { background: linear-gradient(135deg, #0f2027, #203a43); }
    .p3 { background: linear-gradient(135deg, #1a1a3e, #2d1b4e); }
    .p4 { background: linear-gradient(135deg, #1a0a2e, #2e1a4e); }
    .project-body { padding: 18px; }
    .project-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
    .project-body p { font-size: 0.8rem; color: #888; margin-bottom: 14px; }
    .project-actions { display: flex; gap: 10px; }
    .btn-outline, .btn-primary {
      padding: 8px 16px; border-radius: 8px; font-size: 0.75rem; font-weight: 600;
      border: 1px solid #333; cursor: pointer; transition: all 0.2s;
    }
    .btn-outline { background: transparent; color: #ccc; }
    .btn-outline:hover { background: #1a1a1a; }
    .btn-primary { background: #fff; color: #000; border-color: #fff; }
    .btn-primary:hover { background: #ddd; }

    
    .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
    .contact-left h3 { font-size: 1.3rem; margin-bottom: 10px; }
    .contact-left p { color: #888; margin-bottom: 20px; font-size: 0.9rem; }
    .tg-link {
      display: inline-flex; align-items: center; gap: 10px;
      background: #1a1a1a; border: 1px solid #333; padding: 12px 18px;
      border-radius: 10px; color: #2AABEE; font-weight: 500; transition: background 0.2s;
    }
    .tg-link:hover { background: #222; }
    .contact-form {
      background: var(--bg-card); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 24px;
    }
    .contact-form h3 { margin-bottom: 16px; font-size: 1.1rem; }
    .contact-form label { display: block; font-size: 0.75rem; color: #888; margin-bottom: 4px; margin-top: 12px; }
    .contact-form input, .contact-form textarea {
      width: 100%; background: #0a0a0a; border: 1px solid #333;
      border-radius: 8px; padding: 12px; color: #fff; font-size: 0.9rem;
      font-family: inherit;
    }
    .contact-form input:focus, .contact-form textarea:focus {
      outline: none; border-color: #555;
    }
    .contact-form textarea { min-height: 100px; resize: vertical; }
    #sendBtn {
      width: 100%; margin-top: 16px; padding: 14px;
      background: #fff; color: #000; border: none; border-radius: 10px;
      font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: background 0.2s;
    }
    #sendBtn:hover { background: #ddd; }

    footer {
      text-align: center; padding: 30px; color: #555; font-size: 0.8rem;
      border-top: 1px solid #1a1a1a;
    }

    .reveal {
      opacity: 0; transform: translateY(30px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.visible { opacity: 1; transform: translateY(0); }

    @media (max-width: 900px) {
      .hero {
        grid-template-columns: 1fr; text-align: center;
        padding: 80px 20px 30px; gap: 8px;
      }
      .hero-left { order: 2; }
      .hero-right {
        order: 1; height: 340px !important; min-height: 340px;
        width: 100%; margin: 0 auto;
      }
      #solarCanvas {
        width: 340px !important; height: 340px !important;
        max-width: 92vw; max-height: 340px;
      }
      .hero-desc { margin-left: auto; margin-right: auto; }
      .hero-buttons { justify-content: center; }
      .typewriter { font-size: 2.2rem; }
      section { padding: 50px 20px; }
      .profile-grid, .about-grid, .contact-grid, .projects-grid { grid-template-columns: 1fr; }
      .skills-grid { grid-template-columns: 1fr; }
      .timeline::before { left: 16px; }
      .timeline-item {
        width: calc(100% - 40px) !important; margin-left: 40px !important;
        text-align: left !important;
      }
      .timeline-item .dot { left: -32px !important; right: auto !important; }
      .navbar { padding: 12px 16px; }
    }

#solarWrap, #solarCanvas {
  touch-action: none;
  -ms-touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.hero-right {
  height: 480px;
  min-height: 320px;
}
@media (max-width: 768px) {
  .hero-right {
    height: 360px !important;
    min-height: 320px !important;
  }
}

.hero {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(80,20,60,0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 60%, rgba(20,40,90,0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(10,10,20,0.9) 0%, #000 100%);
}
.hero-right {
  height: 520px;
  min-height: 360px;
  position: relative;
}
#solarWrap, #solarCanvas {
  touch-action: none;
  -ms-touch-action: none;
  user-select: none;
  width: 100%;
  height: 100%;
}
#solarCanvas { display: block; }
@media (max-width: 768px) {
  .hero-right {
    height: 380px !important;
    min-height: 340px !important;
  }
}


.project-card {
  overflow: hidden;
  padding: 0;
}
.project-preview {
  display: block;
  position: relative;
  background: #0d0d12;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  aspect-ratio: 16/10;
  overflow: hidden;
}
.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.35s ease;
}
.project-card:hover .project-preview img {
  transform: scale(1.04);
}
.preview-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 28px;
  background: rgba(12,12,16,0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  z-index: 1;
}
.preview-bar .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3a3a45;
}
.preview-bar .dot:nth-child(1){background:#ff5f56;}
.preview-bar .dot:nth-child(2){background:#ffbd2e;}
.preview-bar .dot:nth-child(3){background:#27c93f;}
.preview-bar .url {
  margin-left: 8px;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-body {
  padding: 1rem 1.1rem 1.15rem;
}
.project-banner { display: none !important; }

body.lang-blur main,
body.lang-blur .hero,
body.lang-blur .profile-section,
body.lang-blur .about-section,
body.lang-blur .timeline-section,
body.lang-blur .projects-section,
body.lang-blur .contact-section,
body.lang-blur .navbar .nav-logo span {
  filter: blur(6px);
  opacity: 0.55;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
body:not(.lang-blur) .hero,
body:not(.lang-blur) .profile-section,
body:not(.lang-blur) .about-section,
body:not(.lang-blur) .timeline-section,
body:not(.lang-blur) .projects-section,
body:not(.lang-blur) .contact-section {
  filter: blur(0);
  opacity: 1;
  transition: filter 0.35s ease, opacity 0.35s ease;
}
