/* ============================= */
/* MINIMAL BLACK / WHITE / GRAY THEME */
/* Palette: #222222, #7B7B7B, #F8F8F8, #FFFFFF */
/* ============================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #222222;
  --secondary: #7B7B7B;
  --tertiary: #F8F8F8;
  --white: #FFFFFF;
  --line: rgba(34, 34, 34, 0.12);
  --line-soft: rgba(34, 34, 34, 0.08);
  --shadow: 0 28px 90px rgba(34, 34, 34, 0.10);
  --radius-lg: 32px;
  --radius-md: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  background: var(--tertiary);
  color: var(--primary);
  overflow-x: hidden;
  cursor: default;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 15% 12%, rgba(34, 34, 34, 0.07), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(123, 123, 123, 0.10), transparent 34%),
    linear-gradient(180deg, #ffffff, #f8f8f8 48%, #ffffff);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(34,34,34,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,34,34,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* Cursor */
.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 999999;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 9px;
  height: 9px;
  background: var(--primary);
  box-shadow: 0 0 18px rgba(34,34,34,0.35);
}

.cursor-outline {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(34,34,34,0.45);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.cursor-outline.cursor-hover {
  width: 70px;
  height: 70px;
  border-color: rgba(34,34,34,0.18);
  background: rgba(34,34,34,0.055);
}

/* Floating Navbar */
.navbar {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 36px));
  z-index: 999;
  border-radius: 999px;
  background: rgba(255,255,255,0.74);
  backdrop-filter: blur(24px);
  border: 1px solid var(--line-soft);
  box-shadow: 0 20px 70px rgba(34,34,34,0.10);
}

.navbar-scrolled {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 24px 80px rgba(34,34,34,0.14);
  border-color: var(--line);
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: var(--primary);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -1px;
}

.logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  position: relative;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  opacity: 0.74;
  transition: 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: 0.25s ease;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
}

/* Layout */
.section-padding {
  padding: 120px 24px;
}

.hero {
  min-height: 100vh;
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: 160px 0 90px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: center;
}

.eyebrow,
.tagline,
.startup-tag {
  display: inline-block;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin-bottom: 22px;
}

.hero h1 {
  color: var(--primary);
  font-size: clamp(4.6rem, 10vw, 9.4rem);
  line-height: 0.88;
  font-weight: 300;
  letter-spacing: -8px;
  margin-bottom: 34px;
}

.hero h1 span {
  color: var(--primary);
}

.hero-text {
  max-width: 610px;
  color: var(--secondary);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.85;
  margin-bottom: 34px;
}

.hero-buttons,
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: 0.3s ease;
}

.primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 18px 50px rgba(34,34,34,0.16);
}

.primary:hover {
  transform: translateY(-4px);
  background: #000000;
}

.secondary {
  color: var(--primary);
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
}

.secondary:hover {
  transform: translateY(-4px);
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-right {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-panel {
  position: relative;
  width: min(460px, 100%);
  height: 570px;
  border-radius: 38px;
  overflow: hidden;
  background: var(--primary);
  box-shadow: 0 38px 100px rgba(34,34,34,0.20);
  border: 1px solid rgba(34,34,34,0.16);
}

.image-panel::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 28px;
  z-index: 2;
  pointer-events: none;
}

.image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transform: scale(1.02);
}

.side-label {
  position: absolute;
  left: 0;
  top: 80px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
}

.mini-card {
  position: absolute;
  min-width: 190px;
  padding: 20px 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(34, 34, 34, 0.12);
  backdrop-filter: blur(24px);
  box-shadow:
    0 25px 70px rgba(34, 34, 34, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: 0.35s ease;
  overflow: hidden;
  animation: cardFloat 4s ease-in-out infinite;
}

.mini-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.75),
    transparent
  );
  transform: translateX(-100%);
  transition: 0.7s ease;
}

.mini-card:hover::before {
  transform: translateX(100%);
}

.mini-card:hover {
  transform: translateY(-10px) scale(1.04);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 35px 90px rgba(34, 34, 34, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.mini-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #222222;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.mini-card p {
  color: #222222;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.mini-card-one {
  right: -35px;
  top: 110px;
}

.mini-card-two {
  left: -35px;
  bottom: 100px;
  animation-delay: 0.6s;
}

@keyframes cardFloat {
  0%, 100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -12px;
  }
}

/* Section Headings */
.section-head {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto 52px;
  display: grid;
  grid-template-columns: 0.62fr 1fr;
  gap: 60px;
  align-items: start;
}

.section-head span,
.venture-label {
  color: var(--secondary);
  font-size: 14px;
  font-weight: 700;
}

.section-head h2 {
  color: var(--primary);
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -4px;
}

.section-subtitle {
  width: min(790px, calc(100% - 48px));
  margin: -25px auto 48px;
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.8;
}

/* Cards */
.about-card,
.skill-card,
.work-card,
.venture-card,
.contact-card {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 22px 80px rgba(34,34,34,0.07);
  backdrop-filter: blur(20px);
}

.about-card {
  width: min(900px, calc(100% - 48px));
  margin: auto;
  padding: 44px;
}

.about-card p {
  color: var(--secondary);
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 18px;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.about-card strong {
  color: var(--primary);
}

.skills-grid,
.work-grid {
  width: min(1120px, calc(100% - 48px));
  margin: auto;
  display: grid;
  gap: 22px;
}

.skills-grid {
  grid-template-columns: repeat(4, 1fr);
}

.work-grid {
  grid-template-columns: repeat(2, 1fr);
}

.skill-card,
.work-card {
  padding: 32px;
  transition: 0.35s ease;
}

.skill-card:hover,
.work-card:hover,
.about-card:hover,
.venture-card:hover,
.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: rgba(34,34,34,0.20);
}

.skill-card svg,
.work-icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
  margin-bottom: 22px;
}

.skill-card h3,
.work-card h3 {
  color: var(--primary);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 14px;
}

.skill-card p,
.work-card p {
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.75;
}

.work-icon {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: var(--tertiary);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.work-icon svg {
  margin-bottom: 0;
}

/* Skill Marquee */
.skill-marquee {
  width: min(1120px, calc(100% - 48px));
  margin: -20px auto 42px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px);
  padding: 13px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: marqueeMove 22s linear infinite;
}

.marquee-track span {
  white-space: nowrap;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  background: var(--tertiary);
  border: 1px solid var(--line-soft);
}

.skill-marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Venture */
.venture-card {
  width: min(980px, calc(100% - 48px));
  margin: auto;
  padding: 48px;
  display: grid;
  grid-template-columns: 0.8fr 1fr auto;
  gap: 36px;
  align-items: center;
}

.venture-card h2 {
  color: var(--primary);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -4px;
  margin-top: 12px;
}

.venture-card p {
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.8;
}

/* Contact */
.contact-section {
  text-align: center;
}

.contact-section .section-head {
  display: block;
  text-align: center;
}

.contact-section .section-head h2 {
  max-width: 860px;
  margin: 14px auto 0;
}

.contact-section p {
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.contact-buttons {
  justify-content: center;
}

footer {
  text-align: center;
  padding: 34px 20px;
  border-top: 1px solid var(--line);
  color: var(--secondary);
}

/* Contact Page */
.contact-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.contact-page {
  width: 100%;
  max-width: 650px;
  text-align: center;
}

.back-link {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--primary);
  font-weight: 700;
}

.contact-card {
  padding: 44px;
}

.contact-img {
  width: 155px;
  height: 155px;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(100%);
  border: 1px solid var(--line);
  margin-bottom: 24px;
}

.contact-tag {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--tertiary);
  border: 1px solid var(--line);
  color: var(--secondary);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.contact-card h1 {
  color: var(--primary);
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 300;
  letter-spacing: -4px;
  line-height: 1;
  margin-bottom: 18px;
}

.contact-card p {
  color: var(--secondary);
  line-height: 1.8;
  margin-bottom: 30px;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  color: var(--primary);
  font-weight: 800;
  background: var(--white);
  border: 1px solid var(--line);
  transition: 0.3s ease;
}

.contact-list a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-4px);
}

.contact-list svg {
  width: 21px;
  height: 21px;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  filter: blur(8px);
  transition: 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Animations */
@keyframes floatMini {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* Responsive */
@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 55px;
    text-align: center;
  }

  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .side-label,
  .mini-card {
    display: none;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .venture-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  body {
    cursor: auto;
  }

  .cursor-dot,
  .cursor-outline {
    display: none;
  }

  .navbar {
    top: 14px;
    width: calc(100% - 24px);
    border-radius: 24px;
  }

  .menu-btn {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255,255,255,0.96);
    border: 1px solid var(--line);
    box-shadow: 0 24px 80px rgba(34,34,34,0.14);
  }

  .nav-links.active {
    display: flex;
  }

  .hero {
    width: min(100% - 36px, 1220px);
    padding-top: 138px;
  }

  .hero h1 {
    font-size: clamp(4.2rem, 18vw, 7rem);
    letter-spacing: -5px;
  }

  .image-panel {
    height: 470px;
  }

  .section-padding {
    padding: 90px 0;
  }

  .section-head {
    width: min(100% - 36px, 1100px);
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-head h2 {
    letter-spacing: -3px;
  }

  .about-card,
  .skills-grid,
  .work-grid,
  .skill-marquee,
  .venture-card,
  .section-subtitle {
    width: min(100% - 36px, 1120px);
  }

  .skills-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .about-card,
  .skill-card,
  .work-card,
  .venture-card,
  .contact-card {
    padding: 28px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    letter-spacing: -4px;
  }

  .image-panel {
    height: 420px;
    border-radius: 30px;
  }

  .contact-card h1 {
    letter-spacing: -3px;
  }
}
@media (max-width: 1020px) {
  .mini-card {
    display: none;
  }
}
/* ============================= */
/* EXTRA PAGES: PROJECTS + CERTIFICATIONS */
/* ============================= */

.page-hero {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 170px 0 70px;
}

.page-hero h1 {
  max-width: 900px;
  color: var(--primary);
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.92;
  font-weight: 300;
  letter-spacing: -7px;
  margin-bottom: 34px;
}

.page-hero h1 span {
  display: block;
  color: var(--primary);
}

.page-hero-text {
  max-width: 720px;
  color: var(--secondary);
  font-size: 17px;
  line-height: 1.85;
  font-weight: 500;
}

.page-section {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 120px;
}

/* Projects Page */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  min-height: 360px;
  padding: 34px;
  border-radius: 32px;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  box-shadow: 0 22px 80px rgba(34,34,34,0.07);
  backdrop-filter: blur(20px);
  transition: 0.35s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: rgba(34,34,34,0.2);
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 55px;
}

.project-top span {
  color: var(--secondary);
  font-size: 15px;
  font-weight: 800;
}

.project-top svg {
  width: 34px;
  height: 34px;
  color: var(--primary);
}

.project-card h3 {
  color: var(--primary);
  font-size: 34px;
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}

.project-card p {
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.project-tags span {
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--tertiary);
  border: 1px solid var(--line-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.project-link {
  display: inline-block;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  transition: 0.25s ease;
}

.project-link:hover {
  transform: translateX(6px);
}

/* Certifications Page */

.cert-grid {
  display: grid;
  gap: 22px;
}

.cert-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 30px;
  border-radius: 32px;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  box-shadow: 0 22px 80px rgba(34,34,34,0.07);
  backdrop-filter: blur(20px);
  transition: 0.35s ease;
}

.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(34,34,34,0.2);
}

.cert-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: var(--tertiary);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-icon svg {
  width: 34px;
  height: 34px;
  color: var(--primary);
}

.cert-category {
  display: inline-block;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.cert-card h3 {
  color: var(--primary);
  font-size: 28px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -1px;
  margin-bottom: 10px;
}

.cert-card p {
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.75;
}

/* Active Navbar Link Feel */

.nav-links a[href="projects.html"],
.nav-links a[href="certifications.html"] {
  font-weight: 700;
}

/* Responsive for Extra Pages */

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .cert-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .cert-card .project-link {
    margin-top: 6px;
  }
}

@media (max-width: 768px) {
  .page-hero {
    width: min(100% - 36px, 1120px);
    padding: 145px 0 55px;
  }

  .page-hero h1 {
    font-size: clamp(3.7rem, 16vw, 6.5rem);
    letter-spacing: -4.5px;
  }

  .page-section {
    width: min(100% - 36px, 1120px);
    padding-bottom: 90px;
  }

  .project-card,
  .cert-card {
    padding: 26px;
    border-radius: 26px;
  }

  .project-card h3 {
    font-size: 30px;
  }

  .cert-card h3 {
    font-size: 25px;
  }
}
.empty-page-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 52px;
  text-align: center;
  border-radius: 32px;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  box-shadow: 0 22px 80px rgba(34,34,34,0.07);
  backdrop-filter: blur(20px);
}

.empty-page-card h2 {
  color: var(--primary);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: -3px;
  margin-bottom: 16px;
}

.empty-page-card p {
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.8;
}
/* Template polish */
.cta-section { padding-top: 40px; }
.empty-page-card {
  padding: 44px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  box-shadow: 0 22px 80px rgba(34,34,34,0.07);
  backdrop-filter: blur(20px);
}
.empty-page-card h2 { font-size: 34px; letter-spacing: -1px; margin-bottom: 12px; }
.empty-page-card p { color: var(--secondary); line-height: 1.8; }
