* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    /* Added to ensure body is responsive */
    overflow-x: hidden; 

    width: 100%;
}
img {
    max-width: 100%;
    height: auto;
}
/* Adjustments for the main container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    /* Use padding to ensure content doesn't touch the edges on mobile */
    padding: 0 20px; 
}

/* Header */
.header {
    background: #0A192F;
    padding: 20px 0;
    color: #EAEAEA;
 
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  padding: 20px;
  position: relative;
}

.brand-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.brand-identity img {
    height: 70px;
    width: auto;
    margin-bottom: 5px;
   
}

.brand-text {
    font-size: 1.1rem;
    font-weight: 500;
  
    color: #EAEAEA;
}


.brand-text span {
    font-size: 0.9em;
   
}


.brand-identity:hover .brand-text,
.brand-identity:focus .brand-text {
    color: #6C63FF;
}


.main-nav .nav-menu {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.main-nav .nav-menu li a {
    color: #EAEAEA;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Efeito Hover  do Menu */
.main-nav .nav-menu li a:hover,
.main-nav .nav-menu li a:focus {
    color: #6C63FF;
}


@media (max-width: 768px) {
    .header .container {
        flex-direction: column; /* Stacks brand and menu vertically on smaller screens */
        align-items: center;
        gap: 15px;
    }

    .brand-identity {
        margin-bottom: 10px; /* Spacing below the logo on mobile */
    }

    /* Ensuring the mobile navigation is full width and easy to read */
   .main-nav {
  width: 100%;
  text-align: right; /* alinha os links à direita */
  padding-right: 20px;
}
    .main-nav .nav-menu {
        flex-direction: column;
        gap: 10px;
        align-items: flex-end; /* Center menu items for better mobile view */
    }

    .menu-toggle {
        display: block; /* Make sure the menu toggle button is visible */
        order: -1; /* Move the toggle button above the brand identity */
          align-self: flex-start;
 
    }
}
@media (max-width: 480px) {
    .brand-text {
        white-space: normal;
    }
}
@media (max-width: 768px) {

    .main-nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 80px;
        left: 0;
        background: #0A192F;
        padding: 20px;
        box-sizing: border-box;
        z-index: 10;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        text-align: left;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: #EAEAEA;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 10px;
    }

    .brand-identity {
        margin: 0;
        align-items: flex-start;
    }

    .brand-identity img {
        height: 50px;
    }

    .brand-text {
        font-size: 1rem;
    }
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu {
  list-style: none;
  display: flex;
  gap: 1rem;
}
.menu li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}
.menu li a:hover {
  color: #00c9a7;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
    /* Adjusted existing hero section in the CSS provided: */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 0;
    background: linear-gradient(135deg, #0A192F, #1E2A5E);
    color: white;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  padding: 20px;
}
.hero-content {
    max-width: 600px;
    /* Ensure it has a responsive width, using flex-basis if necessary */
    flex: 1; 
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    /* Reduce font size on smaller screens */
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: 40px 0;
        text-align: center;
    }

    /* Reduce font size for H1 on mobile */
    .hero h1 {
        font-size: 1.8rem; /* Significant reduction for mobile screens */
        padding: 0 10px; /* Add padding to prevent edge collision */
    }

    .hero p {
        padding: 0 10px; /* Add padding to the paragraph as well */
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-image {
        margin-top: 30px;
        /* Ensure the image container doesn't cause overflow */
        max-width: 100%; 
    }
}
.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.btn {
  background: #fff;
  color: #00c9a7;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}
.btn:hover {
  background: #e0e0e0;
}

/* Seções */
.section {
  padding: 60px 0;
}
.section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #00c9a7;
}

/* Cards de Serviço */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.card {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}


.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.project-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.projetos.section {
  padding-top: 30px; 
  padding-bottom: 30px;
}


.projects-section h2 {
  font-size: 2.8rem;
  color: #00bcd4;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  justify-content: center;
  align-items: stretch;
}

.project-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
   flex: 1 1 auto;
}


.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.8rem;
  border: 1px solid #eee;
}

.project-card h3 {
  font-size: 1.6rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.project-card p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.project-card a {
  display: inline-block;
  background-color: #00bcd4;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 0.8rem;
}

.project-card a:hover {
  background-color: #0097a7;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .projects-section {
    padding: 3rem 1rem; 
  }

  .projects-section h2 {
    font-size: 2.2rem; 
    margin-bottom: 1.5rem;
  }

  .projects-container {
    grid-template-columns: 1fr; 
    gap: 2rem;
  }

  .project-card img {
    height: 180px; 
  }

  .project-card h3 {
    font-size: 1.4rem;
  }

  .project-card p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .projects-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;    
  }

  .project-card {
    padding: 1rem;
  }

  .project-card img {
    height: 150px;
  }
}
/* Tecnologias */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
    margin-top: 0;
}
.badge {
  background: #eee;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
}


/* Formulário */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}
.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-info {
  margin-top: 2rem;
  text-align: center;
}

/* Footer */
footer {
  background: #111;
  color: #aaa;
  padding: 40px 0;
  text-align: center; 
}

.footer .container {
    
    display: flex;
    flex-direction: column; 
    align-items: center; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.footer .footer-logo {
  font-size: 1.3rem;
  font-weight: bold;
  color: #00c9a7;
  margin-bottom: 1rem;
}

.footer-menu {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;

  padding: 0; 

  justify-content: center; 
  width: 100%; 
}

.footer-menu li a {
  color: #aaa;
  text-decoration: none;
}

.copyright {
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    background: #111;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
  }
  .menu.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}
body {
  font-family: 'Inter', sans-serif;
}
h1, h2, h3 {
  font-family: 'Orbitron', sans-serif;
}


:root {
  --primary-color: #6C63FF;
  --secondary-color: #3FE0D0; 
  --bg-dark: #0A192F;
  --white: #FFFFFF;
  --gray-light: #EAEAEA;
}

/* Botões */
.btn.primary {
  background: var(--primary-color);
  color: var(--white);
}
.btn.secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 0;
    background: linear-gradient(135deg, #0A192F, #1E2A5E);
    color: white;
}

.hero-content {
    max-width: 600px;
}
.hero-image {
  margin: 30px auto 0; /* topo 30px, laterais automáticas */
  text-align: center;
}

.hero-image img {
  display: block;
  margin: 0 auto;
}
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-buttons .btn {
    margin-right: 10px;
}

.hero-image {
    margin-top: 30px; 
}

.hero-image img {
    max-width: 200px;
    border-radius: 12px;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.values-title {
    text-align: center;
}

.values ul {
  
    list-style: none;
   
    width: fit-content;
    margin: 0 auto;
    padding: 0; 
}

.values-li {
    text-align: center; 
    position: relative;
    padding-left: 20px; 
    margin-bottom: 5px;
}



.values-li::before {
    content: "•"; 
    
    font-size: 1.2em; 
    position: absolute; 
    left: 0; 
    top: 50%; 
    transform: translateY(-50%); 
    display: inline-block; 
    width: 20px; 
    text-align: right; 
}
.badge {
  background: #eee;
  padding: 0.6rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}
.badge:hover {
  background: #ddd;
}

.social-icons svg {
  fill: #6C63FF;
  transition: fill 0.3s ease;
}
.social-icons a {
  margin-right: 15px;
}
.social-icons a:hover svg {
  fill: #3FE0D0;
}

#home {
    height: 100vh;
    min-height: calc(60rem + var(--nav-height));
    padding-block: 0;
    background-color: var(--secundary-color);
    display: flex;
    align-items: center;
    justify-content: center; 
    text-align: center; 
}
#home .wrapper {
    height: 53rem;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    gap: 6rem;
    position: relative;
    width: min(50rem, 100%); 
    margin-inline: auto; 
}

#home h1 {
  font-size: 4.5rem;
  color: var(--headline);
  line-height: 110%;

  margin-bottom: 1rem;
}

#home p {
  display: inline-flex;

  font-size: 1.8rem;
  line-height: 150%;
  font-weight: bold;

  margin-bottom: 3.2rem;
}

#home .line {
  border-right: 0.2rem solid var(--primary-color);
  white-space: nowrap;
  overflow: hidden;
}

#home .typing {
  animation: line-typing 500ms steps(40) infinite normal,
    typing 2s steps(40) 1.4s normal backwards;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 27.5rem;
  }
}

@keyframes line-typing {
  from {
    border-right-color: var(--primary-color);
  }
  to {
    border-right-color: transparent;
  }
}

#home .button {
  margin-inline: auto;
}

#home .col-b {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;

  animation: flutuar 3s infinite backwards;
  position: relative;
}

@keyframes flutuar {
  0% {
    transform: translateY(2rem);
  }
  50% {
    transform: translateY(-3rem);
  }
  100% {
    transform: translateY(2rem);
  }
}
#home .wrapper::before {
    content: "";
    display: block;
    width: 27rem;
    height: 27rem;
    background-color:  #3FE0D0;
    border-radius: 100%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%); 
    bottom: -3.1rem; 
    z-index: -1;
    animation: appear 1s 500ms backwards;
}
#home img {
  width: 30rem;
  min-width: 14.5rem;
  display: block;
  margin-inline: auto;
  filter: contrast(1.2);
}

#home img#notebook-2-white,
body.light-mode #home img#notebook-1,
body.light-mode #home img#notebook-2 {
  visibility: hidden;
  opacity: 0;
  animation: none;
}

#home img#notebook-1 {
  animation: appear 1s 1s backwards;
}

#home img#notebook-2-white {
  position: absolute;
}

body.light-mode #home img#notebook-2-white {
  position: absolute;
  visibility: visible;
  opacity: 1;
}

#home img#notebook-2 {
  position: absolute;
  z-index: 90;
  animation: appear 1s 2s backwards;
}

#home img#vidro {
  position: absolute;
  z-index: 100;
  right: -2rem;
  animation: appear-vidro 1s 2.3s backwards;

  filter: contrast(5);
}

@keyframes appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes appear-vidro {
  from {
    right: -4rem;
    opacity: 0;
  }
  to {
    right: -2rem;
    opacity: 1;
  }
}

