/* ===================================
   Premium Design System & CSS Variables
   =================================== */
:root {
  /* Premium Neo-Brutalist Palette */
  --bg-primary: #f5f5f0;
  --bg-secondary: #000000;
  --bg-card: #ffffff;
  --text-primary: #151515;
  --text-secondary: #333333;
  --text-muted: #666666;
  --accent: #1e3a8a;
  --accent-light: #3b82f6;
  --accent-orange: #ff4d00;

  --border-thick: 2px solid #000;
  --border-thicker: 4px solid #000;
  --shadow-hard: 6px 6px 0px #000;
  --shadow-premium: 10px 10px 0px #000;
  --shadow-hover: 4px 4px 0px #000;

  --font-main: 'Space Grotesk', sans-serif;
  --font-display: 'Archivo Black', sans-serif;
  --font-heading: 'Syne', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --radius-pro: 4px;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-snappy: 0.1s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-theme: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme='dark'] {
  --bg-primary: #0a0a0a;
  --bg-secondary: #ffffff;
  --bg-card: #151515;
  --text-primary: #f5f5f0;
  --text-secondary: #cccccc;
  --text-muted: #999999;
  --accent: #3b82f6;
  --accent-orange: #ff8c00;
  --border-thick: 2px solid #333;
  --border-thicker: 4px solid #444;
  --shadow-hard: 6px 6px 0px #333;
  --shadow-premium: 10px 10px 0px #333;
}

.theme-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 9999;
  pointer-events: none;
  clip-path: circle(0% at 50% 50%);
  transition: clip-path var(--transition-theme);
}

.theme-transition.active {
  clip-path: circle(150% at 50% 50%);
}

/* ===================================
   Universal Reset & Base
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

/* Luxury Background Gradients */
.mesh-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(at 0% 0%, rgba(30, 58, 138, 0.08) 0, transparent 50%),
    radial-gradient(at 50% 0%, rgba(255, 77, 0, 0.05) 0, transparent 50%),
    radial-gradient(at 100% 0%, rgba(30, 58, 138, 0.08) 0, transparent 50%);
  filter: blur(100px);
  animation: gradientShift 20s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0% {
    transform: scale(1) translate(0, 0);
  }

  100% {
    transform: scale(1.1) translate(20px, 20px);
  }
}

/* Inversion Cursor (Awwwards Style) */
.custom-cursor {
  width: 40px;
  height: 40px;
  background: #fff;
  border: none;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
  /* The magic inversion */
  transition: width 0.3s, height 0.3s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translate(-50%, -50%);
  display: none;
}

/* ===================================
   Pro: Infinite Marquee
   =================================== */
.marquee-container {
  overflow: hidden;
  background: #000;
  border-top: var(--border-thick);
  border-bottom: var(--border-thick);
  padding: 1.5rem 0;
  margin: 4rem 0;
  transform: rotate(-1deg) scale(1.02);
  display: flex;
}

.marquee-content {
  display: flex;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
}

.marquee-content span {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: #fff;
  padding: 0 2rem;
  text-transform: uppercase;
  -webkit-text-stroke: 1px #fff;
  transition: 0.3s;
}

.marquee-content span:nth-child(even) {
  color: var(--accent);
  -webkit-text-stroke: 0px;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ===================================
   Pro: Stickers
   =================================== */
.sticker {
  position: absolute;
  padding: 0.75rem 1.5rem;
  background: var(--bg-card);
  border: var(--border-thick);
  box-shadow: 6px 6px 0px var(--text-primary);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 10;
  pointer-events: none;
  text-transform: uppercase;
}

.sticker-1 {
  top: -20px;
  left: -20px;
  transform: rotate(-6deg);
  background: var(--accent-orange);
  color: #fff;
}

.sticker-2 {
  bottom: -15px;
  right: -10px;
  transform: rotate(4deg);
  background: var(--accent-light);
  color: #fff;
}

.sticker-3 {
  top: 15%;
  right: -20px;
  transform: rotate(8deg);
  background: #000;
  color: #fff;
}

/* Bento Utilities */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 1.5rem;
  position: relative;
  /* For assets */
}

.parallax-asset {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  opacity: 0.15;
  filter: grayscale(1) contrast(1.2);
  mix-blend-mode: multiply;
  transition: transform 0.1s ease-out;
}

[data-theme='dark'] .parallax-asset {
  mix-blend-mode: lighten;
  opacity: 0.1;
}

.asset-1 {
  width: 400px;
  top: -100px;
  right: -50px;
}

.asset-2 {
  width: 300px;
  bottom: -50px;
  left: -50px;
}

.bento-card {
  background: var(--bg-card);
  border: var(--border-thick);
  box-shadow: var(--shadow-hard);
  padding: 2rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-premium);
}

.col-span-2 {
  grid-column: span 2;
}

.col-span-3 {
  grid-column: span 3;
}

.row-span-2 {
  grid-row: span 2;
}

/* Spring-Loaded Pops */
.project-card {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.project-card:hover {
  transform: scale(1.02) translateY(-10px);
}

/* ===================================
   Glass Components
   =================================== */
.glass {
  background: var(--bg-card);
  border: var(--border-thick);
  border-radius: var(--radius-modern);
  box-shadow: var(--shadow-hard);
  transition: var(--transition-brutal);
}

.glass:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0px #000000;
}

/* ===================================
   Pro Enhancements: Noise & Texture
   =================================== */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url('https://grainy-gradients.vercel.app/noise.svg');
  background-repeat: repeat;
}



@media (pointer: fine) {
  * {
    cursor: none !important;
  }

  .custom-cursor {
    display: block;
  }
}

@media (hover: none) {
  .custom-cursor {
    display: none !important;
  }
}

/* ===================================
   Layout
   =================================== */
main {
  padding-top: 8rem;
}

/* ===================================
   Navigation (Premium)
   =================================== */
nav {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 0.6rem 2rem;
  width: auto;
  min-width: 450px;
  max-width: 95%;
  background: var(--bg-card);
  /* Use variable for dark mode support */
  border: var(--border-thick);
  box-shadow: 6px 6px 0px #000;
  border-radius: 0px;
  /* Editorial brutalism uses sharp lines */
}

.mobile-menu-overlay {
  display: none;
  /* Hide by default on desktop */
}

.logo {
  font-family: 'Syne', sans-serif !important;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  transition: var(--transition-snappy);
}

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

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

.nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: 0.2s;
  padding: 0.5rem 1rem;
  border-radius: 100px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--bg-primary);
  background: var(--text-primary);
  box-shadow: 4px 4px 0px var(--accent-orange);
  transform: translate(-2px, -2px);
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: var(--transition-snappy);
}

.theme-toggle:hover {
  color: var(--accent-orange);
  transform: rotate(15deg);
}

.hero-badge {
  padding: 0.5rem 1.25rem;
  background: #ffffff;
  border: var(--border-thick);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 900;
  color: #000000;
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0px #000000;
}

/* ===================================
   Hero Section (Refined)
   =================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5rem 2rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 10vw, 10rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 2.5rem;
  color: var(--text-primary);
  text-transform: uppercase;
  text-shadow: none;
  word-wrap: break-word;
  /* Prevent overflow */
  max-width: 100%;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin-bottom: 3.5rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
}

.btn {
  padding: 1rem 2.5rem;
  border-radius: var(--radius-modern);
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-brutal);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: var(--border-thick);
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-hard);
}

.btn-primary:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0px #000000;
  background: #4f46e5;
}

.btn-secondary {
  background: #ffffff;
  color: #000000;
  box-shadow: var(--shadow-hard);
}

.btn-secondary:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0px #000000;
  background: var(--bg-primary);
}

/* ===================================
   Projects Section (Premium Grid)
   =================================== */
.section {
  padding: 8rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 5rem;
  text-align: center;
  padding-top: 5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-shadow: 6px 6px 0px var(--accent);
  margin-bottom: 1.5rem;
  line-height: 0.9;
  position: relative;
  display: inline-block;
}

[data-theme='dark'] .section-header h2 {
  text-shadow: 6px 6px 0px var(--accent-orange);
}

.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: 1rem;
  letter-spacing: 0.2rem;
}

[data-theme='dark'] .section-label {
  color: var(--accent-light);
}

.section-description {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.5;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
}

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
}

@media (max-width: 900px) {
  .project-card.featured {
    grid-template-columns: 1fr;
  }
}

.project-card.featured .project-icon {
  height: 100%;
  min-height: 350px;
  border: none;
  border-right: var(--border-thick);
}

@media (max-width: 900px) {
  .project-card.featured .project-icon {
    border-right: none;
    border-bottom: var(--border-thick);
    min-height: 250px;
  }
}

.project-card.featured .project-content {
  padding: 1.5rem 3rem;
}

@media (max-width: 900px) {
  .project-card.featured .project-content {
    padding: 0;
  }
}

.project-card {
  background: var(--bg-card);
  border: var(--border-thick);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  box-shadow: var(--shadow-hard);
  transition: var(--transition-smooth);
}

.project-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-premium);
}

.project-icon {
  width: 100%;
  height: 160px;
  border: var(--border-thick);
  background: #000;
  overflow: hidden;
  position: relative;
}

.project-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--transition-brutal);
}

.project-card:hover .project-icon img {
  transform: scale(1.05);
}

.project-card h3 {
  font-size: 1.6rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.project-card p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.tag {
  padding: 0.5rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  box-shadow: 3px 3px 0px var(--text-primary);
}

.project-link {
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: 0.2s;
  margin-top: auto;
}

.project-link:hover {
  gap: 0.8rem;
  color: var(--accent-orange);
}

/* ===================================
   Skills (Premium)
   =================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.skill-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.bento-card h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.bento-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ===================================
   Tilt & Motion Effects
   =================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s var(--ease-premium);
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   Responsive (Premium)
   =================================== */
@media (max-width: 768px) {
  nav {
    top: 1rem;
    min-width: 90%;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    /* Less rounded for brutalism on mobile */
  }

  .nav-links {
    display: none;
    /* Hide desktop links */
  }

  .logo {
    font-size: 1.3rem;
  }

  /* Mobile Menu Toggle Styling */
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
  }

  .hamburger-line {
    width: 30px;
    height: 4px;
    background: #000;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: center;
    border: 1px solid #000;
  }

  .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Mobile Menu Overlay Styling */
  .mobile-menu-overlay {
    display: flex;
    /* Show on mobile */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(245, 245, 240, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: var(--border-thick);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  [data-theme='dark'] .mobile-menu-overlay {
    background: rgba(10, 10, 10, 0.9);
  }

  .mobile-menu-overlay.active {
    transform: translateX(0);
  }

  .mobile-nav-links {
    list-style: none;
    text-align: center;
    padding: 0;
  }

  .mobile-nav-links li {
    margin-bottom: 2rem;
  }

  .mobile-nav-links a {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.2s;
    -webkit-text-stroke: 1px #000;
  }

  .mobile-nav-links a:hover {
    color: var(--accent);
    -webkit-text-stroke: 0px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    /* Stack on mobile for perfection */
    gap: 1.5rem;
  }

  .col-span-2,
  .col-span-3 {
    grid-column: span 1;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
    letter-spacing: -0.04em;
    word-break: break-word;
    /* Ensure it stays in bounds */
    overflow-wrap: break-word;
    hyphens: auto;
    width: 100%;
    margin-bottom: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
    padding: 0;
    margin-bottom: 2.5rem;
  }

  .hero-badge {
    margin-bottom: 1.5rem;
  }

  /* Adjust stickers for mobile to prevent overlap */
  .sticker-1 {
    top: 0;
    left: 0.2rem;
    transform: rotate(-3deg);
    position: relative;
    display: inline-block;
    align-self: flex-start;
    padding: 0.2rem 0.4rem;
    font-size: 0.55rem;
    margin-bottom: 0.5rem;
    width: fit-content;
    max-width: fit-content;
    box-shadow: 2px 2px 0px var(--text-primary);
    text-align: center;
  }

  .sticker-2 {
    bottom: -10px;
    right: 0;
    transform: rotate(2deg) scale(0.65);
    align-self: flex-end;
  }

  .sticker-3 {
    right: 0;
    transform: rotate(4deg) scale(0.65);
    align-self: flex-end;
  }

  /* Hide duplicate footer back to top on mobile */
  .footer-links .back-to-top-link {
    display: none;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .marquee-content span {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: clamp(2rem, 10vw, 3.5rem);
    word-break: break-word;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  /* About Section Refinement - Editorial Strategy */
  .about-container {
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
  }

  .editorial-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 5.5vw, 1.6rem);
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    text-transform: uppercase;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
  }

  .editorial-p {
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    color: var(--text-secondary);
    line-height: 1.4;
    max-width: 900px;
    margin-bottom: 2rem;
    font-weight: 500;
  }

  .text-highlight {
    color: var(--accent-orange);
    position: relative;
    display: inline-block;
  }

  .text-highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--accent-orange);
    opacity: 0.2;
    z-index: -1;
  }

  .accent-text {
    color: var(--accent);
    font-weight: 700;
  }

  .tag-inline {
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 2px 8px;
    font-family: var(--font-mono);
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(-1deg);
    display: inline-block;
    margin: 0 4px;
    box-shadow: 3px 3px 0px var(--accent-orange);
  }

  .text-reveal-italic {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
    color: var(--text-primary);
    text-decoration: underline wavy var(--accent-orange);
  }

  .bold-brutal {
    font-weight: 900;
    color: var(--text-primary);
    border-bottom: 3px solid var(--text-primary);
  }

  @media (max-width: 1024px) {
    .editorial-heading {
      font-size: 3rem;
    }
  }


  /* Contact Section Overflow Fix */
  #contact h2 {
    font-size: 2rem;
    word-break: break-word;
  }

  .btn-large {
    font-size: 1rem !important;
    padding: 1rem !important;
    word-break: break-all;
  }

  .social-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  /* Prevent Body Scroll when Menu is Open */
  body.menu-open {
    overflow: hidden;
  }

  /* Surgical Fixes for Ultra-Small Screens (iPhone SE, etc.) */
  @media (max-width: 360px) {
    .hero h1 {
      font-size: 1.5rem;
      /* Force a small enough size for long words */
    }

    .editorial-heading {
      font-size: 0.7rem !important;
      /* Ultra-aggressive reduction for 320px - prevents mid-word breaks */
      line-height: 1.5;
      word-break: keep-all;
      hyphens: none;
      overflow-wrap: normal;
      letter-spacing: -0.01em;
    }

    /* Constrain stickers to avoid off-screen overflow */
    .sticker-1 {
      left: 0.2rem;
      transform: rotate(-2deg) scale(0.85);
    }

    .sticker-2 {
      right: 0.2rem;
      transform: rotate(1deg) scale(0.85);
    }

    .sticker-3 {
      right: 0.2rem;
      transform: rotate(2deg) scale(0.85);
    }

    .project-status-badge {
      top: 0.5rem;
      right: 0.5rem;
      font-size: 0.5rem;
      padding: 0.2rem 0.4rem;
    }
  }
}

/* ===================================
   Footer & Contact (Brutal)
   =================================== */
#contact .btn-primary {
  font-size: 1.5rem;
  padding: 1.5rem 3rem;
  border-radius: 0;
}

footer {
  background: #000;
  color: #fff !important;
  font-weight: 700;
  text-transform: uppercase;
  overflow: hidden;
  /* Prevent footer overflow */
}

/* ===================================
   Status Badges & Maintenance
   =================================== */
.project-status-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.6rem;
  background: rgba(255, 255, 255, 1);
  border: var(--border-thick);
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 5;
  box-shadow: 3px 3px 0px #000;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: #6366f1;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
  }
}

.opacity-50 {
  opacity: 0.5;
  pointer-events: none;
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

/* Social Links & Icons (Premium) */
.social-links {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.social-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: var(--border-thick);
  box-shadow: 8px 8px 0px #000;
  border-radius: 12px;
  font-size: 2rem;
  color: #000;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
  transform: translate(-6px, -6px) rotate(-8deg) scale(1.1);
  box-shadow: 14px 14px 0px #000;
  z-index: 10;
}

/* Brand specific hovers */
.social-icon.x-logo:hover {
  background: #000;
  color: #fff;
  border-color: #333;
}

.social-icon.github-logo:hover {
  background: #24292e;
  color: #fff;
}

.social-icon.medium-logo:hover {
  background: #00ab6c;
  color: #fff;
}

/* ===================================
   Problems Solved Section
   =================================== */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.problem-card {
  background: var(--bg-card);
  border: var(--border-thick);
  padding: 2rem;
  box-shadow: var(--shadow-hard);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.problem-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-premium);
}

.problem-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.problem-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text-primary);
  text-transform: uppercase;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.problem-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .problems-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .problems-grid {
    grid-template-columns: 1fr;
  }
}