/* 
  DevClube - Modern Creative Agency Portfolio 
  Custom Design System
*/

:root {
  /* Colors */
  --primary-color: #12d8cc;
  --secondary-color: #cb2d3e;
  --dark-bg: #0b0b0b;
  --light-bg: #ffffff;
  --grey-text: #888888;
  --dark-text: #2d3032;
  --white-smoke: #f5f5f5;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);

  /* Fonts */
  --body-font: 'Barlow', sans-serif;
  --heading-font: 'Barlow', sans-serif;

  /* Transitions */
  --transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-text);
  background: var(--light-bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

section {
  padding: 100px 0;
}

.dark-bg {
  background-color: var(--dark-bg);
  color: #fff;
}

.default-color {
  color: var(--primary-color);
}

/* Typography Helpers */
.text-uppercase {
  text-transform: uppercase;
}

.font-700 {
  font-weight: 700;
}

.font-600 {
  font-weight: 600;
}

.font-500 {
  font-weight: 500;
}

.mt-50 {
  margin-top: 50px;
}

.mb-50 {
  margin-bottom: 50px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-dark {
  background-color: var(--dark-text);
  color: #fff;
}

.btn-dark:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(18, 216, 204, 0.3);
}

.btn-primary {
  background-color: var(--secondary-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--dark-text);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(203, 45, 62, 0.3);
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  background: transparent;
  transition: var(--transition);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.lang-btn {
  background: var(--dark-text);
  color: #fff;
  border: none;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-left: 15px;
  transition: var(--transition);
}

.lang-btn:hover {
  background: var(--primary-color);
}

/* Custom Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #fff;
  padding: 40px;
  border-radius: 24px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  transform: scale(0.8);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-icon {
  font-size: 60px;
  margin-bottom: 20px;
}

.modal-icon.success { color: #12d8cc; }
.modal-icon.error { color: #cb2d3e; }

.modal-content h3 {
  margin-bottom: 15px;
  font-size: 24px;
}

.modal-content p {
  color: #666;
  line-height: 1.6;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  width: 100%;
}

.logo img {
  height: 70px;
  flex-shrink: 0;
}

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

.nav-link {
  font-weight: 700;
  font-size: 14px;
  color: var(--dark-text);
  /* Always dark to match white hero bg */
}

.nav-link:hover {
  color: var(--primary-color);
}

/* Sections Heading */
.section-heading {
  margin-bottom: 60px;
}

.section-heading h3 {
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-heading h2 {
  font-size: 48px;
  margin-bottom: 20px;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: #ffffff;
  /* White background for the reveal effect */
}

.hero-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/slides/home-bg-12.jpg') no-repeat center center/cover;
  z-index: 2;
  mix-blend-mode: screen;
  /* This hides the image on white background */
  pointer-events: none;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  /* Particles stay behind the image */
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  width: 100%;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 80px;
  color: var(--dark-text);
  letter-spacing: -2px;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
}

.hero-content p {
  font-size: 18px;
  letter-spacing: 8px;
  font-weight: 700;
  margin-bottom: 40px;
  animation: fadeInUp 1.2s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Feature Box */
.feature-box {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 50px 30px;
  border-radius: 20px;
  transition: var(--transition);
  text-align: center;
}

.feature-box:hover {
  transform: translateY(-15px) scale(1.02);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-color);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.feature-box i {
  font-size: 40px;
  margin-bottom: 25px;
  display: block;
}

.feature-box h4 {
  margin-bottom: 15px;
}

/* Portfolio */
.portfolio-grid {
  display: block; /* Swiper wrapper handling layout now */
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 216, 204, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
  color: #fff;
  padding: 20px;
}

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

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

/* Skills */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.skill-circle {
  width: 140px;
  height: 140px;
  border: 4px solid var(--glass-border);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 1s ease;
  background: rgba(255, 255, 255, 0.05);
  font-size: 28px; /* Applied here directly */
  font-weight: 700;
  color: #fff;
}

.skill-circle::after {
  content: ""; /* Removed duplicate display */
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.skill:hover .skill-circle {
  border-color: var(--primary-color);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.team-member {
  position: relative;
  overflow: hidden;
}

.team-info {
  position: absolute;
  bottom: -100px;
  left: 0;
  width: 100%;
  background: var(--primary-color);
  padding: 20px;
  transition: var(--transition);
  color: #fff;
}

.team-member:hover .team-info {
  bottom: 0;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.pricing-box {
  background: #fff;
  padding: 50px 30px;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: var(--transition);
  border: 1px solid #eee;
}

.pricing-box:hover {
  transform: scale(1.03);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.pricing-box.featured {
  border: 2px solid var(--primary-color);
  transform: scale(1.05);
  box-shadow: 0 30px 60px rgba(18, 216, 204, 0.2);
}

.pricing-box h2 {
  font-size: 60px;
  margin: 30px 0;
}

.pricing-box ul {
  margin-bottom: 30px;
}

.pricing-box li {
  margin-bottom: 10px;
  color: var(--grey-text);
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.post {
  background: var(--dark-bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.post:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
}

.post-img {
  height: 250px;
  overflow: hidden;
}

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

.post-info {
  padding: 25px;
  color: #fff;
}

.post-info h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #fff;
}

.post-info p {
  font-size: 14px;
  color: var(--primary-color);
}

/* Contact */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}

/* Footer */
footer {
  padding: 80px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.widget h5 {
  margin-bottom: 25px;
  font-size: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #888;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content h1 {
    font-size: 60px;
  }

  .section-heading h2 {
    font-size: 38px;
  }
}

@media (max-width: 768px) {
  #mobile-toggle {
    display: block !important;
    position: relative;
    z-index: 1100; /* Superiores ao overlay do menu */
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 100px 30px;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    align-items: flex-start;
    
    /* Estado inicial oculto */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-20px);
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
  }

  .nav-link {
    font-size: 18px;
    padding: 15px 0;
    color: var(--dark-text);
  }

  .hero-content h1 {
    font-size: 44px;
    letter-spacing: -1px;
  }

  .hero-content p {
    font-size: 14px;
    letter-spacing: 4px;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  section {
    padding: 70px 0;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 36px;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 9999;
  text-decoration: none;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  bottom: 30px;
}

.back-to-top:hover {
  background: var(--dark-bg);
  transform: translateY(-5px);
  color: var(--primary-color);
}

/* WhatsApp CTA Logo Pulsing & Frame */
.wp-button-cta {
  border: 4px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.15);
  display: inline-block;
  animation: wp-pulse 2s infinite;
  transition: all 0.3s ease;
}

.wp-button-cta:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.3);
  animation: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@keyframes wp-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}