@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Montserrat:wght@400;500;600;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
  --color-black-matte: #0D0D0D;
  --color-black-graphite: #171717;
  --color-wood-dark: #2B1D12;
  --color-wood-brown: #4B2E18;
  --color-gold-premium: #C9A227;
  --color-gold-light: #E6C76B;
  --color-gray-dark: #2C2C2C;
  --color-white: #FFFFFF;

  --font-title: 'Cinzel', serif;
  --font-subtitle: 'Cormorant Garamond', serif;
  --font-text: 'Poppins', sans-serif;
  --font-button: 'Montserrat', sans-serif;

  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-black-matte);
  color: var(--color-white);
  font-family: var(--font-text);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--color-gold-light);
}

.subtitle {
  font-family: var(--font-subtitle);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--color-white);
  opacity: 0.9;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Base Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-button);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 1rem 2.5rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold-premium), var(--color-gold-light));
  color: var(--color-black-matte);
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(201, 162, 39, 0.4);
  color: var(--color-black-matte);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: all 0.6s ease;
  z-index: -1;
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-outline {
  background: transparent;
  color: var(--color-gold-light);
  border: 1px solid var(--color-gold-premium);
}

.btn-outline:hover {
  background: rgba(201, 162, 39, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(201, 162, 39, 0.2);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition-smooth);
  background: transparent;
}

.navbar.scrolled {
  padding: 1rem 5%;
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.nav-logo h2 {
  font-size: 2rem;
  letter-spacing: 2px;
  color: var(--color-gold-premium);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links li a {
  font-family: var(--font-button);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--color-gold-premium);
  transition: var(--transition-smooth);
}

.nav-links li a:hover {
  color: var(--color-gold-light);
}

.nav-links li a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--color-gold-light);
  margin: 6px 0;
  transition: var(--transition-smooth);
}

/* Sections Base */
.section {
  padding: 6rem 5%;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.section-header .subtitle {
  color: var(--color-gold-premium);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/imagens/banner.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  animation: slowZoom 20s infinite alternate ease-in-out;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(13, 13, 13, 0.7), rgba(13, 13, 13, 0.9));
  z-index: -1;
}

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  z-index: 1;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-title {
  font-size: 5rem;
  letter-spacing: 5px;
  margin-bottom: 1rem;
  text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.hero-subtitle {
  font-size: 1.8rem;
  margin-bottom: 3rem;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* About Section */
.about {
  background-color: var(--color-black-graphite);
  display: flex;
  align-items: center;
  gap: 4rem;
  overflow: hidden;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: #ccc;
  font-size: 1.1rem;
}

.about-image {
  flex: 1;
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transition: var(--transition-smooth);
}

.about-image:hover img {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(201, 162, 39, 0.2);
}

/* Features Section */
.features {
  background-color: var(--color-black-matte);
  overflow: hidden;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--color-gray-dark);
  padding: 3rem 2rem;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(201, 162, 39, 0.15);
  border-color: rgba(201, 162, 39, 0.3);
}

.feature-icon {
  font-size: 3rem;
  color: var(--color-gold-premium);
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  color: var(--color-gold-light);
  text-shadow: 0 0 15px rgba(201, 162, 39, 0.5);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-family: var(--font-button);
}

.feature-card p {
  color: #aaa;
  font-size: 0.95rem;
}

/* Gallery Section */
.gallery {
  background-color: var(--color-black-graphite);
}

.masonry-grid {
  column-count: 3;
  column-gap: 1.5rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.8s ease;
}

.masonry-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(201, 162, 39, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

.masonry-item:hover img {
  transform: scale(1.05);
}

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

.masonry-icon {
  color: var(--color-white);
  font-size: 2rem;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.masonry-item:hover .masonry-icon {
  transform: translateY(0);
}

/* Stats Section */
.stats {
  background: linear-gradient(rgba(13, 13, 13, 0.9), rgba(13, 13, 13, 0.9)), url('https://coresg-normal.trae.ai/api/ide/v1/text_to_image?prompt=dark+wood+texture+premium+barbershop+tools&image_size=landscape_16_9');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 5rem 5%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, var(--color-gold-light), var(--color-gold-premium));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item p {
  font-family: var(--font-button);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  color: #ccc;
}

/* Highlight Services */
.services-highlight {
  background-color: var(--color-black-matte);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--color-gray-dark);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255,255,255,0.05);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  border-color: rgba(201, 162, 39, 0.3);
}

.service-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.service-card:hover .service-img {
  transform: scale(1.05);
}

.service-info {
  padding: 2rem;
  position: relative;
  z-index: 1;
  background-color: var(--color-gray-dark);
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
  padding-bottom: 1rem;
}

.service-name {
  font-family: var(--font-button);
  font-size: 1.2rem;
  color: var(--color-white);
}

.service-price {
  font-size: 1.5rem;
  color: var(--color-gold-light);
  font-weight: 700;
}

.service-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  color: #aaa;
  font-size: 0.9rem;
}

.service-meta i {
  color: var(--color-gold-premium);
  margin-right: 0.5rem;
}

.service-btn {
  width: 100%;
}

/* Testimonials */
.testimonials {
  background-color: var(--color-black-graphite);
  overflow: hidden;
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-slide {
  text-align: center;
  display: none;
  animation: fadeEffect 1s;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--color-gold-premium);
  padding: 3px;
}

.stars {
  color: var(--color-gold-premium);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.testimonial-text {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: #ddd;
}

.testimonial-name {
  font-family: var(--font-button);
  font-weight: 600;
  color: var(--color-gold-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.slider-dots {
  text-align: center;
  margin-top: 2rem;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #555;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dot.active {
  background-color: var(--color-gold-premium);
  transform: scale(1.3);
}

/* Final Call */
.cta {
  background-color: var(--color-black-matte);
  text-align: center;
  padding: 8rem 5%;
  position: relative;
  border-top: 2px solid var(--color-wood-brown);
  border-bottom: 2px solid var(--color-wood-brown);
}

.cta::before, .cta::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold-premium), transparent);
}

.cta::before { top: 10px; }
.cta::after { bottom: 10px; }

.cta h2 {
  font-size: 4rem;
  margin-bottom: 3rem;
}

.cta-btn {
  font-size: 1.2rem;
  padding: 1.5rem 4rem;
}

/* Viking Theme Visual Improvements */
.viking-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  color: var(--color-gold-premium);
  opacity: 0.8;
}

.viking-divider .axe-left {
  transform: scaleX(-1) rotate(45deg);
  width: 32px;
  height: 32px;
}

.viking-divider .axe-right {
  transform: rotate(45deg);
  width: 32px;
  height: 32px;
}

.viking-divider .shield-center {
  width: 48px;
  height: 48px;
}

.bg-icon-large {
  position: absolute;
  color: var(--color-gold-premium);
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

.bg-icon-shield {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
}

.bg-icon-axe-left {
  top: 10%;
  left: -5%;
  transform: rotate(30deg);
  width: 400px;
  height: 400px;
}

.bg-icon-axe-right {
  bottom: 10%;
  right: -5%;
  transform: scaleX(-1) rotate(30deg);
  width: 400px;
  height: 400px;
}

/* Footer */
.footer {
  background-color: var(--color-black-graphite);
  padding: 4rem 5% 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-col h3 {
  color: var(--color-gold-light);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-button);
}

.footer-logo h2 {
  font-size: 2rem;
  color: var(--color-gold-premium);
  margin-bottom: 1rem;
}

.footer-col p, .footer-col li {
  color: #aaa;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-col i {
  color: var(--color-gold-premium);
}

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

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-gray-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-light);
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background-color: var(--color-gold-premium);
  color: var(--color-black-matte);
  transform: translateY(-5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: #777;
  font-size: 0.9rem;
}

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

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

.modal-content {
  background-color: var(--color-black-graphite);
  padding: 3rem;
  border-radius: 8px;
  border: 1px solid rgba(201, 162, 39, 0.3);
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  position: relative;
  width: 90%;
  max-width: 400px;
  transform: translateY(20px) scale(0.95);
  transition: var(--transition-smooth);
}

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

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: var(--color-gold-light);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.close-modal:hover {
  color: var(--color-white);
  transform: scale(1.1);
}

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

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

.form-group input {
  width: 100%;
  padding: 1rem;
  background-color: var(--color-black-matte);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  color: var(--color-white);
  font-family: var(--font-text);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-gold-premium);
  box-shadow: 0 0 10px rgba(201, 162, 39, 0.2);
}

.login-error-msg {
  color: #ff4d4d;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
  text-align: center;
}

/* Shake Animation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.error-shake {
  animation: shake 0.5s ease-in-out;
  border-color: #ff4d4d !important;
}

/* Team Section */
.team {
  background-color: var(--color-black-matte);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.team-card {
  background-color: var(--color-gray-dark);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition-smooth);
}

.team-card:hover {
  transform: translateY(-10px);
  border-color: rgba(201, 162, 39, 0.3);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.team-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-bottom: 2px solid var(--color-gold-premium);
}

.team-info {
  padding: 1.5rem;
}

.team-name {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-gold-light);
}

.team-specialties {
  color: #aaa;
  font-size: 0.9rem;
}

/* Products Showcase */
.products-showcase {
  background-color: var(--color-black-graphite);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background-color: var(--color-gray-dark);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-10px);
  border-color: rgba(201, 162, 39, 0.3);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.product-img-wrapper {
  position: relative;
  overflow: hidden;
  padding-top: 100%; /* 1:1 Aspect Ratio */
}

.product-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-name {
  font-family: var(--font-button);
  font-size: 1.2rem;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.product-price {
  font-size: 1.5rem;
  color: var(--color-gold-light);
  font-weight: 700;
  margin-bottom: 1rem;
}

.product-action {
  color: var(--color-gold-premium);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-smooth);
}

.product-card:hover .product-action {
  color: var(--color-gold-light);
  gap: 10px;
}

/* Public Product Modal */
.product-detail-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.product-detail-img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(201, 162, 39, 0.3);
}

.product-detail-title {
  font-size: 1.8rem;
  color: var(--color-gold-light);
  margin-bottom: 0.5rem;
}

.product-detail-price {
  font-size: 1.5rem;
  color: var(--color-white);
  font-weight: bold;
  margin-bottom: 1rem;
}

.product-detail-desc {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}