/* Reset & CSS Variables */
:root {
  --bg-dark: #0f1115;
  --bg-panel: rgba(22, 25, 31, 0.7);
  --bg-panel-solid: #16191f;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #B89B43;
  --accent-hover: #d4b65a;
  --border-color: rgba(255, 255, 255, 0.05);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 15% 50%, rgba(184, 155, 67, 0.05), transparent 25%),
                    radial-gradient(circle at 85% 30%, rgba(184, 155, 67, 0.03), transparent 25%);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
}

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

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  border-radius: var(--border-radius);
}

ul {
  list-style: none;
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: 100px 0;
}

/* Header & Nav */
header.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 0;
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
}

.logo span {
  color: var(--accent);
}

nav ul {
  display: flex;
  gap: 30px;
}

nav a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

nav a:hover {
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(184, 155, 67, 0.2);
}

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

.btn-outline:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-3px);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.hero-content {
  flex: 1;
}

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

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.hero-image img {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--border-color);
  box-shadow: 0 0 50px rgba(184, 155, 67, 0.15);
  animation: float 6s ease-in-out infinite;
}

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

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.section-title span {
  color: var(--accent);
}

/* Informações Profissionais (Sobre) */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.feature-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  padding: 25px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--accent);
}

/* Demonstrações de Código */
.code-demos {
  background: var(--bg-panel-solid);
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 500;
  transition: var(--transition);
}

.tab-btn:hover, .tab-btn.active {
  background: rgba(184, 155, 67, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.code-window {
  background: #0d0d0d;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.code-header {
  background: #1a1a1a;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.circle.red { background: #ff5f56; }
.circle.yellow { background: #ffbd2e; }
.circle.green { background: #27c93f; }

.code-content {
  padding: 30px;
  overflow-x: auto;
}

.code-content pre {
  font-family: 'Fira Code', 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  color: #a9b7c6;
  line-height: 1.5;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

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

/* Redes Sociais & Contato */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.social-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  padding: 40px 20px;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-main);
}

.social-card img {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  transition: var(--transition);
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

.social-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.social-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.social-card:hover {
  border-color: var(--accent);
  transform: translateY(-10px);
  background: rgba(184, 155, 67, 0.05);
}

.social-card:hover img {
  transform: scale(1.1);
}

/* Footer */
footer {
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid var(--border-color);
  background: var(--bg-panel-solid);
  margin-top: 50px;
}

footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer span {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 { font-size: 3rem; }
  .hero .container { flex-direction: column-reverse; text-align: center; }
  .hero-buttons { justify-content: center; }
  .hero-image img { width: 300px; height: 300px; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  nav { display: none; } /* Simples para esta versão */
  .hero h1 { font-size: 2.5rem; }
  .section-title h2 { font-size: 2rem; }
  .about-features { grid-template-columns: 1fr; }
}
