/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  /* Colors */
  --bg-primary: #040406;
  --bg-secondary: #08080b;
  --bg-card: rgba(8, 8, 11, 0.82);
  --bg-card-hover: rgba(12, 12, 16, 0.92);
  
  --color-gold: #c5a059;
  --color-gold-bright: #ebd09b;
  --color-gold-dark: #8c6b3f;
  --color-gold-glow: rgba(197, 160, 89, 0.25);
  
  --text-primary: #ffffff;
  --text-secondary: #a0a0ab;
  --text-muted: #6f6f78;
  
  --border-color: rgba(255, 255, 255, 0.04);
  --border-gold: rgba(197, 160, 89, 0.15);
  --border-gold-hover: rgba(197, 160, 89, 0.4);
  
  /* Fonts */
  --font-header: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

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

/* 2D Constellation Canvas in Hero visual container */
#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Custom Cursor Glow */
#cursor-glow {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.06) 0%, transparent 70%);
  position: fixed;
  top: -150px;
  left: -150px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.3s ease;
  opacity: 0;
}

body:hover #cursor-glow {
  opacity: 1;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-gold-bright) 0%, var(--color-gold) 50%, var(--color-gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead-text {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 600px;
  margin-bottom: 2rem;
}

.body-large {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-family: var(--font-header);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: var(--bg-primary);
  border: 1px solid transparent;
  box-shadow: 0 4px 20px rgba(197, 160, 89, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(197, 160, 89, 0.4);
  background: linear-gradient(135deg, var(--color-gold-bright) 0%, var(--color-gold) 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-gold);
}

/* ==========================================================================
   HEADER & NAVBAR (Glassmorphism)
   ========================================================================== */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

#main-header.scrolled {
  padding: 1rem 0;
  background: rgba(6, 6, 8, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

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

.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.75rem;
}

.nav-logo {
  width: 32px;
  height: 32px;
  transition: var(--transition-smooth);
}

.logo-container:hover .nav-logo {
  transform: rotate(5deg) scale(1.05);
}

.logo-text {
  font-family: var(--font-header);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  background: linear-gradient(90deg, #fff, #b39f7c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2.5rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-header);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-gold);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-btn {
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-header);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border-gold);
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  background: rgba(197, 160, 89, 0.02);
  transition: var(--transition-smooth);
}

.nav-btn:hover {
  background: var(--color-gold);
  color: var(--bg-primary);
  box-shadow: 0 0 15px var(--color-gold-glow);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.mobile-menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 6, 8, 0.98);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-nav-link {
  font-family: var(--font-header);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.mobile-nav-link:hover {
  color: var(--color-gold);
}

.mobile-nav-btn {
  font-family: var(--font-header);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  border: 1px solid var(--color-gold);
  padding: 0.8rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.mobile-nav-btn:hover {
  background: var(--color-gold);
  color: var(--bg-primary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px;
  overflow: hidden;
  /* Cyberpunk Tech Grid Background */
  background-image: 
    linear-gradient(rgba(197, 160, 89, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 160, 89, 0.02) 1px, transparent 1px);
  background-size: 45px 45px;
  background-position: center center;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Dark mask that fades out on the right where the 3D logo is */
  background: radial-gradient(circle at 72% 50%, rgba(6, 6, 8, 0.1) 0%, var(--bg-primary) 75%);
  pointer-events: none;
  z-index: 1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  z-index: 10;
  width: 100%;
}

.hero-content {
  width: 100%;
  position: relative;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.hero-visual {
  position: relative;
  width: 100%;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(197, 160, 89, 0.05);
  background: rgba(197, 160, 89, 0.01);
  border-radius: 12px;
  backdrop-filter: blur(5px);
  overflow: hidden;
}

/* Ambient HUD tags */
.hud-tag {
  position: absolute;
  font-family: monospace;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(197, 160, 89, 0.4);
  letter-spacing: 0.05em;
  pointer-events: none;
  z-index: 5;
}

.hud-tl { top: 12px; left: 16px; }
.hud-tr { top: 12px; right: 16px; }
.hud-bl { bottom: 12px; left: 16px; }
.hud-br { bottom: 12px; right: 16px; }

/* HUD Corner Borders */
.hud-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(197, 160, 89, 0.25);
  pointer-events: none;
  z-index: 5;
}

.hud-c-tl { top: -1px; left: -1px; border-right: none; border-bottom: none; border-top-left-radius: 12px; }
.hud-c-tr { top: -1px; right: -1px; border-left: none; border-bottom: none; border-top-right-radius: 12px; }
.hud-c-bl { bottom: -1px; left: -1px; border-right: none; border-top: none; border-bottom-left-radius: 12px; }
.hud-c-br { bottom: -1px; right: -1px; border-left: none; border-top: none; border-bottom-right-radius: 12px; }

/* Glowing SVG Logo inside HUD Panel */
.glow-logo-wrapper {
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  animation: logo-drift 5s ease-in-out infinite alternate;
}

.glow-logo {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 20px rgba(197, 160, 89, 0.40));
  transition: var(--transition-smooth);
}

.glow-logo:hover {
  transform: scale(1.04) rotate(1.5deg);
  filter: drop-shadow(0 0 30px rgba(197, 160, 89, 0.65));
}

@keyframes logo-drift {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  100% {
    transform: translateY(-8px) rotate(0.5deg);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  animation: pulse-border 3s infinite;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: #2ec4b6;
  border-radius: 50%;
  box-shadow: 0 0 8px #2ec4b6;
}

.hero-section h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

/* Scroll indicator */
.scroll-indicator-container {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.7;
}

.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 1.5px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background-color: var(--color-gold);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-down 1.8s infinite;
}

.scroll-text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-family: var(--font-header);
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.section {
  padding: 8rem 0;
  position: relative;
  z-index: 10;
}

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

.section-info {
  position: sticky;
  top: 150px;
  height: fit-content;
}

.section-subtitle {
  font-family: var(--font-header);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.philosophy-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.p-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 12px;
  backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
}

.p-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.p-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.p-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.p-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.section-header {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  align-items: flex-end;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(197, 160, 89, 0.05);
}

.project-image-container {
  height: 280px;
  position: relative;
  background-color: rgba(6, 6, 8, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.project-image-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Aesthetic SVG/CSS Visual Previews */
.project-visual-preview {
  position: relative;
  width: 150px;
  height: 150px;
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.project-card:hover .project-visual-preview {
  transform: rotate(5deg) scale(1.08);
  border-color: var(--color-gold);
}

/* Project 1 preview (Interunião Seguros - Shield Theme) */
.p1-preview {
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.05) 0%, rgba(0,0,0,0) 100%);
}

.p1-preview .floating-shield {
  width: 42px;
  height: 52px;
  border: 1.5px solid var(--color-gold);
  border-radius: 0 0 20px 20px;
  position: relative;
  background: rgba(197, 160, 89, 0.05);
  box-shadow: 0 0 20px rgba(197, 160, 89, 0.15);
  animation: shield-float 3s ease-in-out infinite alternate;
  z-index: 2;
}

.p1-preview .floating-shield::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 2px;
  background-color: var(--color-gold);
}

.p1-preview .grid-lines {
  position: absolute;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 20px 20px;
  border-radius: 8px;
  z-index: 1;
}

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

/* Project 2 preview (Wedding List - Double Ring Theme) */
.p2-preview {
  background: linear-gradient(45deg, rgba(140, 107, 63, 0.05) 0%, rgba(0,0,0,0) 100%);
}

.p2-preview .floating-rings {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 80px;
  height: 60px;
  animation: rings-float 4s ease-in-out infinite alternate;
  z-index: 2;
}

.p2-preview .ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--color-gold);
  border-radius: 50%;
  position: absolute;
  background: transparent;
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.15);
}

.p2-preview .ring-left {
  left: 8px;
}

.p2-preview .ring-right {
  right: 8px;
  transform: scale(0.85) translateY(4px);
}

.p2-preview .grid-lines {
  position: absolute;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 20px 20px;
  border-radius: 8px;
  z-index: 1;
}

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

.project-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(6, 6, 8, 0.8);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-gold-bright);
  backdrop-filter: blur(5px);
}

.project-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.project-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-link {
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-header);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.project-link .arrow {
  transition: var(--transition-fast);
}

.project-link:hover {
  color: var(--color-gold);
}

.project-link:hover .arrow {
  transform: translateX(5px);
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 12px;
  backdrop-filter: blur(16px);
}

.skill-category h3 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--color-gold);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skill-list li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-list li::before {
  content: '';
  width: 4px;
  height: 4px;
  background-color: var(--color-gold-dark);
  border-radius: 50%;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-box {
  background: linear-gradient(135deg, rgba(13, 13, 17, 0.9) 0%, rgba(6, 6, 8, 0.95) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 24px;
  padding: 4rem;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.contact-box::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.contact-header {
  max-width: 500px;
  margin-bottom: 3rem;
}

.contact-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-header p {
  color: var(--text-secondary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-group label {
  font-family: var(--font-header);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group .input-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--color-gold);
  transition: var(--transition-smooth);
}

.form-group input:focus ~ .input-line,
.form-group textarea:focus ~ .input-line {
  width: 100%;
}

.contact-form .btn {
  align-self: flex-start;
  gap: 0.75rem;
}

.btn-arrow {
  transition: var(--transition-smooth);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.form-feedback {
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.form-feedback.success {
  color: #2ec4b6;
}

.form-feedback.error {
  color: #e71d36;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
#main-footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  background: var(--bg-primary);
  z-index: 10;
  position: relative;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-logo {
  width: 24px;
  height: 24px;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-header);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-gold);
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes scroll-down {
  0% { transform: translate(-50%, 0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translate(-50%, 15px); opacity: 0; }
}

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

@keyframes float-bar {
  0% { transform: scaleY(0.7); }
  100% { transform: scaleY(1.1); }
}

@keyframes float-bar-delayed {
  0% { transform: scaleY(1.1); }
  100% { transform: scaleY(0.7); }
}

@keyframes pulse-border {
  0% { border-color: rgba(255, 255, 255, 0.04); }
  50% { border-color: rgba(197, 160, 89, 0.25); }
  100% { border-color: rgba(255, 255, 255, 0.04); }
}

/* GSAP Page Animations Scroll-reveal Initial State */
.reveal-element {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-element.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */
@media (max-width: 968px) {
  .section-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .section-info {
    position: relative;
    top: 0;
  }
  
  .section-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .philosophy-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Global adjustments */
  .section {
    padding: 4.5rem 0;
  }
  
  .body-large {
    font-size: 1.15rem;
    margin-bottom: 1rem;
  }
  
  .lead-text {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
  }
  
  #navbar {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* Mobile navbar toggle bar transitions */
  .mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  /* Hero Section Mobile */
  .hero-section {
    padding-top: 100px;
    padding-bottom: 30px;
    min-height: auto;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-content h1 {
    font-size: 2.3rem;
    margin-bottom: 1rem;
  }

  /* Compact Logo Visual Container on Mobile (no HUD clutter) */
  .hero-visual {
    height: 240px;
    order: -1; /* Logo above text */
    border: none;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    overflow: visible;
  }
  
  .hud-tag, .hud-corner {
    display: none; /* Hide HUD tags/borders to prevent text clashing on small screens */
  }
  
  .glow-logo-wrapper {
    width: 160px;
    height: 160px;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  /* Projects Section Mobile */
  .projects-grid {
    gap: 2rem;
  }
  
  .project-image-container {
    height: 200px; /* shorter visual container */
  }
  
  /* Contact Section Mobile */
  .contact-box {
    padding: 2.5rem 1.25rem;
    border-radius: 16px;
  }
  
  .contact-header h2 {
    font-size: 1.8rem;
  }
  
  .contact-form {
    gap: 1.75rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}
