/* Reset and base styles */
* { 
  box-sizing: border-box; 
  margin: 0;
  padding: 0;
}

html { 
  scroll-behavior: smooth; 
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #ffffff;
  background: #0D0D0D;
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Body state when nav is open */
body.nav-open {
  overflow: hidden;
}

/* Color variables - Eduardo Pego Brand Colors */
:root {
  --orange: #FF7500;
  --orange-dark: #e55a2b;
  --black: #0D0D0D;
  --dark-grey: #0D0D0D;
  --white: #ffffff;
  --light-grey: #9DA1A2;
  --header-height: 80px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
  height: var(--header-height);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

/* Header scroll effect */
.site-header.scrolled {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 117, 0, 0.2);
}

/* Hide header when scrolling past hero */
/* Hide header once user starts scrolling */
.site-header.hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.logo-icon {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: brightness(0) invert(1);
}

/* Fallback if logo image doesn't load */
.logo-icon:not([src]),
.logo-icon[src=""] {
  display: none;
}

/* Show text logo as fallback */
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

/* Ensure logo text is always visible */
.logo-name,
.logo-subtitle {
  display: block !important;
}

.logo-name {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-shadow: none;
}

.logo-subtitle {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.85;
  letter-spacing: 4px;
  color: var(--white);
  text-transform: uppercase;
  margin-top: 4px;
  text-shadow: none;
}

/* Navigation - Desktop */
.nav-menu {
  display: flex;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  padding: 8px 0;
}

.nav-menu a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff6b35, #ff8c42);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--orange);
  transform: translateY(-2px);
}

.nav-menu a:hover::before {
  width: 100%;
}

.nav-menu a.active {
  color: var(--orange);
  transform: translateY(-2px);
}

.nav-menu a.active::before {
  width: 100%;
}

.nav-separator {
  color: var(--white);
  font-weight: 300;
  opacity: 0.7;
}

/* Mobile menu toggle */
.nav-toggle-checkbox {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.nav-toggle-bar {
  width: 100%;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
}

/* Mobile menu styles - Force override */
@media (max-width: 768px) {
  .site-header .nav-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .site-header .nav-menu {
    position: fixed !important;
    top: 80px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    background: transparent !important;
    backdrop-filter: none !important;
    padding: 20px !important;
    margin: 0 !important;
    transform: translateY(-100%) !important;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease !important;
    border-bottom: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    z-index: 999 !important;
    display: block !important;
  }
  
  .site-header .nav-menu.active {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent !important; /* no tint */
    backdrop-filter: blur(12px) !important; /* blurred backdrop */
    -webkit-backdrop-filter: blur(12px) !important;
  }
  
  .site-header .nav-menu ul {
    flex-direction: column !important;
    gap: 20px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
  }
  
  .site-header .nav-menu a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 22px !important;
    letter-spacing: 2px !important;
    display: block !important;
    padding: 20px 0 !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    text-transform: uppercase !important;
    text-shadow: 
      0 0 10px rgba(255, 107, 53, 0.5),
      0 2px 4px rgba(0, 0, 0, 0.8),
      0 4px 8px rgba(0, 0, 0, 0.6) !important;
    background: transparent !important;
    border: 2px solid transparent !important;
    border-radius: 0 !important;
    margin: 8px 0 !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
  }
  
  .site-header .nav-menu a::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent) !important;
    transition: left 0.6s ease !important;
  }
  
  .site-header .nav-menu a:hover,
  .site-header .nav-menu a.active {
    color: #ff6b35 !important;
    transform: translateX(15px) scale(1.05) !important;
    text-shadow: 
      0 0 20px rgba(255, 107, 53, 0.8),
      0 2px 4px rgba(0, 0, 0, 0.9),
      0 4px 12px rgba(0, 0, 0, 0.7) !important;
    border: 2px solid rgba(255, 107, 53, 0.3) !important;
    background: rgba(255, 107, 53, 0.05) !important;
  }
  
  .site-header .nav-menu a:hover::before {
    left: 100% !important;
  }
  
  .site-header .nav-separator {
    display: none !important;
  }
  
  /* Burger animation */
  .site-header .nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px) !important;
  }
  
  .site-header .nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0 !important;
  }
  
  .site-header .nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px) !important;
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* лінія обріжеться краями блоку як на фото */
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 35, 50, 0.8) 0%, rgba(44, 62, 80, 0.6) 100%);
  z-index: -1;
}

/* SVG-накладка */
.hero-accent {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* щоб не заважала клікам */
}

/* Перша помаранчева лінія */
/* Перша помаранчева лінія */
.hero-accent polyline:first-child {
  fill: none;
  stroke: var(--orange);
  stroke-width: 28;           /* однакова товщина */
  stroke-linecap: round;      /* круглі кінці */
  stroke-linejoin: round;     /* м'які злами */
  vector-effect: non-scaling-stroke; /* товщина не «пливе» при ресайзі */
}

/* Друга помаранчева лінія */
.hero-accent polyline:last-child {
  fill: none;
  stroke: var(--orange);
  stroke-width: 28;           /* однакова товщина */
  stroke-linecap: round;      /* круглі кінці */
  stroke-linejoin: round;     /* м'які злами */
  vector-effect: non-scaling-stroke; /* товщина не «пливе» при ресайзі */
  opacity: 0.7;               /* напівпрозора */
}

/* видалено soft-line */


/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: -100px;
}

/* Sobre Mim Section */
.sobre {
  padding: 80px 0;
  background: var(--white);
}

.sobre-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.sobre-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.sobre-logo-image {
  max-width: 300px;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.sobre-logo .sobre-logo-icon {
  height: 72px;
  filter: none; /* keep original black icon on white background */
}

.sobre-logo .sobre-logo-name {
  font-size: 32px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #111111;
}

.sobre-logo .sobre-logo-subtitle {
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #111111;
  margin-top: 6px;
}

/* Subtle width constraint so block scales like the previous image */
.sobre-logo .logo {
  max-width: 380px;
}

.sobre-text {
  color: var(--black);
}

.sobre-title {
  font-family: 'Funnel Display', 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 30px;
  line-height: 1.2;
}

.sobre-description {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--dark-grey);
}

.sobre-description p {
  margin-bottom: 20px;
}

.sobre-description p:last-child {
  margin-bottom: 0;
}

/* Projetos Section - Premium */
.projetos {
  padding: 120px 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0d0d0d 100%);
  position: relative;
  overflow: hidden;
}

.projetos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 117, 0, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255, 117, 0, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.projetos-content {
  text-align: center;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.projetos-title {
  font-family: 'Funnel Display', 'Montserrat', sans-serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 30px;
  line-height: 1.1;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.projetos-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  background: var(--orange);
  margin: 20px auto 0;
}

.projetos-subtitle {
  font-family: 'Sora', 'Montserrat', sans-serif;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 80px;
  line-height: 1.6;
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.projetos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.projeto-item {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 450px;
}

.projeto-item:hover {
  transform: translateY(-15px);
  border-color: var(--orange);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3),
              0 0 40px rgba(255, 117, 0, 0.2);
}

.projeto-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.projeto-item:hover .projeto-image {
  transform: scale(1.1);
}

.projeto-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
  color: var(--white);
  padding: 40px 30px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.projeto-item:hover .projeto-overlay {
  transform: translateY(0);
}

.projeto-name {
  font-family: 'Funnel Display', 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 15px;
  color: var(--white);
  letter-spacing: 1px;
}

.projeto-description {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
}

/* Contato Section */
.contato {
  background-color: #000000; /* чорний фон */
  color: #CCCCCC; /* світло-сірий текст */
  text-align: center; /* вирівнювання по центру */
  font-family: 'Roboto', 'Montserrat', sans-serif; /* сучасний шрифт */
  padding: 40px 20px;
}

.contato-content {
  max-width: 800px;
  margin: 0 auto;
}

.contato-title {
  color: #FF6600; /* помаранчевий заголовок */
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.contato-subtitle {
  font-size: 16px;
  line-height: 1.6;
  margin: 8px 0;
  margin-bottom: 20px;
  color: #999999;
}

.contato-info {
  display: flex;
  flex-direction: column;
  gap: 0px;
  align-items: center;
}

.contato-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 0px;
}

.contato-label {
  font-size: 14px;
  font-weight: 500;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contato-value {
  font-size: 16px;
  line-height: 1.6;
  margin: 8px 0;
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contato-value:hover {
  color: var(--orange);
}

.hero-slogan {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.slogan-white {
  color: var(--white);
  display: inline;
}

.slogan-orange {
  color: var(--orange);
  display: inline;
  margin-top: 0;
}

/* Contact form */
.contact-form-container {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 10;
  max-width: 700px;
  width: auto;
  animation: none !important;
  outline: none !important;
  border: none !important;
}

/* Contact form stays visible */

.contact-form {
  background: var(--orange);
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  gap: 8px;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  outline: none !important;
  border: none !important;
}

/* Font stabilization for contact form */
.contact-form,
.contact-form * {
  font-display: swap;
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-ligatures: none;
  text-decoration-skip-ink: none;
}

/* General form styles */
.contact-form label {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}

.contact-form input {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 12px;
  padding: 12px 15px;
  font-size: 14px;
  color: #333;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.contact-form input:focus {
  outline: none;
  background: var(--white);
  box-shadow: none;
}

.contact-form input::placeholder {
  color: #666;
}




.form-header {
  flex: 0 0 auto;
  width: 140px;
}

.form-title {
  font-family: 'Montserrat', sans-serif;
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  text-align: center;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.title-line-1 {
  display: block;
  font-size: 18px;
  font-weight: 700;
}

.title-line-2,
.title-line-3 {
  display: block;
  font-size: 18px;
  font-weight: 400;
}

.form-content {
  flex: 1;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.form-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.form-group label {
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.form-group input {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 12px;
  padding: 8px;
  font-size: 13px;
  color: #333;
  transition: background 0.3s ease;
}

.form-group input:focus {
  outline: none;
  background: var(--white);
  box-shadow: none;
}

.form-group input::placeholder {
  color: #666;
}

.submit-btn {
  width: 100%;
  background: var(--white);
  color: var(--orange);
  border: none;
  border-radius: 12px;
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 0;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  background: #f8f9fa;
}

/* Footer */
.site-footer {
  background: var(--black);
  padding: 40px 0;
}

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

.site-footer .logo {
  margin-bottom: 10px;
}

.site-footer .muted {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.dev-badge {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.dev-badge .dev-link {
  color: #ff8c42;
  text-decoration: none;
  font-weight: 600;
}

.dev-badge .dev-link:hover {
  color: #ffa566;
}

.site-footer nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
}

.site-footer nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.site-footer nav a:hover {
  color: var(--orange);
}

/* Floating contacts */
.floating-contacts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
}

.fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.fab:hover { transform: none; }

.fab-wa {
  background: none;
  background-color: rgba(37, 211, 102, var(--waBg, 0)); /* green alpha via JS */
  color: #ffffff;
  border: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, var(--waShadow, 0));
  text-shadow: 0 2px 4px rgba(0, 0, 0, var(--waTextShadow, 0));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.95);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.45s, background-color 0.45s ease, box-shadow 0.3s ease, text-shadow 0.3s ease;
  will-change: opacity, transform, background-color, box-shadow, text-shadow;
}

.fab-wa.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* To top button */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 90px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: none;
  background-color: rgba(30, 30, 30, var(--toTopBg, 0)); /* driven by JS */
  border: none;
  color: #ffffff; /* arrow visible as soon as button shows */
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.45s, box-shadow 0.3s ease, background-color 0.45s ease, color 0.45s ease, text-shadow 0.3s ease;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, var(--toTopShadow, 0)); /* shadow with scroll */
  text-shadow:
    0 0 6px rgba(255, 255, 255, var(--toTopArrowShadow, 0)),
    0 0 14px rgba(255, 255, 255, var(--toTopArrowShadow, 0)); /* arrow glow */
  transform: translateY(12px) scale(0.95);
  will-change: opacity, transform;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition-delay: 0s, 0s, 0s, 0s;
}

/* Elite subtle pulse when button appears */
.to-top::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}

.to-top.show::after {
  animation: toTopPulse 900ms ease-out 1;
}

@keyframes toTopPulse {
  0% {
    transform: scale(0.85);
    opacity: 0.0;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.00);
  }
  60% {
    transform: scale(1.05);
    opacity: 0.35;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08);
  }
  100% {
    transform: scale(1);
    opacity: 0;
    box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.00);
  }
}

/* Soft sheen on hover */
.to-top::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(120deg, rgba(255,255,255,0.0) 30%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0.0) 70%);
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}

.to-top:hover::before { animation: none; opacity: 0; }

@keyframes sheen {
  0% { transform: translateX(-120%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

.to-top:hover {
  transform: translateY(0) scale(1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, var(--toTopShadow, 0));
}

.to-top:focus {
  outline: 3px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .site-header {
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
  }
  
  .nav {
    padding: 0 15px;
  }
  
  /* Hide desktop navigation on mobile */
  .nav-menu {
    display: none;
  }
  
  .logo-text {
    font-size: 16px;
  }

  .logo-name {
    font-size: 18px;
    font-weight: 600;
  }

  .logo-subtitle {
    font-size: 13px;
    color: var(--white);
  }

  .logo-icon {
    height: 36px;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    padding: 30px 20px;
    transform: translateY(-100%);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    border-bottom: 1px solid rgba(255, 117, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    display: block;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-menu ul {
    flex-direction: column;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .nav-toggle {
    display: flex !important;
  }
  
  .nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  
  /* Contact form on mobile */
  .contact-form-container {
    position: relative;
    bottom: auto;
    right: auto;
    left: auto;
    transform: none;
    max-width: 500px;
    width: 90vw;
    margin: 40px 20px 0;
    z-index: 10;
  }
  
  .contact-form {
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }
  
  .form-header {
    width: 100%;
  }
  
  .form-title {
    text-align: center;
    font-size: 20px;
    gap: 6px;
    height: auto;
    justify-content: flex-start;
    letter-spacing: 0.8px;
    line-height: 1.6;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-slogan {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    gap: 4px;
  }
  
  .hero-accent polyline:first-child {
    stroke-width: 16; /* Тонша перша лінія на мобільних */
  }
  
  .hero-accent polyline:last-child {
    stroke-width: 12; /* Тонша друга лінія на мобільних */
  }
  
  .hero {
    height: 80vh; /* Менша висота на мобільних */
  }
  
  .sobre {
    padding: 60px 0;
  }
  
  .sobre-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .sobre-title {
    font-size: 2rem;
  }
  
  .sobre-description {
    font-size: 1rem;
  }
  
  .projetos {
    padding: 80px 0;
  }
  
  .projetos-title {
    font-size: 2.5rem;
    letter-spacing: 1px;
  }
  
  .projetos-subtitle {
  font-size: 1.1rem;
    margin-bottom: 60px;
  }
  
  .projetos-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
  }
  
  .projeto-item {
    height: 350px;
  }
  
  .projeto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateY(100%);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
    padding: 25px 20px;
    justify-content: flex-end;
    transition: transform 0.4s ease;
  }
  
  .projeto-name {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }
  
  .projeto-description {
    font-size: 0.9rem;
  }
  
  /* Mobile touch interactions */
  .projeto-item:active .projeto-overlay,
  .projeto-item.touch-active .projeto-overlay {
    transform: translateY(0);
  }
  
  .contato {
    padding: 30px 15px;
  }
  
  .contato-title {
    font-size: 20px;
    margin-bottom: 8px;
  }
  
  .contato-subtitle {
    font-size: 14px;
    margin-bottom: 15px;
  }
  
  .contato-info {
    gap: 0px;
  }
  
  .contato-item {
    margin-bottom: 0px;
    flex-direction: column;
    gap: 5px;
  }
  
  .contato-label {
    font-size: 12px;
  }
  
  .contato-value {
    font-size: 14px;
  }
  
  
  .contact-form-container {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    max-width: 500px;
    width: 90vw;
    z-index: 10;
    margin: 40px 20px 0;
    animation: none !important;
  }
  
  .contact-form {
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }
  
  .form-header {
    width: 100%;
  }
  
  .form-title {
    text-align: center;
    font-size: 20px;
    gap: 6px;
    height: auto;
    justify-content: flex-start;
    letter-spacing: 0.8px;
    line-height: 1.6;
    display: inline-block;
    white-space: nowrap;
  }
  
  .title-line-1 {
    font-size: 20px;
    font-weight: 700;
    display: inline;
    white-space: nowrap;
  }
  
  .title-line-2,
  .title-line-3 {
    font-size: 20px;
    font-weight: 400;
    display: inline;
    white-space: nowrap;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  
  .footer-grid {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  /* Center footer logo block and text on mobile */
  .site-footer .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
  }
  
  .site-footer .logo-text {
    align-items: center;
  }
  
  .social-links {
    justify-content: center;
    margin-top: 24px;
  }
  
  .social-link {
    width: 48px;
    height: 48px;
  }
  
  .instagram-icon {
    width: 26px;
    height: 26px;
  }
  
  .site-footer nav ul {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .site-footer .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 100%;
  }
  
  .social-links {
    margin-top: 16px;
  }
  
  .social-link {
    width: 44px;
    height: 44px;
  }
  
  .instagram-icon {
    width: 24px;
    height: 24px;
  }
  
  .contact-form {
    padding: 24px;
  }
  
  .hero-content {
    margin-top: -50px;
  }
  
  .floating-contacts {
    right: 16px;
    bottom: 16px;
  }
  
  .to-top {
    right: 16px;
    bottom: 80px;
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
}

/* Animation for page load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: fadeInUp 1s ease-out;
}

/* Contact form positioning fixed */

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
  /* Remove outlines from form elements */
  .contact-form *,
  .contact-form *:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
  }
  
  /* Specific fix for h3 elements in form */
  .contact-form h3,
  .contact-form h3:focus,
  .contact-form h3.form-title,
  .contact-form h3.form-title:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
  }
  
  .contact-form-container {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: 92vw;
    max-width: 380px;
  min-width: 300px;
    z-index: 10;
    margin: 40px 20px 0;
    animation: none !important;
  }
  
  .contact-form {
    padding: 16px;
    gap: 10px;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 117, 0, 0.95) 0%, rgba(255, 140, 0, 0.9) 100%);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255, 117, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
  }
  
  .form-grid {
    display: flex;
    flex-direction: row;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
    align-items: flex-start;
    align-content: flex-start;
    justify-content: center;
  overflow: visible;
}

  .form-group {
    box-sizing: border-box;
    width: 100%;
    overflow: visible;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: flex-start;
    align-items: stretch;
    min-height: 51px;
    padding-top: 0;
  }
  
  .form-group input {
    padding: 8px 10px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--black);
    border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    height: 32px;
    flex-shrink: 0;
  }
  
  .form-group label {
    font-size: 11px;
    margin-bottom: 3px;
    color: var(--white);
  font-weight: 500;
    line-height: 1.2;
    height: 16px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    overflow: visible;
    white-space: nowrap;
  }
  
  .submit-btn {
    padding: 10px;
    font-size: 13px;
    background: var(--white);
    color: var(--orange);
    border: 2px solid var(--white);
    border-radius: 6px;
    font-weight: 600;
    width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
    margin-top: 6px;
  text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
  }
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
a:focus {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* Mobile burger menu styles */
.nav-toggle.active .nav-toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Show burger menu on mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex !important;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    padding: 20px;
    transform: translateY(-100%);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    border-bottom: 1px solid rgba(255, 117, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-menu ul {
    flex-direction: column;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 0.5px;
    display: block;
    padding: 12px 0;
    transition: color 0.3s ease, transform 0.3s ease;
    text-transform: uppercase;
  }
  
  .nav-menu a:hover,
  .nav-menu a.active {
    color: var(--orange);
    transform: translateX(10px);
  }
}

/* Block scroll when menu is open */
body.nav-open {
  overflow: hidden;
}

/* Ensure page can scroll to bottom */
html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Page Loader */
.page-loader {
  position: fixed;
  inset: 0;
  background: #0D0D0D;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loader-logo {
  height: 96px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  animation: pulse 1.6s ease-in-out infinite;
}

.loader-spinner { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* Remove outlines from h3 elements */
h3,
h3:focus,
h3.form-title,
h3.form-title:focus {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  background-clip: initial !important;
  -webkit-background-clip: initial !important;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Form validation styles */
.form-group input:invalid {
  border: none;
}

.form-group input:valid {
  border: none;
}

/* Fix for tablets - remove outline from form title */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .form-title,
  .form-title:focus,
  .form-title *,
  .form-title *:focus,
  .title-line-1,
  .title-line-1:focus,
  .title-line-2,
  .title-line-2:focus,
  .title-line-3,
  .title-line-3:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
  }
}

/* Fix for iPad Pro and large tablets */
@media screen and (min-width: 1024px) {
  .form-title,
  .form-title:focus,
  .form-title *,
  .form-title *:focus,
  .title-line-1,
  .title-line-1:focus,
  .title-line-2,
  .title-line-2:focus,
  .title-line-3,
  .title-line-3:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
  }
  
  .contact-form-container {
    position: absolute;
    bottom: 40px;
    right: 40px;
    transform: none;
    max-width: 700px;
    width: auto;
    z-index: 10;
    margin: 0;
  }
  
  /* Desktop form design like reference site */
  .contact-form {
    padding: 25px;
  }
  
}

/* Special fix for Galaxy S8+ and similar devices */
@media screen and (max-width: 414px) and (max-height: 896px) and (min-width: 360px) {
  .to-top {
    right: 15px;
    bottom: 75px;
    width: 50px;
    height: 50px;
    font-size: 18px;
  }
  .contact-form-container {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: 88vw;
    max-width: 350px;
    margin: 40px 20px 0;
    min-width: 280px;
    z-index: 10;
    animation: none !important;
  }
  
  .contact-form {
    padding: 14px;
    gap: 8px;
  }
  
  .form-header {
    margin-bottom: 5px;
  }
  
  .form-grid {
    gap: 8px;
  }
  
  .form-group {
    min-height: 47px;
  }
  
  .form-group input {
    padding: 7px 9px;
    font-size: 12px;
    height: 30px;
    width: 100% !important;
    min-width: 0;
  }
  
  .form-group label {
    font-size: 10px;
    height: 14px;
    margin-bottom: 2px;
  }
  
  .submit-btn {
    padding: 8px;
    font-size: 12px;
    margin-top: 5px;
  }
  
  .form-title {
    font-size: 15px;
    letter-spacing: 0.3px;
  }
}

/* Typography - Eduardo Pego Brand */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Funnel Display', 'Montserrat', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.subtitle {
  font-family: 'Sora', 'Montserrat', sans-serif;
  font-weight: 500;
}

.text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
}

/* Extra specific fix for Galaxy S8+ (360x740) */
@media screen and (width: 360px) and (height: 740px) {
  .to-top {
    right: 12px;
    bottom: 70px;
    width: 48px;
    height: 48px;
    font-size: 16px;
  }
  .contact-form-container {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: 85vw;
    margin: 40px 20px 0;
    max-width: 320px;
    min-width: 260px;
    z-index: 10;
    animation: none !important;
  }
  
  .contact-form {
    padding: 12px;
    gap: 6px;
  }
  
  .form-header {
    margin-bottom: 4px;
  }
  
  .form-grid {
    gap: 6px;
  }
  
  .form-group {
    min-height: 44px;
  }
  
  .form-group input {
    padding: 6px 8px;
    font-size: 11px;
    height: 28px;
    width: 100% !important;
    min-width: 0;
  }
  
  .form-group label {
    font-size: 9px;
    height: 13px;
    margin-bottom: 1px;
  }
  
  .submit-btn {
    padding: 7px;
    font-size: 11px;
    margin-top: 4px;
  }
  
  .form-title {
    font-size: 14px;
    letter-spacing: 0.2px;
  }
}

/* Mobile responsive styles - Bottom positioned form */
@media (max-width: 768px) {
  .hero {
    height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
  }
  
  .hero-slogan {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    gap: 4px;
  }
  
  .contact-form-container {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 15px 20px 20px;
    z-index: 10;
    animation: none !important;
  }
  
  .contact-form {
    padding: 16px;
    gap: 12px;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .form-header {
    width: 100%;
    margin-bottom: 8px;
  text-align: center;
}

  .form-title {
    text-align: center;
    font-size: 18px;
    gap: 4px;
    height: auto;
    justify-content: center;
    letter-spacing: 0.8px;
    line-height: 1.3;
    margin: 0;
  }
  
  .form-content {
    width: 100%;
  }
  
  .form-grid {
    gap: 10px;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 8px;
  }
  
  .form-group {
    min-height: 45px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  
  .form-group input {
    padding: 8px 10px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--black);
    border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: 32px;
    flex-shrink: 0;
    transition: all 0.2s ease;
  }
  
  .form-group input:focus {
    outline: none;
    background: var(--white);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
  }
  
  .form-group label {
    font-size: 11px;
    margin-bottom: 4px;
    color: var(--white);
    font-weight: 600;
    line-height: 1.2;
    height: 14px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    overflow: visible;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .submit-btn {
    padding: 12px 20px;
    font-size: 14px;
    background: var(--white);
    color: var(--orange);
    border: 2px solid var(--white);
    border-radius: 6px;
    font-weight: 700;
    width: 100%;
    box-sizing: border-box;
    margin-top: 8px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
  }
  
  .submit-btn:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
}

.site-footer .muted a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}
.site-footer .muted a:hover { color: var(--orange); }

/* Social Links */
.social-links {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  justify-content: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.instagram-icon {
  width: 24px;
  height: 24px;
}