/* Google Cloud Technical Consulting - Polished Modern Theme */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --gcp-blue: #4285F4;
  --gcp-red: #EA4335;
  --gcp-yellow: #FBBC04;
  --gcp-green: #34A853;
  --bg-dark: #070a12;
  --card-bg: rgba(15, 23, 42, 0.75);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #070a12;
  color: #e2e8f0;
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #070a12;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Glassmorphism & Cards */
.glass-card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
}

.glass-card-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(66, 133, 244, 0.4);
  box-shadow: 0 20px 40px -15px rgba(66, 133, 244, 0.2);
}

.glass-nav {
  background: rgba(7, 10, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== Site Header (redesign) ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 10, 18, 0.72);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(7, 10, 18, 0.92);
  box-shadow: 0 12px 40px -20px rgba(0, 0, 0, 0.65);
}

.site-header__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 640px) {
  .site-header__inner { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .site-header__inner { padding: 0 2rem; height: 4.25rem; }
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.site-brand__mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  background: linear-gradient(145deg, #1a2332 0%, #0b1220 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.site-brand__mark::after {
  content: '';
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 70%;
  background: radial-gradient(circle at 30% 30%, rgba(66,133,244,0.35), transparent 55%);
  pointer-events: none;
}

.site-brand__dots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  width: 12px;
  height: 12px;
}

.site-brand__dots span {
  width: 4.5px;
  height: 4.5px;
  border-radius: 1px;
}

.site-brand__dots span:nth-child(1) { background: #4285F4; }
.site-brand__dots span:nth-child(2) { background: #EA4335; }
.site-brand__dots span:nth-child(3) { background: #FBBC04; }
.site-brand__dots span:nth-child(4) { background: #34A853; }

.site-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-brand__name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: #fff;
}

.site-brand__tag {
  font-size: 0.65rem;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

@media (min-width: 1024px) {
  .site-nav { display: flex; }
}

.site-nav a {
  position: relative;
  padding: 0.45rem 0.7rem;
  font-size: 0.8125rem;
  font-weight: 550;
  color: #cbd5e1;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover {
  color: #fff;
  background: rgba(148, 163, 184, 0.08);
}

.site-nav a.is-active {
  color: #fff;
  background: rgba(66, 133, 244, 0.12);
}

.site-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 2px;
  background: #4285F4;
}

.site-actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .site-actions { display: flex; }
}

.site-lang {
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.8);
}

.site-lang button {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.site-lang button.is-on,
.site-lang .lang-btn-zh.bg-blue-600,
.site-lang .lang-btn-en.bg-blue-600 {
  background: #4285F4 !important;
  color: #fff !important;
}

.site-icon-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.75);
  color: #34d399;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.site-icon-btn:hover {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(16, 185, 129, 0.1);
}

.site-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.25rem;
  padding: 0 0.9rem;
  border-radius: 0.65rem;
  border: 0;
  background: #4285F4;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.site-cta:hover {
  background: #5b97f6;
}

.site-mobile-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

@media (min-width: 1024px) {
  .site-mobile-controls { display: none; }
}

.site-header__accent {
  height: 2px;
  width: 100%;
  background: linear-gradient(
    90deg,
    #4285F4 0%,
    #4285F4 25%,
    #EA4335 25%,
    #EA4335 50%,
    #FBBC04 50%,
    #FBBC04 75%,
    #34A853 75%,
    #34A853 100%
  );
  opacity: 0.85;
}

.site-mobile-panel {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(7, 10, 18, 0.96);
  backdrop-filter: blur(16px);
  padding: 0.75rem 1rem 1.25rem;
}

.site-mobile-panel.is-open {
  display: block;
}

.site-mobile-panel a {
  display: block;
  padding: 0.7rem 0.5rem;
  font-size: 0.9rem;
  color: #cbd5e1;
  text-decoration: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.site-mobile-panel a:hover,
.site-mobile-panel a.is-active {
  color: #fff;
}

.site-mobile-panel__actions {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

/* Gradient Text */
.gradient-text-gcp {
  background: linear-gradient(135deg, #60A5FA 0%, #34D399 40%, #FBBF24 75%, #F87171 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-blue {
  background: linear-gradient(135deg, #93C5FD 0%, #3B82F6 50%, #1D4ED8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-ai {
  background: linear-gradient(135deg, #C084FC 0%, #A855F7 50%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glow Effects */
.gcp-glow-blue {
  box-shadow: 0 0 50px -10px rgba(66, 133, 244, 0.3);
}

/* Ping Animation Dot */
.ping-dot {
  position: relative;
}
.ping-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.75;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Float Animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.animate-float {
  animation: float 5s ease-in-out infinite;
}

/* Modal Backdrop */
.modal-backdrop {
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
