/* ====================================
   NANDO FREELA - Estilos Personalizados
   ==================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
  --color-white: #FFFFFF;
  --color-green: #AAD61C;
  --color-blue: #393C60;
  --color-blue-light: rgba(57, 60, 96, 0.1);
  --color-green-light: rgba(170, 214, 28, 0.1);
  --transition: all 0.3s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--color-blue);
  color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ====================================
   TIPOGRAFIA
   ==================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
}

a {
  color: var(--color-green);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-white);
  text-decoration: none;
}

/* ====================================
   NAVBAR
   ==================================== */

.navbar {
  background-color: var(--color-blue);
  padding: 1.5rem 0;
  border-bottom: 2px solid var(--color-green);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-green) !important;
  letter-spacing: 1px;
}

.navbar-brand:hover {
  color: var(--color-white) !important;
}

.nav-link {
  color: var(--color-white) !important;
  font-weight: 600;
  margin: 0 1rem;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-green);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--color-green) !important;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-green) !important;
}

.nav-link.active::after {
  width: 100%;
}

/* ====================================
   HERO SECTION
   ==================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--color-blue) 0%, rgba(57, 60, 96, 0.9) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-green-light) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(20px);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  animation: slideInDown 0.8s ease-out;
}

.hero h1 span {
  color: var(--color-green);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  animation: slideInUp 0.8s ease-out 0.2s backwards;
}

.btn-primary {
  background-color: var(--color-green);
  border: none;
  color: var(--color-blue);
  font-weight: 700;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  border-radius: 50px;
  transition: var(--transition);
  display: inline-block;
  margin: 0.5rem;
  animation: slideInUp 0.8s ease-out 0.4s backwards;
}

.btn-primary:hover {
  background-color: var(--color-white);
  color: var(--color-blue);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(170, 214, 28, 0.3);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--color-green);
  color: var(--color-green);
  font-weight: 700;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  border-radius: 50px;
  transition: var(--transition);
  display: inline-block;
  margin: 0.5rem;
}

.btn-secondary:hover {
  background-color: var(--color-green);
  color: var(--color-blue);
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====================================
   SEÇÕES GERAIS
   ==================================== */

section {
  padding: 5rem 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background-color: var(--color-green);
  border-radius: 2px;
}

.section-title p {
  font-size: 1.1rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ====================================
   CARDS
   ==================================== */

.card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(170, 214, 28, 0.2);
  border-radius: 15px;
  padding: 2rem;
  transition: var(--transition);
  height: 100%;
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--color-green);
  box-shadow: 0 20px 40px rgba(170, 214, 28, 0.2);
}

.card-icon {
  font-size: 3rem;
  color: var(--color-green);
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-white);
}

.card-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ====================================
   PORTFOLIO GRID
   ==================================== */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  aspect-ratio: 1;
  cursor: pointer;
  group: portfolio;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(57, 60, 96, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay-content {
  text-align: center;
  color: var(--color-white);
}

.portfolio-overlay-content h3 {
  color: var(--color-green);
  margin-bottom: 0.5rem;
}

/* ====================================
   INSTAGRAM FEED
   ==================================== */

.instagram-feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.instagram-post {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  aspect-ratio: 1;
  background-color: var(--color-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.instagram-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instagram-placeholder {
  text-align: center;
  color: var(--color-green);
}

.instagram-placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* ====================================
   SERVIÇOS
   ==================================== */

.services-section {
  background: linear-gradient(135deg, rgba(57, 60, 96, 0.5) 0%, rgba(57, 60, 96, 0.3) 100%);
}

.service-item {
  text-align: center;
  padding: 2rem;
}

.service-icon {
  width: 80px;
  height: 80px;
  background-color: var(--color-green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--color-green);
  transition: var(--transition);
}

.service-item:hover .service-icon {
  background-color: var(--color-green);
  color: var(--color-blue);
  transform: scale(1.1);
}

/* ====================================
   SOBRE
   ==================================== */

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background-color: var(--color-green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-green);
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* ====================================
   FORMULÁRIO DE CONTATO
   ==================================== */

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-white);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(170, 214, 28, 0.3);
  border-radius: 8px;
  color: var(--color-white);
  font-family: 'Montserrat', sans-serif;
  transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(170, 214, 28, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* ====================================
   FOOTER
   ==================================== */

footer {
  background-color: rgba(0, 0, 0, 0.3);
  border-top: 2px solid var(--color-green);
  padding: 3rem 2rem 1rem;
  margin-top: 5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--color-green);
  margin-bottom: 1rem;
}

.footer-section p {
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-green);
  padding-left: 0.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: var(--color-green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-green);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--color-green);
  color: var(--color-blue);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(170, 214, 28, 0.2);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ====================================
   RESPONSIVIDADE
   ==================================== */

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .hero {
    min-height: 80vh;
    padding: 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero::before {
    width: 300px;
    height: 300px;
    top: -30%;
    right: -5%;
  }

  section {
    padding: 3rem 1rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }

  .instagram-feed {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  .nav-link {
    margin: 0.5rem 0;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  section {
    padding: 2rem 1rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .card {
    padding: 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-title h2::after {
    width: 60px;
  }
}

/* ====================================
   ANIMAÇÕES
   ==================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ====================================
   UTILITÁRIOS
   ==================================== */

.container-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center {
  text-align: center;
}

.mt-5 {
  margin-top: 3rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* ====================================
   GOOGLE ADSENSE COMPLIANCE
   ==================================== */

.ad-container {
  margin: 2rem 0;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px dashed rgba(170, 214, 28, 0.3);
}

.ad-placeholder {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}
