/* ==========================================================================
   1. IMPORTS, RESETS & VARIABLES
   ========================================================================== */
@font-face { 
  font-family: 'Myrtille Pixel'; 
  src: url('myrtille-pixel.woff2') format('woff2'),
       url('myrtille-pixel.woff') format('woff'),
       url('myrtille-pixel.otf') format('opentype'); 
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pixel-bg: #FEF9D9; 
  --pixel-border: #FEF9D9; 
  --pixel-border-2: #FEF9D9; 
  --pixel-border-3: #FEF9D9; 
  --pixel: .50rem; 
  --star-color: brightness(0) saturate(100%) invert(63%) sepia(41%) saturate(279%) hue-rotate(183deg) brightness(98%) contrast(95%);
}

html { scroll-behavior: smooth; }

body { 
  background-color: #F6F1D1; 
  font-family: 'Alegreya', Georgia, serif; 
  min-height: 100vh; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  overflow-x: hidden; 
}

/* Custom Pink Plus (+) Cursor Color */
body {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23F2619C' d='M11 4h2v7h7v2h-7v7h-2v-7H4v-2h7V4z'/%3E%3C/svg%3E") 12 12, auto;
}

a, button, .skill-wrapper, .view-link, .carousel-container {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23F2619C' d='M11 2h2v9h9v2h-9v9h-2v-9H2v-2h9V2z'/%3E%3C/svg%3E") 12 12, pointer;
}

::selection {
  background-color: #F2619C;
  color: #FFFFFF;
}

/* Shared Font Settings */
.navbar a, .project-title, .project-desc, .view-link, .content-heading, .content-body, .image-carousel-text {
  font-family: 'Alegreya', Georgia, serif;
  letter-spacing: -0.02em;
}

/* Global Font Enforcement for Myrtille Elements */
.cursive-letter, .dave-name, .mg-header, [style*="font-family: 'Myrtille Pixel'"], [style*="font-family:'Myrtille Pixel'"] {
  font-family: 'Myrtille Pixel', sans-serif !important;
  font-style: normal !important;
  font-weight: normal !important;
  text-transform: none !important;
}

/* ==========================================================================
   2. GLOBAL COMPONENTS (CANVAS, STARS, ANIMATIONS)
   ========================================================================== */
#sparkleCanvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9999; }

.star { position: absolute; width: 45px; height: 45px; animation: spinSelf 4s linear infinite; pointer-events: none; filter: var(--star-color); }
@keyframes spinSelf { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.scroll-reveal { opacity: 0; transform: translateY(60px); transition: opacity 1s cubic-bezier(0.215, 0.610, 0.355, 1), transform 1s cubic-bezier(0.215, 0.610, 0.355, 1); }
.scroll-reveal.active { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   3. NAVIGATION
   ========================================================================== */
.menu-toggle {
  display: none; /* Hidden on desktop screens */
}

.navbar { width: 100%; display: flex; justify-content: center; align-items: baseline; gap: 120px; padding: 60px 20px 20px 20px; z-index: 20; position: absolute; top: 0; }
.navbar a { font-size: 100px; font-weight: 500; color: #94AAD9; text-decoration: none; display: inline-block; transition: opacity 0.2s ease; }
.navbar a span.cursive-letter { font-size: 180px; color: #94AAD9; }
.navbar a:hover { opacity: 0.7; }

/* ==========================================================================
   4. HERO & CONTENT SECTIONS
   ========================================================================== */
.hero-section { width: 100%; height: 100vh; display: flex; flex-direction: column; align-items: center; background-color: #F6F1D1; padding-top: 338px; }
.brand-wrapper { position: relative; width: 90%; max-width: 788px; height: auto; }
.brand-main-svg { width: 100%; height: auto; pointer-events: none; }

.content-section { 
  width: 100%; 
  background-color: #EDE986; 
  min-height: 100vh; 
  padding: 300px 5% 200px 15%; /* Keeps desktop layout spacing intact */
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  position: relative; 
}
.divider-img { width: 100%; display: block; position: absolute; top: -60px; left: 0; z-index: 10; pointer-events: none; }

.pixel-container {
  background: var(--pixel-bg); max-width: 700px; width: 100%; padding: 50px;
  box-shadow: 0 calc(var(--pixel) * -3) 0 calc(var(--pixel) * -1) var(--pixel-bg), 0 calc(var(--pixel) * 3) 0 calc(var(--pixel) * -1) var(--pixel-bg), 0 calc(var(--pixel) * -6) 0 calc(var(--pixel) * -2) var(--pixel-bg), 0 calc(var(--pixel) * 6) 0 calc(var(--pixel) * -2) var(--pixel-bg), 0 calc(var(--pixel) * -9) 0 calc(var(--pixel) * -4) var(--pixel-bg), 0 calc(var(--pixel) * 9) 0 calc(var(--pixel) * -4) var(--pixel-bg), 0 calc(var(--pixel) * -12) 0 calc(var(--pixel) * -6) var(--pixel-bg), 0 calc(var(--pixel) * 12) 0 calc(var(--pixel) * -6) var(--pixel-bg), calc(var(--pixel) * -1) 0 0 0 var(--pixel-border), var(--pixel) 0 0 0 var(--pixel-border), 0 calc(var(--pixel) * -2) 0 0 var(--pixel-border), 0 calc(var(--pixel) * 2) 0 0 var(--pixel-border), 0 calc(var(--pixel) * -5) 0 calc(var(--pixel) * -1) var(--pixel-border), 0 calc(var(--pixel) * 5) 0 calc(var(--pixel) * -1) var(--pixel-border), 0 calc(var(--pixel) * -7) 0 calc(var(--pixel) * -2) var(--pixel-border), 0 calc(var(--pixel) * 7) 0 calc(var(--pixel) * -2) var(--pixel-border), 0 calc(var(--pixel) * -10) 0 calc(var(--pixel) * -4) var(--pixel-border), 0 calc(var(--pixel) * 10) 0 calc(var(--pixel) * -4) var(--pixel-border), 0 calc(var(--pixel) * -13) 0 calc(var(--pixel) * -6) var(--pixel-border), 0 calc(var(--pixel) * 13) 0 calc(var(--pixel) * -6) var(--pixel-border), calc(var(--pixel) * -2) 0 0 0 var(--pixel-border-2), calc(var(--pixel) * 2) 0 0 0 var(--pixel-border-2), 0 calc(var(--pixel) * -1) 0 var(--pixel) var(--pixel-border-2), 0 var(--pixel) 0 var(--pixel) var(--pixel-border-2), 0 calc(var(--pixel) * -4) 0 0 var(--pixel-border-2), 0 calc(var(--pixel) * 4) 0 0 var(--pixel-border-2), 0 calc(var(--pixel) * -6) 0 calc(var(--pixel) * -1) var(--pixel-border-2), 0 calc(var(--pixel) * 6) 0 calc(var(--pixel) * -1) var(--pixel-border-2), 0 calc(var(--pixel) * -8) 0 calc(var(--pixel) * -2) var(--pixel-border-2), 0 calc(var(--pixel) * 8) 0 calc(var(--pixel) * -2) var(--pixel-border-2), 0 calc(var(--pixel) * -11) 0 calc(var(--pixel) * -4) var(--pixel-border-2), 0 calc(var(--pixel) * 11) 0 calc(var(--pixel) * -4) var(--pixel-border-2), 0 calc(var(--pixel) * -14) 0 calc(var(--pixel) * -6) var(--pixel-border-2), 0 calc(var(--pixel) * 14) 0 calc(var(--pixel) * -6) var(--pixel-border-2), calc(var(--pixel) * -3) 0 0 0 var(--pixel-border-3), calc(var(--pixel) * 3) 0 0 0 var(--pixel-border-3), 0 0 0 calc(var(--pixel) * 2) var(--pixel-border-3), 0 calc(var(--pixel) * -3) 0 var(--pixel) var(--pixel-border-3), 0 calc(var(--pixel) * 3) 0 var(--pixel) var(--pixel-border-3), 0 calc(var(--pixel) * -5) 0 0 var(--pixel-border-3), 0 calc(var(--pixel) * 5) 0 0 var(--pixel-border-3), 0 calc(var(--pixel) * -7) 0 calc(var(--pixel) * -1) var(--pixel-border-3), 0 calc(var(--pixel) * 7) 0 calc(var(--pixel) * -1) var(--pixel-border-3), 0 calc(var(--pixel) * -9) 0 calc(var(--pixel) * -2) var(--pixel-border-3), 0 calc(var(--pixel) * 9) 0 calc(var(--pixel) * -2) var(--pixel-border-3), 0 calc(var(--pixel) * -12) 0 calc(var(--pixel) * -4) var(--pixel-border-3), 0 calc(var(--pixel) * 12) 0 calc(var(--pixel) * -4) var(--pixel-border-3), 0 calc(var(--pixel) * -15) 0 calc(var(--pixel) * -6) var(--pixel-border-3), 0 calc(var(--pixel) * 15) 0 calc(var(--pixel) * -6) var(--pixel-border-3);
}

.about-me-container { font-size: 30px; line-height: 1.3; color: #F2619C; font-weight: 500; }
.dave-name { font-size: 60px; line-height: 0; vertical-align: 0px; display: inline-block; color: #F2619C; }
.about-me-container p { margin-bottom: 0; }

.header-style, .skills-header { color: #94AAD9; font-size: 40px; font-family: 'Alegreya', serif; }
.header-style { margin: 30px 0 10px 0; }
.job-title { font-size: 32px; color: #F2619C; margin-top: 15px; font-family: 'Alegreya', serif; }

.skills-header { text-align: center; margin: 50px 0 20px 0; }
.skills-container { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 20px; }
.skill-icon { width: 200px; height: 196px; object-fit: contain; }
.skill-wrapper { position: relative; display: inline-block; cursor: pointer; }

/* Desktop Proper 8-Bit Pixelated Capsule Tooltip Design Style */
.skill-wrapper .tooltip {
  visibility: hidden; 
  width: 120px; 
  background-color: #F2619C !important; 
  color: #fff; 
  text-align: center;
  padding: 6px 0; 
  position: absolute; 
  z-index: 30;
  top: 105%; 
  left: 50%; 
  margin-left: -60px; 
  opacity: 0; 
  transition: opacity 0.3s;
  font-family: 'Alegreya', serif; 
  font-size: 30px;

  /* Proper 4px base-block step structure to render authentic pixel-art capsule edges */
  border-radius: 0 !important;
  border: none !important;
  outline: none !important;
  box-shadow: 
    0 -4px 0 0 #F2619C, 0 4px 0 0 #F2619C,
    -4px 0 0 0 #F2619C, 4px 0 0 0 #F2619C,
    -4px -2px 0 0 #F2619C, 4px -2px 0 0 #F2619C,
    -4px 2px 0 0 #F2619C, 4px 2px 0 0 #F2619C,
    -2px -4px 0 0 #F2619C, 2px -4px 0 0 #F2619C,
    -2px 4px 0 0 #F2619C, 2px 4px 0 0 #F2619C;
}
.skill-wrapper:hover .tooltip { visibility: visible; opacity: 1; }

/* ==========================================================================
   5. GALLERY & CAROUSEL
   ========================================================================== */
.gallery-section { padding: 100px 5%; display: flex; flex-direction: column; gap: 150px; }
.project-row { display: flex; align-items: center; justify-content: center; gap: 80px; }
.project-text-column { width: 450px; display: flex; flex-direction: column; gap: 10px; }
.project-title { font-size: 40px; color: #F2619C; line-height: 1.2; }
.project-desc { font-size: 24px; color: #94AAD9; }
.view-link { font-size: 30px; font-weight: 500; color: #F2619C; text-decoration: none; margin-top: 10px; display: inline-block; }

.project-card { position: relative; width: 500px; height: 350px; margin-top: 30px; margin-left: 30px; }
.base-image, .top-image { width: 100%; height: 100%; object-fit: cover; border-radius: 40px; display: block; }
.base-image { position: relative; z-index: 1; }
.top-image { position: absolute; top: -30px; left: -30px; z-index: 2; box-shadow: 0px 10px 50px rgba(0, 0, 0, 0.25); }

/* ==========================================================================
   6. MOTION GRAPHICS & CONTACT
   ========================================================================== */
.motion-graphics-section { width: 100%; padding: 100px 5%; background-color: #FFDE97; text-align: center; }
.mg-header { font-size: 200px; color: #F2619C; letter-spacing: -2%; margin-bottom: 60px; font-weight: 400; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1400px; margin: 0 auto; }
.video-item { width: 100%; aspect-ratio: 432 / 768; object-fit: cover; border-radius: 20px; background-color: #000; }

.contact-section { width: 100%; min-height: 100vh; padding: 100px 10%; background-color: #F2619C; display: flex; justify-content: center; align-items: center; gap: 80px; color: #EDE986; }
.form-column { flex: 1; max-width: 500px; display: flex; flex-direction: column; gap: 15px; }
.form-input { width: 100%; padding: 18px; border: none; border-radius: 12px; background-color: #FEF9D9; font-family: 'Alegreya', serif; font-size: 18px; color: #F2619C; outline: none; }
.send-btn { width: fit-content; padding: 12px 35px; border: none; border-radius: 10px; background-color: #EDE986; color: #F2619C; font-family: 'Alegreya', serif; font-size: 18px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.contact-column { flex: 1; max-width: 450px; }
.contact-column h2 { font-family: 'Alegreya', serif; font-size: 64px; margin-bottom: 30px; line-height: 1.1; }
.contact-info { display: flex; align-items: center; gap: 15px; font-size: 24px; font-family: 'Alegreya', serif; margin-bottom: 25px; }
.contact-icon { width: 30px; height: 30px; vertical-align: middle; }

/* ==========================================================================
   7. STORE OPENING & OTHER LAYOUTS
   ========================================================================== */
.main-layout { display: flex; align-items: center; justify-content: center; max-width: 1400px; width: 100%; margin: 40px auto; padding: 40px; gap: 80px; min-height: 800px; padding-top: 300px; }
.carousel-column { flex: 1; display: flex; justify-content: center; align-items: center; height: 100%; min-height: 750px; }
.carousel-container { position: relative; width: 500px; height: 750px; cursor: grab; user-select: none; }
.carousel-container:active { cursor: grabbing; }

.carousel { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.carousel-item { position: absolute; top: 50%; left: 50%; width: 410px; height: 710px; margin-left: -205px; margin-top: -355px; border-radius: 40px; overflow: hidden; transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), z-index 0.4s ease, opacity 0.4s ease; background: #fff; box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15); }
.carousel-item video { width: 100%; height: 100%; object-fit: cover; }

.position-1 { transform: translateX(-110px) translateY(10px) rotate(-4deg) scale(0.93); z-index: 1; opacity: 0.85; }
.position-2 { transform: translateX(-55px) translateY(5px) rotate(-2deg) scale(0.96); z-index: 2; opacity: 0.95; }
.position-3 { transform: translateX(0px) translateY(0px) rotate(0deg) scale(1); z-index: 3; opacity: 1; }

.content-column { flex: 1; max-width: 550px; display: flex; flex-direction: column; justify-content: center; }
.content-heading { font-size: 72px; font-weight: 700; color: #F2619C; line-height: 1.1; margin-bottom: 24px; }
.content-heading span.italic-display { font-style: italic; font-weight: 500; }
.content-body { font-size: 36px; font-weight: 400; color: #94AAD9; line-height: 1.2; }

.image-carousel-section { width: 100%; max-width: 100%; margin-top: 100px; margin-bottom: 100px; display: flex; flex-direction: column; align-items: center; }
.image-track-wrapper { max-width: 100%; overflow-x: auto; display: flex; justify-content: center; gap: 40px; padding: 20px 40px; scrollbar-width: none; cursor: grab; user-select: none; }
@media (max-width: 2560px) { .image-track-wrapper { justify-content: flex-start; } }
@media (min-width: 2561px) { .image-track-wrapper { justify-content: center; } }
.image-track-wrapper:active { cursor: grabbing; }
.image-track-wrapper::-webkit-scrollbar { display: none; }

.image-card { min-width: 800px; width: 800px; height: 800px; border-radius: 50px; background-color: #D9D9D9; overflow: hidden; box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05); }
.image-card img, .image-card video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.image-carousel-text { font-size: 40px; font-style: normal; font-weight: 400; color: #94AAD9; line-height: 1.0; text-align: center; margin-top: 40px; max-width: 800px; padding: 0 20px; }

.svg-grid-section { width: 100%; margin: 60px auto 140px auto; padding: 0 40px; display: flex; justify-content: center; }
.staggered-wrapper { display: flex; justify-content: center; gap: 32px; }
.pill-column { display: flex; flex-direction: column; gap: 40px; width: 300px; }
.pill-column.shifted { margin-top: 100px; }
.svg-pill { width: 300px; height: 444px; overflow: hidden; display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease; }
.svg-pill:hover { transform: scale(1.04); }
.svg-pill img { width: 100%; height: 100%; object-fit: contain; }

/* ==========================================================================
   8. RESPONSIVE DESIGN (TABLETS & MOBILE) - AT THE BOTTOM FOR CORRECT OVERRIDES
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Global Reset & Widths */
  .hero-section {
    padding-top: 60px;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  /* Hamburger Button Toggle Interaction Design Style */
  .menu-toggle {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 35px !important;
    height: 24px !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    position: fixed !important;
    top: 30px !important;
    left: 30px !important;
    z-index: 100 !important;
  }

  /* Slate blue lines to stand out beautifully across both light cream and pink backgrounds */
  .menu-toggle span {
    display: block !important;
    width: 100% !important;
    height: 3px !important;
    background-color: #94AAD9 !important; 
    border-radius: 2px !important;
    transition: transform 0.3s ease, opacity 0.3s ease !important;
  }

  /* Fullscreen Mobile Overlay Menu Structural Reset Layout */
  .navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: #F6F1D1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 40px !important;
    padding: 0 !important;
    z-index: 90 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
  }

  /* Font rendering structural logic configuration values */
  .navbar a {
    font-family: 'Alegreya', Georgia, serif !important;
    font-size: 72px !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
    display: block !important;
    width: auto !important;
    text-align: center !important;
  }

  /* Retain design logic styles for inline typography variations */
  .navbar a span.cursive-letter {
    font-size: 110px !important;
    display: inline !important;
  }

  /* Active Toggle Interface States */
  body.menu-open .navbar {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(10px) rotate(45deg) !important;
  }
  body.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0 !important;
  }
  body.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg) !important;
  }

  .content-section {
    padding: 200px 20px 60px 20px; /* Restores top safety padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .content-section img[src*="ME.png"], .star, .divider-img {
    display: none;
  }

  .pixel-container {
    padding: 40px 24px; 
    width: 100%;
    max-width: 100%;
    margin: 60px auto 0 auto; /* Restores the 60px gap under the header */
    position: relative;
  }
  
  .about-me-container { font-size: 18px; line-height: 1.5; text-align: left; }
  .dave-name { 
    font-size: 40px !important; 
    vertical-align: baseline !important;
    position: relative !important;
    top: -1px !important;
  }
  
  .header-style {
    font-size: 24px;
    margin-top: 35px;
    margin-bottom: 15px;
    text-align: left;
    border-bottom: 2px dashed #94AAD9;
    padding-bottom: 5px;
  }
  
  .job-title {
    font-size: 19px;
    margin-top: 20px;
    margin-bottom: 5px;
    text-align: left;
  }
  
  .about-me-container p {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    width: 100%;
    font-size: 16px;
  }
  .about-me-container > p:first-child {
    display: block;
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 30px;
    text-align: left;
  }
  .about-me-container p span {
    float: none;
    display: inline;
    font-size: 14px;
    font-weight: bold;
    opacity: 0.85;
  }
  
  .skills-header { font-size: 24px; margin-top: 40px; }
  .skills-container {
    display: block;
    text-align: center;
    width: 100%;
    max-width: 320px;
    margin: 20px auto 0 auto;
  }
  .skill-wrapper {
    position: relative;
    display: inline-block;
    margin: 8px;
    vertical-align: middle;
  }
  .skill-icon { width: 72px; height: 72px; display: block; }
  
  /* Mobile Pixelated Capsule Tooltip Structural Values Override */
  .skill-wrapper .tooltip {
    width: 60px;
    font-size: 14px;
    padding: 2px 0;
    margin-left: -30px;
    top: 105%;
    
    border-radius: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: 
      0 -4px 0 0 #F2619C, 0 4px 0 0 #F2619C,
      -4px 0 0 0 #F2619C, 4px 0 0 0 #F2619C,
      -4px -2px 0 0 #F2619C, 4px -2px 0 0 #F2619C,
      -4px 2px 0 0 #F2619C, 4px 2px 0 0 #F2619C,
      -2px -4px 0 0 #F2619C, 2px -4px 0 0 #F2619C,
      -2px 4px 0 0 #F2619C, 2px 4px 0 0 #F2619C;
  }
  
  .gallery-section { gap: 80px; padding: 60px 20px; width: 100%; align-items: center; }
  .project-row { flex-direction: column; align-items: center; justify-content: center; width: 100%; gap: 30px; }
  .project-text-column { width: 100%; text-align: center; align-items: center; }
  .project-title { font-size: 28px; }
  .project-desc { font-size: 18px; }
  .view-link { font-size: 20px; }
  
  .project-card { width: 280px; height: 196px; margin: 20px 0 0 20px; }
  .top-image { top: -20px; left: -20px; }

  .motion-graphics-section { padding: 60px 20px; }
  .mg-header { font-size: 54px; margin-bottom: 40px; text-align: center; }
  .video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
  .video-item { width: 100%; height: auto; aspect-ratio: 432 / 768; }

  /* Fix Mobile Horizontal Scroll Overflow on Image Track Cards */
  .image-card {
    min-width: calc(100vw - 40px) !important;
    width: calc(100vw - 40px) !important;
    max-width: 320px !important;
    height: 320px !important;
    border-radius: 24px !important;
  }
  
  .image-carousel-text {
    font-size: 20px !important;
    max-width: 100% !important;
    margin-top: 20px !important;
  }

  .contact-section {
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding: 100px 24px;
    gap: 25px;
    width: 100%;
  }
  .contact-column { order: 1; width: 100%; max-width: 100%; text-align: center; }
  .contact-column h2 { font-size: 36px; margin-top: 0; margin-bottom: 15px; text-align: center; }
  .contact-info { font-size: 18px; justify-content: center; margin-bottom: 10px; }
  
  .form-column { order: 2; width: 100%; max-width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 10px; }
  .form-input { padding: 14px; font-size: 16px; }
  .send-btn { width: 100%; text-align: center; }

  /* Inner Project Pages Inner Layout Configurations Override Layout */
  .main-layout {
    flex-direction: column !important;
    padding: 100px 20px 40px 20px !important;
    gap: 40px !important;
    min-height: auto !important;
    padding-top: 140px !important;
  }
  
  .carousel-column {
    min-height: auto !important;
    width: 100% !important;
  }

  .carousel-container {
    width: 100% !important;
    max-width: 290px !important;
    height: 440px !important;
    margin: 0 auto !important;
  }

  .carousel-item {
    width: 250px !important;
    height: 410px !important;
    margin-left: -125px !important;
    margin-top: -205px !important;
    border-radius: 24px !important;
  }

  .position-1 { transform: translateX(-40px) translateY(5px) rotate(-4deg) scale(0.93) !important; }
  .position-2 { transform: translateX(-20px) translateY(2px) rotate(-2deg) scale(0.96) !important; }
  .position-3 { transform: translateX(0px) translateY(0px) rotate(0deg) scale(1) !important; }

  .content-column {
    max-width: 100% !important;
    text-align: center !important;
  }

  .content-heading {
    font-size: 42px !important;
    margin-bottom: 16px !important;
  }

  .content-body {
    font-size: 20px !important;
  }

  .image-carousel-section {
    margin-top: 40px !important;
    margin-bottom: 40px !important;
  }

  .image-track-wrapper {
    gap: 20px !important;
    padding: 10px 20px !important;
  }

  /* SVG Staggered Grid Mobile Fix Rules Configuration */
  .svg-grid-section {
    margin: 20px auto 60px auto !important;
    padding: 0 20px !important;
  }

  .staggered-wrapper {
    gap: 16px !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    padding-bottom: 15px !important;
    width: 100% !important;
    scrollbar-width: none !important;
  }
  .staggered-wrapper::-webkit-scrollbar { display: none; }

  .pill-column {
    gap: 16px !important;
    width: 140px !important;
    flex-shrink: 0 !important;
  }

  .pill-column.shifted {
    margin-top: 40px !important;
  }

  .svg-pill {
    width: 140px !important;
    height: 207px !important;
  }
}