@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Colors */
  --bg-color: #0b1120; /* Very dark blue, almost black */
  --surface-color: #121b2d;
  --surface-light: #1f2937;
  --text-primary: #fefefe;
  --text-secondary: #9ca3af;
  --accent-color: #c5a880; /* Gold/Champagne for elegant contrast */
  --accent-hover: #e0c59f;
  
  /* Fonts */
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Playfair Display', serif;
  
  /* Utilities */
  --transition: all 0.3s ease;
  --border-radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
}

h1 { font-size: 3rem; line-height: 1.2; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.75rem; margin-bottom: 1rem; }

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  background-color: rgba(11, 17, 32, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.logo-img {
  height: 78px;
  width: auto;
  transition: var(--transition);
}

.header.scrolled .logo-img {
  height: 62px;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-color);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

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

.btn-primary {
  background-color: var(--accent-color);
  color: var(--bg-color);
  border: 1px solid var(--accent-color);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(197, 168, 128, 0.2);
}

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

.btn-outline:hover {
  background-color: var(--accent-color);
  color: var(--bg-color);
}

/* Sections */
section {
  padding: 100px 0;
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  background-image: url('../public/hero_bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to right, rgba(11, 17, 32, 0.9) 0%, rgba(11, 17, 32, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 600px;
}

.hero-subtitle {
  color: var(--accent-color);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

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

.service-card {
  background-color: var(--surface-color);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 3px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  background-color: var(--surface-light);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  position: relative;
}

.about-img::after {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 100%; height: 100%;
  border: 2px solid var(--accent-color);
  border-radius: var(--border-radius);
  z-index: -1;
}

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

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--accent-color);
  background-color: var(--surface-color);
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}

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

.form-control {
  width: 100%;
  padding: 15px 20px;
  background-color: var(--surface-color);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-family: var(--font-primary);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  background-color: var(--surface-light);
}

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

/* Footer */
footer {
  background-color: #050810;
  padding: 60px 0 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

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

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

.developer-link {
  color: var(--accent-color);
  font-weight: 600;
  display: inline-block;
  transition: var(--transition);
}

.developer-link:hover {
  transform: scale(1.05);
  text-shadow: 0 0 10px rgba(197, 168, 128, 0.5);
}

/* Scroll to top */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  left: 30px; /* As requested: "botão interativo do lado esquerdo inferior" */
  width: 50px;
  height: 50px;
  background-color: var(--accent-color);
  color: var(--bg-color);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
}

#scrollTopBtn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 992px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-img { margin-top: 40px; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .logo-img {
    height: 50px;
  }
  
  .header.scrolled .logo-img {
    height: 40px;
  }
  
  h1 { font-size: 2rem; }
  .hero { min-height: 500px; text-align: center; }
  .hero-content { margin: 0 auto; }
}

/* Scroll Animations */
.fade-up-element {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up-element.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.4);
  z-index: 999;
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  background-color: #20b858;
  color: #FFF;
  transform: translateY(-5px) scale(1.05);
}

@keyframes pulse-whatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Responsive adjustments for floating buttons */
@media (max-width: 768px) {
  #scrollTopBtn {
    bottom: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 25px;
  }
}

