:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --text: #ffffff;
  --muted: #a1a1a1;
  --primary: #ffffff;
  --accent: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.page-shell {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0;
}

.brand-logo {
  height: 60px;
  width: auto;
}

.top-bar nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.top-bar nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: opacity 0.3s ease;
}

.top-bar nav a:hover {
  opacity: 0.6;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.5rem 0;
  margin-top: 1rem;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  margin-top: 0.5rem;
}

.dropdown-menu a {
  display: block;
  padding: 0.7rem 1.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background 0.2s ease;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  opacity: 1;
}

.lang-switch {
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 70vh;
  padding: 4rem 0;
}

.hello {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2rem;
}

.description-hero {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.button.outline {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 1px solid var(--text);
  border-radius: 50px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}

.button.outline:hover {
  background: var(--text);
  color: var(--bg);
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.profile-circle {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  overflow: hidden;
}

.profile-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* About Section */
.about-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 5rem;
  padding: 8rem 0;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img {
  width: 100%;
  aspect-ratio: 0.85;
  object-fit: cover;
  border-radius: 40px;
}

.about-copy h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.about-text {
  margin-bottom: 2.5rem;
}

.about-text p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  max-width: 500px;
}

/* Blog/Posts Section */
.blog-section {
  padding: 6rem 0;
}

.blog-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
}

.post-card {
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s ease;
}

.post-card:hover {
  transform: translateY(-10px);
}

.post-image {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.post-date {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  padding: 6rem 0 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.footer-socials {
  display: flex;
  gap: 2rem;
}

.footer-socials a {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
}

.footer-bottom {
  margin-top: 2rem;
}

.footer-signature {
  height: 80px;
  opacity: 0.9;
}

/* Floating Telegram Button */
.telegram-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #29B6F6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(41, 182, 246, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  color: white;
}

.telegram-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(41, 182, 246, 0.6);
}

.telegram-float svg {
  width: 28px;
  height: 28px;
}

/* Page Section (Internal Pages) */
.page-section {
  padding: 6rem 0;
  max-width: 800px;
}

.page-section .hello {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.page-section h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.page-section .description {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.info-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 200px;
}

.info-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.info-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.info-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.about-intro {
  max-width: 700px;
  margin-bottom: 4rem;
}

.about-intro p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Knowledge Section */
.knowledge-section,
.technologies-section {
  padding: 4rem 0;
  text-align: center;
}

.knowledge-section h2,
.technologies-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.knowledge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.knowledge-item .material-symbols-rounded {
  font-size: 60px;
  color: var(--text);
}

.knowledge-item p {
  font-size: 1rem;
  font-weight: 500;
}

/* Technologies Grid */
.technologies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.tech-item .material-symbols-rounded {
  font-size: 50px;
  color: var(--text);
}

.tech-item p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Project Cards */
.project-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  display: block;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.project-card-image {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-content {
  padding: 2rem;
}

.project-card-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-card-content h3 .material-symbols-rounded {
  font-size: 20px;
}

.project-card-content p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Project Showcase */
.projects-section {
  padding: 2rem 0 6rem;
}

.project-showcase {
  padding: 4rem 0 6rem;
}

.project-image {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.project-image img {
  width: 100%;
  height: auto;
  display: block;
}

.button.outline .material-symbols-rounded {
  font-size: 18px;
  vertical-align: middle;
  margin-left: 0.3rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero, .about-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-visual, .about-visual {
    justify-content: center;
    order: -1;
  }

  .profile-circle {
    width: 280px;
    height: 280px;
  }

  .about-text p {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    gap: 2rem;
  }

  .top-bar nav {
    gap: 1.5rem;
  }
}
