/* ============================================================
   ADVEJER — PREMIUM DESIGN SYSTEM
   Palette: #0a0a0a (black) + #ffffff (white)
   Font: Inter
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --black:        #000000;
  --black-soft:   #050505;
  --black-card:   #050505;
  --black-border: rgba(255, 255, 255, 0.1);
  --black-glass:  rgba(255, 255, 255, 0.05);

  --white:        #ffffff;
  --white-90:     rgba(255, 255, 255, 0.9);
  --white-60:     rgba(255, 255, 255, 0.6);
  --white-35:     rgba(255, 255, 255, 0.35);
  --white-12:     rgba(255, 255, 255, 0.12);
  --white-06:     rgba(255, 255, 255, 0.06);
  --white-04:     rgba(255, 255, 255, 0.04);

  --font-body: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;

  --radius-pill:  9999px;
  --radius-lg:    24px;
  --radius-md:    16px;
  --radius-sm:    10px;

  --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}
textarea { resize: vertical; }

/* ---------- Layout ---------- */
section { scroll-margin-top: 6rem; }

.container {
  width: 100%;
  max-width: 77%;
  margin-inline: auto;
  padding-inline: 2rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 1rem;
  /* fade-in padding at top */
  background: linear-gradient(to bottom, rgba(10,10,10,0.6) 0%, transparent 100%);
}

/* Pill-shaped nav bar (nohesi style) */
.nav-wrapper {
  max-width: 82%;
  margin-inline: auto;
  padding-inline: 0.5rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  
  /* Advanced Liquid Glassmorphism */
  background: linear-gradient(
    135deg, 
    rgba(255, 255, 255, 0.05) 0%, 
    rgba(10, 10, 10, 0.3) 100%
  );
  backdrop-filter: blur(28px) saturate(200%) brightness(1.1);

  
  /* 3D Borders / Edge Highlights */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid =;
  border-bottom: 1px solid rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-pill);
  

    
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  position: relative;
}


.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--white);
  flex-shrink: 0;
}
.nav-logo span {
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px var(--white);
  opacity: 1;
}

/* Centered nav links via absolute */
.nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white-60);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: var(--white-06);
}

/* Nav CTA button (nohesi white pill + black icon circle) */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--black);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.35rem 0.35rem 0.35rem 1rem;
  border-radius: var(--radius-pill);
  transition: opacity var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.nav-cta:hover { opacity: 0.88; transform: scale(0.98); }
.nav-cta-icon {
  width: 32px;
  height: 32px;
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

/* Burger (mobile) */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white-60);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-burger.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.is-active span:nth-child(2) { opacity: 0; }
.nav-burger.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; }
.btn:active { transform: scale(0.97); }

/* Primary: white bg, black text, arrow circle */
.btn-primary {
  background: var(--white);
  color: var(--black);
  padding: 0.4rem 0.4rem 0.4rem 1.25rem;
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
}
.btn-primary:hover {
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(255,255,255,0.4);
}
.btn-icon {
  width: 40px;
  height: 40px;
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.btn-large {
  font-size: 1.1rem;
  padding: 0.5rem 0.5rem 0.5rem 1.75rem;
}
.btn-large .btn-icon {
  width: 48px;
  height: 48px;
  font-size: 1.3rem;
}

/* Secondary: glass bordered */
.btn-secondary {
  background: var(--white-06);
  color: var(--white-90);
  border: 1px solid var(--black-border);
  padding: 0.75rem 1.5rem;
}
.btn-secondary:hover { background: var(--white-12); }

.btn-full { width: 100%; }

/* Submit button special */
.btn-primary.btn-full {
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--black);
}
.btn-primary.btn-full:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Loader spinner inside button */
.btn-loader {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: var(--black);
  animation: spin 0.7s linear infinite;
}
.btn.loading .btn-loader { display: block; }
.btn.loading .btn-text { display: none; }

/* Ensure content sections scroll over the sticky hero */
.about, .portfolio, .contacts, .site-footer {
  position: relative;
  z-index: 1;
  background-color: var(--black);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 0;
  will-change: transform, filter;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow: hidden;
  padding-top: 6rem;
  padding-bottom: 4rem;
}

/* ── Hero Background Video ── */
.hero-video-wrapper {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Візуальне покращення якості відео: додаємо контрасту та насиченості */
  filter: contrast(1.1) saturate(1.2) brightness(0.9);
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  /* Градієнт для читабельності тексту + текстура шуму для кіношного ефекту */
  background: 
    linear-gradient(to bottom, rgba(5, 1, 8, 0.4) 0%, rgba(5, 1, 8, 0.95) 100%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: auto, 256px;
  pointer-events: none;
}

/* Page Transition Fade from Black */
.page-transition-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--black);
  z-index: 999999;
  pointer-events: none;
  animation: fadeOutOverlay 0.8s ease-in-out forwards;
}
@keyframes fadeOutOverlay {
  0% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ── Scroll Indicator ── */
.scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition);
  animation: float 2s infinite ease-in-out;
  z-index: 10;
}

.scroll-indicator:hover {
  color: var(--white);
}

.scroll-text {
  font-size: 0.8rem;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

@keyframes float {
  0% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
  100% { transform: translate(-50%, 0); }
}

/* ── About Badges ── */
.about-badges {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 1.5rem;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white-04);
  backdrop-filter: blur(12px);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-pill);
  padding: 0.35rem 1rem 0.35rem 0.35rem;
}

.badge-value {
  display: flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: var(--white-06);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.badge-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white-60);
}

/* ── Hero Typography ── */
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-name span {
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 2px var(--white);
}

.hero-title {
  font-size: clamp(1.1rem, 2.75vw, 1.45rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 3.5rem;
  letter-spacing: 0.01em;
}

.hero-description {
  max-width: 860px;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   SECTION SHARED
   ============================================================ */
.portfolio,
.contacts {
  padding-block: 6rem;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--white-35);
  margin-bottom: 0.75rem;
  border: 1px solid var(--black-border);
  background: var(--white-04);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.section-description {
  max-width: 760px;
  margin-inline: auto;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.75;
}

/* ============================================================
   BENTO BOX PORTFOLIO
   ============================================================ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 300px;
  gap: 1.5rem;
}
.bento-item {
  background: var(--black-glass);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
}
.bento-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.8));
  z-index: 1;
}
.bento-img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.bento-item:hover .bento-img {
  opacity: 0.8;
}

/* ============================================================
/* 4. Premium Elegant (Playfair Display) - Final Selection */
.logo-var-4a { font-family: 'Playfair Display', serif; font-weight: 700; text-transform: capitalize; letter-spacing: 1px; }
.logo-var-4a span { font-style: italic; font-weight: 400; }
.bento-item:hover,
.bento-item.visible:hover {
  transform: scale(1.02) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}
.bento-item > div {
  position: relative;
  z-index: 2;
}
.title-link-icon {
  display: inline-block;
  opacity: 1;
  transform: translateX(0);
  transition: transform 0.3s ease;
  font-size: 0.8em;
  color: var(--primary);
}
.bento-item:hover .title-link-icon,
.project-card:hover .title-link-icon,
.card-modal-title a:hover .title-link-icon {
  transform: translateX(5px);
}
.bento-item.large {
  grid-column: span 2;
  grid-row: span 2;
}
.bento-item.wide {
  grid-column: span 2;
}
.bento-title {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  line-height: 1.1;
  transition: color 0.3s;
}
.bento-title a {
  color: inherit;
  text-decoration: none;
}
.bento-item:hover .bento-title {
  text-decoration: none;
}
.bento-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
}

.portfolio-actions {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}
/* ============================================================
   CONTACTS SECTION
   ============================================================ */
.contacts {
}

.contacts-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 900px) {
  .contacts-layout {
    flex-direction: column;
  }
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 57%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white-60);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-input {
  background: var(--white-04);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  padding: 0.85rem 1rem;
  width: 100%;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
}
.form-input::placeholder { color: var(--white-35); }
.form-input:focus {
  border-color: rgba(255, 255, 255, 0.25);
  background: var(--white-06);
}
.form-input.input-error { border-color: rgba(255, 80, 80, 0.6); }

.form-textarea { min-height: 140px; }

.form-error {
  font-size: 0.78rem;
  color: rgba(255, 100, 100, 0.9);
  min-height: 1rem;
}

.text-success {
  color: #25D366 !important;
}

.input-valid {
  border-color: #25D366 !important;
}

.form-success {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white-90);
}

/* Contact sidebar */
.contacts-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1px;
  background: var(--white-12);
  position: relative;
  align-self: stretch;
}
.contacts-divider span {
  position: absolute;
  background: var(--black);
  color: var(--white-60);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 50%;
  border: 1px solid var(--white-12);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.contact-info-wrapper {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.contact-direct-title {
  text-align: center;
  font-size: 0.95rem;
  color: var(--white-60);
  margin-bottom: 0.85rem;
  font-weight: 500;
  width: 100%;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--white-04);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-lg);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  width: 280px;
  border: 1px solid transparent;
}
.contact-item:hover { background: var(--white-06); border-color: var(--white-12); }

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--white-06);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-60);
  flex-shrink: 0;
  transition: all var(--transition);
}

/* Brand Colors */
#contact-telegram .contact-icon { color: #229ED9; }
#contact-telegram:hover { background: rgba(34, 158, 217, 0.1); border-color: rgba(34, 158, 217, 0.2); }
#contact-telegram:hover .contact-icon { background: rgba(34, 158, 217, 0.2); border-color: rgba(34, 158, 217, 0.4); }

#contact-whatsapp .contact-icon { color: #25D366; }
#contact-whatsapp:hover { background: rgba(37, 211, 102, 0.1); border-color: rgba(37, 211, 102, 0.2); }
#contact-whatsapp:hover .contact-icon { background: rgba(37, 211, 102, 0.2); border-color: rgba(37, 211, 102, 0.4); }

#contact-viber .contact-icon { color: #7360f2; }
#contact-viber:hover { background: rgba(115, 96, 242, 0.1); border-color: rgba(115, 96, 242, 0.2); }
#contact-viber:hover .contact-icon { background: rgba(115, 96, 242, 0.2); border-color: rgba(115, 96, 242, 0.4); }

#contact-phone .contact-icon { color: #25D366; }
#contact-phone:hover { background: rgba(37, 211, 102, 0.1); border-color: rgba(37, 211, 102, 0.2); }
#contact-phone:hover .contact-icon { background: rgba(37, 211, 102, 0.2); border-color: rgba(37, 211, 102, 0.4); }

#contact-email-info .contact-icon { color: #EA4335; }
#contact-email-info:hover { background: rgba(234, 67, 53, 0.1); border-color: rgba(234, 67, 53, 0.2); }
#contact-email-info:hover .contact-icon { background: rgba(234, 67, 53, 0.2); border-color: rgba(234, 67, 53, 0.4); }.contact-item-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white-35);
  margin-bottom: 0.15rem;
}

.contact-item-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white-90);
  transition: color var(--transition);
  white-space: nowrap;
}
.contact-item-value:hover { color: var(--white); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--black-border);
  padding-block: 1.75rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white-60);
  letter-spacing: -0.02em;
}
.footer-logo span { font-weight: 300; }

.footer-copy {
  font-size: 0.8rem;
  color: var(--white-35);
}

/* ============================================================
   ABOUT US SECTION
   ============================================================ */
.about {
  padding-block: 6rem;
}
.about-page-content {
  padding-top: 0;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.about-info .section-title {
  text-align: left;
  margin-top: 0.5rem;
}

.about-info .section-description {
  margin-inline: 0;
  text-align: left;
  font-size: 1.25rem; /* Increased description size */
}

.about-skills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.skill-card {
  background: var(--white-04);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-md);
  padding: 1.72rem;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
  text-align: center;
}

.skill-card:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: var(--white-06);
  transform: translateY(-6px);
  box-shadow: 0 12px 30px -10px rgba(255, 255, 255, 0.05);
}

.skill-icon {
  margin: 0 auto 1.2rem auto;
  display: block;
  color: var(--white-60);
  transition: color var(--transition), transform var(--transition);
}

.skill-card:hover .skill-icon {
  color: var(--white);
  transform: scale(1.1);
}

.accent-text {
  color: var(--white);
}

.skill-card-title {
  font-size: 1.67rem;
  font-weight: 600;
  margin-bottom: 0.79rem;
  color: var(--white);
  letter-spacing: -0.01em;
}

.skill-card-desc {
  font-size: 1.16rem;
  color: var(--white-60);
  line-height: 1.55;
}

/* ============================================================
   SCROLL FADE-IN ANIMATION
   ============================================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-inner {
  position: relative;
  width: min(90vw, 1100px);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--black-border);
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lightbox-overlay.is-open .lightbox-inner {
  transform: scale(1);
}
.lightbox-img {
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--black-border);
  border-radius: 50%;
  color: var(--white-60);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  z-index: 2;
  line-height: 1;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

/* project-card-img gets pointer on projects page */
.project-card-img {
  cursor: pointer;
}
.slide-image:hover::after,
.project-card-img:hover::before {
  content: '';
}

/* ============================================================
   ABOUT STATS & TITLE (RESPONSIVE)
   ============================================================ */
.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6rem;
  margin-top: 4rem;
  justify-content: center;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--primary);
  display: block;
  line-height: 1;
}
.stat-text {
  font-size: 1.1rem;
  color: var(--white-60);
  display: block;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}
.about-title-large {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}
.centered-title {
  max-width: 800px;
  text-align: center;
  margin-inline: auto;
}
.about-skills-wrapper {
  margin-top: 5rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .container {
    max-width: 90%;
  }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-item.large { grid-column: span 2; grid-row: span 1; }
  .bento-item.wide { grid-column: span 2; }
}

@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .contacts-layout {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .contact-form {
    width: 100%;
  }
  .contact-info-wrapper {
    align-items: center;
  }
  .contact-direct-title {
    text-align: center;
  }
  .contacts-divider {
    width: 100%;
    height: 1px;
    margin: 1.5rem 0;
  }
  .contact-info {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-wrapper {
    max-width: 100%;
    padding-inline: 0.5rem;
  }
  .section-header {
    margin-bottom: 2rem;
  }
  .about {
    padding-block: 4rem;
  }
  .container {
    max-width: 100%;
    padding-inline: 1rem;
  }
  .hero-content {
    margin-top: -5vh;
  }
  .hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vh !important;
    height: 100vw !important;
    min-width: 0 !important;
    min-height: 0 !important;
    transform-origin: top left;
    transform: translateX(100vw) rotate(90deg);
  }
  .hero-name {
    font-size: clamp(2.5rem, 9vw, 4rem);
  }
  .hero-name span {
    -webkit-text-stroke: 0;
    color: transparent;
    background: linear-gradient(135deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    text-shadow: 0 0 15px rgba(255,255,255,0.15);
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  .hero-actions .btn {
    width: 75%;
    max-width: 260px;
    justify-content: center;
    padding-block: 0.7rem;
    font-size: 1rem;
  }
  .scroll-indicator {
    bottom: 5rem;
  }
  
  .about-skills {
    grid-template-columns: 1fr;
  }
  .about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
  }
  .about-cta {
    display: flex;
    justify-content: center;
  }
  .about-skills-wrapper {
    margin-top: 3rem;
  }
  
  /* Collapse nav on mobile */
  .nav-links {
    display: none;
    position: fixed;
    top: 5.5rem;
    left: 1.25rem;
    right: 1.25rem;
    width: auto;
    transform: none;
    text-align: center;
    flex-direction: column;
    gap: 0.25rem;
    background: rgba(14, 14, 14, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--black-border);
    border-radius: var(--radius-lg);
    padding: 1rem;
  }
  .nav-links.is-open { display: flex; }
  .nav-link { padding: 0.75rem 1rem; }

  .nav-cta { display: none; }
  .nav-burger { display: flex; }

  .hero-name { letter-spacing: -0.03em; }
  .hero-actions { flex-direction: column; align-items: center; }

  .bento-grid { grid-template-columns: 1fr; }
  .bento-item.large, .bento-item.wide { grid-column: span 1; }
}

@media (max-width: 480px) {
  .hero-badges { gap: 0.4rem; }
  .badge { padding: 0.3rem 0.75rem 0.3rem 0.3rem; }
  .badge-label { font-size: 0.78rem; }
}

/* ============================================================
   TYPOGRAPHY HEADINGS (OUTFIT FONT)
   ============================================================ */
.hero-name,
.section-title,
.nav-logo,
.footer-logo,
.project-card-title {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.03em;
}

/* ============================================================
   CONTACT METHOD SELECTOR & CLICKABLE SIDEBAR CARDS
   ============================================================ */
.contact-method-selector {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.method-btn {
  background: var(--white-04);
  border: 1px solid var(--black-border);
  color: var(--white-60);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.method-btn:hover {
  background: var(--white-06);
  color: var(--white);
  border-color: rgba(255,255,255,0.15);
}

.method-btn.active {
  color: #fff;
  border-color: transparent;
  font-weight: 600;
}

.method-btn[data-method="telegram"].active {
  background: #229ED9;
  box-shadow: 0 4px 12px rgba(34, 158, 217, 0.3);
}

.method-btn[data-method="viber"].active {
  background: #7360f2;
  box-shadow: 0 4px 12px rgba(115, 96, 242, 0.3);
}

.method-btn[data-method="phone"].active {
  background: #25D366;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.method-btn[data-method="whatsapp"].active {
  background: #25D366;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.method-btn[data-method="email"].active {
  background: #EA4335;
  box-shadow: 0 4px 12px rgba(234, 67, 53, 0.3);
}

/* Dynamic input fade animation */
.fade-in-input {
  animation: field-fade-in 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes field-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Clickable sidebar link items style overrides */
.contact-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.contact-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white-90);
  transition: color var(--transition);
}

.contact-item-link:hover .contact-item {
  background: var(--white-06);
  border-color: rgba(255, 255, 255, 0.12);
}

.contact-item-link:hover .contact-text,
.contact-item-link:hover .contact-item-label,
.contact-item-link:hover .contact-item-value {
  color: var(--white);
}

.contact-item-link:hover .contact-icon {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--white-12);
}



