/* ============================================================
   MOKSH TIWARI PORTFOLIO — STYLE.CSS
   White background · Black text · Premium UI
   ============================================================ */

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

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --grey: #f5f5f5;
  --grey2: #e8e8e8;
  --grey-text: #6b6b6b;
  --accent: #0a0a0a;
  --font-head: 'Outfit', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--black);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.1s var(--ease), width 0.3s var(--ease), height 0.3s var(--ease);
}
.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--black);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: left 0.12s var(--ease), top 0.12s var(--ease), width 0.3s var(--ease), height 0.3s var(--ease);
}
body:has(a:hover) .cursor,
body:has(button:hover) .cursor {
  width: 16px;
  height: 16px;
}
body:has(a:hover) .cursor-follower,
body:has(button:hover) .cursor-follower {
  width: 56px;
  height: 56px;
}



/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 0 2rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  border-color: var(--grey2);
  box-shadow: 0 2px 24px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo-img {
  height: 44px;
  width: 44px;
  object-fit: contain;
  border-radius: 50%;
  transition: transform 0.3s var(--ease-spring);
}
.nav-logo-img:hover {
  transform: scale(1.08);
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grey-text);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--black);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--black); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--black);
  color: var(--white);
  padding: 0.55rem 1.4rem;
  border-radius: 99px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}
.nav-cta:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 99px;
  transition: transform 0.3s, opacity 0.3s;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem 0 1.5rem;
  border-top: 1px solid var(--grey2);
  gap: 0.5rem;
}
.mobile-menu a {
  padding: 0.6rem 0;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  font-size: 1.1rem;
}

/* ============================================================
   UTILITY
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-text);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 1.5rem;
}
.section-title em {
  font-style: normal;
  position: relative;
  display: inline-block;
}
.section-title.centered { text-align: center; }
.section-sub {
  color: var(--grey-text);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  padding: 0.9rem 2rem;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}
.btn-primary:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--black);
  padding: 0.9rem 2rem;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid var(--grey2);
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-spring);
}
.btn-secondary:hover {
  border-color: var(--black);
  background: var(--grey);
  transform: scale(1.04) translateY(-2px);
}
.btn-primary.big {
  padding: 1.1rem 2.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  padding-top: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding-left: clamp(1.5rem, 5vw, 6rem);
  padding-right: clamp(1.5rem, 5vw, 6rem);
  position: relative;
  overflow: hidden;
}
.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-head);
  font-size: clamp(8rem, 22vw, 18rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0,0,0,0.02);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: -0.05em;
  user-select: none;
  z-index: 1;
}
.hero-content {
  max-width: 600px;
  flex: 1;
  position: relative;
  z-index: 10;
}
.hero-tag {
  display: inline-block;
  background: var(--grey);
  border: 1px solid var(--grey2);
  padding: 0.4rem 1rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-text);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--black);
  margin-bottom: 1.5rem;
}
.hero-name {
  display: block;
  position: relative;
  background: linear-gradient(135deg, #0a0a0a 0%, #404040 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--grey-text);
  margin-bottom: 2.5rem;
  max-width: 480px;
  line-height: 1.7;
}
.hero-sub strong { color: var(--black); }
.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  flex-shrink: 0;
  z-index: 15;
}
/* Hero Photo Wrap */
.hero-photo-wrap {
  position: relative;
  width: min(400px, 80vw);
  height: min(520px, 100vw);
  z-index: 20;
  transition: transform 0.5s var(--ease-spring);
}
.hero-photo-wrap:hover {
  transform: translateY(-10px) rotate(1deg);
}
.hero-photo-bg {
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  background: var(--grey);
  border: 1.5px solid var(--grey2);
  border-radius: 30px;
  z-index: -1;
  transition: transform 0.5s var(--ease-spring);
}
.hero-photo-wrap:hover .hero-photo-bg {
  transform: translate(10px, 10px);
}
.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 30px;
  border: 1.5px solid var(--grey2);
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
  background: var(--white);
}

/* Floating badges */
.floating-badge {
  position: absolute;
  background: var(--black);
  color: var(--white);
  border-radius: 99px;
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  animation: floatBadge 3s ease-in-out infinite alternate;
  z-index: 30;
}
.badge1 { top: -16px;  right: -24px; animation-duration: 2.8s; }
.badge2 { bottom: 50px; left: -40px; animation-duration: 3.4s; animation-delay: 0.5s; }
.badge3 { bottom: -16px; right: 20px; animation-duration: 3.1s; animation-delay: 1s; }

@keyframes floatBadge {
  from { transform: translateY(0px); }
  to   { transform: translateY(-10px); }
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--grey-text);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 5;
}
.scroll-line {
  width: 1.5px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--grey-text));
  animation: scrollLine 1.5s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-wrap {
  background: var(--black);
  overflow: hidden;
  padding: 1.2rem 0;
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: 7rem 0;
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-top: 1rem;
}
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p {
  color: var(--grey-text);
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
  line-height: 1.8;
}
.about-text p strong { color: var(--black); }
.about-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--grey2);
}
.stat { text-align: left; }
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--black);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-text);
  margin-top: 0.3rem;
}
.about-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.about-quote-card {
  background: var(--black);
  color: var(--white);
  border-radius: 20px;
  padding: 2rem 2rem 1.8rem;
  position: relative;
  overflow: hidden;
}
.quote-mark {
  font-family: 'Georgia', serif;
  font-size: 5rem;
  line-height: 1;
  color: rgba(255,255,255,0.15);
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
}
.quote-text {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}
.quote-author {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  font-style: italic;
}
.about-school-card {
  background: var(--grey);
  border: 1px solid var(--grey2);
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.school-icon { font-size: 2rem; }
.school-name {
  font-weight: 700;
  color: var(--black);
  font-size: 0.95rem;
  line-height: 1.3;
}
.school-detail {
  font-size: 0.82rem;
  color: var(--grey-text);
  margin-top: 0.2rem;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills {
  padding: 7rem 0;
  background: var(--grey);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.skill-card {
  background: var(--white);
  border: 1px solid var(--grey2);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
  cursor: default;
}
.skill-card::before {
  content: attr(data-index);
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--grey2);
}
.skill-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
.skill-card:hover .skill-icon {
  transform: scale(1.1);
  background: var(--black);
  color: var(--white);
}
.skill-icon {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--grey-text);
  background: var(--grey);
  border: 1px solid var(--grey2);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-bottom: 1rem;
  transition: transform 0.3s var(--ease-spring), background 0.3s, color 0.3s;
}
.skill-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 0.7rem;
}
.skill-card p {
  font-size: 0.88rem;
  color: var(--grey-text);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}
.skill-tag {
  display: inline-block;
  background: var(--grey);
  border: 1px solid var(--grey2);
  padding: 0.25rem 0.7rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-text);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: 7rem 0;
  background: var(--white);
}
.services-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.service-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--grey2);
  cursor: default;
  transition: padding-left 0.3s var(--ease);
  position: relative;
}
.service-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--black);
  border-radius: 99px;
  transform: scaleY(0);
  transition: transform 0.3s var(--ease);
  transform-origin: center;
}
.service-item:hover { padding-left: 1rem; }
.service-item:hover::before { transform: scaleY(1); }
.service-num {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--grey-text);
  width: 36px;
  flex-shrink: 0;
}
.service-body { flex: 1; }
.service-body h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 0.3rem;
}
.service-body p {
  font-size: 0.88rem;
  color: var(--grey-text);
}
.service-arrow {
  font-size: 1.3rem;
  color: var(--grey-text);
  transition: transform 0.3s var(--ease), color 0.3s;
}
.service-item:hover .service-arrow {
  transform: translateX(6px);
  color: var(--black);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 7rem 0;
  background: var(--grey);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--grey2);
  border-radius: 20px;
  padding: 2.2rem;
  text-align: center;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}
.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.09);
}
.contact-icon {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-text);
  background: var(--grey);
  border: 1px solid var(--grey2);
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  margin-bottom: 1rem;
}
.contact-card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--black);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.contact-link {
  font-weight: 600;
  color: var(--black);
  font-size: 0.95rem;
  text-decoration: none;
  display: block;
  margin-bottom: 0.3rem;
}
a.contact-link:hover { text-decoration: underline; }
.contact-card p {
  font-size: 0.85rem;
  color: var(--grey-text);
}
.cta-bar {
  background: var(--black);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.cta-bar p {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.cta-bar .btn-primary {
  background: var(--white);
  color: var(--black);
}
.cta-bar .btn-primary:hover {
  box-shadow: 0 12px 40px rgba(255,255,255,0.2);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--black);
  padding: 2.5rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.footer-logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
  margin-bottom: 0.3rem;
}
.footer p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: left;
    padding-top: 100px;
    padding-bottom: 4rem;
    min-height: auto;
    align-items: flex-start;
  }
  .hero-content { max-width: 100%; }
  .hero-btns { justify-content: flex-start; }
  .hero-visual { 
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 2rem;
  }
  .hero-photo-wrap {
    width: min(320px, 90vw);
    height: 380px;
  }
  .hero-photo-bg {
    top: 15px;
    left: 15px;
    right: -15px;
    bottom: -15px;
  }
  .hero-sub { margin: 0 auto 2rem; }
  .hero-bg-text { font-size: 28vw; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu.open { display: flex; }
  .skills-grid { grid-template-columns: 1fr; }
  .about-stats { gap: 1.5rem; }
  .hero-scroll { display: none; }
  .hero-title { font-size: clamp(2.8rem, 12vw, 4rem); }
  .section-title { font-size: clamp(2rem, 8vw, 2.8rem); }
  body { cursor: auto; }
  .cursor, .cursor-follower { display: none; }
}
