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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #193C6E;
  color: #fff;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }

/* ── HERO PAGE ─────────────────────────────────────────────────────────── */

.hero-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(145deg, #193C6E 0%, #006ED2 100%);
  padding: 4rem 1.5rem 3rem;
}

#hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(25,60,110,0.62) 0%,
    rgba(0,80,160,0.45) 60%,
    rgba(25,60,110,0.85) 100%
  );
  z-index: 1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.orb-1 {
  top: 15%; left: 10%;
  width: 600px; height: 600px;
  background: rgba(0,110,210,0.18);
  filter: blur(100px);
}
.orb-2 {
  bottom: 10%; right: 8%;
  width: 450px; height: 450px;
  background: rgba(25,60,110,0.22);
  filter: blur(90px);
}

.identity {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 3.5rem;
}

.domain {
  display: block;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.25rem;
}

.hero-name {
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 700;
  line-height: 1.05;
  text-shadow: 0 4px 30px rgba(0,0,0,0.35);
  color: #fff;
}

.accent-line {
  width: 64px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #006ED2, rgba(0,110,210,0));
  margin: 1.5rem auto 0;
}

.top-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: rgba(25,60,110,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ── CARDS ─────────────────────────────────────────────────────────────── */

.cards {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 700px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1rem;
  border-radius: 1rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(0,0,0,0.28);
}

.card-linkedin  { background: rgba(10,102,194,0.12);  border: 1.5px solid rgba(10,102,194,0.35);  }
.card-facebook  { background: rgba(24,119,242,0.12);  border: 1.5px solid rgba(24,119,242,0.35);  }
.card-instagram { background: rgba(220,39,67,0.10);   border: 1.5px solid rgba(220,39,67,0.30);   }
.card-project   { background: rgba(255,255,255,0.08); border: 1.5px solid rgba(255,255,255,0.25); }

.card-skydiving { background: rgba(100,180,255,0.10); border: 1.5px solid rgba(100,180,255,0.30); }
.card-marathon  { background: rgba(100,210,180,0.10); border: 1.5px solid rgba(100,210,180,0.30); }

.card-linkedin:hover  { background: rgba(10,102,194,0.22);  }
.card-facebook:hover  { background: rgba(24,119,242,0.22);  }
.card-instagram:hover { background: rgba(220,39,67,0.20);   }
.card-project:hover   { background: rgba(255,255,255,0.15); }
.card-skydiving:hover { background: rgba(100,180,255,0.22); }
.card-marathon:hover  { background: rgba(100,210,180,0.22); }

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg { width: 48px; height: 48px; }

.card-icon-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 12px;
}

.card-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.90);
  line-height: 1.35;
}

.hero-footer {
  position: relative;
  z-index: 2;
  margin-top: 3rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.32);
}

/* ── PROJECT PAGE ──────────────────────────────────────────────────────── */

.project-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(145deg, #193C6E 0%, #006ED2 100%);
  padding: 4rem 1.5rem;
}

.back-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2.5rem;
  transition: opacity 0.2s;
}
.back-link:hover { opacity: 0.7; }
.back-link svg { width: 16px; height: 16px; }

.project-inner {
  position: relative;
  z-index: 2;
  max-width: 560px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-frame {
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  margin-bottom: 2.5rem;
}

.logo-frame img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  border-radius: 1rem;
  display: block;
}

.eyebrow {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}

.project-title {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 4px 24px rgba(0,0,0,0.25);
  margin-bottom: 1rem;
}

.project-sub {
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(191,219,254,0.85);
  margin-bottom: 2.5rem;
}

.project-divider {
  width: 56px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #006ED2, rgba(0,110,210,0));
  margin: 0 auto 2.5rem;
}

.project-body {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.72);
  max-width: 500px;
}

.project-footer {
  margin-top: 4rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.28);
}

/* ── STATS GRID ─────────────────────────────────────────────────────────── */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  width: 100%;
}

.stat-card {
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.14);
  border-radius: 1rem;
  padding: 1.25rem 1rem;
  text-align: center;
  backdrop-filter: blur(16px);
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
  line-height: 1.15;
}

.stat-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
}

/* ── SITE HEADER NAV ────────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.5rem;
  background: rgba(25,60,110,0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header .brand {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-header nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.site-header nav a:hover { opacity: 0.65; }

.page-body-offset { padding-top: 5rem; }

/* ── LANGUAGE TOGGLE BUTTON ─────────────────────────────────────────────── */

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.90);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 6px;
  padding: 0.28rem 0.65rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.lang-btn:hover { background: rgba(255,255,255,0.24); opacity: 1; }

/* ── MOBILE HAMBURGER MENU ──────────────────────────────────────────────── */

.nav-desktop { display: flex; align-items: center; gap: 1.5rem; }

.nav-mobile {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.85);
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger .icon-x  { display: none; }
.hamburger .icon-bars { display: block; }
.hamburger.open .icon-x   { display: block; }
.hamburger.open .icon-bars { display: none; }

.mob-nav {
  display: none;
  position: fixed;
  top: 57px; left: 0; right: 0;
  z-index: 49;
  background: rgba(19,47,88,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.mob-nav.open { display: block; }
.mob-nav a {
  display: block;
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.15s;
}
.mob-nav a:last-child { border-bottom: none; }
.mob-nav a:hover { background: rgba(255,255,255,0.07); }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */

@media (max-width: 767px) {
  .site-header { padding: 1rem 1.25rem; }

  /* Nav: hide desktop links, show hamburger */
  .nav-desktop { display: none; }
  .nav-mobile  { display: flex; }

  /* About card: stack vertically */
  .about-flex {
    flex-direction: column !important;
    align-items: center !important;
  }
  .about-photo {
    align-self: center !important;
    margin: 0 auto !important;
  }

  /* BYL logo */
  .byl-logo { width: 200px !important; height: 200px !important; }

  /* 3-column grids → 1 column */
  .mob-grid-3 { grid-template-columns: 1fr !important; }

  /* Hero page padding */
  .hero-page > div[style] { padding-top: 4rem !important; }

  /* Stat cards: 2 columns on small screen */
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Gallery: 2 columns */
  .gallery { grid-template-columns: repeat(2, 1fr) !important; }
}
