:root{
  --whatsapp-green: #25D366;
  --whatsapp-green-dark: #1EBE5A;
  --text-soft-gray: #d9d9d9;
  --overlay-top: rgba(10, 15, 20, 0.15);
  --overlay-bottom: rgba(5, 10, 15, 0.75);
}

*, *::before, *::after{
  box-sizing: border-box;
}

html, body{
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body{
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  color: #fff;
}

.hero-bg{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url('../BgIngebarr.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: -2;
}

.hero-overlay{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--overlay-top) 0%, var(--overlay-bottom) 100%);
  z-index: -1;
}

.content{
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6vh 6vw;
  text-align: center;
}

.logo,
.whatsapp-btn,
.descrip-text,
.tech-logos,
.resume-link{
  opacity: 0;
  animation: fadeSlideIn 0.9s ease-out forwards;
}

.logo{ animation-delay: 0.1s; }
.whatsapp-btn{ animation-delay: 0.35s; }
.descrip-text{ animation-delay: 0.6s; }
.tech-logos{ animation-delay: 0.85s; }
.resume-link{ animation-delay: 0.1s; }

@keyframes fadeSlideIn{
  0%   { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

.logo{
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
  margin: 0 auto 3rem auto;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.35));
}

.whatsapp-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 80%;
  max-width: 420px;
  background-color: var(--whatsapp-green);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  animation-name: fadeSlideIn, pulseGlow;
  animation-duration: 0.9s, 2.4s;
  animation-timing-function: ease-out, ease-in-out;
  animation-delay: 0.35s, 1.4s;
  animation-iteration-count: 1, infinite;
  animation-fill-mode: forwards, none;
}

@keyframes pulseGlow{
  0%, 100% { box-shadow: 0 6px 18px rgba(0,0,0,0.25), 0 0 0 0 rgba(37, 211, 102, 0.45); }
  50%      { box-shadow: 0 6px 18px rgba(0,0,0,0.25), 0 0 0 10px rgba(37, 211, 102, 0); }
}

.whatsapp-btn:hover{
  background-color: var(--whatsapp-green-dark);
  transform: translateY(-3px) scale(1.03);
}

.whatsapp-btn:active{
  transform: translateY(0) scale(0.98);
}

.whatsapp-btn:focus-visible{
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.whatsapp-icon{
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: #ffffff;
}

.descrip-text{
  margin-top: 2.5rem;
  max-width: 480px;
  color: var(--text-soft-gray);
  font-size: 0.8rem;
  line-height: 1.6;
  font-weight: 300;
}

.resume-link{
  position: fixed;
  top: clamp(1rem, 3vw, 1.6rem);
  right: clamp(1rem, 4vw, 2rem);
  z-index: 5;
  color: #ffffff;
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.4rem 0.2rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.resume-link:hover{
  opacity: 0.75;
  text-decoration: underline;
  transform: translateY(-1px);
}

.resume-link:focus-visible{
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.tech-logos{
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 2.2rem);
  max-width: 560px;
  width: 100%;
}

.tech-logo{
  height: clamp(28px, 5vw, 40px);
  width: auto;
  max-width: 90px;
  object-fit: contain;
  opacity: 1;
  filter: none;
  transform: scale(1) translateY(0);
  will-change: transform, opacity, filter;
}

.tech-logo:nth-child(1){ animation: logoPulse1 18s ease-in-out infinite; }
.tech-logo:nth-child(2){ animation: logoPulse2 18s ease-in-out infinite; }
.tech-logo:nth-child(3){ animation: logoPulse3 18s ease-in-out infinite; }
.tech-logo:nth-child(4){ animation: logoPulse4 18s ease-in-out infinite; }
.tech-logo:nth-child(5){ animation: logoPulse5 18s ease-in-out infinite; }

@keyframes logoPulse1{
  0%      { opacity: 1; filter: none; transform: scale(1) translateY(0); }
  1.67%   { opacity: 1; filter: brightness(1.2) drop-shadow(0 0 14px rgba(255,255,255,0.9)); transform: scale(1.35) translateY(-10px); }
  3.33%   { opacity: 1; filter: none; transform: scale(1) translateY(0); }
  100%    { opacity: 1; filter: none; transform: scale(1) translateY(0); }
}

@keyframes logoPulse2{
  0%, 3.33% { opacity: 1; filter: none; transform: scale(1) translateY(0); }
  5%        { opacity: 1; filter: brightness(1.2) drop-shadow(0 0 14px rgba(255,255,255,0.9)); transform: scale(1.35) translateY(-10px); }
  6.67%     { opacity: 1; filter: none; transform: scale(1) translateY(0); }
  100%      { opacity: 1; filter: none; transform: scale(1) translateY(0); }
}

@keyframes logoPulse3{
  0%, 6.67% { opacity: 1; filter: none; transform: scale(1) translateY(0); }
  8.33%     { opacity: 1; filter: brightness(1.2) drop-shadow(0 0 14px rgba(255,255,255,0.9)); transform: scale(1.35) translateY(-10px); }
  10%       { opacity: 1; filter: none; transform: scale(1) translateY(0); }
  100%      { opacity: 1; filter: none; transform: scale(1) translateY(0); }
}

@keyframes logoPulse4{
  0%, 10%   { opacity: 1; filter: none; transform: scale(1) translateY(0); }
  11.67%    { opacity: 1; filter: brightness(1.2) drop-shadow(0 0 14px rgba(255,255,255,0.9)); transform: scale(1.35) translateY(-10px); }
  13.33%    { opacity: 1; filter: none; transform: scale(1) translateY(0); }
  100%      { opacity: 1; filter: none; transform: scale(1) translateY(0); }
}

@keyframes logoPulse5{
  0%, 13.33% { opacity: 1; filter: none; transform: scale(1) translateY(0); }
  15%        { opacity: 1; filter: brightness(1.2) drop-shadow(0 0 14px rgba(255,255,255,0.9)); transform: scale(1.35) translateY(-10px); }
  16.67%     { opacity: 1; filter: none; transform: scale(1) translateY(0); }
  100%       { opacity: 1; filter: none; transform: scale(1) translateY(0); }
}

@media (prefers-reduced-motion: reduce){
  .whatsapp-btn{ transition: none; }
}

@media (max-width: 360px){
  .whatsapp-btn{ width: 90%; }
}