:root{
  --bg1: #030612;
  --bg2: #071a3a;
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);

  --btn: rgba(36, 95, 190, 0.85);
  --btn-border: rgba(255,255,255,0.18);
  --btn-hover: rgba(36, 95, 190, 1);
}

*{ box-sizing: border-box; }

html{
  scroll-padding-top: 90px;
}

html, body{
  height: 100%;
}

body{
  margin:0;
  padding-bottom: clamp(280px, 40vh, 560px);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);

  background:
    radial-gradient(1200px 600px at 50% 20%, rgba(40,110,255,0.30), transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg2) 55%, #0a0c12);

  overflow-x:hidden;
}

/* ===== STARFIELD CANVAS ===== */
#starfield{
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ===== TOP RIGHT (Moon + Dog) ===== */
.top-right{
  position: fixed;
  top: 28px;
  right: 28px;
  width: 260px;
  height: 200px;
  z-index: 20;
  pointer-events:none;
}

.top-right::before{
  content:"";
  position:absolute;
  top:-40px;
  right:-40px;
  width:260px;
  height:260px;
  background: radial-gradient(circle, rgba(170,200,255,0.15), transparent 70%);
}

.moon{
  position:absolute;
  top:0;
  right:0;
  width:250px;
  height:auto;
  filter:
    drop-shadow(0 0 20px rgba(255,255,255,0.20))
    drop-shadow(0 0 60px rgba(160,190,255,0.20))
    drop-shadow(0 0 120px rgba(255,255,255,0.08));
}

.dog{
  position:absolute;
  right:95px;
  top:95px;
  width:140px;
  height:auto;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.6));
  animation: float 6s ease-in-out infinite;
}

/* ===== HERO ===== */
.hero{
  position: relative;
  height: 100vh;
  overflow: hidden;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 20px;
  padding-bottom: clamp(160px, 24vh, 260px);
  z-index: 1;
}

.hero h1{
  margin:0;
  font-weight:800;
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing:-0.02em;
  text-shadow: 0 10px 35px rgba(0,0,0,0.55);
}

.hero p{
  margin:16px 0 0;
  font-size: clamp(16px, 2vw, 22px);
  color: var(--muted);
  text-shadow: 0 10px 35px rgba(0,0,0,0.55);
}

/* Smooth fade from hero into sections */
.hero::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:220px;
  z-index:1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.20) 35%,
    rgba(0,0,0,0.45) 70%,
    rgba(0,0,0,0.65) 100%
  );
  pointer-events:none;
}

/* ===== MOUNTAINS ===== */
.mountains{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  height: clamp(320px, 42vh, 560px);

  z-index: 0; /* behind sections */

  background-image: url("assets/Mountains.jpeg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 25%;

  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to top, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);

  pointer-events: none;
}


/* ===== HERO BUTTONS ===== */
.actions{
  position:absolute;
  left:0;
  right:0;
  bottom:28px;
  z-index:2;
  display:flex;
  gap:18px;
  justify-content:center;
  padding:0 18px;
  flex-wrap:wrap;
}

.action-btn{
  min-width:260px;
  text-align:center;
  text-decoration:none;
  color: rgba(255,255,255,0.95);
  font-weight:800;
  letter-spacing:0.03em;
  padding:18px 20px;
  border-radius:10px;
  background: var(--btn);
  border:1px solid var(--btn-border);
  box-shadow: 0 16px 45px rgba(0,0,0,0.45);
}

.action-btn:hover{
  background: var(--btn-hover);
  transform: translateY(-1px);
}

/* ===== NAV BASE ===== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-wrap{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
}

/* Desktop links */
.nav-links{
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Hamburger default: hidden on desktop */
.nav-toggle{
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  cursor: pointer;

  /* important: keeps the bars from “floating” somewhere else */
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

/* The three bars */
.nav-toggle .bar{
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.92);
  border-radius: 2px;
}

/* ===== MOBILE BREAKPOINT ===== */
@media (max-width: 768px){
  /* show hamburger, hide inline links */
  .nav-toggle{ display: inline-flex; }
  .nav-links{ 
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 12px;
    left: 12px;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(3, 6, 18, 0.92);
    backdrop-filter: blur(10px);
  }

  /* show menu when opened */
  .nav-links.is-open{ display: flex; }
}

/* Optional: prevent any stray “white line” pseudo-element in the header/nav */
.site-header::before,
.site-header::after,
.nav-wrap::before,
.nav-wrap::after{
  content: none !important;
}


/* ===== SECTIONS ===== */
.section{
  position:relative;
  backdrop-filter: blur(5px);
  z-index:5;
  padding:90px 0;
  background: rgba(0,0,0,0.30);
  border-top:1px solid rgba(255,255,255,0.08);
}

.section-inner{
  width:min(1120px, calc(100% - 40px));
  margin:0 auto;
}

.section h2{
  margin:0 0 18px;
  font-size:28px;
}

.section-text{
  color: var(--muted);
  max-width:70ch;
  line-height:1.7;
}

.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}

.card{
  background: rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.10);
  border-radius:16px;
  padding:16px;
}

.card h3{
  margin:0 0 10px;
  font-size:16px;
}

.card p{
  margin:0;
  color: var(--muted);
  line-height:1.6;
}

.contact-row{
  display:flex;
  gap:10px;
  margin-top:16px;
  flex-wrap:wrap;
}

.contact-pill{
  padding:12px 14px;
  border-radius:999px;
  text-decoration:none;
  color:white;
  background: rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.12);
}

.contact-pill:hover{
  background: rgba(255,255,255,0.08);
}

/* ===== Social Contact Cards ===== */

.social-row{
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.social-card{
  display:flex;
  align-items:center;
  gap:16px;

  padding:18px 20px;
  border-radius:16px;

  text-decoration:none;
  color: var(--text);

  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);

  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
}

.social-card:hover{
  transform: translateY(-4px);
  background: rgba(36,95,190,0.18);
  border-color: rgba(120,170,255,0.45);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}

.social-icon{
  width: 48px;
  height: 48px;
  border-radius: 14px;

  display:flex;
  align-items:center;
  justify-content:center;

  background: rgba(36,95,190,0.85);
  color:white;

  flex-shrink:0;
}

.social-icon svg{
  width: 22px;
  height: 22px;
}

.social-title{
  font-weight: 700;
  margin-bottom: 4px;
}

.social-sub{
  font-size: 14px;
  color: var(--muted);
}

/* --- NAV LAYOUT --- */
.site-header { position: sticky; top: 0; z-index: 1000; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.nav { display: flex; align-items: center; gap: 18px; }

/* Hamburger button default: hidden on desktop */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.92);
  border-radius: 2px;
}

/* --- MOBILE BEHAVIOR --- */
@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }

  /* hide the nav by default on mobile */
  .nav {
    position: absolute;
    top: 64px;           /* adjust to your header height */
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 16px;
    background: rgba(3, 6, 18, 0.92);
    backdrop-filter: blur(10px);
  }

  /* show when opened */
  .site-header.menu-open .nav { display: flex; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 820px){
  .cards{ grid-template-columns:1fr; }
}

@media (max-width:720px){
  .top-right{ top:16px; right:16px; width:200px; height:160px; }
  .moon{ width:110px; }
  .dog{ width:92px; right:60px; top:75px; }
  .mountains{ height:58vh; }
  .action-btn{ min-width:220px; }
}

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

/* ===============================
   Floating Glass Capsule Nav
   =============================== */

.site-header{
  position: fixed;
  top: 22px;
  left: 0;
  right: 0;
  z-index: 9999;

  display: flex;
  justify-content: center;
  pointer-events: none; /* prevents header from blocking clicks */
}

.nav-wrap{
  pointer-events: auto; /* re-enable inside */

  width: min(1100px, 92%);
  height: 68px;
  padding: 0 22px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-radius: 999px;

  background: rgba(10, 20, 45, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 8px 40px rgba(0,0,0,0.45),
    inset 0 0 20px rgba(255,255,255,0.03);
}


/* Desktop links */
.nav-links{
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a{
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  transition: all 0.25s ease;
}

.nav-links a:hover{
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}

.nav-cta{
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(36,95,190,0.75);
  transition: all 0.25s ease;
}

.nav-cta:hover{
  background: rgba(36,95,190,1);
  transform: translateY(-1px);
}


/* Hamburger hidden on desktop */
.nav-toggle{
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
  cursor: pointer;

  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle .bar{
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(255,255,255,0.92);
  border-radius: 999px;
}

/* Mobile behavior */
@media (max-width: 768px){

  .nav-toggle{
    display: inline-flex;
  }

  .nav-links{
    display: none !important;

    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);

    width: 90%;
    max-width: 400px;

    flex-direction: column;
    gap: 10px;
    padding: 16px;

    border-radius: 20px;

    background: rgba(8, 18, 40, 0.75);
    backdrop-filter: blur(20px);

    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  }

  .nav-links.open{
    display: flex !important;
  }
}


/* If any stray pseudo-element was drawing a line */
.site-header::before,
.site-header::after,
.nav-wrap::before,
.nav-wrap::after{
  content: none !important;
}
