:root {
  --bg-dark: #060a09;
  --bg-gray: #0c1110;
  --text-white: #f3f7f6;
  --text-muted: #8fa09c;
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Division colors */
  --color-real-estate: #c5a880; /* Gold */
  --color-holdings: #4f83cc;    /* Deep Blue */
  --color-ventures: #00f5a0;    /* Electric Mint */
  --color-foundation: #10b981;  /* Emerald Green */

  /* Glassmorphism */
  --glass-bg: rgba(13, 22, 20, 0.45);
  --glass-border: rgba(255, 255, 255, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background Glow Effects */
.glow-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.12;
  mix-blend-mode: screen;
}

.orb-1 {
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--color-real-estate) 0%, transparent 70%);
  top: -10%;
  left: -10%;
  animation: floatOrb 20s infinite alternate ease-in-out;
}

.orb-2 {
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--color-ventures) 0%, transparent 70%);
  bottom: -20%;
  right: -10%;
  animation: floatOrb 25s infinite alternate-reverse ease-in-out;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5%, 10%) scale(1.1); }
}

/* Header Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  background-color: transparent;
  transition: all 0.4s ease;
}

.header.scrolled {
  background-color: rgba(6, 10, 9, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-color: rgba(255, 255, 255, 0.08);
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-white);
}

.header-logo {
  width: 32px;
  height: 32px;
}

.logo-txt {
  font-family: var(--font-title);
  font-size: 1.25rem;
  letter-spacing: 0.25em;
  font-weight: 500;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Portal Hero */
.portal-hero {
  height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.portal-title {
  font-family: var(--font-title);
  font-size: 4rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  margin-left: 0.4em;
  margin-bottom: 2rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: fadeInDown 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-tagline {
  color: var(--text-muted);
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.05em;
  margin-bottom: 3.5rem;
  max-width: 700px;
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
}

.btn-scroll {
  text-decoration: none;
  color: var(--color-real-estate);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  transition: color 0.3s ease;
  animation: bounce 2s infinite;
}

.btn-scroll:hover {
  color: var(--text-white);
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

/* Common Section Styles */
.portal-section {
  padding: 8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.section-gray {
  background-color: var(--bg-gray);
}

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

.sec-badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-real-estate);
  margin-bottom: 1rem;
  font-weight: 600;
}

.section-heading {
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-white);
}

.section-header {
  margin-bottom: 5rem;
}

.section-header.center-align {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-subheader {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
  margin-top: 1rem;
}

/* Split Grid Layout */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
}

.section-text {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.section-text:last-child {
  margin-bottom: 0;
}

/* Divisions Grid */
.divisions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
}

.division-card {
  text-decoration: none;
  color: var(--text-white);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 3.5rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 330px;
}

.card-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.card-icon {
  margin-bottom: 2rem;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.card-desc {
  color: var(--text-muted);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
  transition: color 0.5s ease;
}

.card-link-text {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.5s ease;
}

.card-link-text .arrow {
  transition: transform 0.3s ease;
}

/* Hover States per Division */
.card-real-estate:hover {
  transform: translateY(-8px);
  border-color: rgba(197, 168, 128, 0.3);
  box-shadow: 0 20px 40px rgba(197, 168, 128, 0.05), inset 0 0 30px rgba(197, 168, 128, 0.1);
}
.card-real-estate .card-icon { color: var(--color-real-estate); }
.card-real-estate .card-bg-overlay {
  background: radial-gradient(circle at top right, rgba(197, 168, 128, 0.08), transparent 70%);
}
.card-real-estate:hover .card-bg-overlay { opacity: 1; }
.card-real-estate:hover .card-title { color: var(--color-real-estate); }
.card-real-estate:hover .card-link-text { color: var(--color-real-estate); }

.card-holdings:hover {
  transform: translateY(-8px);
  border-color: rgba(79, 131, 204, 0.3);
  box-shadow: 0 20px 40px rgba(79, 131, 204, 0.05), inset 0 0 30px rgba(79, 131, 204, 0.1);
}
.card-holdings .card-icon { color: var(--color-holdings); }
.card-holdings .card-bg-overlay {
  background: radial-gradient(circle at top right, rgba(79, 131, 204, 0.08), transparent 70%);
}
.card-holdings:hover .card-bg-overlay { opacity: 1; }
.card-holdings:hover .card-title { color: var(--color-holdings); }
.card-holdings:hover .card-link-text { color: var(--color-holdings); }

.card-ventures:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 245, 160, 0.3);
  box-shadow: 0 20px 40px rgba(0, 245, 160, 0.05), inset 0 0 30px rgba(0, 245, 160, 0.1);
}
.card-ventures .card-icon { color: var(--color-ventures); }
.card-ventures .card-bg-overlay {
  background: radial-gradient(circle at top right, rgba(0, 245, 160, 0.08), transparent 70%);
}
.card-ventures:hover .card-bg-overlay { opacity: 1; }
.card-ventures:hover .card-title { color: var(--color-ventures); }
.card-ventures:hover .card-link-text { color: var(--color-ventures); }

.card-foundation:hover {
  transform: translateY(-8px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.05), inset 0 0 30px rgba(16, 185, 129, 0.1);
}
.card-foundation .card-icon { color: var(--color-foundation); }
.card-foundation .card-bg-overlay {
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 70%);
}
.card-foundation:hover .card-bg-overlay { opacity: 1; }
.card-foundation:hover .card-title { color: var(--color-foundation); }
.card-foundation:hover .card-link-text { color: var(--color-foundation); }

.division-card:hover .card-icon { transform: translateY(-4px) scale(1.05); }
.division-card:hover .card-desc { color: var(--text-white); }
.division-card:hover .card-link-text .arrow { transform: translateX(6px); }

/* Global Footprint Map */
.map-container {
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 2rem;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.2);
}

.world-svg {
  width: 100%;
  height: auto;
  max-height: 480px;
  display: block;
}

.map-node {
  cursor: pointer;
  pointer-events: bounding-box;
}

.node-dot {
  fill: var(--color);
  transition: r 0.3s ease;
}

.node-ring {
  stroke: var(--color);
  stroke-width: 1.5px;
  fill: transparent;
  transform-origin: center;
  animation: pulseNode 3s infinite ease-out;
  opacity: 0.6;
}

.node-text {
  fill: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 500;
  transition: all 0.3s ease;
  pointer-events: none;
  opacity: 0.8;
}

.map-node:hover .node-dot {
  r: 7px;
}

.map-node:hover .node-text {
  fill: #ffffff;
  opacity: 1;
}

@keyframes pulseNode {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Sustainability Layout */
.sustainability-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
}

.sus-details {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sus-detail-item {
  border-left: 2px solid var(--color-foundation);
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.sus-detail-item strong {
  color: var(--text-white);
  display: block;
  margin-bottom: 0.2rem;
}

.sus-impact-card {
  background-color: var(--bg-gray);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 3rem;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sus-impact-number {
  font-family: var(--font-title);
  font-size: 5rem;
  font-weight: 300;
  color: var(--color-foundation);
  line-height: 1;
}

.sus-impact-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

/* Portal Footer */
.portal-footer {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  margin-top: auto;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
  .portal-title {
    font-size: 3.2rem;
    letter-spacing: 0.3em;
  }
  
  .split-grid, .sustainability-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .sus-right {
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
  }

  .portal-section {
    padding: 5rem 0;
  }
}

@media screen and (max-width: 768px) {
  .header-container {
    padding: 1.2rem;
  }

  .nav {
    display: none; /* simple hidden navigation for mobile */
  }

  .divisions-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
    gap: 1.5rem;
  }
  
  .division-card {
    padding: 2.5rem;
    height: 300px;
  }

  .portal-title {
    font-size: 2.2rem;
    letter-spacing: 0.25em;
  }

  .portal-tagline {
    font-size: 1rem;
    margin-bottom: 2.5rem;
  }

  .node-text {
    display: none; /* Hide text on mobile to avoid overlapping */
  }

  .map-container {
    padding: 1rem;
  }
}
