/* =========================================================
   TROJEKKK — FRUTIGER AERO REDESIGN
   Modularny arkusz stylów — wszystkie grafiki wczytywane z /assets/
   ========================================================= */

:root {
  /* --- Paleta: głęboka woda, Vista Aero --- */
  --sky-top: #2e6f9e;
  --sky-mid: #1f5580;
  --sky-deep: #123a5e;
  --water-1: #0d2e4e;
  --water-2: #164a72;
  --sun: #cfe9f7;

  --primary-color: #1c5c8e;
  --primary-color-dark: #082849;
  --accent-color: #3f8fc4;
  --accent-color-2: #a9d6ef;

  /* czyste, przezroczyste tafle szkła — bez rozmycia */
  --glass-light: rgba(235, 246, 255, 0.42);
  --glass-mid: rgba(210, 235, 250, 0.28);
  --glass-border: rgba(255, 255, 255, 0.55);
  --text-ink: #0c2c47;
  --text-soft: #2c5876;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-soft: 0 8px 22px rgba(6, 25, 45, 0.22);
  --shadow-deep: 0 20px 48px rgba(6, 25, 45, 0.32);

  --font-display: "Segoe UI", "Trebuchet MS", -apple-system, sans-serif;
  --font-body: "Segoe UI", Tahoma, Arial, sans-serif;
}
.bg-image {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text-ink);
  overflow-x: hidden;
  background: var(--water-1) url("/assets/bg.png") center center / cover no-repeat fixed;
  position: relative;
}

/* --- unoszące się bąbelki tła --- */
.bubbles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bubble {
  position: absolute;
  bottom: -120px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.55), rgba(255,255,255,0.08) 55%, rgba(255,255,255,0.02) 80%);
  border: 1px solid rgba(255,255,255,0.18);
  animation: floatUp linear infinite;
  opacity: 0.55;
}

@keyframes floatUp {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10%  { opacity: 0.8; }
  50%  { transform: translateY(-55vh) translateX(20px) scale(1.05); }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-115vh) translateX(-10px) scale(0.9); opacity: 0; }
}

/* --- fade-in wejściowy --- */
.fade-in { animation: aeroFade .9s ease-out both; }
@keyframes aeroFade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.container {
  width: min(960px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ============ TOP BAR ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(30,75,115,0.88) 0%, rgba(18,55,90,0.9) 45%, rgba(10,40,70,0.92) 100%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 16px rgba(0,0,0,.25);
}

.topbar-inner {
  width: min(960px, 92vw);
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 0;
}

.site-title {
  font-size: 26px;
  font-weight: 700;
  color: #eaf6ff;
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
  letter-spacing: -.5px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav { display: flex; gap: 10px; flex-wrap: wrap; font-size: 14px; }

.nav a {
  text-decoration: none;
  color: #eaf6ff;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.05) 100%);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
  transition: background .25s ease, transform .25s ease;
  font-weight: 600;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: linear-gradient(180deg, rgba(255,255,255,.3) 0%, rgba(255,255,255,.1) 100%);
  transform: translateY(-1px);
}

/* ============ GLASS PANEL ============ */
.panel {
  position: relative;
  z-index: 2;
  margin: 40px auto;
  background: linear-gradient(180deg, rgba(235,247,255,0.32) 0%, rgba(200,230,250,0.22) 45%, rgba(170,210,235,0.28) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255,255,255,.4);
  overflow: hidden;
  transition: transform .4s ease, box-shadow .4s ease;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.panel:hover { transform: translateY(-2px); box-shadow: 0 26px 56px rgba(6,25,45,.36); }

.panel-header {
  position: relative;
  padding: 18px 28px;
  font-size: 15px;
  font-weight: 700;
  color: #eaf6ff;
  background: linear-gradient(to bottom, rgba(30,80,120,0.55) 0%, rgba(15,55,90,0.5) 100%);
  border-bottom: 1px solid rgba(255,255,255,.25);
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
  display: flex; align-items: center; gap: 8px;
}

.panel-content {
  position: relative;
  padding: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(240,248,255,0.5) 100%);
}

/* ============ PROFIL LAYOUT ============ */
.profile-grid {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}

.profile-left {
  flex: 0 0 220px;
  text-align: center;
}

.profile-right { flex: 1 1 380px; min-width: 260px; }

.avatar-wrap { position: relative; display: inline-block; }

.avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,.75);
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(6,25,45,.1), 0 6px 18px rgba(6,25,45,.28);
  transition: all .35s ease;
}

.avatar:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(6,25,45,.34), 0 0 18px rgba(63,143,196,.35); }

.name { margin-top: 14px; font-size: 23px; color: var(--primary-color-dark); font-weight: 700; text-shadow: 0 1px 0 rgba(255,255,255,.8); }
.tagline { font-size: 13px; color: var(--text-soft); margin-top: 3px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--primary-color-dark); text-shadow: 0 1px 0 rgba(255,255,255,.9); }

h3.section-title {
  font-size: 18px;
  border-bottom: 1px solid rgba(150,180,210,.5);
  padding-bottom: 8px;
  font-weight: 700;
  margin-top: 28px;
}
h3.section-title:first-child { margin-top: 0; }

p { font-size: 14.5px; line-height: 1.75; color: var(--text-soft); }

/* ============ REKOMENDACJE ============ */
.recommend {
  position: relative;
  margin-top: 14px;
  background: linear-gradient(180deg, rgba(150,195,230,.55) 0%, rgba(110,160,205,.5) 50%, rgba(80,130,180,.55) 100%);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 16px rgba(6,25,45,.22);
  transition: all .3s ease;
}
.recommend::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 35%;
  background: linear-gradient(180deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none; border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.recommend:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(6,25,45,.28); }

.rec-box { display: flex; gap: 16px; text-decoration: none; color: inherit; position: relative; z-index: 2; flex-wrap: wrap; }
.rec-img {
  width: 90px; height: 68px; object-fit: cover; border-radius: 8px;
  border: 2px solid rgba(255,255,255,.8);
  box-shadow: 0 4px 15px rgba(0,0,0,.32), inset 0 0 10px rgba(255,255,255,.2);
  transition: all .3s ease; flex-shrink: 0;
}
.rec-box:hover .rec-img { transform: scale(1.05); box-shadow: 0 6px 20px rgba(0,0,0,.4), 0 0 15px rgba(100,180,255,.4); }
.rec-info { flex: 1; min-width: 160px; }
.rec-title { font-size: 17px; font-weight: 700; color: var(--primary-color-dark); }
.rec-desc { font-size: 13px; color: var(--text-soft); margin: 6px 0; line-height: 1.5; }
.rec-url { font-size: 12px; color: #3d6f9c; font-weight: 600; }
.rec-box:hover .rec-url { color: #0066cc; text-decoration: underline; }

/* ============ GLOSSY BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  color: #eaf6ff;
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 4px 14px rgba(6,25,45,.28);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0));
  pointer-events: none;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 8px 20px rgba(6,25,45,.34); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; position: relative; z-index: 2; }
.btn span { position: relative; z-index: 2; }

.btn-primary { background: linear-gradient(180deg, #3f8fc4 0%, #256a9e 60%, #164a72 100%); }
.btn-discord { background: linear-gradient(180deg, #5b6fc9 0%, #45539e 60%, #333f78 100%); }
.btn-voip { background: linear-gradient(180deg, #2f7fa8 0%, #1f5f85 60%, #123f60 100%); }
.btn-outline { background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.08)); color: #0c2c47; border-color: rgba(255,255,255,.5); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; }

/* ============ FOOTER ============ */
.footer {
  text-align: center;
  font-size: 12.5px;
  color: rgba(255,255,255,.95);
  margin: 40px 0 30px;
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
  position: relative; z-index: 2;
}
.footer a { color: #fff; }

/* ============ RESPONSYWNOŚĆ ============ */
@media (max-width: 720px) {
  .topbar-inner { justify-content: center; text-align: center; }
  .nav { justify-content: center; }
  .profile-grid { flex-direction: column; align-items: center; text-align: center; }
  .profile-left { flex: none; }
  .panel-content { padding: 22px; }
  .rec-box { flex-direction: column; align-items: center; text-align: center; }
  .rec-img { width: 100%; height: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in, .bubble { animation: none !important; }
  .panel, .btn, .feature-card { transition: none !important; }
}
