::-webkit-scrollbar { 
  display: none; 
}

@font-face {
  font-family: "Montserrat";
  src: url('assets/fonts/Montserrat.ttf');
}

@font-face {
  font-family: "Code Light";
  src: url('assets/fonts/CODE-Light.ttf');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat";
}

body {
  font-family: "Montserrat";
  background: #000;
  color: #fff;
  scroll-behavior: smooth;
}

header {
  position: sticky;
  top: 0;
  background: #111;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  color: #fff;
  font-weight: bold;
  font-size: 1.5rem;
}

nav {
  display: flex;
  align-items: center;
  position: relative;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  transition: max-height 0.3s ease;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #5900bf;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background: #fff;
  transition: all 0.3s ease;
}

.hamburger.active div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active div:nth-child(2) {
  opacity: 0;
}

.hamburger.active div:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.hero {
  position: relative;
  width: 100%;
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  text-align: center;
  padding: 0 1rem;
}

#bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  z-index: -2; 
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
}

.hero-content p {
  font-size: 1.5rem;
}

.especializacao, .projects, .blog {
  padding: 4rem 1rem;
  max-width: 1100px;
  margin: auto;
}

.especializacao h2, .projects h2, .blog h2 { 
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem; 
}

.especializacao p, .projects p { 
  text-align: center;
  margin-bottom: 3rem;
}

.especializacao ul {
  list-style: disc;
  margin-left: 2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #444;
  border-radius: 5px;
  height: 250px;
  transition: box-shadow 0.3s ease, transform 0.6s ease, opacity 0.6s ease;
  opacity: 0;
  transform: translateY(50px);
}

.project-card.active {
  opacity: 1;
  transform: translateY(0);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .overlay {
  opacity: 1;
}

.overlay h3 {
  margin-bottom: 0rem;
}

.overlay a {
  color: #5900bf;
  text-decoration: underline;
}

.blog-post {
  margin-bottom: 2rem;
  border-left: 4px solid #5900bf;
  padding-left: 1rem;
}

.blog-post h3 a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
}

.blog-post h3 a:hover {
  color: #5900bf;
}

.blog-post small {
  display: block;
  margin-bottom: 0.5rem;
  color: #ccc;
}

.blog-post p {
  color: #eee;
}

footer { 
  text-align: center; 
  padding: 2rem 1rem; 
  background: #111; 
  color: #fff; 
}

.post-container {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.blog-post-full {
  color: #fff;
}

.blog-post-full .post-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.blog-post-full .post-meta {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 2rem;
}

.blog-post-full .post-meta span {
  margin-right: 1rem;
}

.blog-post-full .post-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 1.1rem;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.especializacao-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.especializacao-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
  cursor: pointer;
}

.icon img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 10px;
  filter: grayscale(100%);
  transition: transform 0.3s ease, filter 0.3s ease;
  will-change: transform, filter;
}

.icon span {
  font-size: 0.9rem;
  font-weight: 500;
}

.icon.active {
  opacity: 1;
  transform: translateY(0);
}

.icon:hover img {
  transform: scale(1.1);
  filter: grayscale(0%);
}

@media (max-width: 1200px) {
  .projects-grid, .especializacao-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-content p {
    font-size: 1.2rem;
  }
  .icon img {
    width: 130px;
    height: 130px;
  }
}

@media (max-width: 992px) {
  nav ul {
    gap: 1rem;
  }
  .projects-grid, .especializacao-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    height: 80vh;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .icon img {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 0.5rem 1rem;
  }
  nav ul {
    flex-direction: column;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: #111;
    position: absolute;
    top: 100%;
    left: 0;
  }
  nav ul.active {
    max-height: 500px;
  }
  nav ul li {
    margin: 1rem 0;
    text-align: center;
  }
  .hamburger {
    display: flex;
  }
  .hero {
    height: 70vh;
    padding: 0 1rem;
  }
  .hero-content h1 {
    font-size: 1.8rem;
  }
  .hero-content p {
    font-size: 0.95rem;
  }
  .projects, .especializacao, .blog {
    padding: 2rem 1rem;
  }
  .icon img {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 576px) {
  .hero {
    height: 60vh;
  }
  .hero-content h1 {
    font-size: 1.5rem;
  }
  .hero-content p {
    font-size: 0.85rem;
  }
  .projects-grid, .especializacao-grid {
    gap: 15px;
  }
  .icon img {
    width: 90px;
    height: 90px;
  }
  nav ul {
    gap: 0.3rem;
  }
}

@media (max-width: 400px) {
  .hero-content h1 {
    font-size: 1.3rem;
  }
  .hero-content p {
    font-size: 0.75rem;
  }
  .projects, .especializacao, .blog {
    padding: 1.5rem 1rem;
  }
  .icon img {
    width: 75px;
    height: 75px;
  }
  .logo {
    font-size: 1.3rem;
  }
  .hamburger div {
    width: 20px;
    height: 2px;
  }
}
