:root {
  /* Theme Escuro (Padrão) */
  --bg-color: #0f0f0f;
  --card-bg: rgba(20, 20, 20, 0.7);
  --card-hover: rgba(28, 28, 28, 0.8);
  --card-border: rgba(255, 255, 255, 0.06);
  --text-main: #f5f0eb;
  --text-muted: #b7b0a6;
  --accent: #d4a373;
  --accent-hover: #e8b684;
  --accent-transparent: rgba(212, 163, 115, 0.15);
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  --border-radius: 20px;
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-color: #f8f7f4;
  --card-bg: rgba(255, 255, 255, 0.8);
  --card-hover: rgba(255, 255, 255, 0.95);
  --card-border: rgba(0, 0, 0, 0.08);
  --text-main: #1a1a1a;
  --text-muted: #5a5a5a;
  --accent: #b8860b;
  --accent-hover: #9b7209;
  --accent-transparent: rgba(184, 134, 11, 0.15);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px;
  z-index: 100;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

.container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  flex: 1;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

p {
  color: var(--text-muted);
}

/* Header / Profile */
.profile-section {
  text-align: center;
  margin-bottom: 3rem;
}

.profile-photo-container {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-transparent);
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo-fallback {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--accent);
}

.profile-title {
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto;
}

/* Links Section */
.links-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.link-card {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 1.05rem 1.4rem;
  text-decoration: none;
  color: var(--text-main);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.link-card:hover {
  border-color: var(--accent-transparent);
  background: var(--card-hover);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.link-icon {
  width: 24px;
  height: 24px;
  margin-right: 1rem;
  color: var(--accent);
  flex-shrink: 0;
}

.link-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.link-title {
  font-weight: 500;
  font-size: 1rem;
}

.link-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Actions */
.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (max-width: 480px) {
  .action-buttons {
    grid-template-columns: 1fr;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  font-family: var(--font-body);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.quick-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  transition: var(--transition);
  text-decoration: none;
}

.quick-contact-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.quick-contact-btn svg {
  width: 24px;
  height: 24px;
}

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

[data-theme="light"] .btn-primary {
  color: #fff;
}

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

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

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

.w-full {
  width: 100%;
}

/* Sections */
.about-section, .contact-section {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Forms */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
}

input, textarea, select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

[data-theme="light"] input, [data-theme="light"] textarea, [data-theme="light"] select {
  background: rgba(0, 0, 0, 0.03);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-transparent);
}

/* Utilities */
.hidden {
  display: none !important;
}

.icon-button {
  position: fixed;
  top: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.icon-button:hover {
  background: var(--card-hover);
  border-color: var(--accent-transparent);
  transform: scale(1.05);
}

#theme-toggle {
  right: 1.5rem;
}

.admin-link {
  right: 5rem;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: auto;
}

/* Loading */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--card-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Animations */
.fade-in {
  /* Removed opacity:0 to show instantly as requested */
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

/* Toasts */
#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (max-width: 480px) {
  #toast-container {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
  }
}

.toast {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  color: var(--text-main);
  border: 1px solid var(--card-border);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
  transform: translateX(0);
}

.toast.success { border-left: 4px solid #10b981; }
.toast.error { border-left: 4px solid #ef4444; }
