/* Core Design System & Variables */
:root {
  /* Dark Theme Colors */
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-glass: rgba(20, 20, 20, 0.7);
  
  /* Brand Colors (Fiery) */
  --brand-red: #ff3333;
  --brand-orange: #ff6b00;
  --brand-yellow: #ffb800;
  --brand-gold: #e5b31e;
  
  --text-main: #f5f5f5;
  --text-muted: #a0a0a0;
  
  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Utilities */
  --border-radius: 12px;
  --transition: all 0.3s ease;
  --glow-shadow: 0 0 20px rgba(255, 107, 0, 0.3), 0 0 40px rgba(229, 179, 30, 0.1);
  --glow-hover: 0 0 30px rgba(255, 51, 51, 0.5), 0 0 60px rgba(255, 107, 0, 0.3);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px; /* Adjusts anchor link offset for fixed header */
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, .logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.center { text-align: center; }

.highlight { color: var(--brand-gold); }
.gradient-text {
  background: linear-gradient(90deg, var(--brand-red), var(--brand-yellow));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
  font-family: var(--font-body);
  text-align: center;
}

.btn-glow {
  background: linear-gradient(45deg, var(--brand-red), var(--brand-orange));
  color: #fff;
  box-shadow: var(--glow-shadow);
}
.btn-glow:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--brand-gold);
  border: 2px solid var(--brand-gold);
}
.btn-outline:hover,
.btn-outline.active-link {
  background: rgba(229, 179, 30, 0.1);
  box-shadow: 0 0 15px rgba(229, 179, 30, 0.4);
}

.btn-whatsapp {
  background-color: #25D366;
  color: #fff;
  margin-top: 1rem;
}
.btn-whatsapp:hover {
  background-color: #20bd5a;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
}

.w-100 { width: 100%; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 0.5rem 5%; /* Reduced padding to compensate for larger logo */
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-img {
  max-height: 100px; /* Adjusted to 100px */
  width: auto;
  border-radius: 8px; /* Slight rounding for a premium feel */
  transition: transform 0.3s ease;
}

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

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

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:not(.btn) {
  position: relative;
}

.nav-links a:hover:not(.btn),
.nav-links a.active-link:not(.btn) {
  color: var(--brand-gold);
  text-shadow: 0 0 8px rgba(229, 179, 30, 0.5);
}

/* Subtle Search Bar */
.search-container {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 0.4rem 0.8rem;
  transition: var(--transition);
}

.search-container:focus-within {
  border-color: var(--brand-gold);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 10px rgba(229, 179, 30, 0.2);
}

.search-icon {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.search-container:focus-within .search-icon {
  color: var(--brand-gold);
}

.search-input {
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding-left: 0.5rem;
  width: 100px;
  transition: width 0.4s ease;
}

.search-input:focus {
  outline: none;
  width: 160px;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover:not(.btn)::after,
.nav-links a.active-link:not(.btn)::after {
  transform: scaleX(1);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Sections */
section { padding: 6rem 0; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  background: linear-gradient(rgba(10, 10, 10, 0.85), rgba(10, 10, 10, 0.95)), url('assets/hero_bg.png') center/cover no-repeat;
}

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

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 1;
  opacity: 0.4;
}
.glow-orb.red {
  width: 400px;
  height: 400px;
  background: var(--brand-red);
  top: -100px;
  left: -100px;
}
.glow-orb.gold {
  width: 300px;
  height: 300px;
  background: var(--brand-gold);
  bottom: 0%;
  right: -50px;
}

/* About */
.about {
  background-color: var(--bg-secondary);
  position: relative;
  z-index: 2;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.about-text strong {
  color: var(--text-main);
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-box {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.stat-box i {
  font-size: 2rem;
  color: var(--brand-orange);
  margin-bottom: 1rem;
}
.stat-box.outline-box {
  background: transparent;
  border: 1px solid var(--brand-gold);
  position: relative;
  overflow: hidden;
}
.stat-box.outline-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(229, 179, 30, 0.1), transparent);
  z-index: 0;
}
.stat-box.outline-box > * { position: relative; z-index: 1; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: rgba(20, 20, 20, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 107, 0, 0.3);
  box-shadow: 0 10px 30px rgba(255, 51, 51, 0.1);
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--brand-gold);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}
.service-card p {
  color: var(--text-muted);
}

.service-card.mascot-card {
  padding: 0;
  display: flex;
  flex-direction: column;
}
.mascot-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top; /* Prevents the head from being cut off */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mascot-content {
  padding: 2rem;
}

/* Portfolio */
.portfolio {
  background-color: var(--bg-secondary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); /* Made slightly smaller */
  gap: 1.5rem;
  margin-top: 3rem;
}

.portfolio-item {
  aspect-ratio: 1 / 1; /* Made them perfectly square to fit standard artworks nicely */
  height: auto; 
  cursor: pointer; /* Indicates it's clickable */
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  background-color: var(--bg-primary); /* Fallback para as imagens */
}

/* Format and animate the images */
.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.1); /* Zoom effect on hover */
}

.pf-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.portfolio-item:hover .pf-overlay { opacity: 1; }
.pf-overlay span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  transform: translateY(20px);
  transition: var(--transition);
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
}
.portfolio-item:hover .pf-overlay span {
  transform: translateY(0);
}

/* Instagram Feed */
.instagram-feed {
  background-color: var(--bg-primary);
  position: relative;
}
.inst-subtitle {
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}
.inst-link {
  color: var(--brand-red);
  text-decoration: none;
  font-weight: bold;
  transition: var(--transition);
}
.inst-link:hover {
  color: var(--brand-gold);
  text-shadow: 0 0 10px rgba(229, 179, 30, 0.5);
}
.insta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.insta-post {
  position: relative;
  display: block;
  border-radius: var(--border-radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.insta-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.insta-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.insta-overlay i {
  color: #fff;
  font-size: 3rem;
  transform: scale(0.5);
  transition: var(--transition);
}
.insta-post:hover img {
  transform: scale(1.1);
}
.insta-post:hover .insta-overlay {
  opacity: 1;
}
.insta-post:hover .insta-overlay i {
  transform: scale(1);
}

/* Ads Section */
.ads-section {
  background-color: var(--bg-secondary);
}
.ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.ad-card {
  aspect-ratio: 16 / 9;
  background: var(--bg-primary);
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ad-card:hover {
  border-color: var(--brand-red);
  box-shadow: 0 0 15px rgba(255, 51, 51, 0.2);
  transform: translateY(-5px);
}
.ad-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.ad-placeholder i {
  font-size: 2rem;
}
.ad-card:hover .ad-placeholder {
  color: var(--brand-gold);
}

/* Contact */
.contact-form {
  background: var(--bg-secondary);
  padding: 3rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.input-group {
  margin-bottom: 1.5rem;
}
.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-muted);
}
.input-group input, .input-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-body);
  transition: var(--transition);
}
.input-group input:focus, .input-group textarea:focus {
  outline: none;
  border-color: var(--brand-gold);
  box-shadow: 0 0 10px rgba(229, 179, 30, 0.2);
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-flags {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  vertical-align: middle;
}
.footer-flags img {
  height: 14px;
  opacity: 0.7;
  border-radius: 2px;
  transition: opacity var(--transition);
}
.footer-flags img:hover {
  opacity: 1;
}

/* Modal/Lightbox */
.modal {
  display: none; 
  position: fixed; 
  z-index: 2000; 
  padding-top: 80px; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: hidden; 
  background-color: rgba(0,0,0,0.9); 
  backdrop-filter: blur(10px);
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 800px;
  max-height: 80vh;
  object-fit: contain; /* Prevents stretching and ensures full image is visible */
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

#modalCaption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 800px;
  text-align: center;
  color: var(--brand-gold);
  padding: 15px 0;
  font-size: 1.2rem;
  font-family: var(--font-heading);
  font-weight: 700;
}

.modal-content, #modalCaption {
  animation-name: zoom;
  animation-duration: 0.3s;
}

@keyframes zoom {
  from {transform: scale(0.9); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close-modal:hover,
.close-modal:focus {
  color: var(--brand-red);
  text-decoration: none;
  cursor: pointer;
}

/* Intro Animation / Splash Screen */
.intro-splash {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--bg-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: fadeOutSplash 0.5s ease-in-out 1.8s forwards;
  pointer-events: none;
}

.color-blast {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
}

.color-blast.red {
  background: var(--brand-red);
  box-shadow: 0 0 50px var(--brand-red);
  z-index: 10000;
  animation: blastOpen 1.2s cubic-bezier(0.86, 0, 0.07, 1) forwards;
}

.color-blast.gold {
  background: var(--brand-gold);
  box-shadow: 0 0 50px var(--brand-gold);
  z-index: 10001;
  animation: blastOpen 1.2s cubic-bezier(0.86, 0, 0.07, 1) 0.3s forwards;
}

.intro-logo {
  position: relative;
  z-index: 10002;
  height: 300px;
  max-width: 90vw;
  object-fit: contain;
  opacity: 0;
  animation: zoomLogo 1s ease 0.6s forwards, fadeOutLogo 0.5s ease-in-out 1.6s forwards;
}

@keyframes blastOpen {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  40% { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(250); opacity: 0; }
}

@keyframes zoomLogo {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; filter: drop-shadow(0 0 20px rgba(229, 179, 30, 0.5)); }
}

@keyframes fadeOutLogo {
  to { opacity: 0; transform: scale(1.1); }
}

@keyframes fadeOutSplash {
  to { opacity: 0; visibility: hidden; }
}

/* Responsive */
@media (max-width: 900px) {
  .section-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-title { font-size: 3rem; }
  .modal-content { width: 95%; max-width: 100%; max-height: 70vh; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-primary); /* Use primary bg so transparency doesn't stack confusingly */
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  }
  .search-container {
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
  }
  .search-input {
    width: 100%;
  }
  .search-input:focus {
    width: 100%;
  }
  .nav-links.active { display: flex; }
  .mobile-menu-btn { display: block; }
  .hero-title { font-size: 2.5rem; }
  .contact-form { padding: 2rem; }
  
  /* Mobile Performance Fixes: Remove heavy blurs for GPU! */
  .glow-orb {
    display: none !important; /* Huge performance sink on mobile */
  }
  .navbar, .service-card, .modal {
    backdrop-filter: none !important;
    background: var(--bg-primary) !important;
  }
  .service-card {
    border: 1px solid rgba(255, 255, 255, 0.1); /* Fallback since background changed */
  }
}
