/* --- M.A.T.S. WINDOWS 11 & HONOR STYLE THEME (Full & Fixed) --- */
:root {
    --bg-deep: #050b14;
    --win-blue: #0078d4;
    --neon-cyan: #00f0ff;
    --card-bg: rgba(10, 22, 40, 0.7);
    --border-glow: rgba(0, 240, 255, 0.3);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
}

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

/* Honor / MagicOS style clean modern font stack */
body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: 'HarmonyOS Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* --- WINDOWS 11 FIRST LOGIN STYLE FLUID BACKGROUND ANIMATION --- */
.gel-blob {
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 120, 212, 0.25) 0%, rgba(0, 240, 255, 0.1) 70%);
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  animation: win11FluidMotion 18s infinite alternate ease-in-out;
  pointer-events: none;
}

.blob-1 {
  top: -200px;
  left: -200px;
}

.blob-2 {
  bottom: -200px;
  right: -200px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.2) 0%, rgba(0, 50, 120, 0.15) 70%);
  animation-delay: -9s;
}

@keyframes win11FluidMotion {
  0% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(100px, 80px) scale(1.15); }
  66% { transform: translate(-80px, 120px) scale(0.95); }
  100% { transform: translate(60px, -60px) scale(1.1); }
}

/* --- CONTAINER (Fit to Window) --- */
.container {
  width: 100%;
  max-width: 1350px;
  margin: 0 auto;
  padding: 40px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* --- HERO & PAGE TITLES --- */
.hero-section, .page-title {
  text-align: center;
  margin-bottom: 45px;
}

.main-title, .page-title {
  font-size: 50px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-main);
  text-shadow: 0 0 30px rgba(0, 120, 212, 0.5);
  margin-bottom: 12px;
}

.title-meaning {
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.title-meaning span {
  color: var(--neon-cyan);
  font-weight: 600;
}

/* --- CARDS GRID --- */
.cards-grid, .members-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 35px;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  margin-bottom: 30px;
}

/* --- GLASSMORPHISM CARDS (Fixed Spacing) --- */
.gel-card {
  background: var(--card-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 40px 30px;
  width: 380px;
  min-height: 440px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.03);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* අමතර හිස්තැන් ඇතිවීම වැළැක්වීමට මෙහි වෙනස් කර ඇත */
  gap: 20px; /* අංග අතර නිසි පරතරය තැබීමට */
}

@keyframes cardSmoothFloat {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

.gel-card {
  animation: cardSmoothFloat 8s ease-in-out infinite;
}

.gel-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: var(--neon-cyan);
  box-shadow: 0 25px 60px rgba(0, 120, 212, 0.4), inset 0 0 25px rgba(0, 240, 255, 0.1);
  animation-play-state: paused;
}

/* Card Typography */
.gel-card h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0px;
  letter-spacing: 0.5px;
}

.gel-card p, .company-info {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 0px;
  font-weight: 400;
}

/* Role Badges */
.role-badge {
  background: rgba(0, 120, 212, 0.15);
  color: var(--neon-cyan);
  padding: 6px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(0, 240, 255, 0.3);
  display: inline-block;
  margin-bottom: 0px;
}

/* Portrait / Images inside Cards */
.portrait-container img, .gel-card img {
  width: 110px !important;
  height: 110px !important;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0px auto;
  display: block;
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 120, 212, 0.4);
  transition: transform 0.4s ease;
}

.gel-card:hover img {
  transform: scale(1.06);
  border-color: #ffffff;
}

/* Members Card Button Alignment */
.gel-card .view-members-btn {
  margin-top: auto; 
}

/* --- REGISTRATION FORM --- */
.register-card {
  width: 100%;
  max-width: 600px;
  min-height: auto;
  margin: 30px auto;
}

#registerForm {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.gel-input {
  background: rgba(3, 7, 18, 0.85);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text-main);
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: all 0.3s ease;
  width: 100%;
}

.gel-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 120, 212, 0.4);
}

select.gel-input option {
  background: #050b14;
  color: var(--text-main);
}

.photo-label {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: -6px;
}

.file-input {
  padding: 10px;
  cursor: pointer;
}

/* --- BUTTONS --- */
.view-members-btn, .gel-btn {
  background: linear-gradient(135deg, rgba(0, 120, 212, 0.2), rgba(0, 240, 255, 0.15));
  color: var(--text-main);
  border: 1px solid rgba(0, 240, 255, 0.4);
  padding: 14px 25px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  width: 100%;
}

.view-members-btn:hover, .gel-btn:hover {
  background: var(--win-blue);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 30px rgba(0, 120, 212, 0.6);
  transform: translateY(-2px);
}

/* Dividers */
.divider {
  width: 100%;
  max-width: 800px;
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
  margin: 40px auto;
}
