/* ============================================================
   UzairTechGuide - styles.css ============================================================ */

/* -------------------------
   Root variables (colors, sizes)
   ------------------------- */
:root{
  --bg-dark: #0f1113;
  --panel-dark: #15181a;
  --text-light: #eef1f3;
  --muted-light: #bfc7cb;
  --accent: #ff7a2d;
  --accent-2: #1db954;
  --bg-light: #f6f7f8;
  --panel-light: #ffffff;
  --text-dark: #111214;
  --muted-dark: #6b6f73;
  --radius-sm: 10px;
  --radius-md: 14px;
  --shadow-dark: 0 8px 24px rgba(3,6,8,0.1);
  --shadow-light: 0 8px 24px rgba(16,24,32,0.06);
  --max-width: 1100px;
  --transition: 220ms cubic-bezier(.2,.9,.3,1);
  --safe-pad: 20px;
}

/* -------------------------
   Basic reset
   ------------------------- */
*{ box-sizing:border-box; margin:0; padding:0; }
html,body{ height:100%; }
body{
  background:var(--bg-dark);
  color:var(--text-light);
  font-family:"Roboto",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial;
  line-height:1.5;
  transition:background .35s,color .35s;
}

/* -------------------------
   LIGHT THEME
   ------------------------- */
body.light{
  background:var(--bg-light);
  color:var(--text-dark);
}
body.light .logo{ box-shadow:var(--shadow-light); }

/* -------------------------
   TOP CONTROLS
   ------------------------- */
.top-controls{
  position:fixed;
  top:calc(12px + env(safe-area-inset-top,0));
  right:12px;
  z-index:1200;
  display:flex;
  gap:10px;
  align-items:center;
  padding:0 6px;
}

.control-btn{
  height:44px;
  min-width:44px;
  padding:0 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  border:none;
  cursor:pointer;
  background:linear-gradient(180deg,rgba(255,255,255,0.04),rgba(255,255,255,0.02));
  color:inherit;
  transition:transform .18s ease,background .18s ease;
}
.control-btn:focus{
  outline:2px solid rgba(255,255,255,0.09);
  transform:translateY(-2px);
}
body.light .control-btn{
  background:linear-gradient(180deg,#fff,#fafafa);
  color:var(--text-dark);
  box-shadow:var(--shadow-dark);
}

/* ============================================================
   HAMBURGER BUTTON
   ============================================================ */
.hamburger{
  height:36px;
  min-width:36px;
  padding:6px 10px;
  display:flex;
  flex-direction:column;          /* vertical stacking */
  justify-content:space-between;  /* even spacing */
  align-items:center;
  border:none;
  background:transparent;
  border-radius:12px;
  cursor:pointer;
  transition:transform .18s;
}

/* The 3 bars */
.hamburger span{
  display:block;
  width:16px;
  height:2.5px;
  border-radius:2px;
  margin: 1.5px 0;
  background:var(--accent-2);
  transition:all .3s ease;
}

/* Unicode fallback */
.hamburger .hamburger-fallback{
  display:none;
  font-size:22px;
  color:var(--accent-2);
}

/* Animate to X */
.hamburger.open span:nth-child(1){
  transform:rotate(45deg) translate(1px,2px);
}
.hamburger.open span:nth-child(2){
  opacity:0;
}
.hamburger.open span:nth-child(3){
  transform:rotate(-45deg) translate(4px,-5px);
}

/* Light theme fix */
body.light .hamburger span{ background:var(--accent-2); }
body.light .hamburger .hamburger-fallback{ color:var(--text-dark); }

/* ============================================================
   SIDE NAV
   ============================================================ */
.side-nav{
  position:fixed;
  top:0;
  right:-320px;
  width:320px;
  height:100vh;
  background:var(--panel-dark);
  box-shadow:-8px 0 30px rgba(0,0,0,0.6);
  padding:72px 18px 22px;
  display:flex;
  flex-direction:column;
  gap:12px;
  transition:right .33s cubic-bezier(.2,.9,.25,1);
  z-index:1100;
}
body.light .side-nav{
  background:var(--panel-light);
  box-shadow:-6px 0 18px rgba(16,24,32,0.06);
  color:var(--text-dark);
}
.side-nav.open{ right:0; }

.side-close{
  position:absolute;
  left:10px;
  top:10px;
  background:transparent;
  border:none;
  color:inherit;
  font-size:28px;
  cursor:pointer;
}

.side-links a{
  display:block;
  padding:10px 12px;
  border-radius:10px;
  text-decoration:none;
  color:inherit;
  font-weight:600;
  transition:background .18s,color .18s;
}
.side-links a:hover{
  background:linear-gradient(90deg,rgba(255,255,255,0.03),rgba(255,255,255,0.01));
  color:var(--accent);
}
body.light .side-links a:hover{
  background:rgba(16,24,32,0.03);
  color:var(--accent-2);
}

.side-note{
  margin-top:auto;
  color:var(--muted-light);
  font-size:.9rem;
}
body.light .side-note{ color:var(--muted-dark); }

/* -------------------------
   Overlay
   ------------------------- */
.overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.45);
  z-index:1050;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s;
}
.overlay.show{
  opacity:1;
  pointer-events:auto;
}
body.light .overlay{ background:rgba(0,0,0,0.28); }

/* -------------------------
   HERO SECTION
   ------------------------- */
.hero{
  position:relative;
  min-height:66vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(28px,6vw,64px);
  text-align:center;
  overflow:hidden;
}
.hero-bg{
  position:absolute;
  inset:0;
  background-image:url('hero-bg.jpg');
  background-size:cover;
  background-position:center;
  filter:brightness(.45) contrast(.95);
  transform:scale(1.02);
  transition:transform .6s,filter .35s;
}
body.light .hero-bg{ filter:brightness(.9) contrast(.95) saturate(.9); }

.hero-inner{
  position:relative;
  z-index:2;
  max-width:var(--max-width);
  margin:auto;
  padding:20px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
}
.logo{ width:110px; border-radius:14px; box-shadow:var(--shadow-dark); }
body.light .logo{ box-shadow:var(--shadow-light); }

.site-title{
  font-family:'Montserrat',sans-serif;
  font-size:clamp(1.8rem,4.4vw,3.2rem);
  letter-spacing:-0.02em;
}
.lead{
  font-size:clamp(1rem,1.6vw,1.15rem);
  color:var(--muted-light);
  max-width:740px;
}
body.light .lead{ color:var(--muted-dark); }

.hero-cta{ display:flex; gap:12px; flex-wrap:wrap; justify-content:center; margin-top:6px; }
.btn{
  padding:12px 20px;
  border-radius:12px;
  font-weight:600;
  text-decoration:none;
  transition:transform .18s,box-shadow .18s,background .18s;
}
.primary{
  background:linear-gradient(180deg,var(--accent),#e36415);
  color:#fff;
  box-shadow:0 10px 30px rgba(0,0,0,0.35);
}
.primary:hover{ transform:translateY(-4px); }
.ghost{ background:rgba(255,255,255,0.06); color:var(--text-light); }
body.light .ghost{ background:rgba(16,24,32,0.04); color:var(--text-dark); }

/* -------------------------
   NAV TILES
   ------------------------- */
.nav-tiles{
  display:flex;
  gap:14px;
  justify-content:center;
  flex-wrap:wrap;
  padding:28px 20px;
  max-width:var(--max-width);
  margin:0 auto;
}
.tile{
  width:260px;
  min-height:120px;
  padding:18px;
  border-radius:14px;
  background:linear-gradient(180deg,rgba(255,255,255,0.02),rgba(255,255,255,0.01));
  color:inherit;
  text-decoration:none;
  display:flex;
  flex-direction:column;
  gap:8px;
  box-shadow:0 6px 20px rgba(0,0,0,0.35);
  transition:transform .22s,background .22s,box-shadow .22s;
}
.tile h3{ font-size:1.02rem; margin-bottom:4px; font-weight:700; }
.tile p{ color:var(--muted-light); font-size:.95rem; }
.tile:hover{
  transform:translateY(-6px);
  background:linear-gradient(180deg,rgba(255,122,45,0.95),rgba(255,122,45,0.85));
  color:#fff;
}
body.light .tile{
  background:var(--panel-light);
  color:var(--text-dark);
  box-shadow:var(--shadow-light);
  border:1px solid rgba(16,24,32,0.04);
}
body.light .tile p{ color:var(--muted-dark); }
body.light .tile:hover{
  background:linear-gradient(180deg,rgba(29,185,84,0.95),rgba(29,185,84,0.85));
  color:#fff;
}

/* -------------------------
   FEATURES GRID
   ------------------------- */
.section{ padding:54px 20px; }
.section-title{ font-family:'Montserrat',sans-serif; font-size:1.6rem; text-align:center; margin-bottom:20px; }
.grid{
  display:grid;
  gap:18px;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  max-width:var(--max-width);
  margin:0 auto;
}
.card{
  background:linear-gradient(180deg,rgba(255,255,255,0.02),rgba(255,255,255,0.01));
  padding:18px;
  border-radius:12px;
  box-shadow:0 6px 20px rgba(0,0,0,0.28);
  transition:transform .22s,background .22s;
}
.card h3{ margin-bottom:8px; }
.card p{ color:var(--muted-light); font-size:.95rem; }
.card:hover{
  transform:translateY(-6px);
  background:linear-gradient(180deg,rgba(29,185,84,0.95),rgba(29,185,84,0.85));
  color:#fff;
}
body.light .card{
  background:var(--panel-light);
  box-shadow:var(--shadow-light);
  color:var(--text-dark);
}
body.light .card p{ color:var(--muted-dark); }

/* -------------------------
   FOOTER
   ------------------------- */
.footer{
  padding:28px 20px;
  text-align:center;
  color:var(--muted-light);
}
.footer-inner{
  max-width:var(--max-width);
  margin:0 auto;
  display:flex;
  justify-content:center;
  gap:20px;
  align-items:center;
  flex-wrap:wrap;
}
body.light .footer{ color:var(--muted-dark); }

/* -------------------------
   Reveal animation
   ------------------------- */
.reveal{ opacity:0; transform:translateY(14px); transition:opacity .6s ease,transform .6s ease; }
.reveal.show{ opacity:1; transform:translateY(0); }

/* -------------------------
   Accessibility
   ------------------------- */
a:focus,button:focus{ outline:3px solid rgba(29,185,84,0.18); outline-offset:3px; }

/* -------------------------
   Responsive tweaks
   ------------------------- */
@media (max-width:900px){
  .nav-tiles{ gap:12px; }
  .tile{ width:calc(50% - 12px); }
}
@media (max-width:560px){
  .hero-inner{ padding:10px; }
  .logo{ width:88px; }
  .site-title{ font-size:1.6rem; }
  .hero{ min-height:60vh; }
  .tile{ width:100%; }
}
