:root {
    --pink: #EC6E9B;
    --orange: #F3A042;
    --blue: #27438C;
    --bg: #0f1630;
    --bg-2: #121d41;
    --surface: rgba(255,255,255,0.07);
    --surface-strong: rgba(255,255,255,0.12);
    --text: #f5f7ff;
    --muted: rgba(245,247,255,0.72);
    --border: rgba(255,255,255,0.14);
    --shadow: 0 20px 60px rgba(0,0,0,0.35);
    --radius: 24px;
    --content-width: 1220px;
    --nav-height: 88px;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    background:
      radial-gradient(circle at 15% 20%, rgba(236,110,155,0.25), transparent 28%),
      radial-gradient(circle at 82% 16%, rgba(243,160,66,0.18), transparent 25%),
      radial-gradient(circle at 50% 72%, rgba(39,67,140,0.42), transparent 35%),
      linear-gradient(180deg, #0c1227 0%, #101938 45%, #0c142e 100%);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
  }
  
  body::before,
  body::after {
    content: "";
    position: fixed;
    inset: auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -2;
    opacity: 0.35;
    pointer-events: none;
    animation: floatOrb 12s ease-in-out infinite;
  }
  
  body::before {
    top: 6%;
    left: -80px;
    background: var(--pink);
  }
  
  body::after {
    right: -70px;
    top: 26%;
    background: var(--orange);
    animation-delay: -4s;
  }
  
  @keyframes floatOrb {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); }
    50% { transform: translateY(24px) translateX(12px) scale(1.08); }
  }
  
  .page-noise {
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 0.8px, transparent 0.8px);
    background-size: 24px 24px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.55));
    pointer-events: none;
    z-index: -1;
  }
  
  .section-shell {
    width: min(var(--content-width), calc(100% - 32px));
    margin: 0 auto;
  }
  
  .section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
  }
  
  .section-tag::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 0 12px rgba(236,110,155,0.8);
  }
  
  .section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 14px;
  }
  
  .section-text {
    max-width: 700px;
    color: var(--muted);
    line-height: 1.75;
    font-size: 1rem;
  }
  
  /* ===== BLOCK: NAVIGATION ===== */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: linear-gradient(180deg, rgba(9,15,33,0.88), rgba(9,15,33,0.52));
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  
  .nav {
    width: min(var(--content-width), calc(100% - 32px));
    height: var(--nav-height);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  
  .logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
  }
  
  .logo-image {
    display: block;
    height: 54px;
    width: auto;
    object-fit: contain;
  }
  
  .nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .nav-links a,
  .lang-switch button {
    color: var(--text);
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.25s ease;
  }
  
  .nav-links a:hover,
  .lang-switch button:hover,
  .lang-switch button.is-active {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.12);
  }
  
  .lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid rgba(255,255,255,0.1);
  }
  
  /* ===== BLOCK: HERO ===== */
  .hero {
    position: relative;
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    padding: 72px 0 42px;
    overflow: hidden;
  }
  
  .hero-grid {
    width: min(var(--content-width), calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 34px;
    align-items: center;
  }
  
  .hero-copy {
    position: relative;
    z-index: 2;
  }
  
  .hero-title {
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 22px;
    text-wrap: balance;
  }
  
  .hero-title span {
    background: linear-gradient(135deg, var(--pink), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(236,110,155,0.12);
  }
  
  .hero-text {
    max-width: 640px;
    color: var(--muted);
    font-size: 1.03rem;
    line-height: 1.85;
    margin-bottom: 34px;
  }
  
  .hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
  }
  
  .hero-side {
    position: relative;
    min-height: 530px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* ===== SHARED: BUTTONS ===== */
  .button-wrap {
    display: inline-flex;
    align-items: center;
  }
  
  .button {
    position: relative;
    display: inline-block;
    padding: 16px 30px;
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--color);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    text-shadow: 0 0 15px var(--color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.14rem;
    transition: 0.5s;
    z-index: 1;
    overflow: hidden;
    background: rgba(9, 15, 33, 0.35);
    backdrop-filter: blur(10px);
  }
  
  .button:hover {
    color: #fff;
    border-color: rgba(0, 0, 0, 0);
    box-shadow: none;
  }
  
  .button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color);
    z-index: -1;
    transform: scale(0);
    transition: 0.5s;
    border-radius: 8px;
  }
  
  .button:hover::before {
    transform: scale(1);
    transition-delay: 0.5s;
    box-shadow: 0 0 10px var(--color), 0 0 30px var(--color), 0 0 60px var(--color);
  }
  
  .button span {
    position: absolute;
    background: var(--color);
    pointer-events: none;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--color), 0 0 20px var(--color), 0 0 30px var(--color), 0 0 50px var(--color), 0 0 100px var(--color);
    transition: 0.5s ease-in-out;
    transition-delay: 0.25s;
  }
  
  .button:hover span {
    opacity: 0;
    transition-delay: 0s;
  }
  
  .button span:nth-child(1),
  .button span:nth-child(3) { width: 40px; height: 4px; }
  
  .button span:nth-child(2),
  .button span:nth-child(4) { width: 4px; height: 40px; }
  
  .button span:nth-child(1) {
    top: calc(50% - 2px);
    left: -50px;
    transform-origin: left;
  }
  
  .button:hover span:nth-child(1) {
    left: 50%;
  }
  
  .button span:nth-child(3) {
    top: calc(50% - 2px);
    right: -50px;
    transform-origin: right;
  }
  
  .button:hover span:nth-child(3) {
    right: 50%;
  }
  
  .button span:nth-child(2) {
    left: calc(50% - 2px);
    top: -50px;
    transform-origin: top;
  }
  
  .button:hover span:nth-child(2) {
    top: 50%;
  }
  
  .button span:nth-child(4) {
    left: calc(50% - 2px);
    bottom: -50px;
    transform-origin: bottom;
  }
  
  .button:hover span:nth-child(4) {
    bottom: 50%;
  }
  
  /* ===== BLOCK: PROJECTS ===== */
.projects {
  padding: 92px 0 36px;
}

.projects-head {
  margin-bottom: 34px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.projects-column {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.projects-column h3 {
  font-size: 1.45rem;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.projects-column h3 span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-slider-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.project-slider-item {
  border-radius: 22px;
  background: rgba(7, 13, 30, 0.5);
  border: 1px solid rgba(255,255,255,0.09);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  overflow: hidden;
}

.project-slider-item:hover {
  transform: scale(1.035);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 18px 32px rgba(0,0,0,0.24);
}

.project-slider-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 18px;
}

.project-slider-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.project-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.project-slider-inner strong {
  font-size: 1rem;
  color: #fff;
  line-height: 1.2;
}

.project-badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  background: linear-gradient(135deg, rgba(236,110,155,0.82), rgba(243,160,66,0.82));
  white-space: nowrap;
}

/* ===== BLOCK: PROJECT MODAL ===== */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.project-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.project-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 20, 0.72);
  backdrop-filter: blur(10px);
}

.project-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(18,29,65,0.98), rgba(10,17,37,0.98));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 70px rgba(0,0,0,0.45);
}

.project-modal__media {
  min-height: 520px;
  background: rgba(255,255,255,0.04);
}

.project-modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-modal__content {
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-modal__badge {
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(236,110,155,0.82), rgba(243,160,66,0.82));
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-modal__content h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  margin-bottom: 18px;
}

.project-modal__content p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.project-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: 0.2s ease;
}

.project-modal__close:hover {
  background: rgba(255,255,255,0.14);
}

@media (max-width: 1080px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .project-modal__dialog {
    grid-template-columns: 1fr;
  }

  .project-modal__media {
    min-height: 300px;
  }

  .project-slider-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-slider-left {
    width: 100%;
  }
  
  .project-icon {
    width: 46px;
    height: 46px;
  }
}


  
  /* ===== BLOCK: STACK ===== */
  .stack {
    padding: 92px 0 36px;
  }
  
  .stack-track-wrap {
    margin-top: 34px;
    border-radius: 28px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 26px 0;
  }
  
  .stack-track {
    display: flex;
    width: max-content;
    animation: marquee 26s linear infinite;
    gap: 18px;
    padding-right: 18px;
  }
  
  .stack-track:hover {
    animation-play-state: paused;
  }
  
  @keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
  
  .stack-item {
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 20px;
    margin-left: 18px;
    background: rgba(8,14,32,0.68);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text);
  }
  
  .stack-item i {
    font-size: 2rem;
    width: 42px;
    text-align: center;
    color: var(--orange);
  }
  
  .stack-item strong {
    display: block;
    font-size: 0.96rem;
    margin-bottom: 2px;
  }
  
  .stack-item span {
    color: var(--muted);
    font-size: 0.84rem;
  }
  
  /* ===== BLOCK: CONTACT ===== */
  .contact {
    padding: 92px 0 100px;
  }
  
  .contact-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 24px;
    align-items: start;
    margin-top: 34px;
  }
  
  .contact-info,
  .contact-card {
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    box-shadow: var(--shadow);
    border-radius: 30px;
    padding: 28px;
  }
  
  .contact-points {
    list-style: none;
    margin-top: 22px;
    display: grid;
    gap: 14px;
  }
  
  .contact-points li {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(7,13,30,0.52);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--muted);
    line-height: 1.7;
  }
  
  .contact-points strong {
    color: var(--text);
    display: block;
    margin-bottom: 4px;
  }
  
  .contact-form {
    display: grid;
    gap: 16px;
  }
  
  .contact-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.92rem;
  }
  
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(8,14,32,0.66);
    color: var(--text);
    padding: 15px 16px;
    outline: none;
    transition: 0.25s ease;
    font-size: 0.96rem;
  }
  
  .contact-form input:focus,
  .contact-form textarea:focus {
    border-color: rgba(236,110,155,0.55);
    box-shadow: 0 0 0 4px rgba(236,110,155,0.1);
  }
  
  .contact-form textarea {
    min-height: 160px;
    resize: vertical;
  }
  
  .form-note {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.7;
  }
  
  .contact-status {
    min-height: 24px;
    font-size: 0.92rem;
    color: var(--orange);
  }

  .contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    height: 58px;
    padding: 0 28px;
    border: 0;
    border-radius: 18px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    background: linear-gradient(135deg, #EC6E9B, #F3A042);
    box-shadow: 0 14px 28px rgba(236,110,155,0.22);
    transition: 0.28s ease;
  }
  
  .contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(236,110,155,0.3);
  }
  
  .contact-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
  }
  
  .contact-status {
    min-height: 24px;
    font-size: 0.92rem;
    line-height: 1.6;
  }
  
  .contact-status.is-success {
    color: #8df0b5;
  }
  
  .contact-status.is-error {
    color: #ff9ea8;
  }
  
  /* honeypot stays hidden */
  #website {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  
  /* ===== BLOCK: FOOTER ===== */
  .site-footer {
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(7,12,26,0.72);
    backdrop-filter: blur(12px);
  }
  
  .footer-shell {
    width: min(var(--content-width), calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
  }
  
  .footer-left,
  .footer-right {
    color: var(--muted);
    font-size: 0.94rem;
  }
  
  .footer-center {
    text-align: center;
    line-height: 1.7;
  }
  
  .footer-center strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 2px;
  }
  
  .footer-right {
    justify-self: end;
  }
  
  .footer-right a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    transition: 0.25s ease;
  }
  
  .footer-right a:hover {
    color: var(--orange);
    border-color: var(--orange);
  }
  
  /* ===== RESPONSIVE ===== */
  @media (max-width: 1080px) {
    .hero-grid,
    .contact-layout,
    .projects-grid,
    .footer-shell {
      grid-template-columns: 1fr;
    }
  
    .hero-side {
      min-height: 420px;
    }
  
    .footer-left,
    .footer-center,
    .footer-right {
      text-align: center;
      justify-self: center;
    }
  }
  
  @media (max-width: 760px) {
    :root {
      --nav-height: auto;
    }
  
    .nav {
      min-height: 88px;
      padding: 18px 0;
      align-items: flex-start;
      flex-direction: column;
    }
  
    .nav-links {
      width: 100%;
      justify-content: space-between;
    }
  
    .lang-switch {
      margin-left: 0;
      padding-left: 0;
      border-left: 0;
    }
  
    .hero {
      padding-top: 42px;
    }
  
    .hero-side {
      min-height: 360px;
    }
  
    .section-title {
      line-height: 1.12;
    }
  }