@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Syne:wght@800&display=swap');

/* ==========================================
   DESIGN VARIABLES & SYSTEM (MINIMALIST)
   ========================================== */
:root {
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Strict Black & White Palette */
  --bg-color: #ffffff;
  --text-main: #000000;
  --text-secondary: #555555;
  --border-color: #000000;
  
  --accent-color: #ff6b00; /* Subtle orange accent only for video visor references/highlights */
  --transition-speed: 0.3s;
}

/* Base resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

html, body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, textarea {
  font-family: inherit;
  outline: none;
  border: none;
  background: none;
}

/* Custom Minimalist Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #ffffff;
}
::-webkit-scrollbar-thumb {
  background: #000000;
  border-radius: 0;
}

/* ==========================================
   LAYOUT
   ========================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 8rem 0;
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  margin-bottom: 5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 2px solid #000;
}

.section-header-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-secondary);
}

.section-tag::before {
  content: '';
  width: 20px;
  height: 1.5px;
  background: var(--text-secondary);
  display: inline-block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 4vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -2px;
}

.section-num {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 800;
  color: rgba(0,0,0,0.05);
  line-height: 1;
  letter-spacing: -3px;
  user-select: none;
  white-space: nowrap;
}

/* ==========================================
   NAVIGATION BAR
   ========================================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-speed);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.logo span {
  color: var(--accent-color);
}

.nav-menu {
  position: relative;
  display: flex;
  align-items: center;
  height: 46px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  padding: 0 8px;
  gap: 0;
  list-style: none;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-menu li {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--text-secondary);
  position: relative;
  z-index: 10;
  transition: color var(--transition-speed);
  text-decoration: none;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

/* Spotlight Navbar Lighting Layers */
.nav-spotlight-hover {
  pointer-events: none;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  height: 100%;
  z-index: 1;
  opacity: 0;
  transform: translate(-50%, 0);
  transition: opacity 0.25s ease;
  background: radial-gradient(
    70px circle at center 100%,
    rgba(0, 0, 0, 0.05) 0%,
    transparent 60%
  );
}

.nav-spotlight-active {
  pointer-events: none;
  position: absolute;
  bottom: 0;
  height: 2px;
  width: 70px;
  z-index: 2;
  transform: translateX(-50%);
  transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: radial-gradient(
    35px circle at center 0%,
    rgba(0, 0, 0, 0.95) 0%,
    transparent 100%
  );
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-btn {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: opacity 0.2s;
}

.nav-btn:hover {
  opacity: 0.7;
}

.nav-btn-black {
  background: #000000;
  color: #ffffff;
  padding: 0.7rem 1.5rem;
  border-radius: 0;
  font-weight: 700;
}

.nav-btn-black:hover {
  background: #333333;
  opacity: 1;
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
}

/* ==========================================
   HERO SECTION (EXACT REFERENCE COLLAGE)
   ========================================== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: #ffffff;
  padding: 4rem 0 2rem 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

/* Video Layer - Full-Bleed Background Video */
.hero-video-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* Top alignment to preserve head/hair */
  filter: brightness(1.06) contrast(1.06);
}

.hero .container {
  max-width: 1400px; /* Widened content area to push text columns to the far edges */
}

/* Foreground Grid Overlay */
.hero-foreground {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1.1fr; /* 3-column layout pushing text away from the center */
  gap: 2.5rem;
  align-items: stretch;
}

.hero-center-spacer {
  display: block;
  pointer-events: none;
}

/* Left Hero Column */
.hero-left-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 480px;
  padding-bottom: 1rem;
}

.hero-heading-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-main-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.2vw, 2.8rem); /* Slightly reduced to fit the Syne wide letter forms on left column */
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -2px;
  color: var(--text-main);
  max-width: 440px; /* Expanded max-width as the container itself is wider */
}

.hero-main-title span {
  display: block;
}

.hero-subtitle-text {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 440px; /* Aligned with title bounds */
  line-height: 1.4;
}

/* Start Today Pill Button */
.btn-black-pill {
  background: #000000;
  color: #ffffff;
  border-radius: 100px;
  padding: 0.8rem 1rem 0.8rem 2.2rem;
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color 0.2s, transform 0.2s;
  border: 1px solid #000000;
}

.btn-black-pill:hover {
  background: #222222;
  transform: translateY(-2px);
}

.btn-black-pill:active {
  transform: translateY(1px);
}

.btn-arrow-circle {
  background: #ffffff;
  color: #000000;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* Left Bottom bio */
.hero-left-bottom {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 440px; /* Aligned with title bounds */
}

.hero-bio-para {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.5;
}

.hero-socials-flat {
  display: flex;
  gap: 1.8rem;
}

.hero-social-link {
  color: #000000;
  font-size: 1.4rem;
  transition: opacity 0.2s;
}

.hero-social-link:hover {
  opacity: 0.6;
}

/* Right Hero Column */
.hero-right-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start; /* Left-aligned inside the right column, matching reference */
  text-align: left;
  min-height: 480px;
}

.hero-stat-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 440px; /* Expanded for balanced side margins */
  margin-bottom: 2rem;
}

.hero-stat-block:last-child {
  margin-bottom: 0;
  margin-top: auto;
}

.hero-stat-num {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem); /* Fluid typographic scaling, matching the Syne style */
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -1px;
}

.hero-stat-lbl {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Ticker Marquee (Exact Reference Styling) */
.ticker-container {
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  padding: 2.2rem 0;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-top: 4rem;
  z-index: 3;
}

.ticker-wrap {
  display: flex;
  width: 100%;
}

.ticker-track {
  display: flex;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
  gap: 4rem;
  padding-right: 4rem;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

/* Exact Ticker Shape Icons from Reference */
.t-icon-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #000000;
}

.t-icon-hollow {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2.5px solid #000000;
}

.t-icon-bars {
  display: flex;
  gap: 3px;
}

.t-icon-bars span {
  width: 3.5px;
  height: 13px;
  background-color: #000000;
}

.t-icon-double-circle {
  display: flex;
  gap: 3px;
}

.t-icon-double-circle span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #000000;
}

.t-icon-slanted {
  display: flex;
  gap: 3px;
  transform: skewX(-20deg);
}

.t-icon-slanted span {
  width: 4px;
  height: 13px;
  background-color: #000000;
}

/* ==========================================
   ABOUT & EDUCATION SECTION
   ========================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.about-summary {
  font-size: 1.45rem;
  color: var(--text-main);
  line-height: 1.65;
  margin-bottom: 2.5rem;
  font-weight: 400;
  letter-spacing: -0.2px;
}

.about-details {
  color: var(--text-secondary);
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-left: 3px solid #000;
  padding-left: 1.8rem;
}

.edu-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.edu-item {
  padding: 2.5rem;
  position: relative;
  border: 1px solid rgba(0,0,0,0.1);
  border-top: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.edu-item:first-child {
  border-top: 1px solid rgba(0,0,0,0.1);
}

.edu-item:hover {
  background: #f9f9f9;
  box-shadow: 4px 0 0 0 #000 inset;
}

.edu-item::before {
  display: none;
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.6rem;
  gap: 1rem;
}

.edu-school {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.edu-duration {
  font-size: 0.78rem;
  font-weight: 700;
  border: 1.5px solid #000;
  padding: 0.25rem 0.9rem;
  letter-spacing: 1px;
  white-space: nowrap;
  text-transform: uppercase;
}

.edu-degree {
  font-weight: 500;
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.edu-bullets {
  list-style: none;
  padding-left: 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.edu-bullets li {
  padding-left: 1.2rem;
  position: relative;
}

.edu-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ==========================================
   WORK EXPERIENCE SECTION
   ========================================== */
.experience-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 5rem;
}

.experience-tabs {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(0,0,0,0.1);
}

.tab-btn {
  width: 100%;
  padding: 1.5rem 1.8rem;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1rem;
  color: rgba(0,0,0,0.35);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  border-left: 3px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  letter-spacing: -0.3px;
}

.tab-btn:last-child {
  border-bottom: none;
}

.tab-btn:hover {
  color: #000000;
  background: #f5f5f5;
  border-left-color: rgba(0,0,0,0.3);
}

.tab-btn.active {
  color: #000000;
  background: #f9f9f9;
  border-left-color: #000000;
  font-size: 1.05rem;
}

.tab-btn i {
  opacity: 0;
  transition: all var(--transition-speed);
}

.tab-btn.active i {
  opacity: 1;
  transform: translateX(5px);
}

.job-pane {
  display: none;
  flex-direction: column;
  gap: 2.5rem;
  animation: fadeIn 0.4s ease;
}

.job-pane.active {
  display: flex;
}

.job-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 2px solid #000000;
}

.job-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -1px;
}

.job-company {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 0.6rem;
}

.job-duration {
  font-weight: 700;
  font-size: 0.78rem;
  border: 1.5px solid #000000;
  padding: 0.35rem 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.job-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.job-bullets li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.55;
  border-left: 2px solid rgba(0,0,0,0.08);
  padding: 0.6rem 0 0.6rem 1.5rem;
  transition: border-color 0.2s;
}

.job-bullets li:hover {
  border-left-color: #000;
}

.job-bullets li::before {
  display: none;
}

/* ==========================================
   PROJECTS SECTION
   ========================================== */
.projects-filter {
  display: flex;
  gap: 0;
  margin-bottom: 5rem;
  border: 1.5px solid #000;
  width: fit-content;
}

.filter-btn {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  padding: 0.7rem 1.8rem;
  border-right: 1.5px solid #000;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
}

.filter-btn:last-child { border-right: none; }

.filter-btn:hover {
  background: #f0f0f0;
}

.filter-btn.active {
  background: #000000;
  color: #ffffff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2px;
  border: 1.5px solid #000;
}

.project-card {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  transition: background 0.3s ease, color 0.3s ease;
  border-right: 1.5px solid #000;
  border-bottom: 1.5px solid #000;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: #000;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover::after {
  transform: scaleX(1);
}

.project-card:hover {
  background: #000000;
  color: #ffffff;
}

.project-icon-box {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(0,0,0,0.15);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.project-card:hover .project-icon-box {
  color: #ffffff;
  border-color: rgba(255,255,255,0.25);
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  line-height: 1;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  flex-grow: 1;
  line-height: 1.6;
}

.project-card:hover .project-desc {
  color: rgba(255,255,255,0.7);
}

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

.project-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(0,0,0,0.25);
  letter-spacing: 0.8px;
  transition: border-color 0.3s;
}

.project-card:hover .project-tag {
  border-color: rgba(255,255,255,0.3);
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  transition: border-color 0.3s;
}

.project-card:hover .project-footer {
  border-top-color: rgba(255,255,255,0.15);
}

.project-link {
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
}

.project-link i {
  transition: transform var(--transition-speed);
}

.project-card:hover .project-link i {
  transform: translateX(5px);
}

/* ==========================================
   SKILLS SECTION
   ========================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px;
  border: 1.5px solid #000;
}

.skill-category {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.5rem;
  border-right: 1.5px solid #000;
  border-bottom: 1.5px solid #000;
  transition: background 0.3s ease;
}

.skill-category:hover {
  background: #f8f8f8;
}

.skill-cat-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.3px;
  padding-bottom: 1rem;
  border-bottom: 2px solid #000000;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.skill-item-flat {
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: padding-left 0.2s ease;
}

.skill-item-flat:last-child {
  border-bottom: none;
}

.skill-item-flat:hover {
  padding-left: 0.5rem;
}

.skill-item-flat::before {
  content: '';
  width: 5px;
  height: 5px;
  background: #000000;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ==========================================
   CONTACT & CV PREVIEWER
   ========================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1.5px solid #000;
}

.contact-info-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.6rem 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  transition: background 0.2s;
}

.contact-info-row:last-child { border-bottom: none; }

.contact-info-row:hover {
  background: #f7f7f7;
}

.contact-info-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
}

.contact-info-value {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

a.contact-info-value[href^="mailto:"] {
  text-transform: lowercase;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
}

.flat-input {
  width: 100%;
  padding: 1rem 0;
  border-bottom: 1.5px solid rgba(0,0,0,0.2);
  color: #000000;
  font-size: 1.05rem;
  background: transparent;
  transition: border-bottom-color 0.25s ease;
  font-family: var(--font-body);
}

.flat-input::placeholder {
  color: rgba(0,0,0,0.25);
}

.flat-input:focus {
  border-bottom-color: #000;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

.btn-black-rect {
  background: #000000;
  color: #ffffff;
  padding: 1.1rem 2.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color 0.2s, transform 0.2s;
  border: 1.5px solid #000000;
}

.btn-black-rect:hover {
  background: #222;
  transform: translateY(-2px);
}

/* PDF Resume Viewer */
.contact-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border: 1px solid #000000;
  padding: 3rem;
}

.cv-viewer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cv-viewer-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cv-frame-wrapper {
  width: 100%;
  border: 1px solid #000000;
  background: #ffffff;
}

.cv-frame-wrapper iframe {
  width: 100%;
  height: 500px;
  border: none;
}

.cv-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  height: 500px;
  text-align: center;
  padding: 2rem;
}

.cv-fallback-icon {
  font-size: 3.5rem;
}

/* ==========================================
   FOOTER SECTION
   ========================================== */
footer {
  padding: 5rem 0;
  background: #ffffff;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.copyright {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #000000;
  color: #ffffff;
  padding: 1.2rem 2rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast i {
  color: var(--accent-color);
  font-size: 1.2rem;
}

.toast-msg {
  font-weight: 600;
  font-size: 0.95rem;
}

/* ==========================================
   KEYFRAME ANIMATIONS
   ========================================== */
@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

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

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 1200px) {
  .hero-main-title {
    font-size: 4rem;
  }
}

@media (max-width: 992px) {
  .hero-video-bg {
    width: 100%;
    left: 0;
    transform: none;
  }
  .hero-center-spacer {
    display: none;
  }
  .hero-foreground {
    grid-template-columns: 1fr;
    gap: 6rem;
  }
  .hero-left-col {
    min-height: auto;
    gap: 3rem;
  }
  .hero-right-col {
    min-height: auto;
    align-items: flex-start;
    text-align: left;
  }
  .hero-stat-block {
    margin-bottom: 3rem;
  }
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 5rem;
  }
  
  .experience-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .experience-tabs {
    flex-direction: row;
    overflow-x: auto;
    border-bottom: 1px solid #000000;
    padding-bottom: 0.5rem;
  }
  
  .tab-btn {
    white-space: nowrap;
    width: auto;
    border-bottom: none;
    padding: 1rem 1.5rem;
  }
  
  .tab-btn.active {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 6rem 0;
  }
  .section-title {
    font-size: 2.8rem;
  }
  .nav-menu {
    position: fixed;
    top: 90px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 90px);
    background: #ffffff;
    flex-direction: column;
    padding: 3rem 2rem;
    transition: left 0.4s ease;
    border-top: 1px solid #000000;
    align-items: center;
    gap: 2rem;
  }
  .nav-menu.active {
    left: 0;
  }
  .hamburger {
    display: flex;
  }
  .hero-video-bg {
    opacity: 0.35; /* Fade background video on mobile for legibility */
  }
  #cvNavBtn {
    display: none; /* Hide desktop CV link on mobile header to prevent logo overlap */
  }
  .hero-main-title {
    font-size: 2.2rem; /* Reduced from 3.2rem to fit mobile viewports without horizontal clipping */
  }
  .edu-header, .job-title-row {
    flex-direction: column;
    gap: 0.8rem;
  }
  .edu-duration, .job-duration {
    align-self: flex-start;
  }
}

/* ==========================================
   3D SCROLL & VIEWPORT REVEAL STYLES
   ========================================== */
.reveal-3d {
  opacity: 0;
  transform: perspective(1200px) rotateX(8deg) translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top center;
  will-change: transform, opacity;
}

.reveal-3d.reveal-active {
  opacity: 1;
  transform: perspective(1200px) rotateX(0deg) translateY(0);
}

/* ==========================================
   3D HERO → SECTION TRANSITION BREAK
   ========================================== */
.section-break-3d {
  position: relative;
  width: 100%;
  height: 90px;
  overflow: hidden;
  background: #ffffff;
  z-index: 10;
}

/* The main perspective plane that creates the 3D floor grid illusion */
.break-perspective-plane {
  position: absolute;
  inset: 0;
  perspective: 600px;
  perspective-origin: 50% 0%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Infinite 3D grid that recedes into the horizon */
.break-grid {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotateX(65deg);
  transform-origin: bottom center;
  width: 240%;
  height: 220px;
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.08) 1px, transparent 1px);
  background-size: 80px 60px;
  animation: gridScroll 3s linear infinite;
}

@keyframes gridScroll {
  from { background-position: 0 0; }
  to   { background-position: 0 60px; }
}

/* Floating particles that drift upward at the break */
.break-particle {
  position: absolute;
  top: 50%;
  left: var(--x, 50%);
  width: var(--size, 5px);
  height: var(--size, 5px);
  background: #000000;
  border-radius: 50%;
  animation: particleRise 2.4s ease-in-out var(--delay, 0s) infinite;
  opacity: 0;
}

@keyframes particleRise {
  0%   { transform: translateY(40px) scale(0);   opacity: 0; }
  20%  { opacity: 0.5; }
  70%  { opacity: 0.15; }
  100% { transform: translateY(-60px) scale(0.4); opacity: 0; }
}

/* Centered scroll badge container with flanking lines */
.break-scroll-badge {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: -5px; /* pull up from the center so grid shows below */
}

/* Cute running motorcycle rider animation */
.rider-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: riderDrive 2.4s ease-in-out infinite;
  transform-origin: bottom center;
}

.rider-svg {
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.05));
}

/* Fast engine rumble vibration */
.motorcycle-body {
  animation: bikeRumble 0.08s ease-in-out infinite;
}

/* Fast infinite wheel spin */
.spinning-wheel {
  animation: wheelSpin 0.3s linear infinite;
}

@keyframes riderDrive {
  0%, 100% {
    transform: translateX(-4px) rotate(-0.5deg);
  }
  50% {
    transform: translateX(4px) rotate(0.5deg);
  }
}

@keyframes bikeRumble {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1.2px);
  }
}

@keyframes wheelSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.break-scroll-line {
  width: 48px;
  height: 1px;
  background: rgba(0,0,0,0.2);
}

/* Bottom gradient fade that blends cleanly into white background */
.break-fade-out {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to bottom, transparent, #ffffff);
  pointer-events: none;
  z-index: 5;
}

/* Also add a top fade to blend with the hero section */
.section-break-3d::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to bottom, #ffffff, transparent);
  z-index: 5;
  pointer-events: none;
}

@media (max-width: 768px) {
  .section-break-3d {
    height: 60px;
  }
}

/* ==========================================
   MOBILE-CENTRIC PREMIUM OPTIMIZATIONS
   ========================================== */
@media (max-width: 1024px) {
  /* Smooth Glassmorphism Mobile Menu */
  .nav-menu {
    position: fixed !important;
    top: 90px !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100vh - 90px) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    flex-direction: column !important;
    padding: 3.5rem 2rem !important;
    opacity: 0 !important;
    transform: translateY(-15px) !important;
    pointer-events: none !important;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    align-items: center !important;
    gap: 2.2rem !important;
    z-index: 999 !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
  }
  
  .nav-menu.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }

  .nav-link {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #000000 !important;
    padding: 0.8rem !important;
    transition: color 0.25s ease !important;
  }

  .nav-link:active {
    color: #555555 !important;
  }
  
  /* Mobile Experience Section Layout */
  .experience-layout {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  /* Horizontal Pill Tabs for Mobile Experience */
  .experience-tabs {
    display: flex !important;
    gap: 0.7rem !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    padding-bottom: 0.8rem !important;
    border-bottom: none !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  
  .experience-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .tab-btn {
    border: 1.5px solid #000000 !important;
    border-radius: 30px !important;
    padding: 0.55rem 1.25rem !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    background: transparent !important;
    color: #000000 !important;
    white-space: nowrap !important;
    width: auto !important;
    transition: all 0.25s ease !important;
  }

  .tab-btn.active {
    background: #000000 !important;
    color: #ffffff !important;
    font-size: 0.88rem !important;
    border-color: #000000 !important;
  }

  /* Project Grid Mobile Improvements (Card Layout) */
  .projects-grid {
    grid-template-columns: 1fr !important;
    border: none !important;
    gap: 1.2rem !important;
  }

  .project-card {
    border: 1.5px solid #000000 !important;
    border-radius: 14px !important;
    padding: 2.2rem !important;
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02) !important;
    transition: transform 0.2s ease, background-color 0.2s ease !important;
  }
  
  .project-card::after {
    display: none !important;
  }

  .project-card:active {
    transform: scale(0.98) !important;
    background: #fafafa !important;
  }

  /* Skills Grid Mobile Improvements */
  .skills-grid {
    grid-template-columns: 1fr !important;
    border: none !important;
    gap: 1.2rem !important;
  }

  .skill-category {
    border: 1.5px solid #000000 !important;
    border-radius: 14px !important;
    padding: 2rem !important;
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02) !important;
  }

  /* Stat Blocks Grid Alignment */
  .hero-right-col {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
    width: 100% !important;
    margin-top: 2rem !important;
  }

  .hero-stat-block {
    margin-bottom: 0 !important;
    border-top: 1.5px solid #000000 !important;
    padding-top: 1.5rem !important;
  }

  .hero-stat-num {
    font-size: 1.8rem !important;
  }

  .hero-stat-lbl {
    font-size: 0.85rem !important;
  }
  
  /* Filter Buttons Wrapping */
  .projects-filter {
    flex-wrap: wrap !important;
    width: 100% !important;
    border: none !important;
    gap: 0.6rem !important;
    margin-bottom: 3.5rem !important;
  }
  
  .filter-btn {
    border: 1.5px solid #000000 !important;
    border-radius: 30px !important;
    padding: 0.5rem 1.2rem !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
  }
  
  .filter-btn:last-child {
    border-right: 1.5px solid #000000 !important;
  }

  /* Disable heavy and buggy 3D grid scroll on mobile to fix jitter and horizontal overflow */
  .break-grid {
    display: none !important;
  }
  
  .section-break-3d {
    overflow: hidden !important;
    background: #ffffff !important;
  }
  
  /* Smooth 2D Scroll Reveal for Mobile Performance */
  .reveal-3d {
    transform: translateY(20px) !important;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  
  .reveal-3d.reveal-active {
    transform: translateY(0) !important;
  }

  /* Safe Ticker Container bounds on Mobile */
  .ticker-container {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden !important;
  }

  /* Hide the large grey section numbers to prevent horizontal stretch */
  .section-num {
    display: none !important;
  }

  /* Hide Say Hello in header on mobile to prevent overflow */
  .nav-actions .nav-btn-black {
    display: none !important;
  }

  /* Adjust section titles to fit perfectly on small screens */
  .section-title {
    font-size: 2rem !important;
  }

  /* Toast Notification positioning on mobile */
  .toast {
    right: 20px !important;
    left: 20px !important;
    bottom: 20px !important;
    justify-content: center !important;
  }

  /* Fix email and contact info clipping on mobile */
  .contact-info-value {
    font-size: 1.05rem !important; /* Shrunk further to safely fit long email addresses */
    word-wrap: break-word !important;
    white-space: normal !important;
  }

  .contact-info-row {
    padding: 1.2rem 1.2rem !important; /* Tighter padding on mobile to maximize horizontal text space */
  }
}

@media (max-width: 480px) {
  .hero-right-col {
    grid-template-columns: 1fr !important;
  }
  
  .section-title {
    font-size: 2.3rem !important;
  }
  
  .hero-main-title {
    font-size: 2rem !important;
  }
}
