/* ═══════════════════════════════
   global.css — JayRangani.in
   ═══════════════════════════════ */

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

:root {
  --primary: #6c63ff;
  --accent:  #00c9ff;
  --white:   #ffffff;
  --text:    rgba(255,255,255,0.75);
  --muted:   rgba(255,255,255,0.3);
  --dim:     rgba(255,255,255,0.08);
  --border:  rgba(255,255,255,0.07);
  --nav-h:   60px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: #000;
  color: var(--text);
  min-height: 100vh;
}

/* ── GRID BG ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

/* ════ NAV ════ */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 1000;
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.logo:hover { color: #fff; }

.nav-links {
  list-style: none;
  display: flex; gap: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  padding: 0.4rem 0.9rem;
  transition: color 0.3s;
  border-left: 1px solid var(--border);
}

.nav-links a:last-child {
  border-right: 1px solid var(--border);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.02);
}

/* Contact CTA */
.nav-cta {
  color: rgba(255,255,255,0.55) !important;
  background: transparent !important;
}

.nav-cta:hover {
  color: #fff !important;
  background: rgba(108,99,255,0.12) !important;
}

/* ── BURGER ── */
.burger {
  display: none;
  flex-direction: column; gap: 4px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
}

.burger span {
  display: block; width: 20px; height: 1px;
  background: rgba(255,255,255,0.5);
  transition: all 0.3s;
}

.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(3.5px, 3.5px);
}
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(3.5px, -3.5px);
}

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(0,0,0,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  display: flex; flex-direction: column;
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease;
}

.mobile-menu.open { max-height: 400px; }

.mobile-menu a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  padding: 0.9rem 5%;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s;
}

.mobile-menu a:hover { color: #fff; padding-left: 6%; }

/* ════ MAIN ════ */
main {
  position: relative; z-index: 1;
  padding-top: var(--nav-h);
}

/* ════ PAGE HEADER ════ */
.page-header {
  padding: 4rem 5% 2.5rem;
  border-bottom: 1px solid var(--border);
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(108,99,255,0.7);
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-title span { color: #fff; font-weight: 500; }

.section-sub {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
  max-width: 540px;
}

/* ════ CONTENT ════ */
.page-content {
  padding: 2.5rem 5% 6rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative; z-index: 1;
}

/* ════ BUTTONS ════ */
.btn {
  padding: 0.6rem 1.4rem;
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  display: inline-flex;
  align-items: center; gap: 0.4rem;
  font-family: inherit;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: rgba(108,99,255,0.15);
  color: rgba(108,99,255,0.9);
  border: 1px solid rgba(108,99,255,0.25);
}

.btn-primary:hover {
  background: rgba(108,99,255,0.22);
  border-color: rgba(108,99,255,0.4);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.02);
}

/* ════ TAGS ════ */
.tag {
  font-size: 0.65rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.18rem 0.55rem;
  border-radius: 2px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.tag.accent {
  color: rgba(108,99,255,0.8);
  border-color: rgba(108,99,255,0.2);
  background: rgba(108,99,255,0.04);
}

/* ════ GRID CARDS LAYOUT ════ */
.grid-layout {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.grid-cell {
  background: #000;
  transition: background 0.3s;
}

.grid-cell:hover { background: rgba(255,255,255,0.018); }

/* ════ PAGE NAV ROW ════ */
.page-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* ════ FOOTER ════ */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 1.5rem 5%;
  background: #000;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.18);
  font-weight: 300;
}

.footer-links {
  display: flex; gap: 1.5rem;
}

.footer-links a {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.18);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 300;
}

.footer-links a:hover { color: rgba(255,255,255,0.55); }

/* ════ FADE UP ════ */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ════ RESPONSIVE ════ */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .page-header { padding: 3rem 5% 2rem; }
  .page-content { padding: 2rem 5% 4rem; }
}