/* ============================================
   CAZIBE PORTFOLIO — Vladislav Kozub
   Black & White → Colorful on Hover
   ============================================ */

/* ===========================================
   FONTS
   =========================================== */

@font-face {
  font-family: 'Misto';
  src: url('/fonts/Misto.woff2') format('woff2'),
       url('/fonts/Misto.woff') format('woff'),
       url('/fonts/Misto.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Avenir Next Cyr';
  src: url('/fonts/avenirnextcyr-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Avenir Next Cyr';
  src: url('/fonts/avenirnextcyr-bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Avenir Next Cyr';
  src: url('/fonts/avenirnextcyr-medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Avenir Next Cyr';
  src: url('/fonts/avenirnextcyr-light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Avenir Next Cyr';
  src: url('/fonts/avenirnextcyr-demi.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

/* ===========================================
   1. CSS VARIABLES & RESET
   =========================================== */

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --text-primary: #e0e0e0;
  --text-secondary: #888;
  --accent: #fff;
  --glass-bg: rgba(30, 30, 30, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-bg-light: rgba(220, 220, 220, 0.85);
  --card-radius: 20px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  cursor: url('/icons/ui/cursor-32.png'), auto;
  width: 100%;
}
body {
  font-family: 'Avenir Next Cyr', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  position: relative;
  cursor: url('/icons/ui/cursor-32.png'), auto;
}
a { color: inherit; text-decoration: none; cursor: url('/icons/ui/cursor-32.png'), pointer; }
button { cursor: url('/icons/ui/cursor-32.png'), pointer; }
img { max-width: 100%; display: block; }
section, header, footer, main { max-width: 100%; box-sizing: border-box; }

/* ===========================================
   2. CUSTOM CURSOR
   =========================================== */

.cursor-glow {
  position: fixed; top: 0; left: 0; width: 50px; height: 50px;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.06) 40%, transparent 70%);
  border-radius: 50%; pointer-events: none; z-index: 99998;
  transform: translate(-50%, -50%);
}
.cursor-glow.hovering { width: 90px; height: 90px; }

/* ===========================================
   3. HEADER (glassmorphic, sticky)
   =========================================== */

.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 40px; height: 70px; display: flex; align-items: center; justify-content: space-between;
  background: rgba(15, 15, 15, 0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}
.header-logo { display: flex; align-items: center; gap: 15px; }
.header-logo-icon { width: 45px; height: 45px; }
.header-logo-icon img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); }
.header-logo-text h3 { font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.header-logo-text span { font-size: 11px; color: var(--text-secondary); font-weight: 300; }
.header-nav { display: flex; align-items: center; gap: 10px; position: relative; }
.header-nav a {
  font-size: 13px; font-weight: 400; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 8px 18px; color: var(--text-secondary); transition: color var(--transition);
  position: relative;
}
.header-nav a:hover, .header-nav a.active { color: #fff; }
.nav-indicator {
  position: absolute; bottom: -2px; height: 2px; background: #fff;
  transition: left 0.4s ease, width 0.4s ease; border-radius: 1px;
}
.nav-indicator::before {
  content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  width: 150%; height: 20px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.15) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.3s;
}
.header-nav:hover .nav-indicator::before { opacity: 1; }
.btn-contact {
  position: relative; overflow: hidden; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; padding: 12px 32px; border: 1px solid rgba(255,255,255,0.3);
  border-radius: 30px; letter-spacing: 1.5px; text-transform: uppercase;
  background: transparent; color: #fff;
  transition: border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}
.btn-contact .btn-label {
  position: relative; z-index: 2; transition: color 0.4s ease, font-weight 0.4s ease;
}
.btn-blob {
  position: absolute; border-radius: 50%; filter: blur(14px);
  opacity: 0; transform: scale(0.3);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none; z-index: 1;
}
.btn-blob-1 {
  width: 85px; height: 85px;
  background: radial-gradient(circle, #a855f7 0%, #ec4899 100%);
  top: -20px; left: -10px;
}
.btn-blob-2 {
  width: 75px; height: 75px;
  background: radial-gradient(circle, #f97316 0%, #eab308 100%);
  bottom: -20px; right: -10px;
}
.btn-blob-3 {
  width: 80px; height: 80px;
  background: radial-gradient(circle, #22d3ee 0%, #3b82f6 100%);
  top: 50%; left: 45%; transform: translate(-50%, -50%) scale(0.3);
}
.btn-contact:hover {
  border-color: transparent; color: #000;
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.5);
  transform: translateY(-2px);
}
.btn-contact:hover .btn-label {
  color: #000; font-weight: 700;
}
.btn-contact:hover .btn-blob {
  opacity: 0.95;
}
.btn-contact:hover .btn-blob-1 {
  animation: liquidMove1 4s infinite ease-in-out alternate;
}
.btn-contact:hover .btn-blob-2 {
  animation: liquidMove2 3.5s infinite ease-in-out alternate;
}
.btn-contact:hover .btn-blob-3 {
  animation: liquidMove3 4.5s infinite ease-in-out alternate;
}

@keyframes liquidMove1 {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  50% { transform: translate(45px, 15px) scale(1.3) rotate(120deg); border-radius: 60% 40% 30% 70% / 50% 30% 70% 50%; }
  100% { transform: translate(90px, -10px) scale(1.1) rotate(240deg); border-radius: 50% 50% 40% 60% / 30% 60% 40% 70%; }
}
@keyframes liquidMove2 {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%; }
  50% { transform: translate(-55px, -20px) scale(1.2) rotate(-140deg); border-radius: 30% 70% 40% 60% / 60% 40% 50% 50%; }
  100% { transform: translate(-100px, 10px) scale(1.05) rotate(-280deg); border-radius: 60% 40% 70% 30% / 40% 70% 30% 60%; }
}
@keyframes liquidMove3 {
  0% { transform: translate(-50%, -50%) scale(1) rotate(0deg); border-radius: 50% 50% 30% 70% / 50% 30% 70% 50%; }
  50% { transform: translate(-20%, -70%) scale(1.4) rotate(180deg); border-radius: 30% 70% 60% 40% / 70% 40% 50% 30%; }
  100% { transform: translate(-80%, -30%) scale(1.1) rotate(360deg); border-radius: 60% 40% 40% 60% / 40% 60% 60% 40%; }
}

/* ===========================================
   4. HERO SECTION
   =========================================== */

.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 80px 40px 40px;
}
.hero-bg {
  position: fixed; inset: 0;
  background: url('/icons/ui/bg-main.png') center/cover no-repeat;
  transition: filter 1s ease; z-index: 0;
}
.hero-bg.blurred { filter: blur(15px); }
.hero-card {
  position: relative; z-index: 1; width: 100%; max-width: 1300px;
  padding: 60px 70px; border-radius: var(--card-radius);
  background: rgba(20, 20, 20, 0.65); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  animation: fadeInUp 1s ease forwards;
}
.hero-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.hero-name { font-size: 16px; font-weight: 300; letter-spacing: 2px; }
.hero-title {
  font-family: 'Misto', sans-serif; font-size: clamp(60px, 8vw, 120px);
  line-height: 1; letter-spacing: 2px; color: #fff; margin-bottom: 40px;
  text-transform: uppercase;
}
.hero-content { display: flex; justify-content: space-between; align-items: flex-end; }
.hero-description { max-width: 500px; font-size: 16px; font-weight: 300; line-height: 1.6; color: var(--text-secondary); }
.hero-nav-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.hero-nav-item {
  display: flex; align-items: center; gap: 15px; font-size: 16px; font-weight: 300;
  color: var(--text-secondary); transition: color var(--transition);
}
.hero-nav-item:hover { color: #fff; }
.hero-nav-item .num { font-size: 13px; color: var(--text-secondary); min-width: 24px; }
.hero-nav-item .arrow { font-size: 14px; margin-left: auto; transition: transform 0.3s; }
.hero-nav-item:hover .arrow { transform: translate(3px, -3px); }
.hero-tags { margin-top: 30px; font-size: 13px; color: var(--text-secondary); letter-spacing: 2px; text-align: right; }

/* ===========================================
   5. RESUME SECTION
   =========================================== */

.resume {
  position: relative; z-index: 2; padding: 0 40px 100px;
  transform: translateY(80px); opacity: 0; transition: transform 0.8s ease, opacity 0.8s ease;
}
.resume.visible { transform: translateY(0); opacity: 1; }
.resume-card {
  max-width: 1300px; margin: 0 auto; background: #e8e8e8; border-radius: var(--card-radius);
  padding: 50px 60px; display: flex; gap: 40px; position: relative; overflow: hidden;
  color: #111;
}
.resume-content { flex: 1; }
.resume-title {
  font-family: 'Misto', sans-serif; font-size: clamp(50px, 6vw, 90px);
  text-transform: uppercase; color: #111; margin-bottom: 30px; line-height: 1;
}
.resume-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.resume-label { font-size: 13px; color: #666; text-transform: lowercase; margin-bottom: 4px; }
.resume-value { font-size: 15px; font-weight: 500; color: #222; }
.resume-about { grid-column: 1 / -1; margin-top: 20px; }
.resume-about p { font-size: 14px; line-height: 1.8; color: #333; text-align: justify; }
.resume-photo {
  width: 320px; min-width: 280px; display: flex; align-items: flex-end;
  justify-content: flex-end; overflow: hidden;
}
.resume-photo img {
  width: 100%; height: auto; object-fit: cover;
  filter: none;
}
.education-item { margin-bottom: 8px; }
.education-years { font-size: 13px; color: #888; }
.education-name { font-size: 14px; font-weight: 600; text-transform: uppercase; }

/* ===========================================
   6. SKILLS CAROUSEL
   =========================================== */

.skills {
  padding: 80px 40px; position: relative; overflow: hidden;
}
.skills-carousel-wrapper {
  max-width: 1300px; width: 100%; margin: 0 auto;
  background: var(--glass-bg); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border); border-radius: var(--card-radius);
  padding: 24px 32px; display: flex; align-items: center; gap: 16px;
  position: relative; overflow: hidden; box-sizing: border-box;
}
.carousel-arrow {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff; font-size: 24px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: all 0.3s ease; user-select: none; z-index: 10;
  padding: 0;
}
.carousel-arrow:hover:not(:disabled):not(.disabled) {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}
.carousel-arrow:active:not(:disabled):not(.disabled) {
  transform: scale(0.95);
}
.carousel-arrow.hidden {
  display: none !important;
}
.carousel-arrow:disabled,
.carousel-arrow.disabled {
  opacity: 0.25;
  cursor: default !important;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}
.carousel-track {
  display: flex; gap: 20px;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -ms-overflow-style: none;
  flex: 1 1 0%; min-width: 0; width: 100%;
  scroll-behavior: smooth; align-items: center;
}
.carousel-track.is-centered {
  justify-content: center;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}
.carousel-item {
  flex-shrink: 0; width: 66px; height: 66px; display: flex;
  align-items: center; justify-content: center; transition: transform 0.4s ease;
  border-radius: 12px; padding: 6px;
}
.carousel-item img {
  width: 100%; height: 100%; object-fit: contain;
  filter: grayscale(100%) brightness(1.8);
  transition: filter 0.4s ease;
}
.carousel-item:hover img {
  filter: grayscale(0%) brightness(1);
}
.carousel-item:hover {
  transform: scale(1.1);
}

/* ===========================================
   7. SERVICES CARDS (2x2 grid)
   =========================================== */

.services {
  padding: 40px 40px 100px; max-width: 1380px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.service-card {
  background: var(--glass-bg-light); border-radius: var(--card-radius);
  padding: 35px 40px; color: #111; transition: all 0.5s ease;
  border: 1px solid rgba(0,0,0,0.05); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: -2px; border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent, rgba(255,255,255,0.1));
  opacity: 0; transition: opacity 0.5s; z-index: 0;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
  background: rgba(25, 25, 25, 0.95); color: #e0e0e0;
  box-shadow: 0 0 40px rgba(255,255,255,0.05), 0 0 80px rgba(255,255,255,0.02);
  transform: translateY(-4px);
}
.service-card-header {
  display: flex; align-items: center; gap: 15px; margin-bottom: 18px;
  position: relative; z-index: 1;
}
.service-card-icon {
  width: 40px; height: 40px;
}
.service-card-icon img,
.service-card-icon svg {
  width: 100%; height: 100%; object-fit: contain;
  transition: filter 0.5s, color 0.5s;
}
.service-card:hover .service-card-icon img { filter: brightness(0) invert(1); }
.service-card:hover .service-card-icon svg { color: #fff; }
.service-card h3 { font-size: 20px; font-weight: 700; position: relative; z-index: 1; }
.service-card p {
  font-size: 14px; line-height: 1.7; position: relative; z-index: 1;
  transition: color 0.5s;
}
.service-card:hover p { color: #aaa; }

/* ===========================================
   8. POSTERS GRID
   =========================================== */

.posters { padding: 100px 40px; }
.posters-heading {
  text-align: center; font-family: 'Misto', sans-serif;
  font-size: clamp(40px, 5vw, 70px); margin-bottom: 60px;
  text-transform: uppercase; color: #fff;
}
.posters-grid {
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.poster-item {
  position: relative; overflow: hidden; border-radius: 12px;
  transition: transform 0.5s ease, z-index 0s;
  aspect-ratio: 3/4;
}
.poster-item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%); transition: filter 0.5s ease, transform 0.5s ease;
}
.poster-item:hover {
  transform: scale(1.05); z-index: 10;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.poster-item:hover img { filter: grayscale(0%); transform: scale(1.05); }

/* ===========================================
   9. POSTER LIGHTBOX
   =========================================== */

.lightbox {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transition: all 0.4s ease;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-content {
  position: relative; max-width: 70vh; max-height: 85vh;
  transform: scale(0.9); transition: transform 0.4s ease;
}
.lightbox.active .lightbox-content { transform: scale(1); }
.lightbox-content::before {
  content: ''; position: absolute; inset: -30px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.06) 0%, transparent 70%);
  z-index: -1; border-radius: 20px;
}
.lightbox-content img {
  max-width: 100%; max-height: 85vh; object-fit: contain;
  border-radius: 8px; box-shadow: 0 30px 100px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 24px; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s; z-index: 9001;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }
.lightbox-caption {
  position: absolute; bottom: -50px; left: 50%; transform: translateX(-50%);
  background: rgba(30,30,30,0.8); backdrop-filter: blur(10px);
  padding: 12px 30px; border-radius: 30px;
  font-size: 14px; color: #ccc; white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.1);
}

/* ===========================================
   10. PROJECTS / LAPTOP & PHONE MOCKUPS (STICKY DUAL SCROLL)
   =========================================== */

.projects { padding: 60px 40px 100px; position: relative; }
.projects-heading {
  text-align: center; font-family: 'Misto', sans-serif;
  font-size: clamp(40px, 5vw, 70px); margin-bottom: 60px;
  text-transform: uppercase; color: #fff;
}
.laptop-sticky-section {
  position: relative; width: 100%; margin-bottom: 80px;
  overflow: visible;
}
.laptop-sticky-wrapper {
  position: -webkit-sticky;
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden; padding: 20px 0;
}
.devices-row {
  display: flex; align-items: center; justify-content: center;
  gap: 40px; width: 100%; max-width: 1200px; margin: 0 auto;
}
.device-container {
  position: relative; transition: all 0.4s ease;
}

/* Sizing when only one device is present (крупный формат) */
.devices-row-single .device-laptop {
  max-width: 1080px; width: 100%; margin: 0 auto;
}
.devices-row-single .device-phone {
  max-width: min(420px, 52vh); width: 100%; margin: 0 auto;
}

/* Sizing when BOTH laptop and phone are present side-by-side (компактный дуэт) */
.devices-row-dual .device-laptop {
  max-width: 700px; width: 100%; flex: 1 1 65%;
}
.devices-row-dual .device-phone {
  max-width: min(260px, 34vh); width: 100%; flex: 0 0 auto;
}

.phone-frame-container {
  position: relative; width: 100%; aspect-ratio: 1000 / 1967;
}
.phone-frame-overlay {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; pointer-events: none; z-index: 3;
}
.phone-screen {
  position: absolute; left: 8.7%; top: 7.68%; width: 82.6%; height: 88.15%;
  border-radius: 28px; overflow: hidden; z-index: 1; background: #1a1a1a;
}
.laptop-frame {
  position: relative; width: 100%; padding-top: 5%;
}
.laptop-screen {
  position: relative; width: 82%; margin: 0 auto;
  background: #1a1a1a; border-radius: 12px 12px 0 0;
  overflow: hidden; border: 3px solid #333;
  aspect-ratio: 16/10;
}
.device-scroll-content {
  width: 100%; position: absolute; top: 0; left: 0;
  will-change: top; transition: top 0.05s linear;
}
.device-scroll-content img {
  width: 100%; display: block;
}

/* End stub (заглушка в конце скриншота) */
.end-stub {
  width: 100%; padding: 35px 20px; background: #111111;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.end-stub-logo {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
}
.end-stub-logo img {
  width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1);
}
.end-stub-text h4 {
  font-family: 'Avenir Next Cyr', sans-serif; font-size: 14px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; color: #ffffff; margin-bottom: 2px;
}
.end-stub-text span {
  font-size: 11px; color: #888888; font-weight: 300; letter-spacing: 1px;
}

.laptop-base {
  width: 92%; margin: 0 auto; height: 18px;
  background: linear-gradient(180deg, #555 0%, #333 50%, #444 100%);
  border-radius: 0 0 12px 12px; position: relative;
}
.laptop-base::before {
  content: ''; position: absolute; top: 3px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 5px; background: #555; border-radius: 3px;
}
.laptop-link-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.4); opacity: 0; transition: opacity 0.4s;
  border-radius: 12px 12px 0 0; z-index: 5;
}
.laptop-link-overlay:hover { opacity: 1; }
.laptop-link-icon {
  width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.2); font-size: 24px; color: #fff;
  transition: transform 0.3s;
}
.laptop-link-overlay:hover .laptop-link-icon { transform: scale(1.1); }
.project-info {
  text-align: center; margin-top: 20px;
}
.project-info h3 { font-size: 20px; font-weight: 500; margin-bottom: 8px; }
.project-info p { font-size: 14px; color: var(--text-secondary); }

/* ===========================================
   11. CONTACTS SECTION
   =========================================== */

.contacts {
  padding: 100px 40px; text-align: center;
}
.contacts-heading {
  font-family: 'Misto', sans-serif;
  font-size: clamp(40px, 5vw, 70px); margin-bottom: 40px;
  text-transform: uppercase; color: #fff;
}
.contacts-links {
  display: flex; justify-content: center; gap: 30px; flex-wrap: wrap;
}
.contact-link {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 30px;
  background: var(--glass-bg); backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  font-size: 15px; transition: all 0.4s ease;
}
.contact-link:hover {
  background: rgba(255,255,255,0.15); transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.contact-link svg { width: 20px; height: 20px; fill: currentColor; }

/* ===========================================
   12. FOOTER
   =========================================== */

.footer {
  padding: 40px; text-align: center;
  border-top: 1px solid var(--glass-border);
  font-size: 13px; color: var(--text-secondary);
}

/* ===========================================
   13. ANIMATIONS (keyframes)
   =========================================== */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255,255,255,0.05); }
  50% { box-shadow: 0 0 40px rgba(255,255,255,0.1), 0 0 80px rgba(255,255,255,0.05); }
}
.animate-on-scroll {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.animate-on-scroll.visible {
  opacity: 1; transform: translateY(0);
}

/* ===========================================
   14. ADMIN PANEL STYLES
   =========================================== */

.admin-body { background: #111; font-family: 'Avenir Next Cyr', sans-serif; color: #eee; cursor: auto; }
.admin-container { max-width: 1000px; margin: 0 auto; padding: 40px 20px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid #333; }
.admin-header h1 { font-size: 28px; font-weight: 600; }
.admin-header a { color: #888; text-decoration: underline; }
.admin-section { margin-bottom: 50px; }
.admin-section h2 { font-size: 22px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid #222; }
.admin-form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 30px; padding: 25px; background: #1a1a1a; border-radius: 12px; border: 1px solid #2a2a2a; }
.admin-form .full-width { grid-column: 1 / -1; }
.admin-form label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #888; margin-bottom: 4px; display: block; }
.admin-form input, .admin-form textarea, .admin-form select {
  width: 100%; padding: 10px 14px; background: #222; border: 1px solid #333;
  border-radius: 8px; color: #eee; font-size: 14px; font-family: inherit;
  transition: border-color 0.3s;
}
.admin-form input:focus, .admin-form textarea:focus { border-color: #666; outline: none; }
.admin-form textarea { resize: vertical; min-height: 80px; }
.admin-btn {
  padding: 12px 28px; border: none; border-radius: 8px; font-size: 14px;
  font-weight: 600; cursor: pointer; transition: all 0.3s;
  text-transform: uppercase; letter-spacing: 1px;
}
.admin-btn-primary { background: #fff; color: #000; }
.admin-btn-primary:hover { background: #ddd; }
.admin-btn-danger { background: #dc2626; color: #fff; }
.admin-btn-danger:hover { background: #b91c1c; }
.admin-items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.admin-item {
  background: #1a1a1a; border-radius: 12px; overflow: hidden;
  border: 1px solid #2a2a2a; transition: border-color 0.3s;
}
.admin-item:hover { border-color: #444; }
.admin-item-image { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: #222; }
.admin-item-info { padding: 15px; }
.admin-item-info h4 { font-size: 15px; margin-bottom: 5px; }
.admin-item-info p { font-size: 12px; color: #888; margin-bottom: 10px; }
.admin-item-actions { display: flex; gap: 8px; }
.admin-item-actions button { flex: 1; }

/* Login form */
.login-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #0a0a0a; }
.login-form { background: #1a1a1a; padding: 40px; border-radius: 16px; border: 1px solid #2a2a2a; width: 360px; }
.login-form h2 { text-align: center; margin-bottom: 25px; font-size: 22px; }
.login-form input { width: 100%; padding: 12px 16px; margin-bottom: 15px; background: #222; border: 1px solid #333; border-radius: 8px; color: #eee; font-size: 14px; }
.login-form button { width: 100%; padding: 12px; background: #fff; color: #000; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.login-form button:hover { background: #ddd; }
.login-error { color: #ef4444; font-size: 13px; text-align: center; margin-bottom: 10px; }

/* ===========================================
   15. RESPONSIVE & MOBILE DESIGN
   =========================================== */

/* Hide custom cursor on touch/mobile devices */
@media (hover: none), (max-width: 768px) {
  html, body, a, button {
    cursor: auto !important;
  }
  .cursor-glow {
    display: none !important;
  }
}

/* Hamburger button styling */
.mobile-burger {
  display: none;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 1002;
  cursor: pointer;
}
.mobile-burger span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
  border-radius: 2px;
}
.mobile-burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-burger.active span:nth-child(2) {
  opacity: 0;
}
.mobile-burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Drawer Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}
.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}
.mobile-nav-close {
  position: absolute;
  top: 22px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1005;
}
.mobile-nav-close:hover,
.mobile-nav-close:active {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}
.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}
.mobile-nav-link {
  font-family: 'Misto', sans-serif;
  font-size: 26px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.3s;
}
.mobile-nav-link:hover, .mobile-nav-link.active {
  color: #fff;
}
.mobile-contact-btn {
  margin-top: 15px;
}

@media (max-width: 1024px) {
  .hero-card { padding: 40px; }
  .hero-content { flex-direction: column; gap: 30px; }
  .services { grid-template-columns: 1fr; }
  .posters-grid { grid-template-columns: repeat(2, 1fr); }
  .resume-card { flex-direction: column; }
  .resume-photo { width: 100%; min-width: auto; max-width: 300px; margin: 0 auto; }
}

@media (max-width: 768px) {
  /* Header */
  .header {
    padding: 0 16px;
    height: 65px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .header-logo {
    gap: 10px;
    max-width: calc(100% - 50px);
  }
  .header-logo-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }
  .header-logo-text h3 {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .header-logo-text span {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .header-nav { display: none; }
  .header-btn-contact { display: none; }
  .mobile-burger { display: flex; }

  /* Hero */
  .hero {
    padding: 75px 14px 25px;
    min-height: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .hero-card {
    padding: 24px 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }
  .hero-header .btn-contact {
    padding: 8px 16px;
    font-size: 11px;
    letter-spacing: 1px;
    flex-shrink: 0;
  }
  .hero-name {
    font-size: 13px;
    letter-spacing: 1px;
  }
  .hero-title {
    font-size: clamp(26px, 7.8vw, 42px);
    margin-bottom: 20px;
    letter-spacing: 1px;
    line-height: 1.05;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }
  .hero-content {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    width: 100%;
  }
  .hero-description {
    font-size: 14px;
    line-height: 1.55;
    max-width: 100%;
    word-break: break-word;
  }
  .hero-nav-list {
    width: 100%;
    gap: 8px;
  }
  .hero-nav-item {
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .hero-tags {
    text-align: left;
    margin-top: 14px;
    font-size: 11px;
    letter-spacing: 0.5px;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* Resume */
  .resume {
    padding: 0 14px 50px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .resume-card {
    padding: 28px 16px;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .resume-title {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 16px;
    word-break: break-word;
  }
  .resume-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
  }
  .resume-value {
    font-size: 14px;
    word-break: break-all;
    overflow-wrap: break-word;
  }
  .resume-about p {
    font-size: 13.5px;
    line-height: 1.6;
    text-align: left;
    word-break: break-word;
  }
  .resume-photo {
    width: 100%;
    min-width: 0 !important;
    max-width: 220px;
    margin: 15px auto 0;
  }

  /* Skills carousel & services */
  .skills {
    padding: 30px 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .skills-carousel-wrapper {
    padding: 14px 10px;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .carousel-track {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    gap: 14px;
    min-width: 0;
    width: 100%;
    flex: 1 1 0%;
  }
  .carousel-item {
    scroll-snap-align: center;
    width: 56px;
    height: 56px;
    padding: 6px;
  }
  .carousel-arrow {
    width: 34px;
    height: 34px;
    font-size: 18px;
    flex-shrink: 0;
  }
  .services {
    padding: 24px 0 50px;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .service-card {
    padding: 22px 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .service-card h3 {
    font-size: 17px;
    word-break: break-word;
  }
  .service-card p {
    font-size: 13px;
    line-height: 1.55;
    word-break: break-word;
  }

  /* Posters */
  .posters {
    padding: 40px 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .posters-heading {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 25px;
    word-break: break-word;
  }
  .posters-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    max-width: 100%;
  }
  .poster-item {
    width: 100%;
    max-width: 100%;
  }

  /* Lightbox */
  .lightbox-content { max-width: 92vw; max-height: 75vh; }
  .lightbox-close { top: 15px; right: 15px; width: 44px; height: 44px; font-size: 20px; }
  .lightbox-caption { font-size: 12px; padding: 8px 20px; bottom: -45px; }

  /* ===========================================
     PROJECTS SECTION (MOBILE = PHONE ONLY!)
     =========================================== */
  .projects {
    padding: 40px 14px 60px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .projects-heading {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 25px;
    word-break: break-word;
  }
  
  /* HIDE LAPTOP FRAMES ON MOBILE DEVICES - PHONE ONLY! */
  .device-laptop {
    display: none !important;
  }
  
  .laptop-sticky-section {
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: visible !important;
  }

  .laptop-sticky-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 10px 0;
    box-sizing: border-box;
  }

  .devices-row {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box;
  }
  
  .device-phone {
    display: block !important;
    max-width: min(290px, 75vw) !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  
  .phone-screen {
    border-radius: 22px;
  }

  .end-stub {
    padding: 22px 14px;
  }
  .end-stub-logo {
    width: 28px; height: 28px;
  }
  .end-stub-text h4 {
    font-size: 12px;
  }
  .end-stub-text span {
    font-size: 10px;
  }

  .project-info {
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    margin-top: 14px;
  }
  .project-info h3 {
    font-size: 17px;
    word-break: break-word;
  }
  .project-info p {
    font-size: 13px;
    word-break: break-word;
  }

  /* Contacts */
  .contacts {
    padding: 50px 14px 60px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .contacts-heading {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 25px;
    word-break: break-word;
  }
  .contacts-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
  }
  .contact-link {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    padding: 12px 16px;
    font-size: 13px;
    word-break: break-all;
    box-sizing: border-box;
  }

  /* Footer */
  .footer {
    padding: 25px 14px;
    font-size: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .hero-card { padding: 20px 14px; }
  .hero-title { font-size: clamp(24px, 7.2vw, 34px); }
  .resume-title, .posters-heading, .projects-heading, .contacts-heading { font-size: clamp(26px, 7.5vw, 34px); }
  .device-phone { max-width: min(265px, 80vw) !important; }
}
