/* ===================================================
   SECONCRETE — PORTAL DESIGN SYSTEM
   Luxury Urban Editorial · Split-Screen Portal
   =================================================== */

:root {
  /* Brand Colors */
  --clr-bg: #080809;
  --clr-bg-2: #0f1013;
  --clr-text-primary: #f5f4f0;
  --clr-text-secondary: rgba(245, 244, 240, 0.7);
  --clr-text-muted: rgba(245, 244, 240, 0.45);

  /* Accent Colors */
  --clr-gold: #c9a84c;
  --clr-gold-light: #e8c97a;
  --clr-electric: #3d8bff;
  --clr-electric-light: #7bb4ff;

  /* Fonts */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Transitions */
  --t-smooth: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --t-fast: 0.2s ease;
}

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

html, body {
  height: 100%;
  overflow: hidden; /* Prevent scrolling on the portal */
  background-color: var(--clr-bg);
  color: var(--clr-text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* Noise Texture Overlay */
.noise-overlay::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  opacity: 0.4;
  z-index: 100;
}

.portal {
  display: flex;
  height: 100vh;
  width: 100vw;
  position: relative;
}

.portal__side {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
  transition: flex var(--t-smooth);
  z-index: 1;
}

.portal__side:hover {
  flex: 1.25;
}

/* Background Images */
.portal__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--t-smooth), filter var(--t-smooth);
  filter: grayscale(0.2) brightness(0.5);
}

.portal__side:hover .portal__bg {
  transform: scale(1.05);
  filter: grayscale(0) brightness(0.65);
}

/* Content Area */
.portal__content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  transition: transform var(--t-smooth);
}

.portal__side:hover .portal__content {
  transform: translateY(-10px);
}

.portal__overline {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  transition: color var(--t-smooth);
}

.portal__side--incorporadora:hover .portal__overline {
  color: var(--clr-gold-light);
}

.portal__side--construtora:hover .portal__overline {
  color: var(--clr-electric-light);
}

.portal__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.01em;
}

.portal__description {
  font-size: 0.95rem;
  color: var(--clr-text-secondary);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--t-smooth);
}

.portal__side:hover .portal__description {
  opacity: 1;
  transform: translateY(0);
}

.portal__btn {
  padding: 0.75rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  background: transparent;
  backdrop-filter: blur(10px);
  transition: all var(--t-smooth);
  margin-top: 1rem;
}

.portal__side--incorporadora .portal__btn {
  border-color: var(--clr-gold);
}

.portal__side--construtora .portal__btn {
  border-color: var(--clr-electric);
}

.portal__side:hover .portal__btn {
  background: rgba(255, 255, 255, 0.1);
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.portal__side--incorporadora:hover .portal__btn {
  background: var(--clr-gold);
  color: #000;
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.4);
}

.portal__side--construtora:hover .portal__btn {
  background: var(--clr-electric);
  color: #fff;
  box-shadow: 0 0 30px rgba(61, 139, 255, 0.4);
}

/* Central Identity Branding */
.portal__identity {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 10;
  text-align: center;
}

.portal__logo {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 80px rgba(0,0,0,0.4);
  transition: transform var(--t-smooth), opacity var(--t-smooth);
}

.portal:has(.portal__side:hover) .portal__logo {
  transform: scale(0.85); /* Not quite working with absolute positioning like this, will fix */
  opacity: 0.1;
}

/* Fixed positioning fix for identity transition */
.portal:has(#choice-incorporadora:hover) .portal__logo {
  transform: scale(0.9) translateX(10%);
  opacity: 0.15;
}

.portal:has(#choice-construtora:hover) .portal__logo {
  transform: scale(0.9) translateX(-10%);
  opacity: 0.15;
}

.portal__divider {
  width: 4rem;
  height: 1px;
  background: var(--clr-gold);
  margin: 1rem 0;
  transition: width var(--t-smooth);
}

.portal:has(.portal__side:hover) .portal__divider {
  width: 0;
}

.portal__tagline {
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  transition: opacity var(--t-smooth);
}

.portal:has(.portal__side:hover) .portal__tagline {
  opacity: 0;
}


/* Footer Section */
.portal__footer {
  position: fixed;
  bottom: 2rem;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 100;
}

.portal__footer p {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .portal {
    flex-direction: column;
  }
  
  .portal__side {
    flex: 1;
    width: 100%;
  }
  
  .portal__identity {
    top: 50%;
  }
  
  .portal__logo {
    font-size: 4rem;
  }
  
  .portal__description {
    display: none; /* Hide description on mobile to save space */
  }
  
  .portal__side:hover {
    flex: 1.5;
  }
}

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  transition: 0.3s ease;
}

.whatsapp-btn:hover {
  transform: scale(1.1) rotate(5deg);
  background-color: #128c7e;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
  .whatsapp-btn {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
}
