/* ============================================================
   Sky Forged Labs — site.css
   Root site shell styles. Project microsites use their own
   style.css inside their subfolder.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,300&display=swap');

/* ── Variables ── */
:root {
  --bg:           #0e1117;
  --surface:      #161b26;
  --surface2:     #1e2535;
  --border:       rgba(255,255,255,0.08);
  --text:         #e8ecf4;
  --text-muted:   #7a8499;
  --accent:       #f5a623;
  --accent-dim:   rgba(245,166,35,0.12);
  --accent2:      #4fc3f7;
  --muted-line:   rgba(255,255,255,0.18);
  --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --radius:       12px;
  --radius-lg:    20px;
  --transition:   0.22s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }

/* ── Background Grid ── */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(245,166,35,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,166,35,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
body > *:not(.bg-grid) { position: relative; z-index: 1; }

/* ── Header ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 2.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(14,17,23,0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 9998;
}

.logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-img { height: 144px; width: auto; display: block; transition: opacity var(--transition); }
.logo:hover .logo-img { opacity: 0.85; }

/* ── Desktop Nav ── */
.site-nav { display: flex; align-items: center; gap: 0.25rem; }

.nav-link {
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--surface2); }
.nav-link.active { color: var(--accent); background: var(--accent-dim); }

/* ── Projects Dropdown ── */
.nav-dropdown { position: relative; }

.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dropdown-caret {
  font-size: 0.7rem;
  transition: transform var(--transition);
  display: inline-block;
}
.nav-dropdown.open .dropdown-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  overflow: hidden;
  animation: dropIn 0.18s ease both;
  z-index: 9999;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  cursor: pointer;
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: var(--surface2); }
.dropdown-item--coming-soon { opacity: 0.45; cursor: default; }
.dropdown-item--coming-soon:hover { background: transparent; }

.dropdown-item-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }

.dropdown-item-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.15rem;
}
.dropdown-item-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  background: var(--accent);
  color: #0e1117;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary:hover {
  background: #ffc04d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,166,35,0.28);
}
.btn-arrow { font-size: 1rem; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  background: transparent;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ── Badge ── */
.landing-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ── Footer ── */
.site-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.site-footer a { transition: var(--transition); }
.site-footer a:hover { color: var(--accent); }

/* ── Inline Link ── */
.inline-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; transition: var(--transition); }
.inline-link:hover { opacity: 0.75; }

/* ── Accent ── */
.accent-text { color: var(--accent); }

/* ============================================================
   HOME PAGE
   ============================================================ */

.home-main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2.5rem 5rem;
}

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: center;
  padding: 5rem 0 4rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}

.hero-description {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Tech Stack Card */
.tech-stack-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  animation: floatIn 0.6s ease both;
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ts-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.ts-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ts-tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.ts-tag--primary {
  background: var(--accent-dim);
  border-color: rgba(245,166,35,0.25);
  color: var(--accent);
}

/* ── Projects Section ── */
.projects-section {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
}
.project-card:not(.project-card--placeholder):hover {
  border-color: rgba(245,166,35,0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.project-card--placeholder {
  opacity: 0.45;
  cursor: default;
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.project-icon { font-size: 1.5rem; }

.project-status {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}
.project-status--live {
  background: rgba(74,222,128,0.12);
  color: #4ade80;
  border: 1px solid rgba(74,222,128,0.25);
}
.project-status--soon {
  background: var(--surface2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

.project-description {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1.25rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.project-tag {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
}

.project-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
  transition: var(--transition);
}
.project-card:hover .project-link { opacity: 0.75; }

/* ============================================================
   COMING SOON PAGES (about, resume, contact)
   ============================================================ */

.coming-soon-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2.5rem;
}

.coming-soon-container {
  text-align: center;
  max-width: 480px;
}

.coming-soon-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.coming-soon-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.coming-soon-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ============================================================
   HAMBURGER MENU
   ============================================================ */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  z-index: 200;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-dropdown {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0 0 0 var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  z-index: 9999;
  min-width: 200px;
  animation: dropIn 0.2s ease both;
}
.mobile-dropdown.open { display: block; }
.mobile-dropdown a {
  display: block;
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.mobile-dropdown a:last-child { border-bottom: none; }
.mobile-dropdown a:hover { background: var(--surface2); color: var(--text); }
.mobile-dropdown a.active { color: var(--accent); background: var(--accent-dim); }

.mobile-section-label {
  padding: 0.5rem 1.25rem 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}

.mobile-project-link {
  display: block;
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.mobile-project-link:hover { background: var(--surface2); color: var(--text); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 3.5rem 0 3rem; }
  .hero-visual { display: none; }
}

@media (max-width: 600px) {
  .home-main { padding: 0 1.5rem 4rem; }
  .site-header { padding: 0.75rem 1.5rem; }
  .site-footer { padding: 1rem 1.5rem; }
  .site-nav { display: none; }
  .hamburger { display: flex; }
}
