/* =========================================
   LOCHAN PORTFOLIO
   MAIN STYLESHEET
========================================= */


/* ---------- VARIABLES ---------- */

:root {

  --background: #080808;

  --surface: #111111;

  --surface-light: #171717;

  --text: #f4f1eb;

  --muted: #9d9a94;

  --border: rgba(255,255,255,0.13);

  --accent: #d8ff45;

  --max-width: 1200px;

}


/* ---------- RESET ---------- */

* {

  margin: 0;

  padding: 0;

  box-sizing: border-box;

}


html {

  scroll-behavior: smooth;

}


body {

  background: var(--background);

  color: var(--text);

  font-family: "Inter", sans-serif;

  overflow-x: hidden;

}


::selection {

  background: var(--accent);

  color: black;

}


a {

  color: inherit;

  text-decoration: none;

}


/* ---------- NAVBAR ---------- */

.navbar {

  height: 82px;

  max-width: var(--max-width);

  margin: auto;

  padding: 0 28px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  position: fixed;

  top: 0;

  left: 50%;

  transform: translateX(-50%);

  width: 100%;

  z-index: 100;

  transition: 0.3s ease;

}


.navbar.scrolled {

  background: rgba(8,8,8,0.85);

  backdrop-filter: blur(18px);

  border-bottom: 1px solid var(--border);

}


.logo {

  font-family: "Space Grotesk", sans-serif;

  font-size: 22px;

  font-weight: 700;

  letter-spacing: -0.05em;

}


.logo span {

  color: var(--accent);

}


.nav-links {

  display: flex;

  gap: 32px;

}


.nav-links a {

  color: var(--muted);

  font-size: 13px;

  transition: 0.25s;

}


.nav-links a:hover {

  color: var(--text);

}


.menu-btn {

  display: none;

  background: none;

  border: none;

  color: white;

  font-size: 25px;

  cursor: pointer;

}


/* ---------- HERO ---------- */

.hero {

  min-height: 100vh;

  max-width: var(--max-width);

  margin: auto;

  padding: 150px 28px 90px;

  display: grid;

  grid-template-columns: 1.2fr 0.8fr;

  align-items: center;

  gap: 40px;

}


.eyebrow {

  color: var(--muted);

  font-size: 11px;

  letter-spacing: 0.18em;

  font-weight: 700;

}


.hero h1 {

  font-family: "Space Grotesk", sans-serif;

  font-size: clamp(52px, 7vw, 94px);

  line-height: 0.95;

  letter-spacing: -0.065em;

  margin: 24px 0;

}


.hero h1 span {

  color: var(--accent);

}


.hero-text {

  max-width: 580px;

  color: var(--muted);

  font-size: 17px;

  line-height: 1.8;

}


.hero-text strong {

  color: var(--text);

}


.hero-buttons {

  display: flex;

  gap: 12px;

  margin-top: 34px;

}


.btn {

  padding: 14px 20px;

  border: 1px solid var(--border);

  font-size: 13px;

  font-weight: 700;

  transition: 0.25s;

}


.btn-primary {

  background: var(--accent);

  color: black;

  border-color: var(--accent);

}


.btn-primary:hover {

  transform: translateY(-4px);

}


.btn-secondary:hover {

  border-color: white;

}


/* ---------- HERO VISUAL ---------- */

.hero-visual {

  min-height: 470px;

  display: grid;

  place-items: center;

  position: relative;

}


.profile-circle {

  width: 245px;

  height: 245px;

  border-radius: 50%;

  display: grid;

  place-items: center;

  background: linear-gradient(
    145deg,
    #292929,
    #080808
  );

  border: 1px solid var(--border);

  box-shadow:
    0 0 100px rgba(216,255,69,0.08);

  position: relative;

  z-index: 2;

}


.profile-circle span {

  font-family: "Space Grotesk";

  font-size: 72px;

  font-weight: 700;

  letter-spacing: -0.08em;

}


.orbit {

  position: absolute;

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

  border-radius: 50%;

  animation: spin 18s linear infinite;

}


.orbit-one {

  width: 350px;

  height: 350px;

}


.orbit-two {

  width: 450px;

  height: 450px;

  animation-direction: reverse;

  animation-duration: 28s;

}


.hero-visual p {

  position: absolute;

  bottom: 10px;

  color: var(--muted);

  font-size: 9px;

  letter-spacing: 0.25em;

}


@keyframes spin {

  from {

    transform: rotate(0deg);

  }

  to {

    transform: rotate(360deg);

  }

}


/* ---------- TICKER ---------- */

.ticker {

  border-top: 1px solid var(--border);

  border-bottom: 1px solid var(--border);

  overflow: hidden;

  white-space: nowrap;

  padding: 17px 0;

  color: var(--muted);

  font-size: 11px;

  letter-spacing: 0.16em;

}


.ticker div {

  animation: ticker 25s linear infinite;

}


@keyframes ticker {

  to {

    transform: translateX(-45%);

  }

}


/* ---------- SECTIONS ---------- */

.section {

  max-width: var(--max-width);

  margin: auto;

  padding: 140px 28px;

}


.section-number {

  color: var(--muted);

  font-size: 11px;

  letter-spacing: 0.18em;

  font-weight: 700;

}


.two-column {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 90px;

  margin-top: 55px;

}


h2 {

  font-family: "Space Grotesk", sans-serif;

  font-size: clamp(44px, 6vw, 75px);

  line-height: 0.98;

  letter-spacing: -0.055em;

}


h2 span {

  color: var(--accent);

}


/* ---------- ABOUT ---------- */

.about-copy {

  color: var(--muted);

  line-height: 1.8;

  font-size: 16px;

}


.about-copy p + p {

  margin-top: 20px;

}


.stats {

  display: flex;

  gap: 45px;

  margin-top: 45px;

}


.stats div {

  display: flex;

  flex-direction: column;

  gap: 7px;

}


.stats strong {

  color: var(--text);

  font-size: 35px;

  font-family: "Space Grotesk";

}


.stats small {

  color: var(--muted);

  font-size: 9px;

  letter-spacing: 0.15em;

}


/* ---------- SKILL CARDS ---------- */

.cards {

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 1px;

  background: var(--border);

  margin-top: 55px;

}


.card {

  background: var(--background);

  min-height: 300px;

  padding: 34px;

  position: relative;

  transition: 0.35s ease;

}


.card:hover {

  background: var(--surface);

  transform: translateY(-5px);

}


.card > span {

  color: var(--muted);

  font-size: 11px;

}


.card h3 {

  font-family: "Space Grotesk";

  font-size: 31px;

  margin: 65px 0 15px;

}


.card p {

  color: var(--muted);

  line-height: 1.7;

  max-width: 440px;

}


.card b {

  position: absolute;

  bottom: 32px;

  right: 34px;

  color: var(--accent);

  font-size: 9px;

  letter-spacing: 0.18em;

}


/* ---------- MY LAW ---------- */

.law-section {

  margin-top: 55px;

  min-height: 470px;

  border: 1px solid var(--border);

  padding: 65px;

  display: grid;

  grid-template-columns: 0.7fr 1.3fr;

  align-items: center;

  gap: 60px;

  background:
    linear-gradient(
      130deg,
      #111111,
      #090909
    );

}


.law-logo {

  font-family: "Space Grotesk";

  font-size: clamp(55px, 8vw, 105px);

  font-weight: 700;

  line-height: 0.78;

  letter-spacing: -0.08em;

}


.law-logo span {

  color: var(--accent);

}


.law-content p:not(.eyebrow) {

  color: var(--muted);

  line-height: 1.8;

  max-width: 590px;

  margin-top: 25px;

}


.text-link {

  display: inline-block;

  margin-top: 30px;

  border-bottom: 1px solid var(--accent);

  padding-bottom: 5px;

  color: var(--accent);

  font-size: 13px;

  font-weight: 700;

}


/* ---------- CONTACT ---------- */

.contact-content {

  margin-top: 55px;

}


.contact-content h2 {

  margin-top: 22px;

}


.contact-links {

  display: flex;

  flex-wrap: wrap;

  gap: 14px 30px;

  margin-top: 45px;

}


.contact-links a {

  color: var(--muted);

  border-bottom: 1px solid var(--border);

  padding-bottom: 8px;

  transition: 0.25s;

}


.contact-links a:hover {

  color: var(--accent);

  border-color: var(--accent);

}


/* ---------- FOOTER ---------- */

footer {

  border-top: 1px solid var(--border);

  max-width: var(--max-width);

  margin: auto;

  padding: 25px 28px 35px;

  display: flex;

  justify-content: space-between;

  color: var(--muted);

  font-size: 10px;

  letter-spacing: 0.08em;

}


/* ---------- SCROLL ANIMATION ---------- */

.reveal {

  opacity: 0;

  transform: translateY(25px);

  transition:
    opacity 0.8s ease,
    transform 0.8s ease;

}


.reveal.visible {

  opacity: 1;

  transform: translateY(0);

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 760px) {


  .navbar {

    height: 70px;

  }


  .menu-btn {

    display: block;

  }


  .nav-links {

    display: none;

    position: absolute;

    top: 70px;

    left: 0;

    width: 100%;

    padding: 25px 28px;

    background: rgba(8,8,8,0.97);

    border-bottom: 1px solid var(--border);

    flex-direction: column;

    gap: 20px;

  }


  .nav-links.open {

    display: flex;

  }


  .hero {

    grid-template-columns: 1fr;

    padding-top: 130px;

  }


  .hero-visual {

    min-height: 350px;

  }


  .orbit-one {

    width: 270px;

    height: 270px;

  }


  .orbit-two {

    width: 340px;

    height: 340px;

  }


  .profile-circle {

    width: 190px;

    height: 190px;

  }


  .profile-circle span {

    font-size: 54px;

  }


  .two-column,
  .law-section {

    grid-template-columns: 1fr;

    gap: 45px;

  }


  .cards {

    grid-template-columns: 1fr;

  }


  .section {

    padding: 100px 22px;

  }


  .law-section {

    padding: 38px 25px;

  }


  .stats {

    gap: 25px;

  }


  footer {

    padding-left: 22px;

    padding-right: 22px;

    gap: 15px;

    flex-direction: column;

  }

}