/* Design System: Virtual Space */
:root {
  /* Brand Colors */
  --color-surface: #F8F8F8;    /* Off-White */
  --color-primary: #00B6BA;    /* Teal/Cyan */
  --color-secondary: #FC00CD;  /* Magenta */
  --color-text: #172B4E;       /* Navy Blue */

  /* Derived & Contextual Colors */
  --color-surface-light: rgba(255, 255, 255, 0.8);
  --color-primary-fade: rgba(0, 182, 186, 0.15);
  --color-secondary-fade: rgba(252, 0, 205, 0.15);
  --color-text-dim: rgba(23, 43, 78, 0.7);

  --glass-bg: rgba(255, 255, 255, 0.4);
  --glass-border: rgba(23, 43, 78, 0.15);

  /* Typography Scale */
  --font-family-brand: 'New Science', sans-serif;
  --font-size-hero: clamp(3rem, 8vw, 6rem);
  --font-size-h2: clamp(2rem, 5vw, 4rem);
  --font-size-h3: clamp(1.5rem, 3vw, 2.5rem);
  --font-size-body: 1rem;
  --font-size-small: 0.875rem;

  /* Spacing */
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 5rem;

  /* Radii */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 2rem;
}

/* Typography definition */
@font-face {
  font-family: 'New Science';
  src: url('./ Virtual Space - Marca/Fontes/New_Science_Light_Extended.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'New Science';
  src: url('./ Virtual Space - Marca/Fontes/New_Science_Regular_Extended.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'New Science';
  src: url('./ Virtual Space - Marca/Fontes/New_Science_Medium_Extended.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'New Science';
  src: url('./ Virtual Space - Marca/Fontes/New_Science_SemiBold_Extended.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'New Science';
  src: url('./ Virtual Space - Marca/Fontes/New_Science_Bold_Extended.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

/* CSS Reset & Base styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: var(--font-family-brand);
  background-color: var(--color-surface);
  color: var(--color-text);
  overflow-x: hidden; /* Fallback for older browsers */
  overflow-x: clip;   /* Strict modern clipping */
  width: 100%;
  max-width: 100%;
  line-height: 1.6;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.1;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bg-surface { background-color: var(--color-surface); }
.bg-primary { background-color: var(--color-primary); }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  box-sizing: border-box;
}

/* Glassmorphism */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* Animations & Effects */
.glow-primary {
  box-shadow: 0 0 20px rgba(0, 182, 186, 0.5);
}
.glow-secondary {
  box-shadow: 0 0 20px rgba(252, 0, 205, 0.5);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-family-brand);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #00d2d6);
  color: var(--color-surface);
  box-shadow: 0 4px 15px var(--color-primary-fade);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--color-primary-fade);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-surface);
}

/* Ambient Background Lights */
.bg-ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
}

.ambient-cyan {
  background: rgba(0, 182, 186, 0.15);
  width: 600px;
  height: 600px;
}

.ambient-magenta {
  background: rgba(252, 0, 205, 0.15);
  width: 500px;
  height: 500px;
}

/* Custom Grid Pattern for Background */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(0, 182, 186, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 182, 186, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  pointer-events: none;
}

/* Layout Blocks */
.section {
  padding: 2.5rem 0;
  position: relative;
}

/* Layout Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.h-full { height: 100%; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

@media (max-width: 768px) {
  :root {
    --space-xxl: 5rem;
    --space-xl: 2rem;
    --space-lg: 1.25rem;
    --font-size-hero: clamp(2rem, 8vw, 3rem);
    --font-size-h2: clamp(1.5rem, 8vw, 2.5rem);
    --font-size-h3: clamp(1.3rem, 6vw, 2rem);
  }
  
  .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 2rem 0; }
  .btn { padding: 0.8rem 1.2rem; font-size: 0.9rem; }
  .container { padding: 0 var(--space-lg); max-width: 100%; overflow-x: hidden; }
  .bg-ambient { display: none; }
}

/* Footer Global Styles */
.footer {
  background-color: var(--color-text);
  color: rgba(248, 248, 248, 0.8);
  padding: var(--space-xl) 0 var(--space-lg) 0;
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.brand-col .footer-logo {
  max-width: 200px;
  width: 100%;
  height: auto;
  margin-bottom: var(--space-sm);
  filter: brightness(1.1); /* Ensure it stands out on dark */
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(248, 248, 248, 0.6);
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.footer-socials a {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: var(--color-secondary);
}

.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--color-primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(248, 248, 248, 0.6);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

.contact-col p {
  font-size: 0.9rem;
  color: rgba(248, 248, 248, 0.6);
  line-height: 1.6;
}

.contact-col strong {
  color: rgba(248, 248, 248, 0.9);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  margin-top: var(--space-xl);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.copyright-text {
  font-size: 0.8rem;
  color: rgba(248, 248, 248, 0.4);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: rgba(248, 248, 248, 0.4);
  transition: color 0.3s ease;
}

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

/* Footer Media Queries */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }
  
  .brand-col .footer-logo {
    margin: 0 auto var(--space-sm) auto;
  }
  
  .footer-tagline {
    margin: 0 auto;
  }
  
  .footer-socials {
    justify-content: center;
  }
  
  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }
  
  .footer-bottom-links {
    justify-content: center;
  }
}
