* {
  font-family: "Open Sans", sans-serif;
}

html, body {
  background-color: #1c2230; 
  
  /* This prevents the "white flash" on some browsers before the CSS loads */
  margin: 0;
  padding: 0;
}

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  transition: height 0.4s ease;
}

.hero.shrink {
  height: 60vh; /* adjust to taste */
}

/* Canvas effect layer */
#glCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Dark overlay (matches opacity: 0.55) */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

/* Content */
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;   /* vertical middle */
  justify-content: flex-start; /* left aligned */
  padding-left: 10%;
  color: white;
}

.hero-content h1 {
  font-size: 4rem;
}

/* Header */
.logo {
  max-width: 50px;
}

.header {
  position: fixed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 360px;
  background: transparent;
  color: white;
  z-index: 1000;
  transition: 0.3s ease;
  width: 100%;
  height: 70px;
}

.header.scrolled {
  background: #1c2230;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 10px 10px #1c2230,
    0 20px 20px rgba(19, 23, 32, 0.7),
    0 40px 40px rgba(19, 23, 32, 0.4),
    0 70px 60px rgba(19, 23, 32, 0.2);
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  color: white;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.nav i {
  padding-right: 10px;
}

.nav a:hover {
  color: #006cf0;
}

/* Burger icon */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  width: 40px;
  height: 25px;
  position: relative;
  z-index: 1001; /* above overlay */
}

.burger span {
  position: absolute;
  width: 100%;
  height: 2px;
  background: white;
  transition: 0.3s ease;
}

/* Top line */
.burger span:nth-child(1) {
  top: 6px;
}

/* Bottom line */
.burger span:nth-child(2) {
  bottom: 6px;
}

/* Turn into X */
.burger.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.burger.active span:nth-child(2) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* Mobile styles */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    inset: 0;
    
    background: rgba(28, 34, 48, 0.95);
    backdrop-filter: blur(10px);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;

    opacity: 0;
    pointer-events: none;
    transition: 0.4s ease;

    z-index: 999;
  }

  .nav a {
    font-size: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s ease;
  }

  /* ACTIVE STATE */
  .nav.active {
    opacity: 1;
    pointer-events: all;
  }

  /* Fade + pop items */
  .nav.active a {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger animation (important detail) */
  .nav.active a:nth-child(1) { transition-delay: 0.1s; }
  .nav.active a:nth-child(2) { transition-delay: 0.2s; }
  .nav.active a:nth-child(3) { transition-delay: 0.3s; }
  .nav.active a:nth-child(4) { transition-delay: 0.4s; }

  .burger {
    display: flex;
  }

  .header {
    position: absolute;
    padding: 15px 40px;
  }

  .footer::before {
    --glow-spread2: 50%;
    --glow-spread3: 100%; 
  }
}

/* Stop background scroll */
body.menu-open {
  overflow: hidden;
}

/* Section 1 (About) */
.about {
  padding: 100px 10%;
  background: linear-gradient(
        to bottom, 
        rgb(14, 16, 32) 0%,
        rgb(28, 35, 68) 10%,    /* Cor mais brilhante no topo */
        #1c2230 100%   /* Sua cor padrão em baixo */
    );
  color: white;
}

/* Layout */
.about-container {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Image */
.about-image img {
  width: 300px;
  border-radius: 20px;
  object-fit: cover;

  /* subtle glow */
  box-shadow: 0 0 40px rgba(47, 47, 228, 0.4);
}

/* Text */
.about-text {
  max-width: 600px;
}

.about-text h2 {
    padding-bottom: 20px;
    /* Color Gradient */
    background: linear-gradient(
        to right, 
        #0059ff 0%,    
        #6294ff 25%,   
        #0059ff 50%,   
        #0059ff 100%
    );
    
    /* Gradient stays inside the letters */
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;

    /* General font style */
    font-size: 3rem;
    font-weight: bold;

    /* Animation */
    animation: shine 4s linear infinite;
}

.about-text p {
  margin-bottom: 15px;
  line-height: 1.6;
  opacity: 0.85;
}

/* Button */
.about-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  color: white;
  background: linear-gradient(45deg, #0059ff, #5087ff);
  transition: 0.3s;
}

.about-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.5);
}

.about-btn i {
  padding-right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-image img {
    width: 220px;
  }
}

/* Section 2 (Technologies) */
.skills {
  padding: 120px 10%;
  background: #1c2230;
  color: white;
  text-align: center;
  overflow: hidden;
  padding-bottom: 12rem;
}

.skills h1 {
    /* Color Gradient */
    background: linear-gradient(
        to right, 
        #0059ff 0%,    
        #6294ff 25%,   
        #0059ff 50%,   
        #0059ff 100%
    );
    
    /* Gradient stays inside the letters */
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;

    /* General font style */
    font-size: 3rem;
    font-weight: bold;

    /* Animation */
    animation: shine 4s linear infinite;
}

.logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 50px;
  margin-top: 60px;
}

/* Base state (hidden) */
.logo-item {
  width: 100px;
  opacity: 0;
  transform: translateY(80px) scale(0.8);
  transition: all 0.6s ease;

  /* optional glow */
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

/* When visible (pop effect) */
.logo-item.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.logo-item:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 20px rgba(47,47,228,1));
}

/* Footer */
.footer {
  --glow-spread1: 0%; /*glow spread is on parent to prevent being ignored by browser */
  --glow-spread2: 20%;
  --glow-spread3: 30%;

  position: relative;
  padding: 80px 20px;
  color: white;
  text-align: center;
  overflow: hidden;

  /* Base dark color */
  background: #1c2230;
}

/* Light glow effect */
.footer::before {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at bottom,
    rgba(47, 47, 228, 0.35) var(--glow-spread1),   /* bright center */
    rgba(26, 25, 83, 0.15) var(--glow-spread2),
    rgba(8, 6, 22, 0) var(--glow-spread3)           /* fade out */
  );

  pointer-events: none;
}

/* Content above glow */
.footer-content {
  position: relative;
  z-index: 1;
}

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

.footer p {
  opacity: 0.7;
  font-size: 0.8rem;
  padding-top: 20px;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 25px;
}

/* Circle buttons */
.social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: 0.3s;
}

/* Icons */
.social i {
  font-size: 24px;
  color: white;
  transition: 0.3s;
}

/* Hover glow */
.social:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

/* Keyframes */
@keyframes shine {
    to {
        background-position: 200% center;
    }
}