/* ==========================================================================
   BRUTALIST DEVELOPER PORTFOLIO - CORE DESIGN SYSTEM & STYLES
   ========================================================================== */

/* 1. CSS VARIABLES & THEME SETUP */
:root {
  --bg-dark: #0D0F1A;
  --bg-light: #F5F5F0;

  --text-white: #FFFFFF;
  --text-black: #0D0F1A;
  --text-muted-white: rgba(255, 255, 255, 0.65);
  --text-muted-black: rgba(13, 15, 26, 0.6);

  --accent-orange: #FFFFFF;
  /* High-contrast stark white brand accent */
  --accent-blue: #A0A0A0;
  /* Stark neutral mid-gray */

  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-sans: 'Space Grotesk', sans-serif;

  --section-gap: 8vw; /* Unified spatial spacing variable - sweet spot between 6vw and 10vw */

  --grid-color-dark: rgba(255, 255, 255, 0.035);
  --grid-color-light: rgba(13, 15, 26, 0.03);

  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease-out;
}

/* 2. MODERN CSS RESET & GLOBAL STYLES */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none;
  /* Hide standard cursor for the custom brutalist cursor */
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

/* ==========================================================================
   GLOBAL SECTION UTILITIES
   ========================================================================== */

.section-dark {
  background-color: #0a0a0a;
  color: #ffffff;
}

.section-light {
  background-color: #f0ede6;
  color: #000000;
}

.base-section {
  position: relative;
  z-index: 3;
  padding: 4.5rem var(--section-gap) 8rem var(--section-gap);
  border-top: 2.5px solid var(--text-black);
  min-height: 100vh;
}

.section-dark.base-section {
  border-top-color: #ffffff;
}
.section-light.base-section {
  border-top-color: #000000;
}

.section-label-container {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.section-label-number {
  color: var(--accent-orange);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.section-label-text {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-dark .section-label-text {
  color: rgba(255, 255, 255, 0.65);
}

.section-light .section-label-text {
  color: rgba(0, 0, 0, 0.6);
}

/* Generic Stagger Animation */
.stagger-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.visible .stagger-item {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0s; }
.delay-2 { transition-delay: 0.15s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.45s; }
.delay-5 { transition-delay: 0.6s; }

body {
  min-height: 100vh;
  color: var(--text-white);
  overflow-x: hidden;
  background-color: var(--bg-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Custom Styled Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.65);
}

/* Custom Text Selection */
::selection {
  background-color: var(--text-white);
  color: var(--bg-dark);
}

/* 3. CUSTOM BRUTALIST INTERACTIVE CURSOR */
.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--text-white);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: width 0.2s, height 0.2s, background-color 0.2s;
  opacity: 0;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--text-white);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: difference;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s, background-color 0.3s;
  opacity: 0;
}

/* Hover States for Custom Cursor */
.cursor-expanded {
  width: 70px;
  height: 70px;
  border-color: var(--text-white);
  background-color: rgba(255, 255, 255, 0.1);
  mix-blend-mode: difference;
}

.cursor-active {
  width: 14px;
  height: 14px;
  background-color: var(--text-white);
}

/* 4. HERO SECTION LAYOUT (MINIMAL BLACK TYPOGRAPHY) */
.hero-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(4vw, 5vw, 6vw);
  background: transparent;
  pointer-events: auto;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.hero-navbar.scrolled {
  background: #000000;
  border-bottom-color: #222222;
}

.navbar-logo {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--text-white);
  text-transform: uppercase;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.navbar-link {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-white);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.navbar-link:hover {
  color: #888888;
}

.nav-sep {
  color: #444444;
  font-size: 0.75rem;
  font-weight: 700;
  user-select: none;
}

.hero-container {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #000000;
  overflow: hidden;
  z-index: 2;
  pointer-events: auto;
}

.hero-minimal-content {
  padding-left: clamp(4vw, 5vw, 6vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  z-index: 5;
}

.hero-title-massive {
  font-family: var(--font-display);
  font-size: clamp(6rem, 15.5vw, 20rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.8;
  text-transform: uppercase;
  display: inline-flex;
}

.name-text-1 {
  color: #FFFFFF;
}

.name-text-2 {
  color: #555555;
  margin-top: -0.04em;
}

.hero-title-sub {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 5.5vw, 7rem);
  color: #888888;
  text-transform: uppercase;
  margin-top: 0.12em;
  line-height: 0.9;
  letter-spacing: -0.02em;
}

/* Stagger letter animations for name lines */
.char-span {
  display: inline-block;
  opacity: 0;
  transform: translateY(100px) rotate(4deg);
  animation: letterReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(0.3s + (var(--char-index) * 0.06s));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s;
}

.char-span:hover {
  transform: translateY(-15px) scale(1.08) rotate(-2deg);
  color: #FFFFFF;
}

/* Keyframe Animations */
@keyframes letterReveal {
  0% {
    opacity: 0;
    transform: translateY(100px) rotate(4deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

/* 8. MOCK PROJECTS SECTION: BRUTALIST SHOWCASE */
/* ==========================================================================
   SECTION COMPONENTS (LISTS, GRIDS, ROWS)
   ========================================================================== */

/* New Section Display Heading */
.section-display-heading {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: 4rem;
}

/* Generic List & Divider styling */
.list-divider {
  width: 100%;
  height: 1px;
}
.section-dark .list-divider {
  background-color: rgba(255, 255, 255, 0.2);
}
.section-light .list-divider {
  background-color: rgba(0, 0, 0, 0.2);
}

/* 02 // WHAT I DO Styling */
.list-item {
  padding: 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.list-title {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
}
.list-desc {
  font-family: var(--font-sans);
  font-size: 1.1rem;
}

/* 03 // MY WORKS Styling */
.section-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 1rem;
}
@media (min-width: 768px) {
  .section-header {
    flex-direction: row;
    align-items: flex-end;
  }
}
.section-header .section-display-heading {
  margin-bottom: 0;
}
.section-subtitle {
  font-family: var(--font-sans);
  font-size: 1rem;
  max-width: 300px;
}
@media (min-width: 768px) {
  .section-subtitle {
    text-align: right;
  }
}
.section-dark .section-subtitle { color: rgba(255, 255, 255, 0.65); }

.work-item {
  padding: 2.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.3s;
}
.work-item:hover {
  background-color: rgba(255, 255, 255, 0.03);
}
.work-left {
  display: flex;
  align-items: baseline;
  gap: 2rem;
}
.work-num {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
}
.section-dark .work-num { color: rgba(255, 255, 255, 0.5); }
.section-light .work-num { color: rgba(0, 0, 0, 0.5); }

.work-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
}
.work-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.work-desc {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  display: none;
}
@media (min-width: 768px) {
  .work-desc { display: block; }
}
.section-dark .work-desc { color: rgba(255, 255, 255, 0.65); }
.section-light .work-desc { color: rgba(0, 0, 0, 0.6); }

.section-dark .work-arrow {
  border-color: rgba(255, 255, 255, 0.2);
}
.section-light .work-arrow {
  border-color: rgba(0, 0, 0, 0.2);
}
.work-arrow {
  width: 50px;
  height: 50px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 0; /* No rounded corners */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, background-color 0.3s, color 0.3s;
  font-weight: 700;
}
.section-dark .work-item:hover .work-arrow {
  background-color: #ffffff;
  color: #000000;
}
.section-light .work-item:hover .work-arrow {
  background-color: #000000;
  color: #ffffff;
}

/* 04 // THOUGHTS & WRITING Styling */
.blog-item {
  padding: 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .blog-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}
.blog-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.blog-title {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
}
.blog-desc {
  font-family: var(--font-sans);
  font-size: 1.1rem;
}
.section-light .blog-desc { color: rgba(0, 0, 0, 0.6); }
.section-dark .blog-desc { color: rgba(255, 255, 255, 0.65); }

.blog-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 768px) {
  .blog-meta {
    flex-direction: column;
    align-items: flex-end;
  }
}
.blog-date {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
}
.section-light .blog-date { color: rgba(0, 0, 0, 0.5); }
.section-dark .blog-date { color: rgba(255, 255, 255, 0.5); }

.disabled-item { opacity: 0.4; pointer-events: none; }

/* 05 // CONTACT Form Overrides */
.contact-form {
  max-width: 700px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.form-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.section-dark .form-label { color: rgba(255, 255, 255, 0.8); }
.section-light .form-label { color: rgba(0, 0, 0, 0.8); }

.form-input {
  background: transparent;
  border: none;
  border-bottom: 2.5px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  padding: 0.8rem 0;
  outline: none;
  border-radius: 0;
  transition: border-color 0.3s ease;
}
.section-dark .form-input { color: #ffffff; border-bottom-color: rgba(255, 255, 255, 0.15); }
.section-dark .form-input::placeholder { color: rgba(255, 255, 255, 0.25); }
.section-dark .form-input:focus { border-bottom-color: #ffffff; }

.section-light .form-input { color: #000000; border-bottom-color: rgba(0, 0, 0, 0.15); }
.section-light .form-input::placeholder { color: rgba(0, 0, 0, 0.3); }
.section-light .form-input:focus { border-bottom-color: #000000; }

.form-textarea { resize: none; }

.submit-btn {
  align-self: flex-start;
  background: transparent;
  border: 2px solid var(--text-white);
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 1rem 2.2rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition-smooth);
  margin-top: 1rem;
}
.section-light .submit-btn {
  border-color: #000000;
  color: #000000;
}
.section-light .submit-btn:hover {
  background-color: #000000;
  color: #ffffff;
  border-color: #000000;
}

.btn-inverted {
  background-color: #ffffff;
  color: #000000;
  border-color: #ffffff;
}
.btn-inverted:hover {
  background-color: transparent;
  color: #ffffff;
}

.submit-btn .btn-arrow {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}
.submit-btn:hover .btn-arrow {
  transform: translateX(6px);
}

/* Footer Section */
.portfolio-footer {
  margin-top: 8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}
.section-dark .portfolio-footer { color: rgba(255, 255, 255, 0.65); }
.section-light .portfolio-footer { color: rgba(0, 0, 0, 0.65); border-top-color: rgba(0, 0, 0, 0.1); }

@media (min-width: 768px) {
  .portfolio-footer {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-link {
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  transition: color 0.3s;
}
.section-dark .footer-link { color: #ffffff; }
.section-dark .footer-link:hover { color: rgba(255, 255, 255, 0.5); }
.section-light .footer-link { color: #000000; }
.section-light .footer-link:hover { color: rgba(0, 0, 0, 0.5); }

/* ==========================================================================
   12. ABOUT / WHO I AM SECTION
   ========================================================================== */
.about-section {
  position: relative;
  background-color: var(--bg-light);
  z-index: 3;
  padding: 4.5rem var(--section-gap) 8rem var(--section-gap); /* Symmetric padding-left and padding-right using --section-gap */
  border-top: 2.5px solid var(--text-black);
  color: var(--text-black);
  min-height: 100vh;
}

/* Force container full width within about section to let section padding govern layout margins */
.about-section .container {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.about-section .section-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 50px 50px;
  background-image:
    linear-gradient(to right, var(--grid-color-light) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-color-light) 1px, transparent 1px);
  z-index: 1;
  pointer-events: none;
}

.about-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  padding-left: 0; /* Handled by about-section wrapper padding */
  padding-right: 0; /* Handled by about-section wrapper padding */
  position: relative;
  z-index: 5;
}

@media (min-width: 992px) {
  .about-layout-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: var(--section-gap); /* Column gap matches the outer margins precisely */
    align-items: stretch;
    /* Stretch columns to equal heights */
  }

  .about-right-col {
    padding-left: 0;
    /* Reset on desktop since it is in its own column */
    padding-right: 0;
  }
}

/* Left Column Styling */
.about-left-col {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
  /* Stretch to fill full grid cell height */
  width: 100%;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.about-section.visible .about-left-col {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.about-portrait-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  /* Let it fill the left column completely to align with the grid */
  aspect-ratio: 3/2;
  /* Set 3:2 landscape aspect-ratio box! */
  display: flex;
}

.about-portrait-wrapper::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--text-black);
  z-index: 1;
  pointer-events: none;
  border-radius: 0;
  transition: var(--transition-smooth);
}

.about-portrait-card {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  /* Sharp corners - no rounding anywhere */
  border: 2px solid var(--text-black);
  /* Exact same border used on other cards */
  background-color: #1a1a1a;
  /* Fallback charcoal color if image is not loaded */
  transition: var(--transition-smooth);
}

/* Micro-interaction: Smooth hover offset swap! */
.about-portrait-wrapper:hover .about-portrait-card {
  transform: translate3d(-3px, -3px, 0);
}

.about-portrait-wrapper:hover::before {
  transform: translate3d(3px, 3px, 0);
}

/* Right Column Styling */
.about-right-col {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.about-section.visible .about-right-col {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.about-content-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text-black);
  line-height: 0.9;
  text-transform: uppercase;
}

.about-body {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.25vw, 1.15rem);
  color: var(--text-muted-black);
  line-height: 1.6;
  max-width: 720px;
}

.about-actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.about-outline-btn {
  text-decoration: none;
  background-color: #000000;
  border: 2px solid #000000;
  border-radius: 0;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.9rem 1.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.about-outline-btn:hover {
  background-color: #000000;
  color: #ffffff;
  transform: translate(-4px, -4px);
  box-shadow: 4px 4px 0px #555;
}

.section-dark .about-outline-btn {
  background-color: #ffffff;
  border-color: #ffffff;
  color: #000000;
}
.section-dark .about-outline-btn:hover {
  background-color: #ffffff;
  color: #000000;
  box-shadow: 4px 4px 0px rgba(255, 255, 255, 0.4);
}

.about-outline-btn .btn-icon {
  transition: transform 0.15s ease;
}

.about-outline-btn:hover .btn-icon {
  transform: none;
}